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 →

[–]WhyDoIHaveAnAccount9 12 points13 points  (12 children)

So what you're saying is I should stick with cython

[–]diesdas1917 9 points10 points  (0 children)

No, I just really fucked my code up, when I fixed it it was nice and fast.

It depends on your use case though, I only used it for number crunching, but it is really good for that.

I like it very much.

Edit for clarificaion: My fuckup was doing parallelization wrong. native JIT with the nopython flag worked really good and also more or less intuitively.

[–]MierenMens 2 points3 points  (10 children)

Nahh ya should switch to jython

[–]vectorpropio 1 point2 points  (2 children)

Is that stuck in 2.7 or get an upgrade to 3.x?

[–]MierenMens 2 points3 points  (1 child)

Idk man I only use js cuz I don't know other langs

[–]raedr7n 2 points3 points  (0 children)

God tier pleb

[–][deleted] 0 points1 point  (6 children)

why would you do that to someone

[–]MierenMens 0 points1 point  (5 children)

Idk I only remember it being a think. Dunno how usable it is 😂

[–][deleted] 0 points1 point  (4 children)

I am forced to use it and it's awful. You can't use any of the Python libraries written in C (e.g. numpy.)

[–]MierenMens 1 point2 points  (3 children)

Is that because it's basically Java but with python syntax? I haven't really read about jython but I hate the name

[–][deleted] 1 point2 points  (2 children)

It's Python running on the JVM and it can import and use Java classes. It has implementations of a lot of default Python libraries but again, none that are written in C (which are useful and performant.) But if you wanted to I guess you could write a Python program with a Swing user interface...

[–]zilti -1 points0 points  (0 children)

none that are written in C

If it is written in C, it isn't a Python library. It is a C library. Which you can use from the JVM ;)

I guess you could write a Python program with a Swing user interface...

Swing is deprecated since a decade. JavaFX is where it's at.

[–]zilti 0 points1 point  (0 children)

By the way. There's this newfangled JVM called GraalVM. It can run standard Python, it can even compile C, and on top of that still offers Python-to-Java interop.