Leave a comment

Comments 17

harryh July 20 2009, 04:40:02 UTC
My reccomendation is that someone make a "translator" which can take some sensible language, and convert it into javascript.

done

Reply

r_transpose_p July 20 2009, 04:50:05 UTC
Why java? That makes no sense at all. Shit, if I just write an applet I can at least "get the draw context as an image and draw pixels to it"

I mean, I know javascripts inconsistencies are bad...

Perhaps there is something I do not yet understand about this package...

Reply

ssaiscps July 20 2009, 05:27:03 UTC
There seems to be a whole mini-industry of compiling to Javascript. SML to Javascript, a list of some more languages

Reply

r_transpose_p July 20 2009, 07:56:53 UTC
Huh, that second blog post seems very insightful...

Reply


soong July 20 2009, 04:42:38 UTC
1, yes. the 'implicit semicolon' is evil. probably brought to us by the crazy defacto standard way javascript was pulled out of thin air by some guys at netscape.
2. huh, i guess i've never wanted to do that.
3. i have been getting js and python mixed up lately, mostly wanting to do js things in python. js really makes it obvious that it is a scripting language where data structures are just syntactic sugar on hashes. python covers it up a little more, but I've beet writing python lately and craving the craziness of being able to access someinstance.member as someinstance['member'] (and there is python for this, someinstance.__get__('member') or so, but it's not as pretty)

Reply


tgies July 20 2009, 04:47:31 UTC
Have you seen you can actually get an arbitrary raster area and draw to it from Javascript? Look up .

Reply

r_transpose_p July 20 2009, 04:50:25 UTC
whoa shit!

Thanks!

Reply

tgies July 20 2009, 04:58:05 UTC
As far as silly DOM-shuffling graphics and animation effects, everyone is using pre-rolled libraries for that, because doing it from scratch and having it work well in every browser is just a whole lot of work. Yahoo UI, Jquery UI, script.aculo.us, the list goes on.

I find I use plain old Jquery, if not Jquery plus the UI module, in almost every real project I work on. It's pretty indispensable.

Reply

angelbob July 20 2009, 15:59:15 UTC
Bear in mind that Canvas doesn't really work in IE, including IE 8.

There's an extension to make that kinda-sorta happen, but it's ridiculously slow and only barely usable.

On the plus side, if you're using most browsers, canvas is totally awesome :-)

Reply


Leave a comment

Up