Re: Why can't the Nim VM use FFI?

2018-10-19 Thread timothee
=> tracked here: [https://github.com/nim-lang/Nim/issues/9253](https://github.com/nim-lang/Nim/issues/9253)

Re: Why can't the Nim VM use FFI?

2018-09-28 Thread jyapayne
@Araq, ah, thank you very much for the explanation. I thought it might be more complicated than I originally considered. I find this kind of stuff fascinating. I didn't know an LLVM backend was in the works :0

Re: Why can't the Nim VM use FFI?

2018-09-28 Thread Araq
I wrote the code to do that, twice. It always "kinda works" but the devil is in the details and it increases the attack surface of the compiler too much. Consider this problem: void a(int* x; int L); Run Does the `a` write into `x`? If it does, we need to write b

Re: Why can't the Nim VM use FFI?

2018-09-28 Thread Trustable
I think it would be possible, e.g. with libffi. [https://en.wikipedia.org/wiki/Libffi](https://en.wikipedia.org/wiki/Libffi) [https://github.com/Araq/libffi](https://github.com/Araq/libffi)

Why can't the Nim VM use FFI?

2018-09-27 Thread jyapayne
Once the Nim VM matures, will it ever be possible to use FFI calls? Is it a matter of supporting FFI in the VM interpreter?