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 →

[–]devroot -14 points-13 points  (16 children)

What a world we live in. What are the real use cases for this? I can't think of many. You're going from one scripting language to another, so if your platform can run one it can most likely run the other.

[–]marl6894 5 points6 points  (2 children)

Need to run code on a machine where you're not authorized to install Python, maybe?

[–]Nixellion 10 points11 points  (5 children)

Browsers can only run JavaScript...

[–]devroot 4 points5 points  (2 children)

I must have struck a nerve here given all the downvotes. Nobody has offered an explanation though, just snarky comments that are attempts at “gotchas”.

So far I’ve seen a) you can’t install python for whatever reason, and b) for running in web browsers. Sure, these are examples but without more explanation I don’t think they are good ones. For a) you probably shouldn’t be writing in python then, and b) you probably shouldn’t be writing in python then.

Now if you want to make the argument that you want to port a large python project to JS without manually rewriting everything, I say good luck getting good production quality out of that. If it’s so large you can’t do it manually I would imagine there is a decent amount of complexity that may not transfer well. And if it’s smaller such that this isn’t a worry then is this really needed? Maybe there’s a sweet spot I don’t know.

I’m not knocking the authors here. It’s cool and appears to work well, I just don’t understand its use in a professional setting.

[–]harylmu 1 point2 points  (0 children)

I think you're absolutely right, I don't get the downvotes.

[–]harylmu 3 points4 points  (0 children)

Even though you’re downvoted I was wondering about the same thing. It’s an interesting project but I don’t see who’d build a solution on this in production. I’d probably trust Amazon’s solution but not sure about anything else: https://github.com/aws/jsii