Take a look at the current specs. There is a section on Fifi, the FFI implementation.
GitHub - yenrab/silica: A language designed to closely model current chip designs rather than the PDP-11 · GitHub Is the url to the project. Currently working on self compilation prior to completing the rest of a robust set of first-class data structures.
By first class data structures I mean they are first-class citizens as are the functions and structures used to build them. OrderedSet and OrderedMap are complete along with List.
Any thoughts on foreign language integration in silica, and to be clear I’m not talking about FFI or NIF.
To what are you referring?
For example, in Rust you can inline assemble, Elixir has sigils that be used to integrate arbitrary languages.
And if I remember correctly then in java you can hook into the compiler.
This is something that we can consider how to make this work safely within the memory safety constraints and requirements. It won’t be done in the next few months, but after that?
To be clear I’m not asking you to implement this, more around your thoughts about. I think it’s always overlooked or poorly implemented. Although I think it’s more important then ever now with AI helpings us generating code.