4 ms·
I've toyed around on a weekend or two looking at the different ways to AOT stuffs for F#. Here is what I found: Same hello-world console app from C# runs alrig
by whb07 6y ago
I've toyed around on a weekend or two looking at the different ways to AOT stuffs for F#. Here is what I found:
Same hello-world console app from C# runs alright with AOT. The F# does not as it relies on heavier reflection stuffs (at least thats what it seems like). The F# version did compile but just crashed on run.
The suspect appears to be the way to console print seems to call a different non AOT function.
The interesting part was I did write some bindings calling for a console print via CFFI that did then allow me to compile the F# app and run fine.
- pjmlp 6y agoThat is a well known issue, also what prevented F# to be properly used in .NET Native. https://github.com/dotnet/corert/issues/5780#issuecomment-401877015 https://github.com/dotnet/corert/issues/5780#issuecomment-40...
- dfgdghdf 6y agoSounds like things have shifted since I last used it. Here's hoping they resolve this stuff soon!