A rant. I apologize. I try to avoid on HN and in general. Faster, yes, but at what cost? I'm so impressed by the Python community, but I'll never quite understand why they gravitated to... Python itself. It's unbelievable to me that in Mojo's case some of the brightest, most famous engineers have gathered to do incredible computer science work to improve the compute performance of a language that is fundamentally fla…
The curly brace community already has tons of great choices. Let indent people have their mojo.
Mojo is available for local download
91–100 of 193 posts
Re: Mojo is available for local download
#92Wrote a quick blog post on it here: https://www.polarsignals.com/blog/posts/2023/09/07/profiling...
Re: Mojo is available for local download
#93Earlier quoted context omitted.
Yeah I believe the actual quoted figure was "35,000 times faster than Python". It's a silly metric either way.
They have recently published a blog series which started with 35,000x and ended with 68,000x [1]. The thing is anyone familiar with performance sensitive code is not looking at Python vs the other thing. They are looking for whether or not it is in the ballpark of C, Julia, Cython, Numba, etc. Those are the contenders, not Python. [1] https://www.modular.com/blog/mojo-a-journey-to-68-000x-speed...
Re: Mojo is available for local download
#94Earlier quoted context omitted.
Well assuming that a usable thing exists seems to be where you went wrong according to the reports on Twitter and such haha.
RTFM.
Re: Mojo is available for local download
#95Re: Mojo is available for local download
#96A rant. I apologize. I try to avoid on HN and in general. Faster, yes, but at what cost? I'm so impressed by the Python community, but I'll never quite understand why they gravitated to... Python itself. It's unbelievable to me that in Mojo's case some of the brightest, most famous engineers have gathered to do incredible computer science work to improve the compute performance of a language that is fundamentally fla…
Braces are strictly worse than whitespace indentation for several reasons. Brace-based languages:
1) Generally have the "dangling else" set of ambiguities. 2) Some (e.g. C) allow but do not require braces which leads to style debates. The ones that require braces are more verbose. 3) Require more punctuation clutter, and consume more vertical whitespace in practice. 4) ... use braces that are completely redundant with indentation in practice!
It's super funny to see people defend curly based languages. Using curlies but not indenting properly is almost always a sign of a bug (e.g. clang has warnings for this sort of thing due to the "goto fail" and other debacles.
That said, as you also know, Python compat is not optional for us, so Mojo doesn't actually a choice at all here. I find it amusing though that your post acknowledges thoughtfulness in language design and thinks this is an example of a lapse of judgement. :P
-Chris
Re: Mojo is available for local download
#97Earlier quoted context omitted.
Yeah I believe the actual quoted figure was "35,000 times faster than Python". It's a silly metric either way.
They have recently published a blog series which started with 35,000x and ended with 68,000x [1]. The thing is anyone familiar with performance sensitive code is not looking at Python vs the other thing. They are looking for whether or not it is in the ballpark of C, Julia, Cython, Numba, etc. Those are the contenders, not Python. [1] https://www.modular.com/blog/mojo-a-journey-to-68-000x-speed...
Re: Mojo is available for local download
#98I've had high hopes for this project since its announcement, but until it's open-source, I'm not investing any time in it. That's the only announcement I care about
Over time we expect to open-source core parts of Mojo, such as the standard library. However, Mojo is still young, so we will continue to incubate it within Modular until more of its internal architecture is fleshed out. We don’t have an established plan for open-sourcing yet.
I read this as:"There are parts of Mojo that we are not planning to open source"
Which makes this a non-starter for me as well
Re: Mojo is available for local download
#99I wonder whether this will end up being a viable language for people who just want to write fast general purpose code with Python's syntax, and not write any AI/ML-related stuff.
Re: Mojo is available for local download
#100Earlier quoted context omitted.
Yeah, I highly dislike working with python, everything is special syntax or different for no reason. In addition to what you mentioned: * try catch is different keywords from virtually all other languages. * walrus tusks, the general order in list comprehensions generally where bindings come after expression * typing is awful, unsound in a lot of cases, there’s a ton of special non straightforward plugins in mypy. Th…
> try catch is different keywords from virtually all other languages Python : try/except/finally/else C# : try/catch/finally (no equivalent of “else”) VB.net : try/catch/finally (no equivalent of “else”) JavaScript : try/catch/finally (no equivalent of “else”) Java : try/catch/finally (no equivalent of “else”) Ruby: begin/rescue/ensure (no equivalent of “else”) C++: try/catch (no equivalent of “finally” or “else”) Py…
It can also be used postfixed to a statement that might raise an exception.
Ruby is oddball here because it's subtly different.
def a_method
@value = dangerous_method_call rescue "default value in case of exception"
do_something_else @value
rescue
puts "an error, oh no"
end