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

Speaking of F#, are there any tutorials/demos on how to set it up on Linux, to run WinForms, without runtime mismatch issues?


You should be able to use Avalonia UI[1] as an alternative GUI layer on Windows, Linux, macOS, iOS and Android.

There is a beautiful functional MVU wrapper around it called Avalonia.FuncUI[2] with Avalonia.FuncUI.Elmish[3] which is an implementation of Elmish[4] (based of the Elm language[4]) for F#.

[1]: https://avaloniaui.net/

[2]: https://github.com/fsprojects/Avalonia.FuncUI/

[3]: https://www.nuget.org/packages/Avalonia.FuncUI.Elmish and https://github.com/fsprojects/Avalonia.FuncUI/tree/master/sr...

[4]: https://elm-lang.org/


Also take a look at Fabulous[1]. The code with it looks nicer than Avalonia.FuncUI.

[1]https://github.com/fabulous-dev/Fabulous.Avalonia


WinForms is a Win32 wrapper so unless you're running Mono which I don't think has been targeted by F# in ages I don't think that's going to work, unless you plan to run a very old F# version.




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

Search: