HNHacker News
TopNewBestAskShowJobs

electrum

1,230 karma · joined September 30, 2007

Software engineer. Co-creator of Trino (formerly Presto SQL).

https://trino.io/

https://www.linkedin.com/in/electrum

submissionscomments
electrum··on Proposed Rule: Eliminating the Discretionary 60-Day Grace Period
California employees who are discharged must be paid all wages due at the time of termination. (Labor Code § 201)
electrum··on Why is the x86 undefined instruction called ud2? Why 2?
> of course you had at least one floppy disk drive, how could you use a computer without one?

IBM PCs, even into the PS/2 days, would boot into Cassette BASIC if you didn't have a floppy drive or boot disk inserted: https://en.wikipedia.org/wiki/IBM_BASIC

My high school had the PS/2 Model 25 SX, introduced in 1992, without hard drives. All of the software ran off of a Novell NetWare file server, but required a bootable floppy disk. If you removed the floppy disk, they would boot into the built-in BASIC from the machine's ROM.

electrum··on Show HN: Stage – Putting humans back in control of code review
Does Stage work for PRs that have multiple commits? These could be considered "stacked diffs", but in the same PR.
electrum··on Find SF parking cops
According to https://www.sfmta.com/getting-around/drive-park/how-avoid-pa...

> During street sweeping hours, you may not park until the street has been physically swept.

electrum··on How to Use the Foreign Function API in Java 22 to Call C Libraries
You might be able to use FILE_FLAG_DELETE_ON_CLOSE, but this would likely require calling the Windows API functions directly.
electrum··on Understanding Parquet, Iceberg and Data Lakehouses
Trino no longer depends on Hadoop/Hive for any of its data lake connectors. Removing that dependency was a huge effort.
electrum··on Finding Java Thread Leaks with JDK Flight Recorder and a Bit of SQL
Yeah, URL is from the first release of Java and should be avoided. You want to use URI instead.
electrum··on Meta just gave thousands of employees poor performance reviews
tbgs is internal code search for Facebook: https://codesearchguide.org/story/facebook
electrum··on Owl: A toolkit for writing command-line user interfaces in Elixir
JLine has a complete terminal library and includes a demo which is a full editor: https://github.com/jline/jline3
electrum··on New PostgreSQL Interface for Cloud Spanner
Procedures are very useful to enforce business logic in the database, rather than in the application. It’s like putting a higher level application-specific API on top of your database schema.

For Cockroach, it could help substantially with latency for multi-statement transactions, since the procedure could be executed on a database node closest to the leaseholder for the data. Executing a multi-statement transaction on the client means incurring per-statement latency between the client and gateway node, and between the gateway node and the leaseholder.

electrum··on O.mg Cable
$49 for the device and data: https://blues.io/
electrum··on Strict Tables – Column type constraints in SQLite - Draft
The H2 embedded database has compatibility modes for other databases, which seems helpful for testing, but ends up being incompatible in various ways for anything non-trivial. You end up fighting the compatibility and skipping useful native features of the target database, while still not having confidence that the code works on the target database.

We now use the awesome Testcontainers library (available for multiple languages) that makes it easy to launch the real database in a Docker container. Testing applications against multiple databases is now trivial.

electrum··on PostGIS – Spatial and Geographic Objects for PostgreSQL
The Bing Maps Tile System has a similar projection system: https://docs.microsoft.com/en-us/bingmaps/articles/bing-maps...
electrum··on Why is it so hard to see code from 5 minutes ago?
This is part of the IntelliJ IDEA platform, so all of the JetBrains IDE products have it. I don’t use it often, since I normally rely on Git, but it’s saved me several times after I accidentally deleted a file or made a mistake with Git.
electrum··on S3 Strong Consistency
Even more confusing, the 404 on GET is caused by doing the HEAD when the object doesn't exist. Without the previous HEAD, the GET would usually succeed.
electrum··on GM recalling nearly 69,000 Bolt EVs for fire risks
Tesla has a slider for the charge limit with 90%+ being designated as Trip and 50-90% as Daily. Even for a trip, I avoid charging above 90% because regenerative braking stops working when the battery is nearly full, which results in a substantial change to the way the car handles. You get used to one pedal driving and rarely having to use the brakes, so it's very unnerving for the car to not slow down rapidly when you let up on the accelerator pedal.
electrum··on JDK 15
The indentation is removed at compile time, per the JLS: https://docs.oracle.com/javase/specs/jls/se15/html/jls-3.htm...

> Incidental white space is removed, as if by execution of String.stripIndent on the characters resulting from step 1.

The new stripIndent() method is provided as a convenience to developers.

electrum··on JDK 15
IntelliJ shows you exactly where the block starts, so if you have a line with less indentation (causing the entire block to start at that column), it is easy to spot.
electrum··on Home Server Room Power Upgrade and Multi-Room UPS
This is common in home systems where you have a second power source like solar. Mine has markings like this: https://www.jadelearning.com/blog/pv-system-marking-and-labe...
electrum··on Show HN: ORM for TypeScript with no query-builder, supporting full SQL queries
Jdbi works the way you describe: https://jdbi.org/
electrum··on You don’t need SMS-2FA
That's not true for SMS-2FA, since text messages are often delivered to the device with the browser. Safari on both macOS and iOS will offer to automatically fill in the code received from SMS.
electrum··on UTF-8 bit by bit (2001)
This special encoding of the null character is Modified UTF-8 and is used by various Java and JVM APIs and in Java class files.

https://en.wikipedia.org/wiki/UTF-8#Modified_UTF-8

electrum··on New 13-inch MacBook Pro
I've used the Dell U3219Q for over a year for this purpose. Importantly, the monitor provides 90W of power, which is needed for the larger laptops, especially when running power intensive tasks. Most USB-C monitors do not provide enough power.
electrum··on Why Aren’t More Users More Happy With Our VMs? Part 1 (2018)
Azul's ReadyNow! for their commercial Zing JVM does this: https://www.azul.com/products/zing/readynow-technology-for-z...
electrum··on A Defer Statement for C
That same technique is used by https://www.chiark.greenend.org.uk/~sgtatham/coroutines.html
electrum··on Apple engineer killed in Tesla crash had previously complained about autopilot
Autosteer is also disabled by default and must first be enabled in the settings menu while the car is in park.
electrum··on Records Come to Java
This is how they look in IntelliJ IDEA: https://www.jetbrains.com/help/idea/viewing-reference-inform...
electrum··on A Desperate Plea for a Free Software Alternative to Aspera (2018)
Facebook open sourced WDT, which seems to have the same goals: https://github.com/facebook/wdt
electrum··on USB-C Has Finally Come into Its Own
The cable that came with my Dell U3219Q has worked well for nearly a year. The monitor provides 90W of power to charge the MacBook Pro, so it effectively functions as a docking station with a single cable.
electrum··on USB-C Has Finally Come into Its Own
This isn't specific to USB-C. The older MagSafe adapters (and likely the ones before them) came in different wattage for different computers. The smaller wattage adapters are physically smaller and lighter -- often important for someone who intentionally purchased a lightweight computer.
Page 1 of 9Next →