Better HN
topnewbestaskshowjobs
Log inSign up

electrum

1,230 karma · joined Sep 30, 2007 (19y ago) · 280 submissions

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

https://trino.io/

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

Submissions

1.

Ending procurement and forced use of paper straws (2025)(whitehouse.gov ↗)

3 points · by electrum · 2mo ago · discuss

2.

UK could force phone companies to add 'anti-theft protections'(bbc.com ↗)

5 points · by electrum · 2mo ago · discuss

comment 2mo ago · link · parent

California employees who are discharged must be paid all wages due at the time of termination. (Labor Code § 201)

comment 2mo ago · link · parent

> 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.

comment 7mo ago · link · parent

Does Stage work for PRs that have multiple commits? These could be considered "stacked diffs", but in the same PR.

comment 1y ago · link · parent

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.

comment 2y ago · link · parent

You might be able to use FILE_FLAG_DELETE_ON_CLOSE, but this would likely require calling the Windows API functions directly.

comment 2y ago · link · parent

Trino no longer depends on Hadoop/Hive for any of its data lake connectors. Removing that dependency was a huge effort.

comment 3y ago · link · parent

Yeah, URL is from the first release of Java and should be avoided. You want to use URI instead.

comment 3y ago · link · parent

tbgs is internal code search for Facebook: https://codesearchguide.org/story/facebook

comment 3y ago · link · parent

JLine has a complete terminal library and includes a demo which is a full editor: https://github.com/jline/jline3

12.

Leaving Facebook/Meta was the best thing we could do for the community(trino.io ↗)

212 points · by electrum · 4y ago · 62 comments

13.

Data Fabric vs. Data Mesh: What's the Difference?(blog.starburst.io ↗)

66 points · by electrum · 5y ago · 15 comments

comment 5y ago · link · parent

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.

15.

Does the Data Mesh make data integration harder?(blog.starburst.io ↗)

29 points · by electrum · 5y ago · 1 comment

comment 5y ago · link · parent

$49 for the device and data: https://blues.io/

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

The Bing Maps Tile System has a similar projection system: https://docs.microsoft.com/en-us/bingmaps/articles/bing-maps...

19.

Data Mesh: The Answer to the Data Warehouse Hypocrisy(blog.starburstdata.com ↗)

25 points · by electrum · 5y ago · 4 comments

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

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.

comment 6y ago · link · parent

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.

comment 6y ago · link · parent

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.

comment 6y ago · link · parent

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.

comment 6y ago · link · parent

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...

comment 6y ago · link · parent

Jdbi works the way you describe: https://jdbi.org/

comment 6y ago · link · parent

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.

comment 6y ago · link · parent

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

comment 6y ago · link · parent

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.
12345
10