2 ms·
Try it before you knock it, I would bet money you would enjoy it.
by joshowens 13y ago
Try it before you knock it, I would bet money you would enjoy it.
- edwinnathaniel 13y agoThe last time I tried this it wasn't silver bullet and it was not an euphoria.
- asdasf 13y agoI have tried it. I enjoyed it slightly less than I enjoyed maintaining PHP3/mysql3 nightmares.
- meowface 13y agoI already hate writing Javascript for the frontend. If I had to write it on the backend, too, I'd probably go insane. Coffeescript makes things a bit better, but only to an extent (plus it has a few odd quirks of its own). I'd much prefer if some day the reverse was possible: writing Python or Ruby on the backend AND the frontend. I imagine something like that would render Node rather useless. (And no, they did not invent the first or the last usable asynchronous web framework.)
- asdasf 13y agoIt is already happening. Not specifically with python or ruby (although possibly, I don't follow them), but several languages have "compile to javascript" options now. Just like we treat CSS as purely for the machine generated from the SASS which is for people, we treat javascript as purely for the machine generated from the haskell which is for people.
- meowface 13y agoTrue, such options are available. To my understanding there is a performance hit involved, though, unless something like asm.js is used. I also believe there are some current projects that compile Python and Ruby into JS, but I'm not sure how mature they are.
- asdasf 13y agoThe performance is the same as if you wrote the javascript by hand. The only potential performance issue is when the compiler generates really poor javascript for some particular bit of code, where a person would have written less poor javascript if doing it by hand.
- jcutrell 13y agoOpal and Decaf are two projects that run ruby in the browser. Opal compiles to JS. Decaf is a "modification of Webkit". Decaf: http://trydecaf.org/ http://trydecaf.org/ Opal: http://opalrb.org/ http://opalrb.org/ A quick google search gave me Pyjs. http://pyjs.org/ http://pyjs.org/