Computer Has One Instruction, Many Transistors

There’s always some debate around what style of architecture is best for certain computing applications, with some on the RISC side citing performance per watt and some on the CISC side citing performance per line of code. But when looking at instruction sets it’s actually possible to eliminate every instruction except one and still have a working, Turing-complete computer. This instruction is called subleq or “subtract and branch if less-than or equal to zero“. [Michael] has built a computer that does this out of discrete components from scratch.

We’ll save a lot of the details of the computer science for [Michael] or others to explain, but at its core this is a computer running with a 1 kHz clock with around 700 transistors total. Since the goal of a single-instruction computer like this is simplicity, the tradeoff is that many more instructions need to be executed for equivalent operations. For this computer it takes six clock cycles to execute one instruction, for a total of about 170 instructions per second. [Michael] also created an assembler for this computer, so with an LCD screen connected and mapped to memory he can write and execute a simple “hello world” program just like any other computer.

[Michael] does note that since he was building this from Logisim directly he doesn’t have a circuit schematic, but due to some intermittent wiring issues might have something in the future if he decides to make PCBs for this instead of using wire on a cardboard substrate. There’s plenty of other information on his GitHub page though. It’s a unique project that gets to the core of what’s truly needed for a working computer. There are a few programming languages out there that are built on a similar idea.

Continue reading “Computer Has One Instruction, Many Transistors”

Big Chemistry: Cement And Concrete

Not too long ago, I was searching for ideas for the next installment of the “Big Chemistry” series when I found an article that discussed the world’s most-produced chemicals. It was an interesting article, right up my alley, and helpfully contained a top-ten list that I could use as a crib sheet for future articles, at least for the ones I hadn’t covered already, like the Haber-Bosch process for ammonia.

Number one on the list surprised me, though: sulfuric acid. The article stated that it was far and away the most produced chemical in the world, with 36 million tons produced every year in the United States alone, out of something like 265 million tons a year globally. It’s used in a vast number of industrial processes, and pretty much everywhere you need something cleaned or dissolved or oxidized, you’ll find sulfuric acid.

Staggering numbers, to be sure, but is it really the most produced chemical on Earth? I’d argue not by a long shot, when there’s a chemical that we make 4.4 billion tons of every year: Portland cement. It might not seem like a chemical in the traditional sense of the word, but once you get a look at what it takes to make the stuff, how finely tuned it can be for specific uses, and how when mixed with sand, gravel, and water it becomes the stuff that holds our world together, you might agree that cement and concrete fit the bill of “Big Chemistry.”

Continue reading “Big Chemistry: Cement And Concrete”

Retro Computer Goes Back To The 1950s

When thinking of retrocomputing, many of us will imagine machines such as the Commodore 64 or Apple II. These computers were very popular and have plenty of parts and documentation available. Fewer will go back to the Intel 8008 or even 4004 era which were the first integrated circuit chips commercially available. But before even those transistor-based computers is a retrocomputing era rarely touched on: the era of programmable vacuum tube machines. [Mike] has gone back to the 1950s with this computer which uses vacuum tubes instead of transistors.

The computer has an eight-bit architecture and features most of the components of any modern transistor-based computer of similar computational ability. Memory, I/O, an arithmetic logic unit including a carry bit that allows it to do 16-bit arithmetic, are all implemented using 6N3P dual triode tubes that date to the 50s and 60s and would have been used in similar computers like the IBM 700. All of this drives a flight simulator program or a Fibonacci number generator, demonstrating its general purpose computing capabilities.

Of course, tubes were generally phased out in favor of transistors largely due to their power and space requirements; [Mike] needs a stepladder to maintain this computer as well as around ten minutes each time he starts it up to allow the tubes to warm up, with each module needing over three amps of current each. It’s a hugely impressive build and we’d recommend checking out the video linked below to get more details on its operation. If you’re looking for something a little more accessible to get into the world of vacuum tubes, this single-board tube computer fits the bill.

Continue reading “Retro Computer Goes Back To The 1950s”

Startup Claims It Can Boost CPU Performance By 2-100X

Although Moore’s Law has slowed at bit as chip makers reach the physical limits of transistor size, researchers are having to look to other things other than cramming more transistors on a chip to increase CPU performance. ARM is having a bit of a moment by improving the performance-per-watt of many computing platforms, but some other ideas need to come to the forefront to make any big pushes in this area. This startup called Flow Computing claims it can improve modern CPUs by a significant amount with a slight change to their standard architecture.

It hopes to make these improvements by adding a parallel processing unit, which they call the “back end” to a more-or-less standard CPU, the “front end”. These two computing units would be on the same chip, with a shared bus allowing them to communicate extremely quickly with the front end able to rapidly offload tasks to the back end that are more inclined for parallel processing. Since the front end maintains essentially the same components as a modern CPU, the startup hopes to maintain backwards compatibility with existing software while allowing developers to optimize for use of the new parallel computing unit when needed.

While we’ll take a step back and refrain from claiming this is the future of computing until we see some results and maybe a prototype or two, the idea does show some promise and is similar to some ARM computers which have multiple cores optimized for different tasks, or other computers which offload non-graphics tasks to a GPU which is more optimized for processing parallel tasks. Even the Raspberry Pi is starting to take advantage of external GPUs for tasks like these.

Hackaday Links Column Banner

Hackaday Links: March 17, 2024

A friend of ours once described computers as “high-speed idiots.” It was true in the 80s, and it appears that even with the recent explosion in AI, all computers have managed to do is become faster. Proof of that can be found in a story about using ASCII art to trick a chatbot into giving away the store. As anyone who has played with ChatGPT or its moral equivalent for more than five minutes has learned, there are certain boundary conditions that the LLM’s creators lawyers have put in place to prevent discussion surrounding sensitive topics. Ask a chatbot to deliver specific instructions on building a nuclear bomb, for instance, and you’ll be rebuffed. Same with asking for help counterfeiting currency, and wisely so. But, by minimally obfuscating your question by rendering the word “COUNTERFEIT” in ASCII art and asking the chatbot to first decode the word, you can slip the verboten word into a how-to question and get pretty explicit instructions. Yes, you have to give painfully detailed instructions on parsing the ASCII art characters, but that’s a small price to pay for forbidden knowledge that you could easily find out yourself by other means.

Continue reading “Hackaday Links: March 17, 2024”

Absorbing Traffic Noise With Bricks Using Helmholtz Resonators

One inevitable aspect of cities and urban life in general is that it is noisy, with traffic being one of the main sources of noise pollution. Finding a way to attenuate especially the low-frequency noise of road traffic was the subject of [Joe Krcma]’s Masters Thesis, the results of which he gave a talk on at the Portland Maker Meetup Club after graduating from University College London. The chosen solution in his thesis are Helmholtz resonators, which are a kind of acoustic spring. Using a carefully selected opening into the cavity, frequencies can be filtered out, and extinguished inside the cavity.

Basic functionality and formula used to determine the dimensions of a Helmholtz Resonator.
Basic functionality and formula used to determine the dimensions of a Helmholtz Resonator.

As examples of existing uses of Helmholtz resonators in London, he points at the Queen Elizabeth Hall music venue, as well as the newly opened Queen Elizabeth Line and Paddington Station. For indoor applications there are a number of commercial offerings, but could this be applied to outdoor ceramics as well, to render urban environments into something approaching an oasis of peace and quiet?

For the research, [Joe]’s group developed a number of Helmholtz resonator designs and manufacturing methods, with [Joe] focusing on clay fired versions. For manufacturing, 3D printing of the clay was attempted, which didn’t work out too well. This was followed by slip casting, which allowed for the casting of regular rectangular bricks.

But after issues with making casting hollow bricks work, as well as the cracking of the bricks during firing in the kiln, the work of another student in the group inspired [Joe] to try a different approach. The result was a very uniquely shaped ‘brick’ that, when assembled into a wall, forms three Helmholtz resonators: inside it, as well as two within the space with other bricks. During trials, the bricks showed similar sound-deadening performance asĀ  foam and wood. He also made the shape available on Thingiverse, if you want to try printing or casting it yourself.

Continue reading “Absorbing Traffic Noise With Bricks Using Helmholtz Resonators”

Books You Should Read: David Macaulay’s Architecture Series

For a lot of us, there’s a bright line separating the books we enjoyed as children from the “real” books of our more mature years. We all eventually age out of the thin, brightly illustrated picture books we enjoyed in our youth, replacing them with thicker, wordier volumes with fewer and fewer illustrations, until they become so dense with information that footnotes and appendices are needed to convey all the information, and a well-written index is a vital necessity to make use of any of it.

Such books seem like a lot less fun than kids’ books, and they probably are, but most of us adjust to the change and accept the fact that the children’s section of the library doesn’t hold much that’ll interest us anymore. But not all the books that get a “JUV” label on their spines are created equal. Some are far more than picture books, even if the pictures are the main attraction. The books of British-born American author David Macaulay come to mind, particularly the books comprising his Architecture Series.

Macaulay’s books were enormously influential in developing my engineering sensibilities, and are still a pleasure to thumb through these many years later. I still learn something about the history of construction and engineering when I pull one of these books off the shelf, which makes them Books You Should Read.

Continue reading “Books You Should Read: David Macaulay’s Architecture Series”