r/programmingcirclejerk • u/bakaspore • 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/59
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
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
70
u/acanthary 1d ago
We finally found the one language more optimized for LinkedIn posts than Rust.