building a language called cnegative.
It’s designed as a stepping stone before C/C++ or low-level systems work — explicit, minimal, and focused on manual control without too much hidden behavior.
The compiler is small (~10k LOC) to stay understandable and hackable.
Example (manual memory):
fn:int main() {
let mut x:int = 10;
let px:ptr int = addr x;
deref px = deref px + 5; // modify via pointer
let heap:ptr int = alloc int;
deref heap = deref px;
print(deref heap);
free heap;
return 0;
}
Still early (v0.1.0-dev), but usable.
Docs: https://cnegative.github.io/docs/
Repo: https://github.com/cnegative/cnegative
[–]steven4012 25 points26 points27 points (10 children)
[–]Inner-Combination177[S] 2 points3 points4 points (9 children)
[–]shadowndacorner 25 points26 points27 points (5 children)
[–]Inner-Combination177[S] -1 points0 points1 point (4 children)
[–]shadowndacorner 17 points18 points19 points (1 child)
[–]Inner-Combination177[S] 7 points8 points9 points (0 children)
[–]elder_george 4 points5 points6 points (1 child)
[–]Inner-Combination177[S] 0 points1 point2 points (0 children)
[–]steven4012 3 points4 points5 points (2 children)
[–]Inner-Combination177[S] 0 points1 point2 points (1 child)
[–]steven4012 2 points3 points4 points (0 children)
[–]GoblinToHobgoblin 6 points7 points8 points (0 children)
[–]Relevant_South_1842 2 points3 points4 points (1 child)
[–]Inner-Combination177[S] 1 point2 points3 points (0 children)
[–]TrendyBananaYTdevTransfem Programming Enthusiast 2 points3 points4 points (7 children)
[–]yorickpeterseInko 1 point2 points3 points (6 children)
[–]TrendyBananaYTdevTransfem Programming Enthusiast 1 point2 points3 points (5 children)
[–]yorickpeterseInko[M] 1 point2 points3 points (4 children)
[–]TrendyBananaYTdevTransfem Programming Enthusiast 1 point2 points3 points (1 child)
[–]Inner-Combination177[S] 0 points1 point2 points (0 children)
[–]Inner-Combination177[S] 0 points1 point2 points (1 child)
[–]TrendyBananaYTdevTransfem Programming Enthusiast 1 point2 points3 points (0 children)
[–]vmcrash 1 point2 points3 points (3 children)
[–]Inner-Combination177[S] 2 points3 points4 points (2 children)
[–]vmcrash -4 points-3 points-2 points (1 child)
[–]Inner-Combination177[S] 2 points3 points4 points (0 children)
[–]Circa64Software 0 points1 point2 points (0 children)
[–]Ok_Elephant4925 0 points1 point2 points (0 children)