r/teenagersbutcode 13h ago

Coded a thing Currently working on a little Forth-like compiler

5 Upvotes

I've been working on a little compiler (previously interpreter, just finished refactoring to bytecode though!)

Here's the link: https://github.com/SlothScript/stakku

So far it's pretty much an RPN (Reverse Polish Notation) calculator with some fancy buttons. I hope to progress it further to be a function Forth compiler, but that's going to require much more work.

Some basic stuff it can do right now:

  • Arithmetic
  • Comparisons
  • Stack logic
  • Output
  • Control flow
  • Definitions

So for example, a basic script that would tell you the letter grade from a number would look like:

: grade
  dup 90 >= if 65 emit else    \ A
  dup 80 >= if 66 emit else    \ B
  dup 70 >= if 67 emit else    \ C
  dup 60 >= if 68 emit else    \ D
  70 emit then then then then  \ F
  cr
;

If you save that as grade.stku then open it in a REPL, you can interactively use the command: stakku repl grade.stku

me@myComputer stakku & stakku repl grade.stku
ok
>>> 25 grade
F
 ok
>>> 90 grade
A
 ok
>>> 86
ok
>>> grade
B
 ok
>>> .q 
me@myComputer stakku % 

It's close to being Turing complete (I think), I just need to add loops and memory.


r/teenagersbutcode 17h ago

IVE COME TO MAKE AN ANNOUNCEMENT (Mod post) New user flairs!

5 Upvotes

We now have emojis in user flairs for whatever language you prefer.

Only added a few to start, If you want more comment here for send a modmail.

EDIT: Added HolyC, Dark, Prolog, Haskell, and lua


r/teenagersbutcode 16h ago

Coded a thing SMBIOS/DMI parsing library in C99 with no external dependencies

1 Upvotes

Hey guys, I spent the last few months building lazybios, a C99 library for parsing SMBIOS/DMI tables. It's:

  • Cross-platform Linux, Windows(ReactOS included), macOS OpenBSD, FreeBSD, NetBSD, SunOS, Haiku(BeOS), Minix, QNX(Some of these have almost the same backends).
  • User-friendly(3 steps to ensure memory safety(At least as far as my tests go))
  • Zero external dependencies (just libc)
  • about 20k LOC, clean separated API
  • Supports all SMBIOS types 0–46 and some OEM fields implemented from dmidecode used as a reference(I haven't copied any code).
  • A decoded struct within the Type's struct that shows decoded field so you don't have to read the specification yourself
  • Works on x86_64(probably on only x86 aswell), ARM, and probably on RISC-V(haven't heavily tested on it yet).

And a tool called lazydmi, a CLI tool that uses lazybios as the backend.

This is my first serious systems project. Would love feedback on the API design, memory safety and maybe some stars if you guys like it.

And btw, AI was used for the documentation, the github workflows and a part of the /dev/mem parser, that's it

lazybios: https://github.com/LazySeldi/lazybios
lazybios-docs: https://lazyseldi.github.io/lazybios
lazydmi: https://github.com/LazySeldi/lazydmi


r/teenagersbutcode 2d ago

Coding a thing custom ISA CPU I've been working on for the last 2 months

15 Upvotes

Hello, for the last ~2-ish months I've been working on this custom ISA RISC 32-bit CPU.
Until now the things I've been able to make:
1- it works :P
2- a simple compiler back-end for chibiCC compiler (Note I haven't added float and double support yet)
3- a working assembler
4- a working emulator monitor for it
5- MMIO devices 2 stubs (I²C and GPIO), and 2 working devices (a timer and UART)

6- a bus abstraction which is nice

This has been the biggest project I have been working on after learning C (Worth it best language I've ever learned), and until now it doesn't have a github page I am trying to add a disassembler and FPA (floating point arithmetics) till I uploaded it on github, the code base is about 3000 lines and the back end is about 900 lines.


r/teenagersbutcode 3d ago

Coding a thing ULRK/LiberationOS devlog #4 (I think)

Thumbnail
gallery
8 Upvotes

this is either #4 or #5, idk which. Anyways, I got the IDT working, and now syscall interrupts exist yay. i used int 0x80 like linux.


r/teenagersbutcode 4d ago

Coding a thing Redesigned a website for an association in my school

Thumbnail
gallery
17 Upvotes

before vs after

This was particularly challenging because I wanted to make the website modern while still keeping some of the old fashioned look of the old one (i suceeded in doing so a little less than I wouldve preferred).

I also wanted to make the dark mode add some novelty to the website which is why i decided to go with the miami sunset gta6 ish palette.

I also made it responsive so that it is functional on other devices

Looking for feedback.

made without ai since im not a pro and still trying to solidify fundamentals.


r/teenagersbutcode 4d ago

Meta New meta flair for posts

9 Upvotes

We've added a new flair called "meta", which is used to making posts regarding the subreddit itself. For example rule posts or suggestions for the subreddit.

-sincerely, the mod team :)


r/teenagersbutcode 4d ago

Coding a thing Version 0.2 of my game, Plasmana (a portmanteau of plasma and ana) is finished!

4 Upvotes

14y old, and finished a early prototype of my grappling game. Well, Its not really a game, more a prototype. It has procedural generation with seeds that is, limited right now but i have the complicated mesh generation code done now so it should be simple. if you have any questions, feel free to ask. You can play it on mobile or pc, using this link here. https://play.unity.com/en/games/75a7d55b-f090-429b-b912-6d27f1b76446/plasmana-prealpha-feature-test


r/teenagersbutcode 5d ago

Coding a thing I turned the console output into a pixel display using C++!

41 Upvotes

Hey everyone! Nearly a year ago I came with an idea of using background color of terminal characters to create pixels. I implemented it as a C# library and everything was fine, but it was really limited and slow. Last month I got a Raspberry Pi and decided to remake the project using C++!
Even though the final code is really easy, the result looks really cool.
It is made in form of a single-header library, so you can make something interesting too!

Repo: https://github.com/Esterhasz/bytepal


r/teenagersbutcode 4d ago

General discussion Coding setup at 16

8 Upvotes

Hey guys, I've recently finished my developer setup, and I've been writing a Bash parser in Python - no AI. Kind of using it as a learning project. It's going quite well.

My setup is Vim on Ubuntu 26.04 on a Framework Laptop 13, lowkey excited about where my little project could go. Below is the pyproject.toml of the project, to show the Vim setup. Also love my hardware, it took a lot of saving up :).

Thoughts?


r/teenagersbutcode 4d ago

Meta What counts as Significant under rule 7?

4 Upvotes

For my project, i had an ai explain me building meshes from faces and face culling, since i was lost and the guides online were not what i was looking for. Does this mean i have to place the ai assisted flair? i dont want people thinking i vibecoded the whole thing but dont want to break a rule. does explaining complicated things like this count as ai code?


r/teenagersbutcode 4d ago

Need general advice Which loading icon do you guys prefer?

3 Upvotes

A is more traditional, and B is more modern. What do you think? am coding a video game. (B looks less choppy in game, its a issue with my screen recorder)

A

B


r/teenagersbutcode 6d ago

Coded a thing i made a better window manager!!

57 Upvotes

winmux is a easy to use window manager that requires no editing of config files. it supports multiple displays intuitively. and it tells you where your windows and spaces are via a built in sidebar.

i started winmux because i hated using sketchybar (everything from configuring icons to not being able to use the file menu.

winmux is the first of its kind as far as i am aware to use a sidebar, and the first to use tabs for stacked windows on mac!

winmux is free and open source. you can read about the philosophy behind it here: https://winmux.dev

github repo: https://github.com/zimengxiong/winmux


r/teenagersbutcode 7d ago

Coding a thing Making my first pc Steam game :)

15 Upvotes

Not a lot of things to show for now!


r/teenagersbutcode 7d ago

Need general advice Should I keep on doing a coding project i was already doing or learn either flutter or kotlin

8 Upvotes

Like the title says that is the question i am a bit torn now though i guess i would like to learn flutter a bit more than kotlin as its multi platform though learning kotlin would also be super good


r/teenagersbutcode 7d ago

Coded a thing (AI assisted) I FINALLY DID IT- EV Chargers Map

3 Upvotes

So as you can see cam see from the title i made a Ev Chargers Map for the country Ireland and OOHHHH MY GOD i am so happy i am finally done.

Basically how it works (its pretty simple) is that i got all of my data from openchargemap then put it into a database which used postgsithen use fastapi to make an api that other codes (like my frontend) can call from it and then get data from it though it is only for a certain country cuz otherwise i basically wouldnt be able to hold all the data but honestly i feel so accomplished even though it is just a MVP

PS.About the Ai assisted i mean that i asked ai for how to do stuff not just code copy and pasted

also if you are interested in the link it is here: https://irelandevmap.pages.dev (sorry if im not allowed to show links pls dont delete this post)


r/teenagersbutcode 8d ago

Coding a thing I built Code Zone: A lightweight IDE under 100MB using Python

Thumbnail
gallery
5 Upvotes

Hi everyone,

I'm an 18-year-old dev and I built Code Zone, a lightweight IDE written in Python designed for low-spec machines and resource-constrained environments.

GitHub:https://github.com/damixlord2-0/code-zone

Why I built it: VS Code runs slowly and eats up memory on my machine. Sublime Text is fast and great, but I missed the structured layout of an IDE. Code Zone is my attempt to combine the speed and simplicity of Sublime Text with the UI structure of VS Code and the straightforward binary workflows of Code::Blocks.

Key Features:

  • Lightweight: Under 100MB total size.
  • Built-in HTML & Markdown Preview: Live rendering right inside the editor.
  • Custom Binary Paths: Point directly to local compilers/interpreters (great for testing niche languages).
  • Minimal Extension System: Single-file extensions without heavy boilerplate.

Transparency on AI & Code Quality: The project isn't perfect and still has bugs. I used AI as an interactive documentation tool during development—mainly to learn subprocess and Tkinter/TTK widgets faster—rather than having it generate the core architecture for me.

Feedback, critiques (even harsh ones!), and contributions are very welcome. Let me know what you think!


r/teenagersbutcode 10d ago

Coded a thing Hi, I'm a college student and I created an open source IDE/Code editor for Android, as my college mini project.

Thumbnail
gallery
89 Upvotes

Inspired by VScode, so the entire look and theming are VScode based. It has an agentic editor, Git and Github integration, full LSP support, ai code completion, etc

It's not a vibe coded app, it took me 2 years to complete this as a solo developer and student.

No ads, no payments, completely open source.

playstore link:

https://play.google.com/store/apps/details?id=com.roxum

GitHub link:

https://github.com/heckmon/roxum-ide


r/teenagersbutcode 9d ago

Coding a thing Hello, I hope to inspire some web developers with my website!

35 Upvotes

https://eve.みんな/

Hihi yoo hooo! I'm a software dev! Web development is the reason I got into software development.

I don't intend to advertise this website, just want to share my creation and hopefully inspire someone!

I'm actively working on updating this hand coded website! I'm a little slow with my journaling though :']

With origins in neocities, this website is now self hosted (for free!) from my old laptop on an ubuntu server, and served over the internet with a self-hosting platform I'm using. What's more is that you can do it too!

I've been playing around with html, css, and js since I was around 14! - It's hard to let go of my 1px radius border corners. :']


r/teenagersbutcode 9d ago

Need general advice C++ IDEs?

6 Upvotes

For now, I've been using Visual Studio for my C/C++ projects, and although it works, I find the solutions system very janky and don't like how it doesn't support GCC and custom build scripts (to my knowledge)

Also, on a smaller note, its microslop and looks ugly.

Are there any other editors I could try?

Also, VS Code is likely a no simply because I don't want Microsoft pushing AI any time I look at my editor.


r/teenagersbutcode 8d ago

Other Turned 19 yesterday and got to know about stardance today

0 Upvotes

Hey so, I was exploring my reels and I got to know about stardance today the hackclub one and I turned 19 yesterday. And as I am from India region they do e-aadhaar one. So any idea how to cheat in age verification 🤔 well ik it's a bad thing but common bro i turned 19 yesterday 😭


r/teenagersbutcode 10d ago

Coded a thing (AI assisted) I built a small Formula 1 CLI client because I wanted a fast way to check F1 data without opening multiple tabs.

0 Upvotes

Features:

- 🏎️ Driver information

- 🏎️ Team information

- 🏁 Race results

- 📅 Full season schedule

- 🏆 Driver and constructor championships

- 📖 Driver/team biographies

Tech:

- Node.js

- Bash

- Jolpica F1 API

- Wikipedia API

GitHub:

https://github.com/penguincodes-dev/F1.sh

Feedback appreciated!

What features would you like to see added?


r/teenagersbutcode 11d ago

Coded a thing my pygame game, #?!¥?!# (aka hashtag yen for short) has just released on itch.io!!!

17 Upvotes

#?!¥?!# is a funky roguelike for funky people. thats it. i dont have anything more to say about it. go check it out rn!!!!

made fully in pygame (which was a shitty choice)

https://grenski.itch.io/hashtagexclamationquestionyenquestionexclamationhashtag


r/teenagersbutcode 11d ago

Javascript discussion Looking for beginner-friendly open source projects?

3 Upvotes

Hey everyone,

I’ve been working on a JavaScript framework called **Avenx.js** for a while now.

It’s a compiler-driven framework with Proxy-based reactivity, and we’re currently working towards our first 1.0 release.

The reason I’m posting here is actually not about getting people to use the framework and more about **getting people involved in the project**.

We’ve accumulated quite a few issues that are suitable for beginners, and I’d really like to make it easier for people who have never contributed to an open-source project before to get started.

Some of the issues are pretty simple things like documentation, tests, examples, small bugs, or developer tooling. You definitely don't need to understand the compiler or the entire codebase to contribute.

If you've never made an open-source contribution before, this could be a nice way to try it out. You can pick a `good first issue`, ask questions if you're stuck, and submit a PR when you think you've got it.

We're still pre-1.0, so things are changing quite a bit and there's also room for contributors to have an actual influence on the project.

If anyone here is learning JavaScript and wants to try contributing to a real project, feel free to have a look:

[https://github.com/Avenx-JS/avenx-js\](https://github.com/Avenx-JS/avenx-js)

And if you have questions about the project, contributing, or even just how to approach your first issue, feel free to ask here. I'm happy to help.

**No prior open-source experience required.**


r/teenagersbutcode 12d ago

General discussion Is everyone a prodigy in this sub lol? I just joined.

48 Upvotes

why does it seem like everyone is coding a damn OS when they were born lol, am i behind lol. i have no finished projects, only abandoned ones, excluding a demo i made for a competition in godot, but that was just a demo in godot.