Y
Hacker News
new
|
ask
|
show
|
jobs
by
_mikz
4130 days ago
` puts RubyVM::InstructionSequence.compile('[]').disasm` points to `newarray` which is YARV instruction:
https://github.com/ruby/ruby/blob/ca6b174078fa15f33655be704d...
1 comments
lectrick
4130 days ago
I don't suppose there's a way to hook into newarray ...?
Maybe a gem with a C component could provide a hook?
link
aaronem
4130 days ago
At some point it's surely simpler just to write a Lisp interpreter instead.
link
lectrick
4128 days ago
Or switch to Elixir and its nifty macro system, which I did.
link
Maybe a gem with a C component could provide a hook?