#610 Fan on Java Applets?

chido128 Sun 24 May 2009

It is possible to deploy Fan scripts as Java Applets?, It could be great to do RIA with Fan, FWT and the applet deployment.

brian Tue 26 May 2009

I'm sure Fan itself would run in an applet pretty easily (once you got all the classloading worked out).

Although FWT is itself backed by SWT now, not Swing - so I doubt it would work all that well in an applet. So I'd expect someone would need to do a FWT-to-Swing port to make it work well (or just use fore go FWT and use Java FFI directly).

My personal bet is on web technologies like JS, HTML, and CSS, not RIAs. I've used applets in past systems, and the user experience is always less than optimal. So all of our efforts are on porting the FWT to JavaScript which should be really cool once Andy gets it working.

Dubhead Tue 26 May 2009

My personal bet is on web technologies like JS, HTML, and CSS, not RIAs. I've used applets in past systems, and the user experience is always less than optimal. So all of our efforts are on porting the FWT to JavaScript which should be really cool once Andy gets it working.

Just curious - How does Fan relate to Jetpack? Both will rely on Javascript/HTML/CSS combo, and look closely tied to Firefox and Bespin. Perhaps we will be able to create Jetpack apps in Fan? :-)

brian Tue 26 May 2009

Perhaps we will be able to create Jetpack apps in Fan?

Since Fan can compile to JS, and my understanding is that Jetpack lets you create apps purely in JS, I would think the answer is yes. Although Andy will have comment since he is the expert on that stuff.

andy Tue 26 May 2009

Perhaps we will be able to create Jetpack apps in Fan?

From what I've seen about Jetpack, I don't see any reason why we couldn't use Fan. Though we'd probably want to wrap up some of the Jetpack-specific APIs into a nice Fan pod.

Login or Signup to reply.