Live data from Hacker News

(fab) - A pure javascript DSL for building async web apps

fabjs.org

11–20 of 27 posts

Re: (fab) - A pure javascript DSL for building async web apps

#11
post #9

Stuff like (fab) and CoffeeScript* show how easy it is to build on top of the V8 and node.js platform. And these toy languages/frameworks also have great perfomance given the non-blocking nature of node.js and the optimizations of V8. Amazing and happy to see more of these projects :) * http://jashkenas.github.com/coffee-script/

CoffeeScript is a language. It doesn't run natively on node.js, so I don't really see the relationship here.

Re: (fab) - A pure javascript DSL for building async web apps

#12
post #11
post #9

Stuff like (fab) and CoffeeScript* show how easy it is to build on top of the V8 and node.js platform. And these toy languages/frameworks also have great perfomance given the non-blocking nature of node.js and the optimizations of V8. Amazing and happy to see more of these projects :) * http://jashkenas.github.com/coffee-script/

CoffeeScript is a language. It doesn't run natively on node.js, so I don't really see the relationship here.

Indeed, CoffeeScript was built on Ruby, and its REPL on Narwhal.

Re: (fab) - A pure javascript DSL for building async web apps

#14
post #3

Hey all, I just launched a dead-simple web framework on top of node.js. It uses (abuses?) a lot of the dynamic nature of javascript to create a jQuery-inspired DSL that's pure javascript, allowing you to create really concise web apps like this: ( fab ) ( "/time", function(){ return "the time is " + (new Date).toTimeString() } ) ( "/date", function(){ return "the date is " + (new Date).toDateString() } ) ( fab ) I'd…

I did a double-take looking at that syntax. I assume that fab (and all of the other bracketed expressions) return functions that chain together? Pretty ingenious. Plus you can detect the end of the chain when one of the methods is passed in "fab" again. I think I can say that this is the best (ab)use of the syntax I've ever seen, well done. :)

Thanks for pointing that out, I've been sitting looking at how that could possibly work for a while.

Re: (fab) - A pure javascript DSL for building async web apps

#15

Hey all, I just launched a dead-simple web framework on top of node.js. It uses (abuses?) a lot of the dynamic nature of javascript to create a jQuery-inspired DSL that's pure javascript, allowing you to create really concise web apps like this: ( fab ) ( "/time", function(){ return "the time is " + (new Date).toTimeString() } ) ( "/date", function(){ return "the date is " + (new Date).toDateString() } ) ( fab ) I'd…

Excellent work.

Re: (fab) - A pure javascript DSL for building async web apps

#16

Hey all, I just launched a dead-simple web framework on top of node.js. It uses (abuses?) a lot of the dynamic nature of javascript to create a jQuery-inspired DSL that's pure javascript, allowing you to create really concise web apps like this: ( fab ) ( "/time", function(){ return "the time is " + (new Date).toTimeString() } ) ( "/date", function(){ return "the date is " + (new Date).toDateString() } ) ( fab ) I'd…

I had taken a look at it before, and was wondering: Is there a way we can do long-polling stuff with fab?

(by "long-polling stuff" I mean deferring response.finish())

Re: (fab) - A pure javascript DSL for building async web apps

#17
post #16

Hey all, I just launched a dead-simple web framework on top of node.js. It uses (abuses?) a lot of the dynamic nature of javascript to create a jQuery-inspired DSL that's pure javascript, allowing you to create really concise web apps like this: ( fab ) ( "/time", function(){ return "the time is " + (new Date).toTimeString() } ) ( "/date", function(){ return "the date is " + (new Date).toDateString() } ) ( fab ) I'd…

I had taken a look at it before, and was wondering: Is there a way we can do long-polling stuff with fab? (by "long-polling stuff" I mean deferring response.finish())

Indeed you can. (fab) is 100% async:

http://gist.github.com/287475#file_hello_async.js

Re: (fab) - A pure javascript DSL for building async web apps

#18
post #8

What's the ratio of node.js web frameworks to sites that actually use them?

I use nodewiki [http://github.com/gjritter/nodewiki/] and nerve [http://github.com/gjritter/nerve/] to power my personal wiki/mindmap sites, and I'm also using node to power the backend of a site that should go public very soon.

Re: (fab) - A pure javascript DSL for building async web apps

#20
post #8

What's the ratio of node.js web frameworks to sites that actually use them?

100:0 From what I can tell, but that being said, they're all coalescing into something interesting.

Exactly what I'm thinking also. There are a plethora of frameworks, but they all bring something cool to the table. I'm still wondering how viable it is for web development, however (just because of how it hasn't really caught on yet while having many chances to.)
Post reply on HN