Better HN
topnewbestaskshowjobs
Log inSign up

tekknolagi

1,872 karma · joined Oct 6, 2011 (15y ago) · 701 submissions

[ my public key: https://keybase.io/tekknolagi; my proof: https://keybase.io/tekknolagi/sigs/3yeAq3H_gbqDnK8_Il6wEe8ncwrDEkYiZc0ld5NxGIE ]

https://bernsteinbear.com

email on website

Submissions

1.

A quick look at zero-knowledge proofs(bernsteinbear.com ↗)

2 points · by tekknolagi · 3mo ago · discuss

2.

A quick look at zero-knowledge proofs(bernsteinbear.com ↗)

4 points · by tekknolagi · 3mo ago · 1 comment

comment 5mo ago · link · parent

Please feel free to open a PR. I'm a bit AFK

4.

Value Numbering(bernsteinbear.com ↗)

2 points · by tekknolagi · 7mo ago · discuss

comment 7mo ago · link · parent

See also https://github.com/nedbat/byterun and https://github.com/rocky/x-python

comment 7mo ago · link · parent

Damn. I wish I thought of that.

7.

The acyclic e-graph: Cranelift's mid-end optimizer(cfallin.org ↗)

74 points · by tekknolagi · 7mo ago · 22 comments

8.

Value numbering(bernsteinbear.com ↗)

2 points · by tekknolagi · 7mo ago · discuss

9.

ZJIT removes redundant object loads and stores(railsatscale.com ↗)

92 points · by tekknolagi · 8mo ago · 19 comments

comment 8mo ago · link · parent

I will add "compiler" before "optimizer" and link to the toy optimizer series

11.

Two mechanisms for dynamic type checks(wingolog.org ↗)

1 points · by tekknolagi · 9mo ago · discuss

comment 9mo ago · link · parent

Oh hi! Thanks for posting. As I wrote this I wasn't sure if it was enough of a post. Let me know if you wanted to hear about anything else that seemed missing.

comment 9mo ago · link · parent

You may enjoy https://github.com/ludocode/onramp

comment 10mo ago · link · parent

As I said on Lobsters as well, this is a superb overview.

comment 10mo ago · link · parent

https://bernsteinbear.com

I write about programming languages and compilers

16.

The GDB JIT Interface(bernsteinbear.com ↗)

6 points · by tekknolagi · 10mo ago · discuss

comment 11mo ago · link · parent

YJIT and ZJIT don't use method annotations.

comment 11mo ago · link · parent

Yes; see the first ZJIT blog post. https://railsatscale.com/2025-05-14-merge-zjit/

comment 11mo ago · link · parent

In that scenario, what would you hope to get out of the LBBV?

comment 11mo ago · link · parent

If all you're doing is summing small integers---frequently the case---it's much preferable to optimize that to be fast and then skip the very dynamic method lookup (the slower, less common case)

comment 11mo ago · link · parent

YJIT is not deprecated. That word has a specific meaning in Ruby. You can continue to use YJIT.

With any luck, this performance in the next year or two will be enough to make it a happy change. "Damn, free money" etc

comment 11mo ago · link · parent

Earnestly: why are you annoyed? I tried to make it clear that you don't have to make any changes. If you want, you can try ZJIT (which should not be anything other than a one character change), but you don't have to.

comment 11mo ago · link · parent

In this case, we used to abort (i.e. abort(); intentionally crash the entire process) but now we jump into the interpreter to handle the dynamic behavior.

If someone writes dynamic ruby code to add two objects, it should succeed in both integer and string cases. The JIT just wants to optimize whatever the common case is.

comment 11mo ago · link · parent

It's a "teach people how to teach themselves to fish" class

comment 11mo ago · link · parent

You'll never guess what we talk about later on in the unit. Spoiler: exactly that!

It notionally focuses on make but the concepts apply much more broadly than the one specific tool

comment 11mo ago · link · parent

The schedule is generated from a Python script, but doesn't involve YAML

comment 11mo ago · link · parent

If you're interested, see also https://bernsteinbear.com/isdt/ by me and Tom

comment 11mo ago · link · parent

This kind of compiler/runtime feedback about source code is really interesting and (imo) under-studied. Especially when you take into account something like PGO data.

29.

Adding Iongraph Support to ZJIT(railsatscale.com ↗)

8 points · by tekknolagi · 11mo ago · 1 comment

comment 11mo ago · link · parent

No, HM is unification based and requires no annotations at all.
12345
24