Hacker News new | past | comments | ask | show | jobs | submit login

So does this mean that since I'm better at Python than Javascript, I can now use this to make my web frontends in Python? Because that would be pretty sweet.



That would be great as one of the things that puts me off of front end development is lack of language choice. I adore Python as a language and it would certainly make a great choice for a front end language if supported. Maybe if this project takes off, browser vendors would ship a Python interpreter alongside the JS one. I'd bet that Apple, Google, Mozilla, etc. could make Python fast if they threw as much money at it as they do their JS interpreters. And PyPy is already pretty fast -- it's certainly way faster than JS engines were before V8 and JavaScriptCore hit the market.

This will probably never happen, but I can dream.


have you looked into CoffeeScript? it's slightly more pythonic than JavaScript.


There's raypidscript also: http://www.rapydscript.com/ which is a python like JS precompiler (https://news.ycombinator.com/item?id=9385596)

I haven't had the time to try it yet, but maybe it'll suit your needs ;)


Right of the bat their example puts me off. I mean.. come on.

    self.$popup = $('#' + containerId).addClass('pop-up').mouseout(def():
        self.hide()
    )


weren't you already able to do it with pyjamas/pyjs?


Quite possibly. To be honest I never looked into it.


Being a Python guy myself, the problem was never the lack of Python in the browser, it's always the lack of a Python ecosystem in the browser. If I'm going to use Python and awkwardly interface with JS, I might as well just use JS.

It makes me want to gouge my eyes out, but it's not really that hard to get productive in. CoffeeScript is even better, if you aren't averse to adding another dependency on top of everything else.


No, no, no!!!

Pyjamas was based on GWT, right? So, a Java Framework translated to Python. It's as nice as running a pack of deer on a road with a truck.

Awful


Pyjamas/pyjs is actually two parts: the transpiler and accompanying widget set. Only the latter is related to GWT. The transpiler can be used independently.


Yo know the most troubling aspect of browse side scripting is the DOM, js syntax has its issues but not the biggest issue.


I had the same thought. "this is cool. but what should I do with it?"


Embed it in browsers as a migration path from JS to Python




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: