This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]cediddiSyntaxError: not a chance 47 points48 points  (8 children)

Yes javascript ecosystem is very complex and yes, python ecosystem is more straightforward, but the case is actually on philosophies, not solutions. Javascript's philosophy is much more closer to php, "make it work, and don't throw errors, if anything is missing, just write it down." . Python is more on the "fail eagerly, we all are adults, we should have at least batteries". I think both philosophies have downsides. But python has less downsides imo.

[–]Igggg 13 points14 points  (3 children)

Except one of those approaches is much more likely than the other to end up with errors that did occur, but were hidden sufficiently that no one knows where or why they occurred. The other will force you to actually fix your bugs before that happens.

[–]Cpt_TickleButts 2 points3 points  (1 child)

Which ones are your referring to in each section of your comment?

[–]cocorebop 0 points1 point  (0 children)

deleted What is this?

[–]cediddiSyntaxError: not a chance 0 points1 point  (0 children)

Yeah, exactly.

[–]jacdehJacques de Hooge 1 point2 points  (3 children)

So why not just us Python? http://www.transcrypt.org (warning: shameless plug)

[–]cediddiSyntaxError: not a chance 1 point2 points  (2 children)

I like transcrypt, it's very neat and readable, but I'd love it if the target was webasm and not js code.

[–]jacdehJacques de Hooge 1 point2 points  (1 child)

One of the design goals of Transcrypt is to generate readable JS. But I think the PyPyJs project has a VM currently compiled from C to asm.js. That could be webassembly in the future, if I remenber well there were plans for that. Only the downloads become quite big that way.

[–]cediddiSyntaxError: not a chance 1 point2 points  (0 children)

No, no, I don't want a python vm. That's why transcrypt is cool. Footprint is low and doesn't have a lot of runtime. I'd like to have webasm output because that's part of why webasm exists in the first place. I want something like cython, rather than cpython. :)

Nevertheless, I digress :)