Talking about language nerds, there is also https://github.com/bjouhier/node-lol
It also supports continuations and lets you write code in sync style! And there is a working example with and HTTP server that serves files off the disk (https://github.com/bjouhier/node-lol/blob/master/examples/server.lol :) HAI CAN HAS FS "fs"? CAN HAS ST "../lib/streams"? HOW DUZ I DISPATCH YR REQ AN YR RESP AN DUZ WAYT I HAS A SEGS ITZ REQ'Z url'Z split WIZ "?" ENUF I HAS A PATH ITZ SEGS!0 I HAS A DOT ITZ PATH'Z lastIndexOf WIZ "." ENUF I HAS A EXT ITZ PATH'Z substring WIZ DOT ENUF EXT WTF OMG ".html" DWNLOAD WIZ RESP AN SEGS!0 AN "text/html" AN WAYT ENUF GTFO OMG ".lol" OMG ".md" OMG ".txt" DWNLOAD WIZ RESP AN SEGS!0 AN "text/plain" AN WAYT ENUF GTFO OMGWTF RESP'Z statusCode R 403 RESP'Z end WIZ SMOOSH "Unauthorized file type" ENUF OIC IF U SAY SO HOW DUZ I DWNLOAD YR RESP AN YR PATH AN YR TYPE AN DUZ WAYT I HAS A FPATH ITZ SMOOSH __dirname AN PATH I HAS A TXT ITZ FS'Z readFile WIZ FPATH AN "utf8" AN WAYT ENUF RESP'Z statusCode R 200 RESP'Z setHeader WIZ "content-type" AN TYPE ENUF RESP'Z write WIZ WAYT AN TXT ENUF RESP'Z end WIZ ENUF IF U SAY SO I HAS A SVR ITZ ST'Z createHttpServer WIZ DISPATCH ENUF SVR'Z listen WIZ WAYT AN 1337 AN "localhost" ENUF VISIBLE "Server ready. Try http://localhost:1337/server.lol" KTHXBYE Bruno On Tuesday, May 28, 2013 7:33:21 AM UTC+2, Mark Hahn wrote: > > I have created a new stack language for node and the browser called FJS. > See https://github.com/mark-hahn/fjs. It is a stack language like FORTH > but it uses javascript variables and functions. It is totally > interoperable with Javascript. It can use any JS module and can create > modules to be used by JS. > > I'd like to point out one big feature of interest to the Node community. > All stack languages easily and naturally support continuations. FJS takes > advantage of this to remove the need to code for Javascript callbacks and > write code in a pure sync style instead. > > I just started work on it four days ago but it can already recreate the > standard http server node example. See the code for this in the readme > file. It started as a curiosity but it fell together so well it might have > a future. Having a new language start off with the npm library available > is awesome. > > I'm announcing this so early because I am interested in feedback on the > concept. I don't expect it to be used yet. > -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
