News for hackers. Stuff that matters.
Re:Mojo is a much better “Objective-C without the C” than Sw... by nbittich on Monday June 12, 2023 @06:54AM (#36291464)
[edited] afaict: 1) Mojo isn't opensource (yet?) 2) I can't test mojo (yet?) 3) Mojo does bold claims like being a better python with performance close to C, like V did, yet no one seems to call them out (yet????)

Anyway, never gonna try it, unless I'm absolutely forced. I hate their marketing strategy, it sounds too bad.

Re:Mojo is a much better “Objective-C without the C” than Sw... by simias on Monday June 12, 2023 @07:22AM (#36291722)
I chuckled a bit when I saw that they market themselves as "faster than C". Is it 2005 again? Do modern developers even have any notion of how fast C runs to use as a baseline?

It's really minor thing but a pet peeve of mine, I remember how twenty years ago every new language claimed to be as fast or faster than C, and every time the benchmark was some ultra-optimized non-idiomatic program in that new language against a naive C implementation, and the C version was usually still 20% faster and use 10% as much RAM with the right compile flags.

Are there even Mojo benchmark in the wild? The FAQ entry[1] just finds excuses for situations where it does not perform well...

[1] https://docs.modular.com/mojo/faq.html#performance

Re:Mojo is a much better “Objective-C without the C” than Sw... by boxed on Monday June 12, 2023 @08:10AM (#36292183)
I mean.. it does depend on what you mean by "faster than C" of course. Writing the straight forward naive solution in Mojo for some problems can produce code that can run on both CPUs and GPUs and be super fast. Can you get the same performance from C? Probably.. with lots on intrinsics and one code base for GPUs and one for CPUs, where the GPU codebase might even be multiple code bases for different vendors.

I would say "faster than C if you want to keep your sanity and don't have infinite time". It doesn't roll off the tongue though :P

Re:Mojo is a much better “Objective-C without the C” than Sw... by miohtama on Monday June 12, 2023 @10:13AM (#36293748)
Three ways to beat the performance of C “easily”

- Run on GPU

- Automatic loop parallelisation

- Microbenchmarks where C is slow due to pointer aliasing (this is why Ocaml is faster than C)

Re:Mojo is a much better “Objective-C without the C” than Sw... by Certhas on Monday June 12, 2023 @08:17AM (#36292249)
The benchmarks they give here [1] show generic code on par with specialized libraries that are typically written in assembler. These are vastly faster than naive C implementations, so your pet peeve really does not apply here.

[1] https://www.modular.com/blog/the-worlds-fastest-unified-matr...

I kind of agree with the obnoxiousness of the marketing, but it pays to actually read a little of what they do before jumping to conclusions.

If only because its Chris Lattner behind it, obviously not someone who is your average "modern programmer".

Re:Mojo is a much better “Objective-C without the C” than Sw... by TheAlchemist on Monday June 12, 2023 @08:43AM (#36292517)
I know nothing about low-level optimizations, but I love playing with different methods and benchmarks. And did try Mojo through their playground. I found it a bit more complicated than anticipated (well, I did believe it's just like python but much faster...) but also very impressive speed.

It's impossible to say for sure, since you can't run the benchmark on your machine and god knows what's behind the playground. However, I compared my naive implementation to find min of a rolling mean using python with numba, pandas, polars, numpy and mojo version.

Mojo version was faster than polars and numpy, which in turn were faster than pandas and numba. That's my N=1 of course, and not a reliable benchmark. But still, I find it very impressive.

Re:Mojo is a much better “Objective-C without the C” than Sw... by spmurrayzzz on Monday June 12, 2023 @09:43AM (#36293296)
Lattner being behind Mojo always engendered some benefit of the doubt despite my initial gripes with the marketing claims, but his recent interview with Lex Fridman [1] further emboldened my stance that if Mojo can succeed, Lattner is one of the best-positioned engineers to see it through.

[1] https://www.youtube.com/watch?v=pdJQ8iVTwj8

Re:Mojo is a much better “Objective-C without the C” than Sw... by svantana on Monday June 12, 2023 @11:28AM (#36295182)
That article says nothing about how they achieved those numbers. Meanwhile, in the mojo docs, the matmul results are 20-50x slower for some reason:

https://docs.modular.com/mojo/notebooks/Matmul.html

Re:Mojo is a much better “Objective-C without the C” than Sw... by aaroninsf on Monday June 12, 2023 @01:25PM (#36297348)
It's worse than obnoxiousness; the posture they have taken engenders skepticism and distrust.

When making technical claims to a technical audience, and vs Lattner leveraging reputation,

the appropriate approach is clearly not this. It's to lead with conservatively stated claims, reproducible results, and all the rest of the apparatus that is collectively understood as how adults (from which I exclude bizdev) demonstrate a better mousetrap, into an environment within which the cost of switching mousetrap technology is very great indeed at every level.

Big asks deserve and require better.

Re:Mojo is a much better “Objective-C without the C” than Sw... by Certhas on Monday June 12, 2023 @02:24PM (#36298514)
Meh?

They are VC funded and this is the pitch to the VCs in order to get money.

Obviously this is not convincing on a technical level yet. But it's also really interesting as a design.

And while the code isn't open source, I for one find it pretty fascinating to see the language being iterated on in public like this.

Edit: E.g. https://github.com/modularml/mojo/blob/main/proposals/lifeti...

or

https://github.com/modularml/mojo/blob/main/proposals/value-...

Re:Mojo is a much better “Objective-C without the C” than Sw... by PartiallyTyped on Monday June 12, 2023 @04:53PM (#36300935)
For anyone interested on why a VC would fund a PL, modular attempts to build the new shovels for the AI revolution; meaning their own platform to develop models.
Re:Mojo is a much better “Objective-C without the C” than Sw... by qaq on Monday June 12, 2023 @08:26AM (#36292336)
I would imagine creator of Clang and LLVM has a bit of an idea of how fast C runs :)
Re:Mojo is a much better “Objective-C without the C” than Sw... by LeoNatan25 on Monday June 12, 2023 @10:05AM (#36293604)
Didn’t that team at Apple (with Lattner at the helm) also claim Swift was “faster than C”? I am yet to be convinced that in the general case, this is true, especially with the recent language bloat and lack of substantial compiler optimizations. But it wasn’t true back when Swift was released either.
Re:Mojo is a much better “Objective-C without the C” than Sw... by qaq on Monday June 12, 2023 @10:07AM (#36293655)
Could you provide a source for that?
Re:Mojo is a much better “Objective-C without the C” than Sw... by simias on Monday June 12, 2023 @11:27AM (#36295151)
Sure, I should have been clearer, what I had in mind was more "do potential users of Mojo even know or care about how fast C is?"

In my experience the new generation of devs haven't touched C and treat it like some kind of weird arcane language, a bit like what Fortran and COBOL were when I started coding around 2000.

Re:Mojo is a much better “Objective-C without the C” than Sw... by whimsicalism on Monday June 12, 2023 @11:45AM (#36295443)
New generation here, I don't see why I would ever code in actual C99 when (at worst) I could just code in C-style C++ but have some of the nice things.
Re:Mojo is a much better “Objective-C without the C” than Sw... by nradov on Monday June 12, 2023 @02:19PM (#36298401)
The only reason for coding directly in C without using any C++ features would be if you have to contribute to a code base that is restricted to C. The Linux kernel being the most prominent example, but also a lot of embedded devices.
Re:Mojo is a much better “Objective-C without the C” than Sw... by Tozen on Tuesday June 13, 2023 @06:45AM (#36308226)
> ..."do potential users of Mojo even know or care about how fast C is?"

I doubt their potential users would care so much, as long as it's significantly faster than Python and they don't need C or C++, except as an option and not as a necessity. That's been the point of various other alternative languages.

The claim to fame of various newer compiled languages, is not just being as fast as C, but that they are better alternatives to use, for their audiences. Being easier to use, read, or/and learn. This is where some of the drama comes from, because some will make it about speed, and ignore the other elements of what is "attractive".

Re:Mojo is a much better “Objective-C without the C” than Sw... by LeFantome on Monday June 12, 2023 @08:31PM (#36303437)
Faster than Java with 5% of the memory? Lots of devs should get that.
Re:Mojo is a much better “Objective-C without the C” than Sw... by fulafel on Monday June 12, 2023 @08:42AM (#36292500)
I know you didn't mean exactly 20 year old languages but felt the itch to look it up - 2003 was a year of JVM languages[1]. Groovy and Scala are dated 2003. (Clojure came a bit later, in 2007)

[1] https://en.wikipedia.org/wiki/History_of_programming_languag...

Re:Mojo is a much better “Objective-C without the C” than Sw... by classified on Monday June 12, 2023 @09:54AM (#36293453)
If it's "faster than C" you know the author never saw anything but JavaScript and maybe Python.
Re:Mojo is a much better “Objective-C without the C” than Sw... by celeritascelery on Monday June 12, 2023 @10:15AM (#36293785)
Chris Lattner (The creator of mojo) also made clang and LLVM, so he definitely understands what C can do.
Re:Mojo is a much better “Objective-C without the C” than Sw... by TheAlchemist on Monday June 12, 2023 @04:57PM (#36300993)
This must be the funniest comment in this thread. Did you see who the creator of Mojo is ?
Re:Mojo is a much better “Objective-C without the C” than Sw... by lapcat on Monday June 12, 2023 @07:30AM (#36291797)
> I'll probably be downvoted (again)

This is a self-fulfilling prophesy.

"Please don't comment about the voting on comments. It never does any good, and it makes boring reading." https://news.ycombinator.com/newsguidelines.html

Re:Mojo is a much better “Objective-C without the C” than Sw... by nvartolomei on Monday June 12, 2023 @06:58AM (#36291504)
You can get access to the playground (Jupiter notebook with Mojo kernel): https://docs.modular.com/mojo/get-started.html

My access was approved within one hour.

Re:Mojo is a much better “Objective-C without the C” than Sw... by pca006132 on Monday June 12, 2023 @08:15AM (#36292231)
Because the claim is not as outrageous as V did? V claimed to solve the memory management problem automatically without a VM, which no one knows how to solve... Mojo seems to have a strategy similar to Rust, which requires user annotation and we know that this is sufficient in the majority of cases, so I don't think this is something seemingly impossible. Of cause, whether or not this is as easy to use as Python is debatable...

For performance, if the compiler backend performs enough optimization, the code is run natively without any VM, the performance can be same or better than C (as some language features may provide more optimization opportunities). At the end of the day, C programs are compiled into some IR code and optimized by the backend as well, so the frontend language is more about balancing limitation for optimization and expressiveness.

I do feel a bit uncomfortable about their marketing strategy, which compares a simple implementation against one with SIMD and parallelization... I think the real win here is simpler SIMD/parallel programming comparing with C/C++, instead of the language itself being faster.

Re:Mojo is a much better “Objective-C without the C” than Sw... by Certhas on Monday June 12, 2023 @08:24AM (#36292318)
It looks like the Mojo work in parts grew out of MLIR and Lattner has repeatedly stated that he wants less compiler magic and more control in the hands of the programmer (indeed MLIR, which Clang might also move to [1], is directly exposed in Mojo).

"Faster than C" is a lot more plausible for Mojo than the claim of running arbitrary Python code eventually ;)

[1] https://llvm.github.io/clangir/

Re:Mojo is a much better “Objective-C without the C” than Sw... by pca006132 on Monday June 12, 2023 @08:35AM (#36292422)
> he wants less compiler magic and more control in the hands of the programmer

Indeed, I can see this from their emphasis on generic SIMD, which looks pretty nice. It is nice that there is now a language with first-class SIMD support, comparing with something implemented with a library or autovectorization which may not work.

> "Faster than C" is a lot more plausible for Mojo than the claim of running arbitrary Python code eventually ;)

Seems so. I don't recall reading the claim about running arbitrary Python code, and I think requiring rewriting Python code is reasonable as normal Python code may utilize runtime reflection/dynamic type and they are hard to implement efficiently, and probably require a GC for memory management.

Re:Mojo is a much better “Objective-C without the C” than Sw... by Certhas on Monday June 12, 2023 @11:31AM (#36295221)
> I don't recall reading the claim about running arbitrary Python code

The term superset of Python kind of implies this I think. Beyond the runtime reflection, Python also has eval.... :D

Re:Mojo is a much better “Objective-C without the C” than Sw... by Someone on Monday June 12, 2023 @12:23PM (#36296084)
> It is nice that there is now a language with first-class SIMD support, comparing with something implemented with a library

If the language is flexible enough (in particular, it has to support operator overloading), I don’t see any disadvantages to implementing that in a library.

See for example https://developer.apple.com/documentation/swift/simd

Re:Mojo is a much better “Objective-C without the C” than Sw... by MatthiasPortzel on Monday June 12, 2023 @09:22AM (#36292992)
> Mojo seems to have a strategy similar to Rust, which requires user annotation

Except that it also claims to be a superset of Python. That is, you can use it to run any Python program without changes. So explain to me how it’s faster than C while also literally being Python. That’s more outrageous than V.

Re:Mojo is a much better “Objective-C without the C” than Sw... by celeritascelery on Monday June 12, 2023 @10:19AM (#36293868)
It’s a superset. You can run regular python, and that won’t be faster than C. But you can also write mojo functions (using “fn” instead of “def”) and those have stricter requirements and more user annotations but also more optimization potential. Mojo function could be faster than C, buts it’s not free.
Re:Mojo is a much better “Objective-C without the C” than Sw... by pca006132 on Monday June 12, 2023 @11:41AM (#36295372)
I guess it is what the other comment mentioned:

> what they've actually got at the moment is two languages glued together, where one of the languages will "unlock performance" and the other language is literally the CPython interpreter.

Re:Mojo is a much better “Objective-C without the C” than Sw... by ptx on Monday June 12, 2023 @09:30AM (#36293118)
Although not as outrageous as V, I do find the Mojo claims a little misleading.

On the main page of the website, they claim it lets you "Write everything in one language" and "Unlock Python performance" – but what they've actually got at the moment is two languages glued together, where one of the languages will "unlock performance" and the other language is literally the CPython interpreter.

Re:Mojo is a much better “Objective-C without the C” than Sw... by amedvednikov on Monday June 12, 2023 @02:14PM (#36298306)
Can you please list outrageous claims by V?
Re:Mojo is a much better “Objective-C without the C” than Sw... by Tozen on Monday June 12, 2023 @10:12PM (#36304257)
Didn't Mojo just come out? What Mojo will become in regards to Python, remains to be seen. This will likely take them years. Passing judgment on the project so early, is obviously premature.

> Although not as outrageous as V...

Comes across as adding drama. Like arguing with one guy, then slapping another, thinking it will be funny or because one might get away with it.

Re:Mojo is a much better “Objective-C without the C” than Sw... by mr_00ff00 on Monday June 12, 2023 @11:01AM (#36294794)
So the classic question, if Mojo does not have a GC and does similar Rust-like memory management, is it a systems language?

I know it was made for AI, but could it be a rival to rust/C++ in general? Seems like it could replace either of those.

Re:Mojo is a much better “Objective-C without the C” than Sw... by pca006132 on Monday June 12, 2023 @11:49AM (#36295507)
It seems that this language is deeply integrated with CPython, so I doubt if it can be used as a low level language alone. If yes, they probably need to disable a bunch of things.

Also, it is still WIP so I am not sure how things like type works in this language, whether or not it support parameterized lifetime, reference counted objects, union type, closure, etc. Currently, they seems to be focusing on numerical applications, targeting the AI crowd, so it is uncertain how things will go later.

Re:Mojo is a much better “Objective-C without the C” than Sw... by amedvednikov on Monday June 12, 2023 @11:27AM (#36295164)
V claims to take care of most objects (~90-100%) and uses GC for the stuff it can't figure out during compilation.

This is very clearly explained on the website:

https://vlang.io/#memory

Re:Mojo is a much better “Objective-C without the C” than Sw... by pca006132 on Monday June 12, 2023 @11:40AM (#36295345)
Not 3 years ago.
Re:Mojo is a much better “Objective-C without the C” than Sw... by amedvednikov on Monday June 12, 2023 @02:12PM (#36298284)
Here's the version of the website 3 years ago:

https://web.archive.org/web/20200629153446/https://vlang.io/

Can you point to that claim?

Here's 4 years ago:

https://web.archive.org/web/20190828170427/https://vlang.io/

> V manages memory at compilation time (like Rust). Right now only basic cases are handled. For others, manual memory management is required for now.

Re:Mojo is a much better “Objective-C without the C” than Sw... by pca006132 on Monday June 12, 2023 @10:55PM (#36304574)
https://web.archive.org/web/20200703221450/https://github.co...

> V doesn't use garbage collection or reference counting. The compiler cleans everything up during compilation. If your V program compiles, it's guaranteed that it's going to be leak free.

Re:Mojo is a much better “Objective-C without the C” than Sw... by amedvednikov on Tuesday June 13, 2023 @03:32AM (#36306818)
Yeah, this docs section was not synchronized with the landing page, and had bad wording. It says "work in progress", meaning that's something that's planned/being investigated.

This was later worded better. But I agree, the docs should have never had such wording.

Re:Mojo is a much better “Objective-C without the C” than Sw... by Tozen on Tuesday June 13, 2023 @06:21AM (#36308050)
Plus we are talking about a free open-source project, that's more of a grassroots effort, that didn't start as a corporate plan and creation. There are others contributing and writing documentation, mistakes will happen and changes are allowed (many for the good). The language is not 1.0 yet, so should be allowed and will evolve/change over time (as other languages before it).
Re:Mojo is a much better “Objective-C without the C” than Sw... by grugagag on Monday June 12, 2023 @08:16AM (#36292239)
There’s an interview of Chris Lattner by Lex Friedman and he goes in depth on Mojo

https://m.youtube.com/watch?v=pdJQ8iVTwj8

Re:Mojo is a much better “Objective-C without the C” than Sw... by kaba0 on Monday June 12, 2023 @09:07AM (#36292817)
Off topic, but I really can’t stand Friedman. I would much prefer a more intelligent interviewer asking many of those CS giants he interviewed.

(If I hear the randomly brought up, completely unrelated musk hype question again...)

Re:Mojo is a much better “Objective-C without the C” than Sw... by jasode on Monday June 12, 2023 @09:32AM (#36293141)
>, but I really can’t stand Friedman. I would much prefer a more intelligent interviewer asking many of those CS giants he interviewed.

Fyi... CL said he likes being interviewed by Lex Fridman: https://news.ycombinator.com/item?id=24831157

So for your wish of someone else instead of Lex to be granted... (1) the hypothetical "more intelligent interviewer" you'd prefer has to ask CL to be interviewed -- and -- (2) in turn, CL has to say "yes" to the interviewer.

So far, Lex got (1) and (2) to happen. (Twice.) So here we are. Any suggestions on who else should interview CL and would CL grant the interview?

Re:Mojo is a much better “Objective-C without the C” than Sw... by grugagag on Monday June 12, 2023 @09:13AM (#36292878)
It’s a long interview, you can skip through if you want. I’m impartial to Lex Friedman, I just enjoy long interviews and a lot of his guests give me a lot to digest.
Re:Mojo is a much better “Objective-C without the C” than Sw... by unsupp0rted on Monday June 12, 2023 @09:17AM (#36292935)
What the problem with Lex Fridman?

He speaks slowly (listen on 2x for regular person speed) and he’s trite, but he interviews people and lets them talk.

That’s good enough. And it’s especially good enough in that he gets big names to come talk.

He doesn’t need to be a genius or to ask clever questions. Merely letting Chris Lattner geek out for 2 hours on audio about his project is a win.

Re:Mojo is a much better “Objective-C without the C” than Sw... by waboremo on Monday June 12, 2023 @09:41AM (#36293272)
Not being able to ask clever questions is the problem though, because once you've heard one of his guests speak elsewhere, you're getting a basic repeat through Lex.

His podcast is alright for people who aren't in any of the domains and therefore just want overviews. Anything else, and it's about as useful as listening to an actor repeat the summary for the movie they're promoting for the millionth time.

Re:Mojo is a much better “Objective-C without the C” than Sw... by 634636346 on Monday June 12, 2023 @10:08AM (#36293673)
> What the problem with Lex Fridman?

It's pretty clear he's playing up some kind of "rainman autistic AI savant" persona, and also, he exaggerates his credentials. On his website he describes himself as:

>AI researcher working on autonomous vehicles, human-robot interaction, and machine learning at MIT and beyond

Which could lead one to erroneously assume that he attended MIT, or even has a degree from MIT, when neither of which are true.

Re:Mojo is a much better “Objective-C without the C” than Sw... by cxr on Monday June 12, 2023 @10:17AM (#36293830)
If someone says they're "working at <institution>", I don't assume some counterposition to their statements, like that they're really trying to say that it's their alma mater. I interpret it to mean that they're working there.
Re:Mojo is a much better “Objective-C without the C” than Sw... by wazoox on Monday June 12, 2023 @10:28AM (#36294045)
He is a research scientist at MIT, which sounds quite solid credentials as compared to <some random anonymous person on reddit or HN>.
Re:Mojo is a much better “Objective-C without the C” than Sw... by kaba0 on Monday June 12, 2023 @12:52PM (#36296632)
> his father is
Re:Mojo is a much better “Objective-C without the C” than Sw... by whimsicalism on Monday June 12, 2023 @11:48AM (#36295495)
In my opinion, asking clever questions actually is quite important in an interviewer and Lex Fridman is no Joe Rogan in terms of letting the other person talk.
Re:Mojo is a much better “Objective-C without the C” than Sw... by hbn on Monday June 12, 2023 @12:34PM (#36296266)
Yeah I've only seen a few clips of him but the questions he asks are so boring, and asking good questions is THE essential skill for a good interviewer.

He had John Carmack on his show which piqued my interest, but he was asking questions like "what's the best programming language" and "what's the best IDE." Such a blown opportunity to be asking useless first year CS student questions like that when interviewing a great mind like Carmack.

Re:Mojo is a much better “Objective-C without the C” than Sw... by unsupp0rted on Monday June 12, 2023 @02:09PM (#36298228)
What would you have asked Carmack on Fridman’s show (with Fridman’s audience) if you were Fridman?
Re:Mojo is a much better “Objective-C without the C” than Sw... by botro on Monday June 12, 2023 @05:18PM (#36301296)
He once asked Jim Keller 'What is Love?'. His interview with Grant Sanderson is cathartic in that Grant has very little patience for that kind of questioning, when Lex goes on about 'isn't e^iπ so pretty', Grant responds to the effect 'not if you actually understand it, it's math'. I saw a quote on reddit that does a great job helping me understand my distaste for these kinds of questions: 'The man who loves everything and everyone, loves only himself.'
Re:Mojo is a much better “Objective-C without the C” than Sw... by unsupp0rted on Monday June 12, 2023 @06:41PM (#36302349)
Those are solid examples, you’re right. The “isn’t this math thing beautiful?” and “don’t you love love?” digressions are banal, but I give him a pass because a) the guests are interesting people who say interesting things and b) in Lex’s world I guess it’s unusual to slow down and smell the roses.

It makes sense to get touchy-feely with Bert Kreischer, who’s basically an alcoholic gigantic third grader. Or with Michael Malice because they’re goofy best buds.

Still it’s nice when a serious guest kind of shrugs and sticks to the topic.

I can’t listen to Neil Degrasse Tyson talk because of that same kind of “the wonder of the poetry of the cosmic ballet” nonsense.

Re:Mojo is a much better “Objective-C without the C” than Sw... by jewba on Monday June 12, 2023 @12:39PM (#36296356)
He claims to not have any bias whatsoever and be an absolute centrist, which leads to him being a pawn on whatever his guests want to promote while also asking the most awful, bland questions he can possible think of
Re:Mojo is a much better “Objective-C without the C” than Sw... by rdevsrex on Monday June 12, 2023 @10:17AM (#36293817)
As a fan of the podcast, I give 0 shits what you think. Just don't watch instead of moaning about it.
Re:Mojo is a much better “Objective-C without the C” than Sw... by regularjack on Monday June 12, 2023 @10:37AM (#36294241)
If you would have given zero shits, you wouldn't have written this comment.
Re:Mojo is a much better “Objective-C without the C” than Sw... by rsfinn on Monday June 12, 2023 @03:54PM (#36299966)
Lex Friedman[0][1][2] (with an “E”) would probably prefer not being confused with Lex Fridman[3][4][5] (without an “E”), the host of the interview linked above.

The More You Know...

[0] <https://lexfriedman.com/> [1] <https://en.wikipedia.org/wiki/Lex_Friedman> [2] <https://www.youtube.com/c/lexfriedman>

[3] <https://lexfridman.com/> [4] <https://en.wikipedia.org/wiki/Lex_Fridman> [5] <https://youtube.com/c/lexfridman>

Re:Mojo is a much better “Objective-C without the C” than Sw... by pid-1 on Monday June 12, 2023 @08:37AM (#36292447)
(4) it's being developed by a VC backed company without a transparent monetization strategy.

https://www.crunchbase.com/organization/modular-ai

Andrew Kelley predicts the future:

https://youtube.com/watch?v=YXrb-DqsBNU&t=22m17s

Re:Mojo is a much better “Objective-C without the C” than Sw... by adolph on Monday June 12, 2023 @12:50PM (#36296588)
Thanks for posting the Kelley talk. It was interesting but I think also incomplete. Change occurs because nothing is forever. The foundation approach seems better than many, but I think that Kelley has an overly rosy view of foundations and excessively negative view of for-profits. There doesn't seem to be a documented method of voting for new board members, etc. It looks to me like a limited partnership set up as a nonprofit to enable donations. Not a problem, except it still has the same problems that Kelley describes SQLite as having.
Re:Mojo is a much better “Objective-C without the C” than Sw... by osigurdson on Monday June 12, 2023 @08:40AM (#36292482)
You can try it in the form of a jupyter notebook. I'd much prefer just to use it like a regular language.

I think their strategy makes quite a bit of sense. Superficially Python like, can use Python libraries, fast and safe like Rust, automatically determines where algorithms should run (to some extent).

One thing that comes to mind however, is library performance. I'm assuming it will be ~3X faster than Python (like basic Python code) but if you are coming from Rust or C, this could be an issue.

Re:Mojo is a much better “Objective-C without the C” than Sw... by tambourine_man on Monday June 12, 2023 @08:41AM (#36292488)
I find it interesting that they’re not developing it in the open yet.

Lattner is an open source fan, I believe it will be open sourced eventually, but maybe the early Swift development was traumatizing. Just a guess.

Re:Mojo is a much better “Objective-C without the C” than Sw... by veidr on Monday June 12, 2023 @09:29AM (#36293094)
Swift wasn't initially open-source either. I remember this because I was like, nope fuck that shit until it's open source so I never touched Swift until Swift 2.0 when they open sourced it.

(Actually IIRC I started learning it when they promised to open source it later that same year. So the actual moment of open-sourcing might have been slightly later.)

Re:Mojo is a much better “Objective-C without the C” than Sw... by tambourine_man on Monday June 12, 2023 @09:42AM (#36293288)
Sure, it was a secret project at Apple and a surprise even to a lot of employees.

I meant when they actually opened the gates. My recollection is that they were overwhelmed by the feedback and community building.

Re:Mojo is a much better “Objective-C without the C” than Sw... by BiteCode_dev on Monday June 12, 2023 @08:47AM (#36292569)
Proprietary language only available on proprietary platform with no source available. They say that:

> we expect that Mojo will be open-sourced. […] We don’t have an established plan for open-sourcing yet.

But I'm not trusting "don't be evil" tag lines anymore.

So we'll see when they actually make something open enough that we can entrust our programming stacks to it.

Re:Mojo is a much better “Objective-C without the C” than Sw... by henry_viii on Monday June 12, 2023 @09:27AM (#36293072)
Open-sourcing is a double-edged sword. Young ideas are fragile and if they open source the project now, they'll have to deal with entitled people and trolls instead of investing their time developing the project. They have said, though, they are going to open-source the project eventually like Swift.

Also the team behind the project includes very smart people with a history of delivering other great projects (LLVM, Clang, MLIR and Swift).

I don't see how discouraging other people for trying to innovate is helpful. In the end this project could benefit all of us.

Re:Mojo is a much better “Objective-C without the C” than Sw... by Tozen on Monday June 12, 2023 @10:51PM (#36304541)
> I don't see how discouraging other people for trying to innovate is helpful.

That's debatably where the trolling, misinformation, and other underhanded tactics come in. Maintaining the status quo and protecting one's interests, even to the detrimental of the whole, fairness, or the greater good.

Re:Mojo is a much better “Objective-C without the C” than Sw... by ZeroCool2u on Monday June 12, 2023 @09:35AM (#36293187)
I signed up to try it this weekend and they gave me my own jupyterlab instance with a getting started notebook in ~5 minutes.

I thought it was odd at first that they weren't letting me run it locally too, but if they control the compute environment then they can force push interpreter(?)/compiler updates and eliminate a lot of bug reports from folks that are just using an out of date build. Seems pretty reasonable to me for something that's so early in development.

Re:Mojo is a much better “Objective-C without the C” than Sw... by amedvednikov on Monday June 12, 2023 @11:21AM (#36295061)
V is close to C since it literally compiles to C, and it is a simple/readable language like Python and Go, so what's to call out?
Re:Mojo is a much better “Objective-C without the C” than Sw... by Tozen on Monday June 12, 2023 @09:45PM (#36304069)
> 3) Mojo does bold claims like being a better python with performance close to C, like V did, yet no one seems to call them out (yet????)

There appears to be confusion here. Mojo is trying to align itself with and be a kind of superset of Python, like C++ was to C. It's also an alternative for Python users, to use it, instead of reaching for C++ or C when they need speed or going lower level. From their website, that's not what V devs ever claimed nor is it their angle for users. V is a different programming language (and compiled), which provides benefits such as greater speed, type safety, etc... in comparison to Python. It would be a switch over, not a superset.

V is more of an alternative to Go and then C (in terms of ease of use and greater safety). Mojo and V are mostly in different lanes, where they appeal to different audiences, and how they are marketing themselves has nothing to do with the other.

> Anyway, never gonna try it, unless I'm absolutely forced. I hate their marketing strategy, it sounds too bad

This comes across as weird, to claim one will never use or gives the impression to never have used the programming languages they are talking down on. If not using Mojo or V, why be so preoccupied? Just skip over to what one does like and not be worried.

> ...hate their marketing strategy

Just about all programming languages attempt to sell themselves to the public. If they don't, people don't hear about them, and they die in obscurity.

And a lot of times, people are allowing themselves to be brainwashed by what big corporations have to sell, because they have big budgets for marketing. People often like, what big companies told them to, because of their infomercials and marketing campaigns. Sometimes, it can be good or at least fair to give alternatives a fair shot.

Re:Mojo is a much better “Objective-C without the C” than Sw... by chlorion on Tuesday June 13, 2023 @12:20AM (#36305254)
The claims they are making are extremely bold.

On the front page of their website, they claim to have full compatibility with python code, an ownership model and a borrow checker, and being as fast or faster than C++. These are just some of the first things I noticed!

Apparently one of the people involved with the creation of this language have some credibility which is pretty confusing. They are the CEO of the company behind "mojo" as well.

I think this is going to be another V-lang situation personally, despite the credibility of Lattner. I think this is just someone seeing an opportunity to cash in on the "AI hype" situation that exists currently.

Even reputable people can be influenced to do shady things when lots of money is involved!

This is of course just my opinion and I wouldn't mind being proven wrong, but I'm definitely very skeptical right now!

Re:Mojo is a much better “Objective-C without the C” than Sw... by Tozen on Tuesday June 13, 2023 @07:47AM (#36308823)
> I think this is going to be another V-lang situation personally, despite the credibility of Lattner. I think this is just someone seeing an opportunity to cash in on the "AI hype" situation that exists currently.

Mojo is not only directed at AI, but at Python users as an alternative and superset. The use of it for AI, is partially based on the used case of Python. Insinuating that Mojo is trying to "cash in" on "AI hype", is odd in the context of all the others who clearly do so, but where is the "cash in" at? Mojo and Vlang are free.

Vlang (V-lang) has made no such marketing claims in regards to AI, so pairing the languages together comes across as odd. If the argument is about "cashing in", that looks even weirder. The users of both languages are not paying anything. As with any programming language, there can be donations and sponsors. Why would it be a problem for Mojo or Vlang to have sponsors, but somehow not so for other competing languages, in regards to their claims? This comes across as at least one is fine with their favorite language getting sponsors or donations, but not others. Or maybe hoping to cut the funding sources of new languages, so there will be less competition.

> Even reputable people can be influenced to do shady things when lots of money is involved!

The accusation or insinuation is being made that Lattner is "shady" for money, while a backhand is being thrown at Vlang too. Outside of throwing smears, there is no proof of them being in it for hustling money or doing anything that different from what competing programming language creators have and are doing. And that's without talking about the corporate created languages, where obviously money and market share are major driving forces for them.

Re:Mojo is a much better “Objective-C without the C” than Sw... by opan on Tuesday June 13, 2023 @02:38AM (#36306381)
They're also using Discord for official comms, which kills it for me. Even if they release their source properly, I doubt you'll ever get them off Discord, and I would never go there for help.