News for hackers. Stuff that matters.
Re:Tenderjit – A JIT for Ruby Written in Ruby by nitrogen on Thursday September 23, 2021 @01:52AM (#28625578)
I've been using Ruby for sound lately. It's a good exercise in optimization because Ruby's not that fast for numeric computation (without calling out to a C lib like Numo), so your algorithms have to be reasonable. I'm hoping that the various JIT efforts will eventually let me run multiple realtime voices in my synthesizer, without having to drop down to C.
Re:Tenderjit – A JIT for Ruby Written in Ruby by pjmlp on Thursday September 23, 2021 @08:23AM (#28628148)
I guess you might find this interesting, https://twitter.com/headius/status/1261024699837890561
Re:Tenderjit – A JIT for Ruby Written in Ruby by chrisseaton on Thursday September 23, 2021 @08:41AM (#28628296)
Can you share any code? I'm interested in optimising interesting Ruby demos.
Re:Tenderjit – A JIT for Ruby Written in Ruby by nitrogen on Thursday September 23, 2021 @02:16PM (#28632938)
Yeah, here's my main sound repo: https://github.com/mike-bourgeous/mb-sound

There's also an FFI wrapper for jackd: https://github.com/mike-bourgeous/mb-sound-jackffi

I'm certain there are still improvements that could be made to the APIs and to performance, so I'm not currently releasing these on rubygems.

Edit: I should really try these with TruffleRuby myself. I'll try to reply here if I do.