You are browsing as a guest. Sign up (or log in) to start making projects!

AhmedKhaledAhmed

@AhmedKhaledAhmed

Joined June 17th, 2026

  • 25Devlogs
  • 3Projects
  • 3Ships
  • 60Votes
A high-schooler who loves Engineering and Coding...
Open comments for this post

2h 30m 8s logged

DevLog#12 — I have added Strings, Arrays, and Hashes to the bytecode compiler and the vm. I thought at first that it would be hard, but turns out it was smooth and easy. Well, not that easy because the Hashes had an issue that I discovered later when I tested the repl, turns out the Hashes doesn’t appear in the repl, but it worked in the tests, so that was weird, but I solved it by keeping track of the order of Hashes. I must continue the bytecode compiler and the vm by adding functions, and built-in functions. Wish me luck…….

0
0
42
Open comments for this post

1h 42m 6s logged

DevLog#11 — I have added variables to the bytecode compiler and the vm. Mostly, it was easy, but the assigning char := was a bit tricky to implement in the bytecode compiler and the vm. I made a global environment for setting and getting the values in the variables. I must now focus on implementing / adding strings, arrays, and hashes. Wish me luck……

6
0
180
Open comments for this post

1h 44m 30s logged

DevLog#11 — Finished adding the other comparison expression. I implemented if conditions to the bytecode compiler and the vm. It worked just fine, but It was tense ordering the instructions to make the compiler compile the if condition in a good way. I must now start by adding else-if, and variables. Wish me luck.

0
0
91
Open comments for this post

2h 57m 37s logged

DevLog#10 — Finished adding FLOAT_OBJ to the bytecode compiler and vm. Also, supported the operations +, -, *, /. I Implemented BOOLEAN_OBJ and comparison expression in the bytecode compiler and vm too. I will work now on adding more ways in the comparison expression. Also, adding if conditions.

0
0
52
Open comments for this post

4h 26m 24s logged

DevLog#9 — Currently, Implementing the bytecode compiler and VM. I managed to to finish the initial part of the compiler and the vm. I was able to add integers, it can’t add float and it can’t do any operation other than addition. What I will do now is to add float to compiler so I can add them, and then I will I will add the other operation. I hope this bytecode compiler phase works good, so I can implement the full compiler so Zod could be like Go, Zig, and Rust in the future.

0
0
20
Ship

Zod is a small, interpreted, dynamic typed language for joyful programming you can build many things from 2D terminal games to tiny ml experiments and more.

  • 8 devlogs
  • 36h
  • 11.59x multiplier
  • 421 Stardust
Try project → See source code →
Open comments for this post

8h 19m 28s logged

DevLog#8 — Zod is finally here. I finished building the interpreter phase (Yeah, Zod will be a compiled language soon). I added MATRIX_OBJ and that opens ways to build cool things with the language like this demo of Conway’s game of life built in Zod. Cooool!!!!!!! right.

0
0
15
Ship

I rewrote Andrej Karpathy’s microgpt in rust. Also, added a beautiful tui. You classic mode and tui mode. The classic mode behaves exactly as the original microgpt behaves, but the tui mode is a classic mode wrapper with a tui. You can use it now by installing it from crate.io or building it from the source using github.

  • 7 devlogs
  • 8h
  • 13.87x multiplier
  • 105 Stardust
Try project → See source code →
Open comments for this post

31m 12s logged

DevLog#5 — Implemented the inference, ran the model and it works!!!!!!! Now, I can say that I have finished rewriting Andrej Karpathy’s microgpt in rust. I will add more things to it, maybe a tui and make the code more modular.

0
0
5
Open comments for this post

1h 6m 44s logged

DevLog#4 — Implemented the training loop, the model parameters, and the optimizer. Also, removed the dataset() function and just added the logic in main(). And what is left? Is the inference, and by finishing the inference I will be finished with the rust rewrite.

0
0
7
Open comments for this post

1h 11m 55s logged

DevLog#3 — Implemented the gpt-2 like architecture, actually it was tense, the rust rewrite for it made my mind want explode, but yeah I rewrote it and now it’s here. the training and inference are the next goal.

0
0
10
Open comments for this post

1h 6m 14s logged

DevLog#2 — Implemented the Autograd for rs-gpt, it took a while trying to find a way to implement the original python code to rust, but once I figured out (inspired from stochastical/microgpt-rs implementation) everything became easy.

0
0
4
Open comments for this post

31m 24s logged

DevLog#1 — Implemented the dataset function. Currently, it reads the input.txt and randomize it into a list, I didn’t check for the file existence, but I will fix that in the future.

0
0
31
Open comments for this post

5h 34m 3s logged

DevLog #7 — I have added hash map in Zod. Also added hash built-in functions like insert(), remove(), contains(), keys(), vals(). NOTE: The hash map is randomized due to Go maps logic.

0
0
23
Open comments for this post

3h 26m 48s logged

DevLog #6 — Zod finally has built-in functions, not many, but still good. Zod has len(), println(), printf(), input(), int(), string(), and type(). Also I have added string datatype, for-loop, and a loop {} statement like in Rust. Zod is becoming better day after day and I hope it become a great small language.

0
0
9
Open comments for this post

4h 2m 9s logged

DevLog #5 — Zod is finally functional. After I have built the evaluator and added it to the REPL, Zod became a fully function language, Its not a full language, but its still functional. I still have to add more datatypes and built-in functions since it only has integers and boolean, and no built-in function . Zod is becoming a programming language day after day and I think the of its becoming a programming language is near.

0
0
20
Open comments for this post

3h 19m 21s logged

DevLog #4 — I have added FunctionLiteral, CallExpressions, and IfExpressions. Also, updated the REPL with the parser. Now, I will start working on the Evaluation.

0
0
5
Open comments for this post

7h 38m 43s logged

DevLog #3 –– Today I made significant progress on Zod’s parser. The parser can now handle: Let statements, Assignment statements, Return statements, Infix expressions, Prefix expressions, and Boolean literals. There’s still plenty of work to do, but the parser is taking shape and the language is starting to feel real. My goal with Zod remains the same: to create a programming language that puts learning first while still being capable of building interesting and practical projects.

0
0
4
Loading more…

Followers

Loading…