News for hackers. Stuff that matters.
Re:Zed Shaw: Tir Web Framework Officially Up by jcromartie on Friday December 03, 2010 @05:18PM (#1967665)
Very cool. I was just looking for other Seaside-style web frameworks today. The "natural style" mode in Tir is just like the main way to build web apps in Seaside.

Aside from Lua and Smalltalk, what other languages could host this kind of framework? I know Ruby 1.9 has Wee, but that doesn't seem to be "ready for prime time."

Re:Zed Shaw: Tir Web Framework Officially Up by vito on Friday December 03, 2010 @05:53PM (#1967765)
I've been toying with something similar in Atomo (running atop mongrel2): http://bitbucket.org/alex/web/src/2a90b9bd6322/example.atomo

In its early stages it was continuation-based, but now it's just regular ol' closures. You can still use continuations rather easily though; some of it is modeled on the PLT stack (send/suspend, etc.).

Earlier progress: https://gist.github.com/717381/433d743dc4a7d91705692ff1dc6ca...

Source code: http://bitbucket.org/alex/web/src

Re:Zed Shaw: Tir Web Framework Officially Up by Ixiaus on Friday December 03, 2010 @08:03PM (#1968036)
Racket would make a great web language...
Re:Zed Shaw: Tir Web Framework Officially Up by vito on Friday December 03, 2010 @08:24PM (#1968091)
Racket is highly underrated. I wish more people would use/talk about/evangelize it.
Re:Zed Shaw: Tir Web Framework Officially Up by jhpriestley on Friday December 03, 2010 @06:38PM (#1967862)
Code written in the continuation monad (i.e., simple imperative style) can be translated to an Automaton arrow and fit into a Haskell on a Horse application. This approach has the advantage of type-safety and greater composability.
Re:Zed Shaw: Tir Web Framework Officially Up by cullenking on Friday December 03, 2010 @08:03PM (#1968037)
Not sure if I should laugh at myself for not knowing if this was a joke when I first read it.
Re:Zed Shaw: Tir Web Framework Officially Up by kanwisher on Friday December 03, 2010 @09:30PM (#1968248)
LOL for some reason I feel less smart after reading that comment ;) had to look up each word
Re:Zed Shaw: Tir Web Framework Officially Up by ericlavigne on Friday December 03, 2010 @09:36PM (#1968266)
You can also find continuation-based web frameworks in Common Lisp and Scheme.

http://common-lisp.net/project/cl-weblocks/

http://common-lisp.net/project/ucw/

http://docs.racket-lang.org/web-server/

Re:Zed Shaw: Tir Web Framework Officially Up by draegtun on Saturday December 04, 2010 @11:38AM (#1969544)
For Perl based solution have a look at Continuity (http://search.cpan.org/dist/Continuity/).

I have posted some Continuity code here before (see http://news.ycombinator.com/item?id=1686177 & http://news.ycombinator.com/item?id=1006071).

Also check out Squatting (http://search.cpan.org/dist/Squatting/) which is a RESTful MVC micro framework which (by default) sits on top of Continuity.

Re:Zed Shaw: Tir Web Framework Officially Up by zedshaw on Friday December 03, 2010 @11:07PM (#1968471)
The main feature that is required is the ability to callcc and/or coroutine yield from any point in the stack. If you look at Wee, the user of the framework has to callcc all over the place to make it work. In Tir I have web:prompt(), which itself does the yielding without anyone having to care.

The significance of this is that Tir can provide one API for all three styles without special effort from the user.

Re:Zed Shaw: Tir Web Framework Officially Up by clyfe on Saturday December 04, 2010 @04:18AM (#1968917)
A "How it's made" blog post would make an awesome next article!
Re:Zed Shaw: Tir Web Framework Officially Up by apoirier on Monday December 06, 2010 @10:21AM (#1975413)
Nagare (http://nagare.org) for Stackless Python