News for hackers. Stuff that matters.
Re:Pit: An F# to JavaScript Compiler by MatthewPhillips on Thursday November 10, 2011 @06:23PM (#3222424)
I was sad to look at the samples and see for loops. That's not the functional way. Instead you use recursive methods with accumulators. Nevertheless, glad to learn of this project.
Re:Pit: An F# to JavaScript Compiler by fahadsuhaib on Friday November 11, 2011 @02:31AM (#3223788)
Those samples are only for demos which we wanted to quickly do (had to prep up something to get it up we were quite stuck with cleaning up the libraries). We would be adding more "functional" samples later on.
Re:Pit: An F# to JavaScript Compiler by gdp on Thursday November 10, 2011 @03:52PM (#3221820)
Possibly also of interest in this context:

* http://www.smlserver.org/smltojs/ - SML to Javascript * http://ocsigen.org/js_of_ocaml/manual/ - OCaml to Javascript

Re:Pit: An F# to JavaScript Compiler by huskyr on Thursday November 10, 2011 @06:03PM (#3222337)
Is there any popular language, video/audio codec or CPU instruction set that isn't compiled to Javascript these days?
Re:Pit: An F# to JavaScript Compiler by moomin on Friday November 11, 2011 @03:04AM (#3223850)
JavaScript.
Re:Pit: An F# to JavaScript Compiler by DiabloD3 on Friday November 11, 2011 @07:39AM (#3224384)
No, I'm pretty sure I saw a JS interpreter written in JS here on HN awhile back. Can't seem to find it, though.
Re:Pit: An F# to JavaScript Compiler by DiabloD3 on Friday November 11, 2011 @07:38AM (#3224383)
Too bad this is for F# and not real OCaml. Why do open source coders continue to support patentware?
Re:Pit: An F# to JavaScript Compiler by bprater on Thursday November 10, 2011 @05:55PM (#3222299)
Exciting webpage.