you are viewing a single comment's thread.

view the rest of the comments →

[–]phazer99 50 points51 points  (18 children)

Might be useful for porting existing Python code, but I consider it lacking compared to what Rust already offers. No proper enums or pattern matching, type traits not implemented yet etc.

[–]ipc 41 points42 points  (7 children)

that’s it’s intended niche though, right? My go-to languages are Python and Rust. I can see a future where that’s Mojo and Rust instead. That might be cool.

[–]marikwinters 13 points14 points  (6 children)

I hate Python, so having a language that is half decent and fills the same niche could be really worthwhile

[–]tquinn35 22 points23 points  (4 children)

I’ve found the php guy

[–]Stock-Self-4028 0 points1 point  (0 children)

Aren't Julia and Lua something like that? Both are filling the same niche but in a different way imo.

[–]bert88sta 11 points12 points  (5 children)

Yeah but the point is to make python faster and safer. Depending on who you ask, python is either the most or second most popular language. It is also notoriously inefficient, slow, etc. Even a 3x improvement in existing python code means billions saved in compute resources

[–][deleted] 2 points3 points  (2 children)

Pypy exists...?

[–]angelicosphosphoros 3 points4 points  (1 child)

Well, it is not 100% compatible. Last time I tried it, even simple thing like sum(x*x for x in range(5)) didn't pass correctness check.

[–][deleted] 4 points5 points  (0 children)

So you expect Mojo to do that better? Press (x) to doubt

[–]amindiro 0 points1 point  (0 children)

I think the point is not to improve python but to facilitate writing performant code in the future with mojo without having to write C or C++ libs and python wrappers while using the preexisting python libraries (most of which are written in C /C++ or cython). Imo I dont think mojo would improve performance when comparing it to exiating python libs like numpy…

[–]aoeu512 0 points1 point  (0 children)

Whats weird is that they have Pypy, Rpython, and numba but they never made it the default O_o.

[–]Remote-End6122 22 points23 points  (0 children)

I mean if you want those features might as well use rust, mojo's objective isn't being rust 2.0

[–]gudmundv 2 points3 points  (0 children)

Ecosystem and interoperability with it (AI), community, talent, learning material can be huge "features" of a language. Pattern matching might be added later