HNHacker News
TopNewBestAskShowJobs

papercrane

1,797 karma · joined February 19, 2009

submissionscomments
papercrane··on A visual proof that a^2 – b^2 = (a + b)(a – b)
I really enjoyed their podcast. I haven't found anything quite like it to replace it.
papercrane··on Gukesh becomes the youngest chess world champion in history
I don't think so. He's still active, he just wants to play tournaments and not championships.
papercrane··on JSON5 – JSON for Humans
Trailing to signal a floating point seems like to niche of a use case to me. Generally it's best to treat every JSON number literal as a 64-bit float anyway for the sake of interoperability.
papercrane··on Honeycrisp apples went from marvel to mediocre
Looks like Cornell owns the rights to the apple and are working exclusively with a NY apple growers collective to commercialize the apple.

https://news.cornell.edu/stories/2013/08/snapdragon-and-ruby...

papercrane··on Ultra-low-latency, batching and concurrent queue for IPC in Java
They're both similar in design, the main difference is Coral Queue can be used for IPC between JVMs, using a mmap'd file.
papercrane··on Java 24 to Reduce Object Header Size and Save Memory
The JVM specification does not specify anything about how objects should be represented. The only time internal representation of objects is discussed in the JVM spec is section that says "The Java Virtual Machine does not mandate any particular internal structure for objects."

In this case the JEP is scoped to just the hotspot runtime. Other implementations are free to represent objects however they want.

https://docs.oracle.com/javase/specs/jvms/se23/html/jvms-2.h...

papercrane··on 1BRC Coding Challenge: Nerd Sniping the Java Community
In this particular instance Unsafe was used to skip boundary checks. The main difference between the fastest safe version and the fastest unsafe version was how the file was read. The safe version used MappedByteBuffer to read the file, which under the hood memory maps the file and enforces boundaries. The unsafe version memory mapped the file and then read the memory directly using Unsafe.

The fastest version also used Graal which would've helped with startup time.

papercrane··on Jeff Bezos killed Washington Post endorsement of Kamala Harris
He'd care about getting government contracts. For example, during the Trump administration the Pentagon chose Microsoft over AWS for JEDI. AWS claimed there was political interference that favoured MS.

Obviously Bezos will be rich with or without these contracts, but he'd prefer to be richer.

papercrane··on An amateur historian has discovered a long-lost short story by Bram Stoker
I _think_ UK copyright law would matter here, since at the time the story was published (1890) the Ireland was part of the UK (Ireland gained independence in 1921.)

If UK copyright applied, then the story would have entered public domain in 1932. The term of copyright for published works at the time as 7 years after the authors death, or 42 years, whichever was longer.

papercrane··on Google says it won't follow Amazon's lead with a return-to-office mandate
> I've fought similar battles over not being able to provide a direct phone extension because I don't have a phone on my office desk

I'd probably just setup a cheap DID number with someone like VOIP.ms and have it go straight to voicemail.

I agree though, it's not a fight you should have fight. Office phones are going the way of the fax machine.

papercrane··on Qualcomm Approached Intel About a Takeover in Recent Days
You can't just look at the stock price. INTC has split and had dividends since 1998.

If you bought $10,000 of INTC in Sept 19th, 1998 and held it to today the stock would be worth $17,000 and you would've collected almost $12,000 in dividends.

papercrane··on Up to a Quarter of Rental Inflation Is Due to Price-Fixing
That's true in some markets, but the DOJ complaint highlights some places, like Atlanta, where vacancy rates have gone up, but rents have still climbed higher.
papercrane··on Amazon tells employees to return to office five days a week
The FTC decision has already been halted by a Texas court nationwide. It's probably going to make it's way to the Supreme Court eventually, but given the courts recent rulings I suspect the FTC rule won't survive.

https://corpgov.law.harvard.edu/2024/09/05/ftc-noncompete-ru...

papercrane··on Ask HN: Why is Pave legal?
This is true, although it's also true that many startups lie to, or mislead, investors about the state of their products. If things work out, then the investors don't care, and if they don't its usually at scale and messy enough the government isn't going to prosecute.
papercrane··on JavaScript dates are about to be fixed
In defense of Java's SimpleDateFormat, it's purposefully designed to be compatible with the ICU formatting.

The choice of 'Y' for the rarely used "week year" is unfortunate. For those unaware, in ISO-8601 every year has either 52 or 53 full weeks. If you want to format a date like "2023-W52-6" (the 6th day of the 52nd week of 2024) you would use "YYYY-'W'ww-u".

https://unicode-org.github.io/icu/userguide/format_parse/dat...

papercrane··on Police cannot seize property indefinitely after an arrest, federal court rules
Ever since Rodriguez v. United States the police cannot make you wait for the K9. It's considered an unlawful detainment if they extend the traffic stop, without reasonable suspicion of another crime, beyond the time it takes to deal with the original reason they pulled you over.
papercrane··on It took my savings and 14 years but I’m about to beat arthritis
This is the Phase II clinic study: https://clinicaltrials.gov/study/NCT05618782

They haven't posted the results yet. They have posted a press release saying the results were positive and that they will post the results in a peer reviewed journal. https://levicept.com/wp-content/uploads/2024/08/Levicept-Cli...

papercrane··on Judge orders CDC to stop deleting emails of departing staff: 'likely unlawful'
CC'ing the lawyer is popular, but probably counter productive. Just including your lawyer in the email chain doesn't make the email privileged and it's a good signal that there is something in the email you don't want found.
papercrane··on FCC votes to limit prison telecom charges
> I think its important to understand that you're never found innocent; only not guilty.

This is not true. Many wrongfully convicted people are found to be "factually innocent" when their convictions are overturned. This is because after you are convicted the burden of proof to overturn the conviction switches, you are now presumed guilty, since you've been convicted beyond a reasonable doubt, and must prove your innocence. Some Supreme Court Justices even hold that being innocent isn't enough to get out of even the death penalty.

papercrane··on Canada became a car theft capital of the world
Entrapment is when the state induces someone to commit a crime they would not have otherwise committed. For something to be entrapment, the state must overcome some level of resistance, not just provide an opportunity for a crime.

For example, leaving a car out and watching it get stolen is not entrapment. Buying drugs and then arresting the seller is not entrapment.

The police in Canada have a tactic, called "Mr. Big", where they introduce a suspect to an undercover agent posing as a criminal, usually posing as a high-level organized crime member, and then getting the trust of the suspect. This has resulted in entrapment. For example, in R. v. Mack, a police used a "Mr. Big" style system to try and get Mack to sell drugs. It wasn't until the police threatened him that he agreed, after which they arrested him. His conviction was later thrown out because it was ruled this was entrapment.

papercrane··on First anode-free sodium solid-state battery
Where did you get the kit from?

I've been considering it, and I figured $2 CAD/kW is the 10-year break even point for me, which would be amazing since you can get a 10 year interest free loan for it.

papercrane··on EV Motors Without Rare Earth Permanent Magnets
Sodium batteries are a thing. There hasn't been much commercialization of them yet, but the main issue for cars is they have lower energy density than lithium batteries.

Currently sodium battery makers are focused on stationary battery applications where energy density is less important.

papercrane··on Migrating from Java 8 to Java 17: A Comprehensive Guide to New Features
It isn't that severe of a break. Most of the friction was with the libraries with transitive dependencies, like ASM, that depend on a particular bytecode version, using internal classes that were removed (e.g. sun.misc.BASE64Encoder), or the new module system encapsulating APIs that were intended to be internal-only (usually fixable with JVM runtime flags.)

A lot of organizations that use Java are very conservative with their tech changes, and didn't see a compelling reason to upgrade. This was especially true since Android Java still used Java 8, so many popular libraries continued to support Java 8 for their Android userbase.

papercrane··on An 'Algorithm' Turned Apartment Pools Green
Shelter is part of CPI, which this rent fixing would distort. Even so, it seems the rent increases far outpaces inflation.
papercrane··on Writing memory safe JIT compilers
It depends. In my experience generally GraalVM is slower to start, but after a few iterations it can be as fast or faster, and that the same results can be amplified if you use the JVM instead of AOT (i.e. it's even slower to start, but eventually it can be much faster.)

Of course this all depends on your specific code and uses cases.

papercrane··on AI-generated thumbnails used to promote 12 Angry Men on Amazon Prime
I wonder what kind of results you might get using an AI model to choose a still from the film as the thumbnail.
papercrane··on Boeing Starliner launches first crewed mission
A gravity tractor is the simplest solution with enough lead time. It's theoretical, but doesn't involve any exotic technology or materials.

Essentially you have a spacecraft park itself beside an asteroid. It's gravity will minutely change the asteroids trajectory. With enough lead time that's all you need. Since you're not blowing up, or applying a large focused amount of energy to the asteroid it doesn't matter what the targets composition is. You won't break it up.

https://en.wikipedia.org/wiki/Gravity_tractor

papercrane··on Arthur Whitney releases an open-source subset of K with MIT license
It was meant just as an indicator of the code density. The actual line lengths are ~80 chars.
papercrane··on Arthur Whitney releases an open-source subset of K with MIT license
Whitney is famous for writing code like this, it's been his coding style for decades.

For example, he wrote an early J interpreter this way in 1989. There's also a buddy allocator he wrote at Morgan Stanley that's only about 10 lines of C code.

https://code.jsoftware.com/wiki/Essays/Incunabulum

https://github.com/tavmem/buddy/blob/master/a/b.c

papercrane··on Carpenter's AirTags help uncover 'massive' case of stolen tools in Maryland
That seems like the mostly likely way, at least for the new items stolen from retail. Trying to sell on craiglist/FB marketplace doesn't seem like it would scale. An unscrupulous hardware store owner could mix the stolen goods in with their stock to pad their margins. The tools could also be used as stock for 3rd party seller on Amazon.
← PreviousPage 3 of 16Next →