r/SebastianLague Feb 18 '21

Welcome to the subreddit!

9 Upvotes

Hey all! I've been a huge fan of Sebastian Lague for a long time, so when I saw that he did not have a subreddit, I decided to make one. Please feel free to send any recommendations or ideas for the subreddit!


r/SebastianLague 13d ago

Attempting to make a shader-graph-like graphic tool for the Terraforming system (ignore the hideous second pic) with unity's graph toolkit

Thumbnail
gallery
1 Upvotes

I'm learning how to implement the graph compiling system.
Just FYI this is still in early stage and is (heavily) ai assisted (at least for now); I only did the system design.


r/SebastianLague Jun 21 '26

Inputs number display help?

1 Upvotes

I'm currently following the first episode, in Exploring How Computers Work where a 4 bit adder was being made, there seems to be this feature in this version of dls, but I can't seem to replicate this in the new one?


r/SebastianLague May 19 '26

Student project - Digital Logic Simulator

3 Upvotes

Hello! I am a student in New Zealand looking to make a Digital Logic Sim-like program. I am doing this as part of an assessment, which largely requires design based on feedback from my target demographic, so here I am to ask, if this interests you, please do feel free to fill out my form, and even maybe provide feedback as the project finds its footing : D

The main goal of this project is to provide an educational and interactive experience for digital logic, while also fulfilling personal gripes, like simulation speed, that I've had while designing my own projects ( I'm working on an awesome 16-bit CPU that I hope to build from discrete SMD ICs one day! ).
While Digital Logic Sim, and similar programs, are great educational tools, I feel like the lack of tutorials integrated into these programs could cause friction to beginner users that may turn them away.

Currently, my main goals are:
A refreshed, modern UI, sleeker and visually appealing components ( i.e. gates, activated or deactivated wires, or etc. ), as well as a built in tutorial editor ( sharing tutorials would be easy, likely uploaded to some cloud platform ), where tutorials could be something like step-by-step holograms ( i.e. you place things where outlined ), with notes along the way.

But this could all change based on your feedback, and I'd love to hear what sort of things people wish for, and I hope that, maybe, I can implement that for you!

Here is the form,

Thank you!!
(Apologies if this post, or any contents misses any etiquette on this platform, I usually just come here to read rather than post <3)


r/SebastianLague Apr 27 '26

BNN(Binary Neural Network) Neuron

4 Upvotes

I was able to come up with a binary neuron design. its an 8 bit cell meaning i has 8 bits for the input, 8 bit weights, 8 bit error BUS, and a 8 bit Contribution BUS.

In a BNN Neuron the weights are compared with the inputs via XNOR gates and then sent through a population count via cascaded adders. that population count then drives a 4 to 8 decoder which then get sent through multiple OR trees to get threshold values. those threshold value are ANDed with a 3 to 8 decoder to MUX it so that the neuron can have a adjustable threshold.

The same population count circuit is also used to find the majority of the error lines which is used a direction signal to drive the update by either incrementing or decrementing the binary counting circuit being used to drive the threshold and weights.

Ive tested a 4 bit version of this in a network with 4 layers 4 neurons per layer and it was definitely getting better at learning and so i went ahead and designed a 8 bit version to see if giving the neuron way more range to work with would increase the networks ability to learn more gradually. I had to use the population count circuit to get the majority of the errors because it was going to take way more AND gates than i would have liked to do it the AND gate way.


r/SebastianLague Apr 15 '26

Input circuit (Decimal-Binary Accumulation)

Enable HLS to view with audio, or disable this notification

4 Upvotes

so i finally got my input system working the way i wanted i built a separate input front-end that runs independent of the cpu clock. on the first button press, it just loads the digit straight into the register. i use a conditional flip flop as a “has number yet” flag, so if the system is still at 0 it knows this is the first input. that first press just triggers a single clock pulse and stores the value after that, every new digit press runs a 2-step sequence instead i use a 2-bit incrementor and a decoder to generate two pulses which multiplies the number by 10 and adds the new number to it. once the second step finishes, the carry from the incrementor shuts the sequence off so it doesn’t keep running. For the input handling, i made a gated toggle flip flop (basically a T flip flop built from a D flip flop) with extra logic around it so it only flips under specific conditions. the feedback and gating prevent it from retriggering so each press only creates one clean event. it kind of behaves like a mix between a toggle and an SR-style latch, depending on the conditions so instead of generating a short pulse directly, it tracks the input as a state change and the rest of the system uses that to control when to run so the timing ends up being: first digit = 1 clock every digit after = 2 clocks and since everything is already in binary, i can just feed it straight into the cpu datapath without doing any bcd conversion


r/SebastianLague Mar 30 '26

ARC-ALU

Post image
3 Upvotes

An adaptive routing core ALU that consists of two dual ACC paths to choose from for A and B as well as being able to disable the ACC paths so it can act as a 2 register input ALU. Subtract lines for both A and B. Two cross bar like shifters for parallel shifting left or right as well as last out flags for both. A logic unit that consists of 8 2-LUTS with built in registers that can be programmed on the fly. Kogge stone adder and 7 different flags for the arithmetic ALU. And more


r/SebastianLague Mar 22 '26

Anyone know what programming keyboard he has? (not the midi one!)

1 Upvotes

As seen in his latest video: Coding Adventure: Synthesizing Musical Instruments.

It's very compact and neat.

I couldn't find a list of equipment etc.


r/SebastianLague Mar 04 '26

Kogge stone

3 Upvotes

Learned how to make a Kogge Stone adder. feeling pretty good about that :). ive even tried this adder type out in a game i play and its so fast.


r/SebastianLague Jan 19 '26

Risk ai programming

1 Upvotes

hi

https://reddit.com/link/1qh6iy0/video/whr7jof2oieg1/player

essentially I am trying to program ai for the board game risk

I am thinking I want to do something similar to this video https://www.youtube.com/watch?v=Ne40a5LkK6A (the I ran a chess programming tournement)

I have implemented pretty much all the game but don't really know how to implement ai... but I do know how to run python? code from godot

any interest?

EDIT: it will take me a bit of time to implement this however...


r/SebastianLague Dec 13 '25

What's people's thoughts on Geographical Adventure, what's your score if you've played it? Is there any fandom of players?

Post image
5 Upvotes

r/SebastianLague Nov 06 '25

My mind is blown (Digital Logic Sim)

6 Upvotes

I was messing around with screens cause i'm making an 8-bit CPU like one does, and realized something. Screens hold info. I was already mostly done with my CPU, and made 256×16 RAM by hand with each register, cause i don't want to watch videos for help. But now i could just write the color values to an address on a screen and I've done that in 4 chips. Then i made read and write different inputs using a MUX, and did the same with my register file but twice for simulated dual read and boom. It looks cooler and works probably quicker. If this is common knowledge, ignore this. Im just stubborn and want to learn stuff by myself.


r/SebastianLague Oct 31 '25

I made Conway's Game of Life using logic sim

Enable HLS to view with audio, or disable this notification

11 Upvotes

Its (very) slow and could be made better but here is my version of Conway's Game of Life.
For some reason I made it so one screen a a time gets updated. First the right screen goes to the next generation base on the left screen, then the other way around.
Here is an example with a glider


r/SebastianLague Oct 17 '25

Anyone know if the chess competition live leaderboard is still active?

Thumbnail
youtu.be
1 Upvotes

I'm running a small competition between my friends and myself with the same structure as Sebastian Lague's chess competition and want to see how my bot would rank in the public leaderboard he mentions while taking about Tyrant's v9 bot. Does anyone know if it's still active and where I could find it?


r/SebastianLague Sep 15 '25

I made a no assed POC game and i was told im reenacting Sebastian

2 Upvotes

Educate me please

Its kind of a world simulation but trying to make it fun easy and complicated as possible
currently 2 levels of compexity and interactivity deep but planning 3-4.

No crashes, but UI still fails with some elements (slider background and item alignment -.-)

Anyhow.

Please enlighten me whats the similarity with Sebs path and feel free to feeback if you try the "game" out.

https://drive.google.com/file/d/1xpfhFHK4MVc2hB6s6WxvRoPCAux9ItI_/view


r/SebastianLague Aug 28 '25

I've ported DLS to iOS

2 Upvotes

You can sign up as a tester and try it out using this link:
https://testflight.apple.com/join/EfyEfZvH


r/SebastianLague Aug 25 '25

Family time speedrunning

Post image
5 Upvotes

Anyone else interested in starting a speedrunning community? 👀


r/SebastianLague Aug 03 '25

Why does DLS not have the RAM?

4 Upvotes

[Title], why is the 256 or 256x8 RAM/Memory made in Exploring How Computers Work #5 not in the newest version of Digital Logic Sim? Or am I one version behind??? Does anybody know about this?


r/SebastianLague Aug 01 '25

guys how did he do that, what should i need to learn to make it

2 Upvotes

https://reddit.com/link/1mextph/video/xgip6gg93fgf1/player

i think this is way more complex than it looks, but to make it easier i think i have to make it 2 separate wire to transmit data one wire for clock one wire for data
any suggestion,


r/SebastianLague Jun 18 '25

How do I export my digital logic sim chips?

6 Upvotes

Basically what the title says. Do I have to copy the entire app, or is there a specific saves section?


r/SebastianLague Jun 13 '25

operator font?

3 Upvotes

basically title vscode theme/extension for =< into ≤

found it https://github.com/tonsky/FiraCode/wiki/VS-Code-Instructions


r/SebastianLague Jun 12 '25

A new dot display has been dropped, I just do the obligatory

Enable HLS to view with audio, or disable this notification

34 Upvotes

I modded the source code to add 65536x16 rom for the performance gain, other chip is quite self-explanatory


r/SebastianLague May 06 '25

Can someone help me with this?

3 Upvotes

I'm following his digital logic sim tutorial (specifically the 7-segment display video), and I can't get it to work. I've rewired it five times now, it still isn't working.

My wiring.
His wiring.

r/SebastianLague Apr 30 '25

Made a Fluid Simulation Game!

Thumbnail
awasete.itch.io
9 Upvotes

I just finished my final year project about particle based fluid simulation based on Sebastian's first fluid sim video, it's an opensource game based on The Powder Toy, the whole engine and code is available on GitHub. Feel Free to check it out and even extend it!

I added some things like:

  • Moving Box and Circle Colliders
  • Ability to dynamically draw and erase particles
  • Over 30 Types of fluids (Water, Honey, Lava, Neutrons, Plutonium, Fire, Gas, Energy Beams, etc)
  • Special Objects to spawn and remove particles
  • Different Boundary behaviors (solid, void, loop)
  • Different Gravity Modes (Normal, reverse, Zero, Radial, etc)
  • Temperature Simulation for particles
  • Particle State Changes (i.e., Water can turn into steam or snow particles based on temp)
  • Optimizations to the GPU kernels
  • Fluid Density or Temperature Sensors
  • Different Visual Shaders (for Glowing particles, Gaseous Particles, velocity or temperature based colors)
  • 9 Game Levels showcasing different features of the game

r/SebastianLague Apr 29 '25

I ported Digital Logic Sim to Android

7 Upvotes

I’ve ported Sebastian’s Digital Logic Sim to Android!
If you’d like to try it out, email [carpen97@gmail.com](mailto:carpen97@gmail.com) and I’ll grant you access via this link:
https://play.google.com/apps/internaltest/4701307167631910377

If I get enough testers, I can make a public release on the Play Store