Better HN
topnewbestaskshowjobs
Log inSign up

remywang

943 karma · joined Oct 3, 2020 (6y ago) · 158 submissions

https://remy.wang
Submissions

comment 5h ago · link · parent

It’s a sensational article on a sensational pop scientist:

> Max Tegmark, a professor at the Massachusetts Institute of Technology, said: “When I talk to people who work for Anthropic, after they’ve had a couple of drinks, the conversation often gets into overthrowing the US government and taking over the world.”

> “They tend to not use words like ‘coup’ and ‘overthrow the US government’. They instead use the code phrase ‘alignment without control’,” he said.

comment 17h ago · link · parent

Something I want but can’t find: free/busy calendar that works with all the protocols, including caldav and whatever google implements. Will save so much time scheduling meetings

3.

Intelligent machinery, a heretical theory – Alan Turing(turingarchive.kings.cam.ac.uk ↗)

6 points · by remywang · 6d ago · 1 comment

comment 1w ago · link · parent

> Most formats split the table into large groups of rows and store the columns separately inside of each group (this is known as a "row group"). This idea goes back to PAX, from Weaving Relations for Cache Performance (VLDB 2001), and it's how Apache Parquet files work today.

PAX’s “row group” has the same size as a disk page, whereas Parquet row groups are much larger so a page stores only data from the same column. I’ve been trying to track down the origin of this change in design but haven’t been able to find the right paper

comment 1w ago · link · parent

Is there documentation on a set of “user-facing” Lean definitions to help me understand the formal spec returned?

comment 1w ago · link · parent

For those wondering what “embedding” is:

> Aristotle compiles the provided Rust code deterministically into our proprietary Lean formal model of Rust execution (onward: the embedding).

I was also wondering how readable the auto-formalized spec is, but “proprietary” suggests the formal spec is hidden?

As a user I’d much prefer looking at the formalization myself instead of trusting the auto-formalization from natural language.

comment 1w ago · link · parent

Crochmere is about deterministic algorithms on strings, think regex, and doesn’t have much to do with modern NLP. I’ve found Stanford’s CS166 to be helpful when learning about these algorithms https://web.stanford.edu/class/archive/cs/cs166/cs166.1146/

comment 1w ago · link · parent

> Here's the famous commentary about Oracle RDBMS codebase of 25 million lines: https://news.ycombinator.com/item?id=18442941

This is actually a perfect depiction of what "bug-driven development" looks like, which is basically where the current generation of AI-only codebases are headed.

comment 2w ago · link · parent

Is this site Hacker Tabloid now?

10.

TeXmacs Upsilon(mgubi.github.io ↗)

2 points · by remywang · 2w ago · discuss

comment 3w ago · link · parent

Sigh, I recently got into stereo photography and saw there's a shortage of transparency film. I suppose the stock's not coming back up any time soon. We can't even take photos thanks to the clankers can we.

comment 3w ago · link · parent

I added the quote after seeing the parent comment-thanks for the feedback.

comment 3w ago · link · parent

I agree there is a spectrum, but we at least have to be honest with ourselves: are we really sure AI generated code is following the spec? On the other hand, with progress in proof automation, it is now feasible to formally verify AI generated code, and that allows us to specify program behavior formally, and a formal specification is again a program in itself.

14.

Wir müssen wissen – wir werden wissen(remy.wang ↗)

62 points · by remywang · 3w ago · 20 comments

15.

Flowers and grass: poet Bui Giang(hanoiink.wordpress.com ↗)

3 points · by remywang · 3w ago · discuss

comment 1mo ago · link · parent

Then don't grade the homework! I have in-person quizzes in my class, and the students are motivated to do the homework anyways because it prepares them for the quiz.

comment 1mo ago · link · parent

So I spent some time poking at the released 0.4-beta code. Controversy aside, it is interesting to see an open source system that beats ClickHouse on ClickBench - 4 out of the 5 systems ahead of CH (Umbra, elosdb, Hyper, CedarDB) are all closed-source, while the only open one is pivotlake.

What makes pgrust fast? There's no one single reason, but a combination of techniques like dictionary encoding [1], zone maps [2], late materialization [3], vectorization [4], and a gazillion others. It's not unlike all the countless optimization passes in a compiler.

None of the optimizations are groundbreaking - in fact, I could find a counterpart of every optimization I checked in ClickHouse as well! So why is CH still slower?

I believe the difference is in when they decide to apply each optimization. Unlike compiler optimizations which are usually beneficial, DB optimizations are highly data-dependent, and the query planner needs to turn them on an off based on data statistics. For example, CH is more conservative in applying dictionary encoding, and it basically doesn't get used at all for ClickBench.

Turning off dictionary-related optimizations in pgrust immediately made it 5x slower (from 3.8s to 20.4s on my machine), while ClickHouse takes a total of 15.0s.

This points to one important nuance in benchmarking - when all you target is one single benchmark, you can be more aggressive during query planning, as plans that work well for one query probably also work well for others, due to characteristics shared among queries/datasets. But when you build a system that needs to support millions of users, you have to be conservative with optimizations.

[1]: https://motherduck.com/glossary/dictionary-encoding/

[2]: https://motherduck.com/glossary/zone-map/

[3]: https://arrow.apache.org/blog/2025/12/11/parquet-late-materi...

[4]: https://clickhouse.com/resources/engineering/vectorized-quer...

To turn off dictionary-related optimizations in pgrust, I used the following setting:

  SET pgrust.gravity_road_off = 'dict.entries,percode.table,percode.length,verdict.coderange,
    code.carry,code.render,code.front_part,code.front_dense,code.front_light,code.sparse,
    code.cut,code.heads,key.codeif,prefetch.fp,text.frame';

comment 1mo ago · link · parent

Thanks for the explanation, can you release the source of 0.4-preview so that people can understand what was going on?

comment 1mo ago · link · parent

Hang in there! What you can build knowing how to code is drastically different from what promptards can build. Imagine trying to build a car without knowing anything about car building - you’d just get the most generic boring clunker anyone can design.

comment 1mo ago · link · parent

Every verification needs a spec, and in this case the spec is the Postgres implementation. I think we can and should do a lot better than taking 2.6 million lines of C code as the spec.

In general, the spec must be human readable, and I believe to achieve that we must do away with SQL. Putting aside the thousands of pages of SQL standard, even the core subset has a gnarly semantics due to issues like nulls.

A simpler semantics is one of the main motivations behind Prela [1], and despite its simplicity, we now know it’s powerful enough to express thousands of queries in the wild [2], as well as run doom [3].

[1]: https://prela-lang.org/

[2]: https://github.com/remysucre/prela/tree/sqlstorm

[3]: https://github.com/remysucre/prela/tree/doom/

comment 1mo ago · link · parent

> I wrote a compiler that can translate both Rust and C code into Lean

How do you verify this compiler is correct? To do that, I think you at least need a formal semantics for both C and Rust in Lean, both sound like Herculean efforts

22.

Declaration by the People of Programming(people-of-programming.org ↗)

2 points · by remywang · 1mo ago · discuss

comment 1mo ago · link · parent

Services you were responsible for

comment 1mo ago · link · parent

Do not

comment 1mo ago · link · parent

> Eight projects, including … SQLite … show no grant or sponsorship in any public funding source the analysis checked

SQLite has a list of sponsors right on the homepage https://www.sqlite.org/

comment 1mo ago · link · parent

So much nonsense on HN front page these days, the algorithm desperately needs to be redone

comment 1mo ago · link · parent

I greatly enjoyed reading their sail log crossing the Pacific Ocean, very poignant and down to earth: https://100r.co/site/busy_doing_nothing.html

comment 1mo ago · link · parent

Yes that’s the idea, these conjectures basically say “there’s no better algorithm than the naive/brute force one”. It’s like if P!=NP, then there’s no (asymptotically) better algorithm for SAT than naive backtracking search.

comment 1mo ago · link · parent

3SUM is (was?) one of the key conjectures in fine-grained complexity, mostly used to derive lower bounds for other problems. As such, most did not think a subquadratic algorithm was possible. Similar for APSP
123456