Comment

Comment by byroot

Not too sure what you mean by intrinsincs.

The `json` gem is implemented in C, so it's a black box for YJIT (the reference implementation's JIT).

The TruffleRuby JIT used to interpret C extensions with sulong so it could JIT across languages barrier, but AFAIK they recently stopped doing that because of various compatibility issues.

Also on TruffleRuby the JSON parser is implemented in C, but the encoder is in pure Ruby [0]

[0] https://github.com/ruby/json/blob/e1f6456499d497f33f69ae4c1a...

parent byroot 1 year ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton