[-] leviosa@programming.dev 5 points 11 months ago

Are there precisely 37 developers in that team??

10
submitted 11 months ago by leviosa@programming.dev to c/cpp@programming.dev
[-] leviosa@programming.dev 6 points 11 months ago

Python is already popular so Mojo making that ecosystem much faster, safer and easier to deploy could be game changing when it's fully formed. There are also armies of existing Python developers out there for businesses to tap into and it's an easy language to pick up.

On their roadmap page, it looks like C++ interop is going to be a first class citizen too, further opening up the ecosystem to existing high performance libraries:

Integration to transparently import Clang C/C++ modules. Mojo’s type system and C++’s are pretty compatible, so we should be able to have something pretty nice here. Mojo can leverage Clang to transparently generate a foreign function interface between C/C++ and Mojo, with the ability to directly import functions:

from "math.h" import cos

print(cos(0))
[-] leviosa@programming.dev 4 points 11 months ago

Like how OOP was the best thing ever for everything, and just now 30 years later is proven to be actually bad.

Alan Kay coined the term 57 years ago and we have to look at the landscape back then to see just how much OOP has actually influenced pretty much all languages, including ones that distance themselves from the term now. Avoiding shared global state. Check. Encapsulating data and providing interfaces instead of always direct access. Check. Sending signals to objects/services for returned info. Check check check.

[-] leviosa@programming.dev 5 points 1 year ago

I would take what our jingoistic media and talking heads say with a very large pinch of salt. It's quite disrespectful to Ukrainian soldiers to say they've been facing an "antique show of an invasion", not to mention Russian engineers. Propaganda aside, both sides have fought hard in what has been a very modern war.

[-] leviosa@programming.dev 8 points 1 year ago

Every country uses a combination of older and newer equipment in any war. The war propaganda wizards just try to make things like that look unique to Russia.

[-] leviosa@programming.dev 7 points 1 year ago

... a browser-based development experience built on Google Cloud...

Fuuuuuck thaaaat.

[-] leviosa@programming.dev 27 points 1 year ago

brainfuck is a member of an exclusive club of languages where it's much easier to write a compiler for it than to read a program written in it.

[-] leviosa@programming.dev 3 points 1 year ago

Yes, or something like [murena]{https://murena.io} which is a free (for 1GB or pay for more storage) cloud service that runs on NextCloud. It's what /e/OS uses for storing/syncing calendar etc.

[-] leviosa@programming.dev 4 points 1 year ago* (last edited 1 year ago)

You can quickly get the args into a vector like this:

auto args = std::vector<std::string_view>(argv, argv + argc);

Checking equality etc directly instead of using strcmp stuff is better. There are libraries available for handling command line args too.

[-] leviosa@programming.dev 10 points 1 year ago

It's got AI too, which means it's extra sparkly good. But points deducted for no blockchain features or running as a bunch of microservices.

[-] leviosa@programming.dev 6 points 1 year ago

Hopefully Mojo will sort it all out. Maybe even inspiring a new, positive streak of xkcd strips in the future?

[-] leviosa@programming.dev 3 points 1 year ago

Speaking of independent Fediverse type things, the creator in question also uploads to Odysee, which uses the LBRY blockchain: https://odysee.com/@AlphaNerd:8/lemmy-the-foss-federated-reddit:b

view more: next ›

leviosa

joined 1 year ago