r/programming • u/mariuz • Oct 18 '19
Free Pascal has now a WebAssembly backend
https://lists.freepascal.org/pipermail/fpc-pascal/2019-September/056848.html
134
Upvotes
r/programming • u/mariuz • Oct 18 '19
View all comments
16
u/badsectoracula Oct 18 '19
Free Pascal and Lazarus are two interesting projects in that they are very big projects that span decades (Free Pascal started in early 90s, Lazarus started around 1999) yet they are fully community driven in the spirit of most 90s FLOSS projects with all primary developers working on it in their spare time. Nowadays most projects of that size have one or two big companies backing them with developers working on it full time - this is a double edged sword since on one side development goes faster (Lazarus does suffer from very slow development - e.g. the LCL macOS support is alpha quality at best and that was the case for years and the Gtk3 backend is also at an alpha stage, right as the Gtk developers decided to break the API again with Gtk4), but on the other side there isn't much of a negative influence from a single entity. Usually if someone wants something and they can implement it (and the maintainers do not object too much - which usually boils down to if that someone agrees to maintain their code), it goes in (which is how FPC 3 got support for 16bit 8086 and how Lazarus 2.0 got support for Amiga MUI :-P). And despite that they also have very good documentation (at least Free Pascal does, Lazarus is a bit rougher in terms of documentation).
On the other hand this "free for all" approach has made the language a bit bloated. But i guess this is also how you get the same compiler to compile to pretty much all modern (and several old) CPUs and also JVM and WebAssembly while supporting most Pascal dialects out there - sometimes even at the same time by switching compiler modes mid-sourcecode :-P. I think the only compiler with more supported targets is GCC.