Skip to content

Comment on A brief introduction to OCamlparent

Comments

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#.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.