News for hackers. Stuff that matters.
Re:/dev/zero has infinite electrons and /dev/null has an inf... by sgt on Monday June 04, 2012 @09:35AM (#4063895)
This is a typical Linus Akesson project. Highly eccentric, potentially useless for practical applications, and extremely intelligent. I certainly approve.
Re:/dev/zero has infinite electrons and /dev/null has an inf... by exDM69 on Monday June 04, 2012 @09:49AM (#4063958)
If someone is not familiar with the works of Mr. Åkesson, I suggest you check out his YouTube videos: http://www.youtube.com/user/lftkryo/videos

He likes playing Chiptune songs with eccentric DIY instruments.

Re:/dev/zero has infinite electrons and /dev/null has an inf... by sgt on Monday June 04, 2012 @10:30AM (#4064138)
My bad - Åkesson, not Akesson! I have one in my iTunes that sounds like regular piano music at first, then these chiptune sounds sneak in and strangely enough it all sounds harmonic and rather pleasant to listen to.
Re:/dev/zero has infinite electrons and /dev/null has an inf... by kolektiv on Monday June 04, 2012 @11:17AM (#4064334)
I can't help feeling that /dev/zero produces neutrons rather than electrons.
Re:/dev/zero has infinite electrons and /dev/null has an inf... by archangel_one on Monday June 04, 2012 @01:02PM (#4064806)
I see your point, but something producing a stream of neutrons sounds a bit like a self-sustaining nuclear reaction which might be tricky to manage as a device node :)
Re:/dev/zero has infinite electrons and /dev/null has an inf... by tectonic on Monday June 04, 2012 @04:57PM (#4065952)
"So there it is. We've been able to construct gates and flip flops using nothing but UNIX pipes and our small MOSFET tool. We may now proceed to design any digital circuits we want: Processors, memories, entire computers... The world is ours to conquer!

As long as we don't run out of PIDs."

Re:/dev/zero has infinite electrons and /dev/null has an inf... by caf on Tuesday June 05, 2012 @12:35AM (#4067337)
...or memory. Each logical zero is taking up 64k of kernel memory.
Re:/dev/zero has infinite electrons and /dev/null has an inf... by wwkeyboard on Monday June 04, 2012 @11:47PM (#4067213)
This reminds me of a problem we used to debate in college; on a perfectly efficient machine, would `cat /dev/random > /dev/null` violate the second law of thermodynamics?
Re:/dev/zero has infinite electrons and /dev/null has an inf... by garethadams on Tuesday June 05, 2012 @07:38AM (#4068227)
If you're violating the laws of physics in your assumption ("on a perfectly efficient machine") you can't expect them to hold for your hypothesis.
Re:/dev/zero has infinite electrons and /dev/null has an inf... by tlrobinson on Monday June 04, 2012 @01:10PM (#4064840)
Who needs VHDL when you have sh?
Re:/dev/zero has infinite electrons and /dev/null has an inf... by warmwaffles on Monday June 04, 2012 @11:51AM (#4064504)
I laughed when I read the title, this was a fun read
Re:/dev/zero has infinite electrons and /dev/null has an inf... by dbbolton on Tuesday June 05, 2012 @02:57AM (#4067673)
Tangential question: why does /dev/null have an md5sum but /dev/zero doesn't?
Re:/dev/zero has infinite electrons and /dev/null has an inf... by micaeked on Tuesday June 05, 2012 @03:16AM (#4067721)
i'm guessing because /dev/zero never stops
Re:/dev/zero has infinite electrons and /dev/null has an inf... by MidwestMuster on Monday June 04, 2012 @11:31AM (#4064406)
"If there is a NAND, people will build computers. I've seen that effect with Minecraft. But using unix pipes is just awesome, too :D" (first comment from post)
Re:/dev/zero has infinite electrons and /dev/null has an inf... by raverbashing on Monday June 04, 2012 @11:57AM (#4064536)
Yes, it's true, you can build a whole computer from NAND gates

Or NOR gates like this one: http://en.wikipedia.org/wiki/Apollo_Guidance_Computer#Design

Re:/dev/zero has infinite electrons and /dev/null has an inf... by gradschool on Monday June 04, 2012 @04:03PM (#4065679)
Wouldn't it be more accurate to say that you need NAND gates and a clock? Identifying a minimal set of primitive components necessary to implement a self-timed computer would be a more interesting problem.
Re:/dev/zero has infinite electrons and /dev/null has an inf... by raverbashing on Monday June 04, 2012 @05:16PM (#4066016)
You can build your clock using, guess what, NAND gates, one capacitor and one resistor (not a great clock source, still).

You also need a power source, so you can say the only digital component you need are NAND gates.

Re:/dev/zero has infinite electrons and /dev/null has an inf... by cdcarter on Monday June 04, 2012 @01:13PM (#4064853)
TECS (http://www1.idc.ac.il/tecs/) is a great book that leads you through that entire process, too!
Re:/dev/zero has infinite electrons and /dev/null has an inf... by vishvananda on Monday June 04, 2012 @05:43PM (#4066113)
Another great book along these lines is CODE, by charles petzold:

http://www.charlespetzold.com/code/

He starts with electricity and builds all the way up to modern computers. It isn't a hands on guide, but it is a very entertaining read.

Re:/dev/zero has infinite electrons and /dev/null has an inf... by Simucal on Monday June 04, 2012 @04:08PM (#4065698)
This is truly a great book and I can't recommend it enough. I've been working through the projects for the past couple weeks.

As the author states, it can be hard for CS students to see the forest for the trees among all the computing topics. I know that while I was learning these topics individually I never took the time to step back and really connect them.

With TECS you get to build each layer and define a an interface between them from logic gates to virtual machines, to compilers, to operating systems, etc. In the end you have a fully functioning computer that you have built from scratch. By removing all the "magic" from the system I feel like I have a much deeper understanding of these topics than I did before.

Re:/dev/zero has infinite electrons and /dev/null has an inf... by MasterScrat on Monday June 04, 2012 @04:51PM (#4065913)
Isn't an FPGA basically a bunch of NAND or NOR gates whose connections can be arranged as necessary?
Re:/dev/zero has infinite electrons and /dev/null has an inf... by rcfox on Monday June 04, 2012 @05:05PM (#4065976)
No, it's a bunch of registers to hold state and look-up tables that map to your logic. (http://en.wikipedia.org/wiki/Karnaugh_map)
Re:/dev/zero has infinite electrons and /dev/null has an inf... by truncate on Tuesday June 05, 2012 @08:11AM (#4068302)
Registers can be made by using a bunch of flip-flops, which are again made using NAND/NOR.