Top.Mail.Ru
May 20th, 2006 - Java developers — LiveJournal
? ?

Java developers

May 20th, 2006

01:05 pm - banana - Continuations, web app frameworks, etc

I like Tim Bray, but maybe only because he usually backs up my prejudices. Yesterday, for example, he neatly expressed my disquiet about Ajax.

However, in the same blog entry, he says he's not keen on continuations, and I think I might be. The problem is I've never used them. Anyone here ever written web apps with any kind of Java framework with continuations and can comment?

09:28 pm - banana - Obfuscated Java (http://community.livejournal.com/java_dev/322393.html)

/** Supply two positive integer arguments */

                  class S { public
                  static void main
                  (final String []
                  a ){ System.out.
                  println (new S (
                  Integer.parseInt
                  (  a  [ 0 ]  ) ,
                  Integer.parseInt
                  ( a [ 1 ] ) ) );

}class T extends  RuntimeException  {T (){}T ( final
T t ){ initCause  ( t ) ; } public  String  toString
() { return "" +  ( l () - 1 ) ; }  private int l ()
{final T t = ( T  ) getCause ();if  (null==getCause(
) ){ return 0; }  else { return 1+  t.l ();}}T t (){
return  null  ==  getCause ()?this  :(( T ) getCause
() ).t ();}}T t;  S ( final int a,  final int b ){ T
v = null;try{a (  a );}catch(final  T u ){v = u;}try
{a ( b );} catch  ( final T u ){u.  t ().initCause (
v ); t = u ; } }  private void a (  final int i ){if

                  ( 0 == i ){throw
                  new T ();}try{a(
                  i - 1 );}catch (
                  final T u )  { t
                  = new  T ( u ) ;
                  throw t;}}public
                  String  toString
                  () { return  t .
                  toString (); } }
Powered by LiveJournal.com