Compiling F# to JavaScript with Pit(www.trelford.com)

submitted by NoldorinNoldorin(829) 6 months, 4 days ago

Phil Trelford introduces the Pit F# to JavaScript compiler: an ideal tool for those who like functional programming / .NET or have seen the wonders of CoffeeScript and are looking to the future of client-side web programming.

3 comments |category: |Views: 28

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

posted by NoldorinNoldorin(829) 6 months, 4 days ago 0

I've spoken to the project developer (Fahad) about this a little, not to mention heard some quite positive reviews on the ##fsharp channel on FreeNode. This really looks like a great library, and I look forward to seeing where it's going. Would be cool to see how it compares to Script# (the C# equivalent) at present.

Reply

posted by dpetersondpeterson(4397) replied to NoldorinNoldorin(829), 6 months, 4 days ago 0

It seems interesting, it's sort of the opposite approach to solving the same problem that Node tries to solve, using one language to develop both ends of an application. I wonder how performance differs between the javascript and native F# code?

Reply

posted by NoldorinNoldorin(829) replied to dpetersondpeterson(4397), 6 months, 1 day ago 0

Performance is going to be a problem at first, but from what I've seen it's already not that bad. Most developers should (and do I think) care more about how straightforward/idiomatic it is to create functionality, rather than raw efficiency. Node.js is an abomination in my view because it promotes the use of JS and all its associated bad practices *everywhere*... but yeah, I've already had my rants about that heh.

Reply

information Login or create an account to comment on this story