News for hackers. Stuff that matters.
Re:Hacking S-expressions into Ruby by _mikz on Friday February 27, 2015 @01:51PM (#9120563)
` puts RubyVM::InstructionSequence.compile('[]').disasm` points to `newarray` which is YARV instruction: https://github.com/ruby/ruby/blob/ca6b174078fa15f33655be704d...
Re:Hacking S-expressions into Ruby by lectrick on Friday February 27, 2015 @02:22PM (#9120735)
I don't suppose there's a way to hook into newarray ...?

Maybe a gem with a C component could provide a hook?

Re:Hacking S-expressions into Ruby by aaronem on Friday February 27, 2015 @02:46PM (#9120876)
At some point it's surely simpler just to write a Lisp interpreter instead.
Re:Hacking S-expressions into Ruby by lectrick on Monday March 02, 2015 @07:43AM (#9131537)
Or switch to Elixir and its nifty macro system, which I did.
Re:Hacking S-expressions into Ruby by lookatparsetree on Friday February 27, 2015 @05:16PM (#9121719)
Re:Hacking S-expressions into Ruby by bradleyland on Saturday February 28, 2015 @11:31AM (#9124114)
That version only works with 1.8. There is an updated fork though, sexp_processor:

https://github.com/seattlerb/sexp_processor