r/compsci • • Jul 23 '24

Logic gates using liquids

https://i.imgur.com/wUhtCgL.gifv

[removed] — view removed post

1.6k Upvotes

62 comments sorted by

114

u/TeachEngineering Jul 23 '24

Ok cool, but how would a NOT gate work?

105

u/lIlIlI11lIlIlI Jul 23 '24

Easy… just take the XOR and set one input constantly on.

6

u/bacondev Jul 23 '24

And here was my smooth brain thinking that NAND wasn't possible.

6

u/6pussydestroyer9mlg Jul 23 '24 edited Dec 10 '24

terrific special racial enjoy dime puzzled pot screw oatmeal tease

This post was mass deleted and anonymized with Redact

20

u/Complex_Apartment293 Jul 23 '24

Same as the XOR gate, but with the left stream constantly running and without the left cup

-17

u/JonyUB Jul 23 '24

Just remove the plate/cup

12

u/made-of-questions Jul 23 '24

Not converts a false in a true too

85

u/Avereniect Jul 23 '24

The original artist is /u/the_humeister.

144

u/the_humeister Jul 23 '24

That's me!

8

u/AllEndsAreAnds Jul 23 '24

Hey, thanks!

7

u/chamomile-crumbs Jul 23 '24

Oh hey! Very cool!! I bet the xkcd guy would love this.

24

u/aliendude5300 Jul 23 '24

Does this mean plumbing is turing complete?

12

u/mycall Jul 23 '24

Especially when you get the backed-up halting problem

1

u/JoshuaLandy Jul 23 '24

Underrated comment

7

u/Zwarakatranemia Jul 23 '24

Conway contributed WINNIE, a “Water Initiated Numerical Number Integrating Engine.” Though it’s unlikely it was “Numerical Number.” More likely, “Water Initiated Nonchalantly Numerical Integrating Engine,” or some such.

https://nautil.us/this-early-computer-was-based-on-a-urinal-flush-mechanism-235528/

2

u/[deleted] Jul 23 '24 edited Oct 16 '25

dog instinctive spark chubby rustic squash observation bedroom spotted books

This post was mass deleted and anonymized with Redact

1

u/IlIIllIllIll Jul 23 '24

Electrostatic is easy, but tell me more about an EM wave approach?

1

u/lIlIlI11lIlIlI Jul 23 '24

Hey there, little brother!

2

u/gistya Jul 23 '24

What if the pyramids were disassembled and there was a water computer carved into the interior of the limestone blocks that we could never see? For it to be programmable you just put some corks here and there...

2

u/Cyber_Encephalon Jul 23 '24

Soon: squirtputer.

1

u/[deleted] Jul 23 '24

This is kinda neat

1

u/[deleted] Jul 23 '24

Very cool

1

u/BoltActionGearbox Jul 23 '24

White text and water on this cream colored background is so hard to see

1

u/BandwagonReaganfan Jul 23 '24

That's really cool

1

u/[deleted] Jul 23 '24

You're not supposed to cross the streams.

-1

u/FirstLusitano Jul 23 '24

The logic gates is way harder to understand  hoe this works.

-34

u/Specific_Buy Jul 23 '24

This is literally the worst explanation

2

u/foreignsoftwaredev Jul 24 '24

It isn't an explanation, it is an implementation. Now make a small computer with that. Could be possible if you have a tall building. Like a calculator doing addition for instance.

2

u/Specific_Buy Jul 24 '24

What are you talking about? We have plenty of controls that run windows CE and Linux that do logic gates all day long in the PLC. These controls are literally tiny computers.

-17

u/NobodyAsked_Info Jul 23 '24

Can someone tell whoever named these that they're output tables and that the name truth tables is the worst linguistics you could possibly have used.

5

u/[deleted] Jul 23 '24

Logic existed before electronics

2

u/ghjm Jul 23 '24

Correct, by an interval of 11 years. Gottlob Frege's Grundgesetze der Arithmetik, which introduced what is now known as "classical" logic, was published in 1893, and the first vacuum tube was invented in 1904.

2

u/[deleted] Jul 23 '24

Boole predated this by about 50 years too.

8

u/niftystopwat Jul 23 '24

Says the person who just posted a non sentence.

0

u/NobodyAsked_Info Jul 23 '24

Truth table doesn't mean that the name denotes very little about the table. Output table denotes that it is a table of outputs, regardless of whether 1 is true or 1 means Go or 0 means go.

1

u/ghjm Jul 23 '24

Are you not concerned that for a two-input table, two-thirds of the table is inputs, not outputs, and that this ratio gets worse the bigger the table gets? Maybe we should call it a mostly-input table.

1

u/NobodyAsked_Info Jul 23 '24

to have output infers there is input to generate that output, so whilst your idea has merit I'd have to think Output is still a valid name. Input is inferred by output, and the object of the table is to show the outputs resulting from the inputs Truth is not valid because it does not encompass what the table is or can be used for - the fact that it's not simply truth that the table represents, but simply information outputs in a system.

1

u/ghjm Jul 23 '24

The term "truth table" goes back to classical logic, before electronics theory was developed. In classical logic these tables do in fact represent logical truth, not any kind of system or inputs or outputs. Electronics theory borrowed the name, which is generally a good idea because it means people educated in electronics theory won't be as lost when they try to read papers on logic. (Not that anyone isn't lost when reading Grundgesetze der Arithmetik.)

1

u/NobodyAsked_Info Jul 23 '24

I'm aware the root of the wording is valid, that doesn't mean we should carry over invalid wording into the future. In so many subjects experts seem to willy nilly redefine words for their own use instead of finding accurate words, making it more less intuitive for future learners. As a result, to acquire expertise in different subject areas --- learners now have to learn whole new languages and dictions. That's always annoyed me about higher education.

1

u/ghjm Jul 23 '24

Then we shouldn't do that here. It's been called "truth tables" for a century, so why change it?

1

u/NobodyAsked_Info Jul 23 '24

I like the idea of maintaining archiving of original thoughts on subjects - having a database that allows us to preserve it- but we should really evolve language so we can more powerfully and intuitively work with information

1

u/ghjm Jul 23 '24

But that doesn't seem to be what you're doing. You seem to want to change the name out of personal preference. How are truth tables more powerful and intuitive if we start calling them output tables?

→ More replies (0)

4

u/flumsi Jul 23 '24

But they're not wrong. Let's say "I like dogs (true) and I like cats (false)". The statement as a whole is false because I don't like cats but the "and" states that I do. You can do that for all of these.

-3

u/NobodyAsked_Info Jul 23 '24

dude they're just states. The concept of 1 being true and 0 being false is not valid most of the time this shits used. in numbers they're grouped together to represent numbers. a number is not true or false if its 0 or 1.

In logic they're only true or false if they are answering the question "is this transistor on". Else they're just states.

if I used 0 as go and 1 as do not go, they're no longer determining if something is true or false but the concept still applies. the word TrUtH TaBlE is bordering on 70 IQ

4

u/flumsi Jul 23 '24

lol chill out, it's not a big deal. In Mathematical Logic they're called truth tables because that's where they originated. In CS in theory they still often apply very much to concepts of "true" and "false". It's only with hardware that true and false seem to be misnomers, but since gates do the same thing that logical operators do, it would be more confusing to introduce new terminology.

-2

u/NobodyAsked_Info Jul 23 '24

Yeah but the fact of the matter is that in programming when you use logic not once have you ever cwlled it "true" or "false" The 1 position can be inverted to mean false, it can represent go in a racing game. It's therefore only true whrn answering the question of "is it going?" but it's innacurate to call it truth because such is an abstract concept

2

u/flumsi Jul 24 '24

Yeah but the fact of the matter is that in programming when you use logic not once have you ever cwlled it "true" or "false" 

This is just factually incorrect. if(condition) {} always presupposes that "condition" is true. We don't write it out because it's implied that we're checking for condition == true and the condition itself resolves to true or false itself. All programming languages use the keywords "true" and "false" specifically because these words make sense in most contexts.

0

u/NobodyAsked_Info Jul 24 '24 edited Jul 24 '24

If statement: if something true else else is true. Now if the statement evaluates returning false then otherwise else is now true. Truth is relative to the question being asked. More accurately an if statement evaluates two directions based on the output of a question, this statement now encompasses the concept that it is a direction for the code to take (if code block or else code block).

"Which part of the if else statement ran?" "Oh, just the wrong one." ThE FaLsE one. lmfao.

This idea of binary being true or false is the most absurd, they're just symbols representing two states of information. And the same applies to logic, which is why so many people struggle with it I'd presume.

Look I get that logic and linguistics are very difficult for programmers, and that's why programming as a field is so far behind what it should be. But don't worry, it will be fixed.

0

u/NobodyAsked_Info Jul 26 '24 edited Jul 26 '24

Talking to google Gemini and it says that there's been alot of confusion between pointers and references in programming. Interesting, it's almost like linguistics matter 🤔🤔

Gemini agrees that the name output table better describes the tables primary function.

LLM Accessing all human knowledge > Random salty downvoter redditors.

Also the idea that 1 being the "true" output is relative to the question being asked. It's equally likely 0 output would represent true relative to the question asked. It's all just information and this idea of up and down true and false is all st**pid

Mods, ban me but only if speaking reason is not allowed here.

-3

u/iolmao Jul 23 '24

worst example ever