tenderjit
mb-sound
Our great sponsors
tenderjit | mb-sound | |
---|---|---|
10 | 5 | |
416 | 17 | |
- | - | |
7.5 | 5.6 | |
3 months ago | 9 months ago | |
Ruby | Ruby | |
Apache License 2.0 | BSD 2-clause "Simplified" License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
tenderjit
-
JIT Compilers for Ruby and Rails: An Overview
Clone the repository and run the following commands:
-
Asmrepl: REPL for x86 Assembly Language
JIT makes sense given his other current project: https://github.com/tenderlove/tenderjit
-
YJIT: Building a New JIT Compiler for CRuby
Just in case anybody finds the subject interesting and would like to play with this topic, there's an experimental native-Ruby JIT project by @tenderlove: https://github.com/tenderlove/tenderjit (and the companion native-Ruby assembler Fisk: https://github.com/tenderlove/fisk).
- tenderlove/tenderjit: JIT for Ruby that is written in Ruby (/r/ruby)
-
Hacker News top posts: Sep 23, 2021
Tenderjit – A JIT for Ruby Written in Ruby\ (39 comments)
-
Tenderjit – A JIT for Ruby Written in Ruby
It’s x86-64 only. A quick look at the https://github.com/tenderlove/tenderjit/blob/main/lib/tender... linked from the README reveals heavy references to x86-64 registers. The “Fisk” library used appears to be a x86-64 assembler in Ruby.
I guess that’s to be expected with “pure ruby” — all the cross-insn backends you can use (Cranelift, LLVM) are written in not-Ruby.
- tenderlove/tenderjit: JIT for Ruby that is written in Ruby
mb-sound
-
Why Can’t You Design Noise in Frequency Space?
You can try the synthesizer and other audio code if you're using Linux.
Here's an earlier version of the synthesizer (licensed under AGPL3). The MIDI CCs for controlling different parameters are listed in the source code. You'd want to clone the repo, run through the installation instructions in the mb-sound repo, do a bundle update mb-sound, then run bundle exec bin/complex_synth.rb. https://github.com/mike-bourgeous/mb-surround/blob/3823de44a...
Here's the core sound repo (licensed under BSD) with some examples for getting started: https://github.com/mike-bourgeous/mb-sound
I don't plan on making the visualizations available, in part because the system is too convoluted and they probably only work in my specific environment.
-
Python, unlike C, has the mod operator always return a positive number
Ruby's % operator behaves the same way, for both integer and float values. A positive-only modulus function is useful for wrapping angles. This bit me a week or two ago when I was porting audio algorithms from Ruby to C, and had to implement a positive modulus function[0].
[0] https://github.com/mike-bourgeous/mb-sound/blob/a8eb1232ae35...
-
Learn more about the Fast Fourier Transform, animated in 3D [video]
Someone asked somewhat recently about visualizing analytic signals in 3D (https://news.ycombinator.com/item?id=28633829). This is my video, with 3D animation, summarizing the FFT and analytic signals, plus a review of digital sampling.
The submitted link is for a blog post about the video which includes a video transcript (repeated for reference: https://blog.mikebourgeous.com/2021/10/04/fast-fourier-trans...)
Here's a direct link to the video: https://www.youtube.com/watch?v=iyjIVSnrPSo
I've opened the Ruby code building blocks I use to produce these visualizations (which are not open): https://github.com/mike-bourgeous/mb-sound
-
Tenderjit – A JIT for Ruby Written in Ruby
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.
-
Ask HN: How to get started with audio programming?
Edit: My goal is to make a mini-synth which takes input from the computer keyboard.
If you are a Ruby programmer, you could use this rubygem I wrote: https://github.com/mike-bourgeous/mb-sound
A video about using that gem to make a synthesizer: https://m.youtube.com/watch?v=aS43s6TWnIY&feature=youtu.be
Part of a long-running experiment of mine to make educational videos about sound, which I hope might help you on your audio programming journey: https://www.youtube.com/playlist?list=PLpRqC8LaADXnwve3e8gI2...
There have been recent posts to HN about the difficulty of reading key-up events from the terminal. I used MIDI and a separate MIDI keyboard app for my video demo.
What are some alternatives?
WinREPL - x86 and x64 assembly "read-eval-print loop" shell for Windows
helm - Helm - a free polyphonic synth with lots of modulation
duckduckgo-locales - Translation files for <a href="https://duckduckgo.com"> </a>
mb-sound-jackffi - An unstable Ruby FFI interface for the JACK Audio Connection Kit
natalie - a work-in-progress Ruby compiler, written in Ruby and C++
rhizome - A JIT for Ruby, implemented in pure Ruby
cemu - Cheap EMUlator: lightweight multi-architecture assembly playground
zynaddsubfx - ZynAddSubFX open source synthesizer
gen-rack - Create VCV Rack modules from gen~ exports
logparser - Command line parser for common log format.
elk-pi - Elk Audio OS binary images for Raspberry Pi