mike-bourgeous / mb-math

Mathematical functions shared by mb-sound, mb-geometry, and other personal projects
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

Try to get mb-math working with TruffleRuby #8

Closed mike-bourgeous closed 4 months ago

mike-bourgeous commented 2 years ago

Based on a conversation elsewhere, it would be nice to see if TruffleRuby can run my math and sound code faster than CRuby. This would help with the synthesizer demo from mb-surround and my future videos.

mike-bourgeous commented 2 years ago

I've worked around the absence of PTY by rescuing LoadError in plot.rb. See commit e08d9573b09fd96863055f01db70394c83eedc56.

mike-bourgeous commented 2 years ago

So far I've run into two TruffleRuby crashes/uncaught exceptions:

mike-bourgeous commented 2 years ago

image

image

mike-bourgeous commented 2 years ago

When rspec does run, in addition to the expected plotting failures, there are parsing failures for complex numbers, and differences in default rounding mode.

mike-bourgeous commented 2 years ago

Saw a repeatable segfault in rspec with seed 17464:

image

truffleruby-mb-math-segfault.txt

mike-bourgeous commented 2 years ago

Failures from https://github.com/mike-bourgeous/mb-math/runs/4185434515?check_suite_focus=true --

gogainda commented 2 years ago

@mike-bourgeous I would recommend to open up corresponding issues in truffleruby repository

mike-bourgeous commented 4 months ago

Probably not going to work with TruffleRuby for now. May revisit in the future.