Better HN
topnewbestaskshowjobs
Log inSign up

melodyogonna

821 karma · joined Aug 31, 2021 (5y ago) · 415 submissions

Submissions

comment 1d ago · link · parent

I still don't understand why language name has to be mentioned in Posts like this. Is this some form of marketing?

comment 1w ago · link · parent

> Runs faster than Go

Citation is needed

3.

[SPLASH'26] Mojo: Towards One Systems Language for All Hardware [video](youtube.com ↗)

2 points · by melodyogonna · 1w ago · discuss

comment 2w ago · link · parent

Many people are against operator overloading, imo my only issue with C++ operator overloading is that you're allowed to overload the the assignment operator. From what I can see this is the root of many issues

comment 3w ago · link · parent

This is an LLVM moment for terminals

6.

Mojo 1.2.0(mojolang.org ↗)

3 points · by melodyogonna · 1mo ago · discuss

comment 1mo ago · link · parent

I never understand why people say things like this. It is not uncommon for languages to have multiple implementations, everything must not be abandoned for Rust man.

comment 1mo ago · link · parent

Mojo's origin can represent a lot of these semantics. I think a lot was learned from Nick's proposal, even if it wasn't directly implemented. Here is an example of how you could represent the first snippet, where two references can update the same list: https://godbolt.org/z/78bhzWjYM

9.

The Mojo compiler – Walkthrough [video](youtube.com ↗)

1 points · by melodyogonna · 1mo ago · discuss

comment 1mo ago · link · parent

Good. I too I'm not a fan of MCPs, but these days I do find them useful. In Claude Code I connected to my company's MCP which made Claude Code infinitely more useful for everyday work stuff

comment 1mo ago · link · parent

The pace the American government is willing to adopt new technology is underrated. Americans are very nimble

comment 2mo ago · link · parent

Yup. Go maturity is realising how little you need to use channels and Goroutines. You probably just need a setup in one place, like in front of incoming requests ... which using net/http already does for you.

Spamming them all over the place is a red flag imo

comment 2mo ago · link · parent

Very neat, and comes pretty close to how Mojo handles portable SIMD.

It's great to see two of my favorite languages finally making SIMD easy to use. It's such low-hanging fruit for performance, yet somehow languages have ignored it for years. Portable SIMD, even with some performance penalty, still beats scalar computation whenever vector operations are needed. Yet language implementations always seemed to assume that hardware-specific SIMD APIs were the only way to go. That did nothing but make SIMD unusable excepting special cases where performance is absolutely critical, rather than just something anyone can use in day to day programming.

comment 2mo ago · link · parent

How so? I imagine you'd still want to constrain the length to the maximum vector size supported by the lowest platform you want to support or you lose the portability and actually end up with code that performs much worse than the scalar alternative on some platforms.

Mojo has an even more portable simd[1] type that isn't just generic over length but also over type. In my opinion it is almost always better to specialize for each platform and use portable implementation as fallback. It's a shame that just very few languages support Zig-like comptime, because it would be excellent for specializations without introducing runtime penalties.

1. https://mojolang.org/docs/std/simd/SIMD/

comment 2mo ago · link · parent

Comes to Rails conference. Gives a keynote with nothing about Rails. Leaves.

16.

Undercover: Europe Through the Sahara Desert and the Mediterranean Sea (I)(fij.ng ↗)

2 points · by melodyogonna · 2mo ago · discuss

comment 2mo ago · link · parent

I have an application usecase where this will be very helpful indeed.

comment 2mo ago · link · parent

Did you finish the video? It has CI, but I don't know if they implemented merge gating. Though I suppose that could be part of the land skill

comment 2mo ago · link · parent

What do you mean?

comment 2mo ago · link · parent

You could also use Mojo, one language for all targets.

21.

Mojo 1.0 and the Open Road Ahead [video](youtube.com ↗)

2 points · by melodyogonna · 2mo ago · discuss

comment 2mo ago · link · parent

Why?

comment 2mo ago · link · parent

I'm going to give this a try because I once also tried to make a slick GUI ide with Vim key bindings. Unfortunately I was trying to use Rust then, of which I had no experience, while trying to write a desktop app, of which I also had no experience.

comment 2mo ago · link · parent

When you see seemingly simple products have too many engineers, most are almost always there to cater for enterprise customers.

comment 2mo ago · link · parent

The thing is, you can only program what is programmable. If a CPU has some capability that isn't programmable, I don't know what C or any other language is expected to do.

comment 2mo ago · link · parent

Well, C does give you the control when it matters, even if they feel bolted on for more modern features.

I actually believe Mojo is the only modern language not designed to pretend every computer is a PDP-11. C has been so successful that many succeeding languages just did C things as a matter of course.

In Mojo, everything is designed with the complexity of the modern computer in mind, and at every stage the programmer has complete control of outcomes. You decide what gets inlined, what gets passed in registers, what gets unrolled, etc. The language has excellent ... ney, probably the best portable SIMD support there is; all integers are built on top of SIMD, and the scalar integers are just SIMD with length of 1. You get complete control of what gets compiled as well due to powerful compile-time programming that is similar to, but more powerful than Zig's (imo, because you can supply a lot more information). While C and Rust allow inline asm, Mojo goes further by letting you supply inline MLIR and LLVM as well, so in situations that warrant it, you can tell the compiler to compile to a specific LLVM intrinsic. The language also does not assume you're compiling to run on just one machine; every modern computer is heterogeneous by nature and may contain multiple programmable units, so the compilation pipeline is designed to allow compiling certain parts of code for one target and other parts for other targets... as one compilation unit.

27.

Exploring Mojo's raw pointer type(melodyogonna.substack.com ↗)

2 points · by melodyogonna · 2mo ago · discuss

comment 2mo ago · link · parent

Uber was never really in Nigeria much, despite apparently being here a long time. I use ride-hailing a lot, and I've never used it because it is not available in my state, or in most states, for that matter.

comment 3mo ago · link · parent

I wouldn't say they suck, but they're general-purpose. Anyway, you've gotten into the core of what makes Modular's stack useful. GPUs are great, but it has become obvious that they leave performance on the table, so dedicated AI accelerators get built; however, these don't have software infrastructure and kernels that have been tuned and optimised for years, like CUDA. The bet here is that you can build great hardware, and with a little bit of effort you can unlock all the necessary software for your hardware.
12345
14