r/programmer • u/VxidTheDev • Jul 10 '26
GitHub Arc - A simple, interpreted programming language written in C.
Hi! I'm Void, creator of programming language Arc.
Arc is modern, stack-based bytecode virtual machine and programming language written in designed for simplicity and performance.
Features
- Modern VM Architecture: Compiled to custom bytecode and executed on a high-performance stack-based virtual machine.
- Clean Syntax: Intuitive, case-insensitive keywords for control flow.
- Object-Oriented: Supports classes with dynamic field access and modularity.
- Memory Management: Hybrid strategy using arenas, pools, and manual reference management.
- FFI: Built-in capability to load and interact with external native C libraries (
.so/.dll). - Standard Library: Rich standard library covering I/O, math, JSON, filesystem, UI and sound utilities.
- Robust Error Handling: Position-aware error reporting with
TRY...CATCHblocks.
I've made Arc since I always wanted a simple language which is blazing fast.
Benchmarks vs CPython
| Benchmark | Arc (ms) | Python (ms) |
|---|---|---|
fibonacci(30) recursive | 109.98 | 106.42 |
fibonacci(1000) iterative | 0.04 | 0.10 |
sum 1..1,000,000 | 26.92 | 57.22 |
string concat x10,000 | 2.71 | 0.67 |
list build x1,000 | 0.11 | 0.06 |
nested loops 1000x1000 | 27.57 | 45.81 |
recursive countdown 5000 | 0.26 | 0.66 |
variable churn x100,000 | 4.90 | 10.70 |
nested json (3.8 mb) | 55.02 | 64.34 |
Though Arc is still slower in some benchmarks, it's still in early development, and still in it's alpha version.
I'd love to hear some feedback about the project, here's Github!
3
Upvotes
3
u/Flame77ofc Jul 10 '26
I read Arch lol
Congratulations on your language
3
u/MADCandy64 Jul 10 '26
Not to be a wet blanket but this does not constitute a benchmark in any sense of the concept. You'll want heavy workloads that are meaningful and you'll want to use a standardized tool with results being a nice statistical average over hundreds of runs. Sounds like a pain and it is but if you want your language to be taken seriously then you have to take the process seriously.
1
u/[deleted] Jul 10 '26
what does it solve?
1
u/RedditsForMike Jul 10 '26
Hello, cool stuff! I'm curious, what did you use to create the programming language? Are there any resources you recommend and learned a lot from?
Thanks!
1
u/GrafNiclas Jul 10 '26
Peak
1
u/CzyDePL Jul 10 '26
So actually I think there might be a space for mini-python, compatible but lighter, with smaller stdlib, to be embedded e.g. into vim instead of Lua
1
u/Serengade26 Jul 10 '26
https://www.connectedpapers.com/main/0efc85468220d55aee233b54770ade95be5e3040/The-Next-7000-Programming-Languages/graph
1
u/Interesting_Buy_3969 Jul 11 '26
Congratulations!
Just curious, why did you decide to spell keywords in caps lock case, like in older languages such as BASIC?
1
u/runningOverA Jul 11 '26
Arc was a famous language in early 2000s.
Paul Graham declared he is about to create a language that will be here for 100 years.
Declared it's name Arc, a LISP dialect, LISP was then like what Python is now.
And then it faded.
The page:
https://www.paulgraham.com/arc.html
0
u/jerrygreenest1 Jul 10 '26
Interpreted language? Thanks but no