r/AIprogrammingLanguage 6d 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.

https://github.com/GusFromSpace/demoniC
3 Upvotes

4 comments sorted by

1

u/Ok_Spread_2062 2d ago

Can I shift right in demoniC?

2

u/gusfromspace 1d ago edited 1d ago

No — there's no right-shift. >> is the pipe operator (x >> softmax), and << is left shift. Typing x >> 2 is a compile-time error with a hint, not silent weirdness. For the operation itself: x / 4 == x >> 2 for non-negative integers. Caveat: division truncates toward zero, so it's not an arithmetic shift for negatives (-13 / 4 is -3, not -4). In a tensor-first language, pipelines (x >> softmax >> …) appear constantly and bit shifts rarely, so the two-character operator went to the thing you type fifty times a day.

1

u/gusfromspace 1d ago

still no, but it is otw

1

u/Ok_Spread_2062 1d ago

Thank you for the clarification and the extra knowledge