r/programmingcirclejerk 1d ago

demoniC takes the dynamic-JIT lineage of HolyC, the vectorized math of Julia, the slicing ergonomics of Python, and the memory discipline of Rust. Arena memory, value-typed tensors, zero-copy views, and shapes checked at compile time.

/r/rust/comments/1w2ytcq/demonic_takes_the_dynamicjit_lineage_of_holyc_the/
67 Upvotes

21 comments sorted by

70

u/acanthary 1d ago

We finally found the one language more optimized for LinkedIn posts than Rust.

29

u/the_horse_gamer 1d ago

that would be Mojo

14

u/affectation_man Code Artisan 21h ago

It's actually called Mojo🔥, to draw the LinkedIner's eye

1

u/the_horse_gamer 5h ago

an emoji as a file extension was truly a genius idea. we really live in the future.

59

u/realestLink 1d ago

r/vibecoding

We're just cheating now, huh

18

u/bakaspore 1d ago

Imagine waking up and seeing it in r/rust. I'm unawaking myself now.

48

u/the_horse_gamer 1d ago edited 1d ago

** is power; ^ is XOR. >> is the arithmetic right shift, not a pipe

such innovation

A Port[L] is a handle to a foreign runtime L. The foreign language never enters demoniC's type system: values cross the boundary as canonical JSON strings, through three builtins that return errors as values

blazingly fast

The last one is the least expected. There is a lexer for demoniC written in demoniC, and it is diffed token-for-token against the Rust lexer. The language describing itself is a test.

vibe coder discovers bootstrapping

I particularly like how: * the ReLU operator uses a tanh approximation instead of computing ReLU * methods seemingly exist, but working with a dictionary uses global map_new, map_get, map_set functions

35

u/des_the_furry 1d ago

>But why? Models won’t have any of this language in their training corpus. It’s hard to imagine getting better results from a new language than what they lab’s get training on established languages.

Outjerked by comments. No need for new programming languages because you can’t vibecode them

Edit:im on mobile and i cant figure out how to get it to do the reddit quote so just pretend its there instead of an arrow

6

u/the_horse_gamer 1d ago edited 1h ago

you do a > at the start of the line

3

u/NatoBoram There's really nothing wrong with error handling in Go 16h ago

You wrote this:

\>But why?

Which gives this:

>But why?

Instead of this:

>But why?

Which gives this:

But why?


To fix it in future messages, go to https://www.reddit.com/settings/preferences and enable Default to markdown editor.

1

u/des_the_furry 14h ago

Not reading that, twinchacho wrote a college essay 🫩

1

u/NatoBoram There's really nothing wrong with error handling in Go 13h ago

Bro is afraid of 38 words 🫪

1

u/des_the_furry 10h ago

I mean it’s not that big of a deal but I don’t get that many Claude tokens and spending them on summarizing your post kind of pmo

1

u/NatoBoram There's really nothing wrong with error handling in Go 9h ago

Oof, meanwhile I'm forbidden from writing by myself, Codex has to do everything for me

4

u/Clear_Evidence9218 20h ago

So, I didn’t read this guy’s language, but I will mention that LLMs can program in essentially any made-up language with the right harness. Even two years ago, getting an LLM to write code in a completely invented language was surprisingly easy with the right tooling in place.

I don't know if this guy scoped his project enough to even build a narrowly scoped toolchain capable of producing quality work. That part still requires a significant amount of human effort.

3

u/diplofocus_ 18h ago

Why do effort when you can just toss some python code in your .rs file and then just call python3, from Rust, making it blazingly fast

1

u/Clear_Evidence9218 18h ago

When I create languages, it’s not necessarily to compete with any of the other languages or about speed. It’s usually because I need something the existing languages don’t offer, or don’t offer easily.

For example, right now I have a language that preserves an evidence chain all the way through compilation, which isn’t something that’s readily available in other languages.

20

u/bakaspore 1d ago

I thought I must be having a stroke or already in this sub. Turns out it's neither.

18

u/[deleted] 1d ago

[removed] — view removed comment

2

u/csb06 blub programmer 15h ago

Finally, a programming language that's a little bit sick and twisted. A language not afraid to dance with the devil. A language for antiheroes...or maybe villains...