# The goal is to not use the regular Symbol#to_proc | |
# (which is to_proc method in the Symbol class) | |
# but rather use an Abstract Syntax Tree transformation to | |
# transform map(&:to_s) into map {|x| x.to_s} | |
# This can be achieved by using the flexible compiler architecture | |
# in Rubinius and is presented below. | |
# | |
# First we undefine the regular Symbol#to_proc | |
class Symbol |
This is a note for myself more than anything. I've started on a wrapper for the rtosc
library https://github.com/fundamental/rtosc
The aim is to make a gem called FastOsc
that will have two methods
FastOsc.serialise(["/aa", "foo", "bar"]) #=> "/aa\x00ss\x00\x00foo\x00bar\x00"
FastOsc.deserialise("/aa\x00ss\x00\x00foo\x00bar\x00") #=> ["foo", "bar"]
This followed from the rtosc library author giving me a really helpful response. fundamental/rtosc#28
github recently switched to an https scheme as the default for cloning repos. as a side effect you may suddenly be prompted for a 'Username' and 'Password' when you push where, previously, you were able to do so without typing in credentials. the solution is to cause git to cache https credentials which is easy, since git uses curl under the covers
in your home directory create a file called '.netrc', for example
/Users/ahoward/.netrc
in it put these contents
-
Add Graal JIT Compilation to Your JVM Language in 5 Steps, A Tutorial http://stefan-marr.de/2015/11/add-graal-jit-compilation-to-your-jvm-language-in-5-easy-steps-step-1/
-
The SimpleLanguage, an example of using Truffle with great JavaDocs. It is the officle getting-started project: https://github.com/graalvm/simplelanguage
-
Truffle Tutorial, Christan Wimmer, PLDI 2016, 3h recording https://youtu.be/FJY96_6Y3a4 Slides