video · community record
scala.bythebay.io: Guillaume Bort, Writing a dynamic x86_64 assembler in Scala
Is it possible to generate the native x86_64 code for a Scala function at runtime? Of course it is! In this live coding session I will create a dynamic x86_64 assembler in Scala. I will start by finding a good way to embed ASM instructions into plain Scala code, generating the machine code at runtime, loading it in memory, making it executable, and finally casting it to a proper Scala function type. Is it a good idea to do this? In any case, it is a very interesting journey through Scala, external DSL and the JVM FFI.
01
Connections
2 relationships