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

comment 6y ago · link · parent

Azul's ReadyNow! for their commercial Zing JVM does this: https://www.azul.com/products/zing/readynow-technology-for-z...

32.

Mark Cuban says bailed out companies should never be allowed to buy back stocks(cnbc.com ↗)

135 points · by electrum · 6y ago · 94 comments

comment 6y ago · link · parent

That same technique is used by https://www.chiark.greenend.org.uk/~sgtatham/coroutines.html

comment 6y ago · link · parent

Autosteer is also disabled by default and must first be enabled in the settings menu while the car is in park.

comment 6y ago · link · parent

This is how they look in IntelliJ IDEA: https://www.jetbrains.com/help/idea/viewing-reference-inform...

comment 6y ago · link · parent

Facebook open sourced WDT, which seems to have the same goals: https://github.com/facebook/wdt

comment 7y ago · link · parent

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.

comment 7y ago · link · parent

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.

comment 7y ago · link · parent

Although sometimes the food is limited to Carl's Jr.

40.

Texas Taxpayers Pay for Wind Power and Then Pay the Grid to Take It(forbes.com ↗)

14 points · by electrum · 7y ago · 5 comments

41.

Presto SQL: Optimizing the Casts Away(prestosql.io ↗)

12 points · by electrum · 7y ago · discuss

comment 7y ago · link · parent

No. The file system implementation uses the AWS S3 client, which will automatically use virtual-host style when possible (if the bucket name supports it).

comment 7y ago · link · parent

Windows NT development started in 1989. It was lead by Dave Cutler, who also lead VMS which started in 1975.

comment 7y ago · link · parent

Facebook does use it. They design their own hardware, but they are do not manufacture it themselves, they aren't in the hardware manufacturing business. They parter with companies like Quanta to do that.

Here's an older article that explains the relationship: https://venturebeat.com/2014/01/29/facebook-quanta/

comment 7y ago · link · parent

Here's the code from FreeBSD: https://github.com/freebsd/freebsd/blob/master/sys/sys/queue...

comment 7y ago · link · parent

If you buy at Costco, you can return them at any time in the future without a receipt. The return desk will lookup past purchases using your membership card.

comment 7y ago · link · parent

> Not to mention that "uncovered later" is pretty damn worthless.

It is not worthless as a deterrent to the CA. Proof of a fraudulently issued certificate are grounds to permanently distrust the CA. So, yes, they can do it, but hopefully only once.

comment 7y ago · link · parent

IntelliJ completion takes into account both type and name. For example, if you have two string variables, it will suggest the one that matches or is similar to the method parameter name.

In general, IntelliJ has a lot of features that feel like magic (likely a pile of smart heuristics that have been added over the years).

comment 8y ago · link · parent

Presto is not an Apache project (although it is open source under the Apache License).

comment 8y ago · link · parent

The commit that dual-licensed under BSD and GPLv2 also "removed PATENTS clause":

https://github.com/facebook/zstd/commit/4f73b3b55d83b082aad1...

comment 8y ago · link · parent

It's more about the memory layout than where the objects live. For example, consider a Point class with (x, y) members.

If you have an array of these, each element in the array will be a reference/pointer to a separately allocated Point instance which can be anywhere in the heap. Accessing the array is expensive due to lack of locality (arbitrary memory access). Additionally, each instance has substantial object overhead (typically 8 or 16 bytes).

There are various ways to deal with this. One way is to have separate arrays for x and y. Another way is to use a byte array and use Unsafe to read/write the integers. This is terrible from a developer standpoint and is only acceptable if it is a small part of your application.

Value types solve this by giving you an efficient memory layout while still allowing you to code against them as normal. The slogan is "codes like a class, works like an int".

52.

PostgreSQL: Exploring how SELECT queries can produce disk writes(blog.okmeter.io ↗)

1 points · by electrum · 8y ago · discuss

comment 8y ago · link · parent

Java has essentially the same behavior with threads. If an error occurs in a thread, it will throw an exception that will terminate the thread if uncaught. Other threads are not directly affected. This is typically what you want as threads are usually independent of each other, often processing an isolated request, which may encounter a bug due to bad data or other conditions. Contrast this to languages like C++, where the usual behavior is to segfault and crash the process.

Special care must be taken if threads are manipulating shared data structures, especially inside a "critical section" where the data structure invariants must be maintained. This is why automatically terminating the JVM when OutOfMemoryError occurs is a best practice, as code is often not paranoid enough to handle it.

comment 8y ago · link · parent

Are you sure about "most RDBMSs"? With the exception of SQLite and older versions of MySQL, all the databases that I've used are strict and fail the query immediately on error, will generally prevent silently dropping or truncating data, etc.

I'm one of the original authors of Presto, a distributed SQL engine for analytics on big data. From the beginning, we've been careful to follow the SQL standard and do everything possible to either return the correct answer or fail the query. For example, an addition or sum aggregation on an integer will fail on overflow rather than silently wrapping.

Returning an incorrect answer or silently corrupting your data is the worst thing a database can do.

55.

Damage from Atlanta’s huge cyberattack is worse than the city first thought(techcrunch.com ↗)

2 points · by electrum · 8y ago · 1 comment

comment 8y ago · link · parent

The JVM could do this, but there is a lot of other overhead for JNI calls (by virtue of the JNI API specification). Project Panama is working on improving native interoperability: http://openjdk.java.net/projects/panama/

comment 8y ago · link · parent

John Carmack was also successful at a relatively young age. He released Doom at age 23.

comment 8y ago · link · parent

These gradual type checking frameworks allow migrating massive code bases incrementally. Doing a complete big-bang rewrite into a different language isn't feasible (for the obvious software engineering and business reasons).

comment 8y ago · link · parent

You could add Folly as Facebook's backend C++ framework (it's somewhat analogous to Google's Guava for Java).

60.

Buffett and Gates Are the Latest Bitcoin Critics(bloomberg.com ↗)

2 points · by electrum · 8y ago · discuss

12345
10