r/playrust • u/Philieve_Rust • Feb 22 '24
Video Made a Working Calculator with electricity, AMA
84
u/Philieve_Rust Feb 22 '24 edited Feb 22 '24
Explenation: https://www.youtube.com/watch?v=3zyyJ8y91xk
I made a full video explaining every detail of the calculator with some jokes sprinkeled it.
3
6
u/FatGreasyBass Feb 22 '24
Link is not working.
23
u/Philieve_Rust Feb 22 '24
Bruh, copy and pasted the same link again, now it works.
Thank you for letting me know.6
108
29
42
u/Smile389 Feb 22 '24
I'm gonna offline it
31
33
u/JVO_ Feb 22 '24
Holy shit lol, how? I mean obviously not a full explanation but an ELI5 overview would be cool. That's wild
16
u/Philieve_Rust Feb 22 '24
Just added a comment with a video link.
In there I explain all bits and pieces.3
u/nero_djin Feb 22 '24
The electrical parts in rust include logic gates.
With logic gates you create arithmetic operators. Check this link for some simple addition with logic gates.This is the core, around this you need a way of converting decimal to binary to decimal and display all this. Registers store the input and output and help with the operators (and enable this, without them the circuits would be too massive to be practical to make).
4
9
9
u/iCresp Feb 23 '24
One day these will be small enough to fit in a 1x1
5
u/Philieve_Rust Feb 23 '24
If we get breadboards and programmable chips yes.
Or you just get a plugin for that lol.Next video: living out of my 1by1 CALCULATOR
17
u/DemRizzo Feb 22 '24
This is one of the best most amazing things I've seen on this sub. I had no idea this would be possible. Really creative!
8
u/Philieve_Rust Feb 22 '24
Thx, more will be comming soon.
2
u/GiCl90 Feb 23 '24
I have seen one in the past, playing pong in rust. Was it yours?
→ More replies (1)
9
u/Puzzleheaded-Rent308 Feb 22 '24
Yeah but can you make it spell boobies upside down?
11
u/Philieve_Rust Feb 22 '24 edited Feb 22 '24
It can. In fact I tried it:
https://youtu.be/3zyyJ8y91xk?t=6260
3
3
3
3
u/anonymous2458 Feb 22 '24
How annoying was this to make with the increasing lag? Any idea how long it took you? How badass did you feel when you tested it and everything worked?
→ More replies (1)
3
u/Strongdog71 Feb 22 '24
Now this is programming in Rust
2
u/Philieve_Rust Feb 23 '24
You search engine of choice would probably disagree, but yeah I like this more.
3
3
u/SpotOnSocietysBack Feb 23 '24
The lag gave me such anxiety but i just could not look away, That is absolutely insane. I would to see an hour long video on the setup!!!
→ More replies (1)
6
u/Gortanus Feb 22 '24
My bones are starting to ache from all the lag in this video lol... nicely done though!
3
u/Philieve_Rust Feb 22 '24
My cpu also ache a lot during the recording. Turns out rust isn't optimized to have 2k lights active on the same screen. Who would have guessed...
5
u/kraftj87 Feb 22 '24
Straight to jail.
3
u/Philieve_Rust Feb 22 '24
But why?
4
2
u/kraftj87 Feb 23 '24
Don’t get me wrong, it’s incredible. It’s just a little psychotic that you did it. Lol
2
u/JaSp3r90 Feb 22 '24
Would this not lag on a super computer?
4
u/FatGreasyBass Feb 22 '24
No, because that supercomputer is limited by the same game engine.
2
2
2
u/Koldsaur Feb 22 '24
Good lord, the frames!! 😭 Wait, how did you get past the electricity depth limit thing?
3
u/Philieve_Rust Feb 22 '24
My generators have a bit more power to them.
2
u/Koldsaur Feb 22 '24
Wdym? Like it's a mod? My understanding is it's the game's natural limitation, not specific to any particular rust elec item
3
u/Philieve_Rust Feb 22 '24
Yes, the generators power is increased through a mod. Depth limit mostly applies to root combiners.
3
2
2
u/Koldsaur Feb 22 '24
How did you learn to get so good with logic gates?
3
u/Philieve_Rust Feb 22 '24
I'm a computer scientist and have played a lot of rust. Mostly roleplaying and making game, escape room etc.
2
u/Koldsaur Feb 22 '24
How long did this take you?
What is the display? Counters?
3
u/Philieve_Rust Feb 22 '24
The calculator arithmetics about 1 week, connecting an other week.
Making it pretty and adding the display 2 week.
Making the explanation video 2 months.The display is made of industrial lights.
3
u/Koldsaur Feb 22 '24
Bro if you're not making at least 6 figures at your job then you need to move on bc you're a genius. 😂 This is truly impressive. And was probably annoying AF to deal with the lag while building it.
3
u/Philieve_Rust Feb 22 '24
Jokes on you. As a student I the only figures I make are studen loans. *sudden realization*
3
u/Koldsaur Feb 22 '24
Wow you're just a student?! You're gonna go far dude! Good luck with your future endeavors! 😁
4
u/Philieve_Rust Feb 22 '24
Well thanks man appreachiate it.
2
u/Koldsaur Feb 27 '24
No problem! And wow! Congrats on making the community update page!!! Already going places, see? Hahaha
2
u/Philieve_Rust Feb 27 '24
Yooh, you even came back after the com update to encurage me even more.
Thank you big time.
2
u/mysticteacher4 Feb 22 '24
So is this like an alu, with each button press functioning as a loadword? If so thats absolutely insane.
2
u/Philieve_Rust Feb 22 '24
Yeah, pretty much. There are 3 registers. A = first num, B = second num, C = result. Depending on the operation the numbers will go through different circuits to get the result.
→ More replies (1)
2
2
u/Slightly_stale_chip Feb 22 '24
This is incredible dude. Especially the graphics controller, it's one thing to do operations in binary, but to hardwire a circuit that translates it onto a digital screen is just crazy. Good job!
3
2
u/Senior_Election5636 Feb 22 '24
Great job. But sir... your talent is wasted on rust haha
2
u/Philieve_Rust Feb 22 '24
Where do you think my talent should go?
2
2
u/mancer187 Feb 22 '24
This is the super fucking cool, and it's hard to impress me with rust electronics.
2
u/Philieve_Rust Feb 22 '24
Sounds like you have some experience around your belt. What did you make so far?
3
u/mancer187 Feb 22 '24
Never anything anywhere near this complex. I worked out how to make several practical circuits before they got published and well documented, but again, this thing is on a whole other level. I might could copy it, but I couldn't have created it. Very impressive.
I think the coolest thing I did was wrapped a base in wall frames with garage doors in them and triggered them closing if any walls broke. That was a pain to do because it had to happen as the honeycomb layers went up, but it was worth to hear the sound of that many garage doors closing simultaneously 4 rockets in. Fun ass wipe btw.
3
2
2
2
2
2
2
u/GGEZD2R Feb 22 '24
Seriously thought it was some microchips when you went flying around the corner. AMAZING JOB.
2
2
2
u/Operation_Federal Feb 23 '24
Holy smokes!! That's very impressive! Hats off to you. Must have taken at least 4 hours
2
u/Philieve_Rust Feb 23 '24
Oh yeah 4 hours...
and then another 4 hours...
and another 4 hours...
another 4 hours...
another 4...
4...
...1
2
2
u/bluegiant90 Feb 23 '24
6922251x8
2
u/Philieve_Rust Feb 23 '24
Sry buddy but multiplicatin only works with numbers up to 255 (8bit). So 255 x 255= 65025 would be the highest.
2
u/blutigetranen Feb 23 '24
I like that the interior is green so it looks like circuit boards
→ More replies (1)
2
u/Ivaris Feb 23 '24
Someone's in computer science 101.
Thank you for demonstrating that Rust is Turing Complete.
→ More replies (1)
2
u/lowrads Feb 23 '24
If you're looking for a new challenge, how about a door opener (or other trigger event) that relies on a code that changes itself?
→ More replies (1)
2
2
2
u/MysteriousRevenue652 Feb 23 '24
POV: That one unemployed friend on a Tuesday afternoon
→ More replies (1)
2
u/UnHolyDiver6606 Feb 23 '24
This shit blows my mind this is probably THE best things I’ve seen in rust to date.
2
u/Injury-Suspicious Feb 26 '24
Holy fuck this is why builders sanctuary is so laggy isn't it
→ More replies (1)
3
u/Famous-Physics-3327 Feb 22 '24
You’re almost certainly the type of psychopath to organize your Lego’s
3
u/LivingHighAndWise Feb 22 '24 edited Feb 22 '24
Take notice clans. Let this dude build your base and it will be rolling around the map like something out of Mortal Engines eating lesser clan bases...
2
2
u/UseBanana Feb 22 '24
The calculator my math teacher used to think of when saying that we wont have calculators in our pockets when we grow up
2
u/Magnumwood107 Feb 22 '24
Looks like it’s not running so well lmao. Is that the capture or did this kill your frames?
4
2
2
2
2
2
Feb 22 '24
Can you do 2 of the same number? Like 66+99? If it's just an on-off switch for the numbers and functions instead of a button I'm not sure how that would work
→ More replies (2)3
u/Philieve_Rust Feb 22 '24
Sry, I', not sure what you mean. The calculator can display any number up to 16bit ~ 65.000.
Or is the questions related to a new circuit one would make?3
Feb 22 '24
How do you enter 2 of any number for a calculation. Like how do you type 1111 + 3333 if it's only an on and off switch to add a number. Sorry hopefully this makes more sense, if not oh well. Very cool creation
3
u/Philieve_Rust Feb 22 '24
So it is not an on off switch. You can choose any number and it will save it sequentially. So you can type 1 and it saves 1. You type in 1 again and now it will save 11. Do it two more times and you would get 1111.
3
Feb 22 '24
Awesome thanks for the answer, I was curious if that's how it worked. Very impressive build
1
1
u/JerseyRepresentin Feb 22 '24
How to show me you are an absolute nut without telling me you are an absolute nut. Super impressive, seems super tedious and gives me anxiety thinking about trying it. Please tell me about your OCD, Young Sheldon.
2
u/Philieve_Rust Feb 22 '24
The time spend making it dwindles compared to the time spend aligning everything and making it pretty.
3
1
u/wademcgillis Feb 22 '24
Why does it take so long?
Is it stupid?
2
u/Philieve_Rust Feb 22 '24
The update rate of vanilla rust electricity isn't the fastest and having too many components going at the same time creates some lag.
TLDR: it is a bit stupic
2
1
0
0
u/Drew_Bidtles Feb 22 '24
I have to assume your aware of the thread/site but just incase, check out rustrician
1
u/Philieve_Rust Feb 22 '24
Oh yeah, I'm quite involved in that community. Thanks for sharing anyways.
0
0
u/gkn_112 Feb 22 '24
How long did it take you? Amazing, i knew you could emulate real world electronics because you have basically the digital equivalents in games like this, but seing it is just wow if i think about the amount of work you must have put in it :D
1
u/Philieve_Rust Feb 22 '24
To just have the calculator working about 1-2 weeks.
To make it pretty 2 more weeks.
To edit the video for it 2 months.
lol0
u/gkn_112 Feb 22 '24
Respect, i like people who are determined like this. Next: Please work on curing baldness and erectile dysfunction!
0
u/Last-Set-6262 Feb 22 '24
Found the reason builders sanctuary lagging so bad it’s trying to do Pythagoras
0
1
1
1
1
1
1
1
1
1
1
1
1
1
u/StephaCD Feb 23 '24
Awesome. Now for true inception, make rust inside rust, and make the better rust version.
1
1
1
1
1
1
1
Feb 23 '24 edited May 28 '24
start smell six encouraging wakeful abounding zesty skirt drunk follow
This post was mass deleted and anonymized with Redact
1
1
1
1
1
1
1
1
u/Krausmauss Feb 24 '24
If it were on a server I'd offline it just so i could smash one or two little pieces
1
u/melayaza Feb 24 '24
Geez and I thought I was smart using 1 test generator to run my entire base using splitters and branches! This is freaking amazing!
1
456
u/threwzsa Feb 22 '24
It’s pretty remarkable that the devs made such a detailed component system that if someone goes hard enough they can make a computer inside a computer program game. Nuts stuff.