|
|
|
|
|
by billconan
360 days ago
|
|
I don't quite understand Mojo's decision to use Python-like syntax—honestly, I really dislike it. Aligning code through indentation feels like a strain on my eyes. Initially (before Mojo's release), I assumed the syntax choice was for better interoperability. Since Mojo is a superset of Python, I thought it could directly call any Python code. But after reviewing some interoperability examples—both Mojo calling Python and vice versa—it doesn’t seem all that seamless or straightforward. For example, calling Python code from Mojo requires going through a proxy to the Python interpreter, which feels no better than what pyo3 already offers. Plus, Mojo has plenty of compatibility issues when running regular Python code. So if better interoperability isn't the main reason for sticking with Python-like syntax, the only other explanation I can think of is to attract existing Python programmers. But is syntax really the reason people shy away from GPU programming? There are far more intimidating aspects to it—C++ syntax is probably the least of anyone’s concerns. |
|