Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Does F# have easy C interop, so you can call into Rust easily like you can from say, Python?


C interop is quite easy from .NET languages. Here's a simple example in F#:

https://msdn.microsoft.com/en-us/library/dd393785.aspx

That example is a bit Windows specific, but it works similarly with Mono on Linux and OS X:

http://www.mono-project.com/docs/advanced/pinvoke/

Those examples there are in C#, but PInvoke works almost identically in F#.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: