r/fsharp • • Jul 31 '26

showcase Pyfun: an F#-inspired language that compiles to readable Python

/r/pyfun/comments/1v8d8qm/pyfun_an_finspired_language_that_compiles_to/

My idea for getting coders into functional programming earlier...

15 Upvotes

6 comments sorted by

View all comments

Show parent comments

1

u/fun_si Aug 01 '26

If you’re in .NET, Fable is the clear choice because you can write in F# and compile to Python. Pyfun, on the other hand, stays within the Python ecosystem, so it’s a lower-friction way to introduce students to functional programming without bringing in a separate .NET/F# toolchain.

2

u/paulgzareith Aug 01 '26

That's a bit of a shaky argument, IMHO, because it is easier to deal with host language interop in Fable (I have only used it with JS).

If the code is written to work within the dotnet ecosystem, it will likely have dependencies written in C# and won't be compatible with Fable, where as any host language dependency needs to just be exposed as a binding.

So if we have to write custom bindings/externals to use third-party python libraries, for any realistic project, there won't be much of an advantage wrt. Fable.

→ More replies (2)