Friday, August 24, 2018

F# and Javascript interoperability

Interop is a hugely important part of a programming language's value proposition. For example, F# would be far less interesting for web programming if it didn't integrate so nicely with amazing Javascript libraries like Pixi and React.

Because it does integrate nicely, you can use amazing algorithms for AI/etc. in F#, and you can attach it to amazing UI (thanks to Javascript interop + WebGL via Pixi) as well as to amazing UI on a desktop machine (thanks to WPF/UWP/Windows). And you're using the SAME F# code for both use cases, which is great if you want to e.g. do the same sanity checking/validation of user inputs on both client-side (for usability) and server-side (for system integrity), without duplicating code.

F# is amazing, but good interop with Javascript makes it twice as amazing.

~B.C.

--
If I esteem mankind to be in error, shall I bear them down? No. I will lift them up, and in their own way too, if I cannot persuade them my way is better; and I will not seek to compel any man to believe as I do, only by the force of reasoning, for truth will cut its own way.

"Thou shalt love thy wife with all thy heart, and shalt cleave unto her and none else."

No comments: