4 ms·
Just give me a simple CPU and some I/O ports
- jacquesm 17y agoThank you for that, that echoed my own thoughts better than I could have ever put them into words. My frustration with the amazing amounts of bloat that you have to deal with in order to do the simple stuff knows no boundary. A PIC chip has more power than the machines that made Apollo 11 possible, I wonder if with todays technology we'd be tempted to go for some 'high tech' solution and mess it up because of that. In the mid 80's I worked for a dutch artist on a project called 'SonoMatrix', a room full of speakers with a bunch of computer controlled tape recorders, amplifiers and channel switches attached to it. The whole thing ran of a beeb, the user & printer port. We designed the hardware, wrote the software (both the controller in 6502 assembler and the user interface) and built the whole thing. If I had to do that today I wouldn't even know where to begin...
- HeyLaughingBoy 17y agoYou'd get an old PC from your closet, install Linux (text only) and gcc and get the whole thing working in less time and for less cost, probably. ...at least that's what I'd do :-)
- abalashov 17y agoI've been having that exact thought for quite some time now. It seems that the art of programming - or at least, the practice of it, equivalent to "proficiency" or "competency" - has shifted from fundamentals of the machine and the language's intrinsic semantics, which allowed you to actually create something anew, to spending 90-95% of the time trying to figure out someone else's API. In other words, the real skill now is reading reference material, and trying to figure out how to fashion a bunch of opaque, prebuilt Lego blocks together. It's just no fun that way, and it relies on very different mental faculties than the ones present in fundamentals-based programming. Writing low-level backend processes in C may have taken a lot more work for boilerplate and nontrivial data primitive/data structure support, but it was real creation - using the actual power of the language to get something done. Now it's all about figuring out how the SynchronousIOGoatSoapBubbleVectorManagerFactory interacts with the SynchronousIOGoatSoapBubbleVectorReflectorParserTransformer.
- Retric 17y agoThere is still plenty of work to be done on impeded systems for sensors and other simple devices. Some of theses systems are powered by a watch battery for years, they might have more or less processing power than an apple II but far less ram which tends to limit code bloat. EX: A new 8 bit CPU from 2008: The triple clock enables the selection of the most suitable clock frequency from 32.768 kHz, 500 kHz, and 4 MHz according to the processing type, thus minimizing the operating current. These power-management functions help prolong battery life and reduce product size. ... RAM 2 KB (http://www.okisemi.com/en/866/869/000576.html http://www.okisemi.com/en/866/869/000576.html) And yes some people are really working on an 8 bit cpu at less than 40khz due to power limitations.
- rbanffy 17y agoDon't confuse powerful with power-hungry
- Retric 17y agoIt's just physics. For a given transistor, more transistors @ higher frequency = more power. At the ultra low end people are using processors that run using energy collected from stray radio waves. While a better design and instruction set help unlike desktop computing the standard is already lean.
- rbanffy 17y agoStill, accounting for the vast differences in process, I think a full 45nm Apple II could run on stray radio waves
- Retric 17y agoI don't know if anyone makes a 45 nm 8 bit cpu. Intel makes 8 bit chips, and has 45 nm and smaller fabs, but I don't the market is there yet. Still the original Apple II was 1Mhz, with 4kb of ram which is significantly faster and more powerful than many micro controllers in use today. For many solutions the power savings of sub 40khz speeds is still worth it so I don't think we are at the point where stray radio waves could power a system that fast.
- torpor 17y agoOne thing that I have found that helps with exactly this situation, and I have suffered it as well over the years, is to move your focus from one end of the spectrum to the other. That is, if you have to spend your daylight hours grokking another mans API, then spend a few hours in the evening, or during off-time, hacking on your own embedded project with the Arduino. I've got tons of projects around, all of them slowly making progress admittedly, with the purpose of getting me out of my funk .. I don't actually code my hobby projects for any other reason than to make my professional work (embedded systems for safety critical applications) a little more enjoyable. It sure is fun to dive into Android, for example, and get some context, and then another week spend some time with the AVR compiler.. then the Beagleboard, etc.
- yan 17y agoI can definitely relate. I'm building a monome(.org) clone with an Arduino and having a blast.
- cesare 17y agoI've felt exactly the same way in the last few years. A complete understanding of the whole system in every detail is not so necessary for me. I just want to focus on the things I'm trying to accomplish without the need to constantly lookup API documentations and writing glue code. That's why (for my own projects) I always end up making my own tools and coding almost all the stuff I need by myself. But our culture is going in the opposite direction (http://www.wisdomandwonder.com/link/2110/why-mit-switched-from-scheme-to-python http://www.wisdomandwonder.com/link/2110/why-mit-switched-fr...).
- deleted 17y ago[deleted]
- mhb 17y agoCPU built from 74 series TTL chips running web server: http://www.homebrewcpu.com/ http://www.homebrewcpu.com/
- jacquesm 17y agoyou ought to post that invidually, that's a really neat hack.
- mhb 17y agoDidn't get any love: http://news.ycombinator.com/item?id=741639 http://news.ycombinator.com/item?id=741639
- jacquesm 17y agoI think a big factor in that is when something gets posted and whether or not it gets traction immediately. If that doesn't happen it will be gone before someone notices. I completely missed it yesterday. The 'new' page gets filled up so fast sometimes it's not even funny. And that's when ignoring the spam. One thing that would help here is a minimum delay before the same user can post another link. Your comment here got more 'points' than the original posting.
- jgrahamc 17y agoI have reposted it here: http://news.ycombinator.com/item?id=743583 http://news.ycombinator.com/item?id=743583
- pmorici 17y agoMy opinion may be in the minority here but I think the crux of this article is misguided. It's like a farmer saying, "I long for the days before the combustion engine because I love planting 3 acres by hand". I also think the two basic premises of the article are just plain wrong. There are plenty of examples where people have written their own operating system from scratch for the x86, there have been articles posted on HN describing as much. So to say that todays processors are "to complex to understand" is just wrong. On the assertion that programming has devolved into "learning another man's APIs" that's just a fact of engineering I suspect the Z80 had a thick manual describing all of it's interfaces and inner workings. The AVR micro controllers I've worked with, the same ones on the Ardunio the author says is still "fun", have a manual that is over 320 pages long describing in effect the processor's API.
- jgrahamc 17y agoI disagree. That would the case if I were to say: "Please take away this Mac Pro and all the wonderful software because what I really want is a Z-80". I'm not saying that today's processors are too complex to understand, I'm saying that the software running in the machine in front of me is too complex. I wouldn't mind writing assembly code for a modern processor at all. But if we are talking about what's likely to make me happy, it's probably a relatively simple CPU, some I/O ports and a soldering iron. That's probably like the farmer wishing a had a kitchen garden and was growing enough food for himself.
- rbanffy 17y agoThat's precisely the feeling that drove me to free software - I wanted to regain some of the understanding of how the computer worked before Windows took it away from me. While I like to mention my much beloved Apple II, even a 8088 PC running DOS is somewhat understandable.
- Goladus 17y agoIt's quite probable that x86 processors are more complex than they need to be-- at least, the instruction set is more complicated than is necessary. CISC architectures are meant to make life easier for assembly language programmers, letting you do things like load, multiply and store in a single command. In practice that hasn't been all that valuable, because programmers just use higher level languages like C when they need that much expressive power. From a compiler perspective, it's easier (or at worst about the same) to generate code for RISC than CISC, and RISC has much more flexibility with regards to automatic optimization, pipelining, etc.
- Mintz 17y ago"Don was responsible for the LM P60's (Lunar Descent), while I was responsible for the LM P40's (which were) all other LM powered flight". Two men were able to write all that code and understand its operation. Is this probably why we don't use more advanced technology for space flight today; it's too complex? I've always wondered just how much more we could accomplish if we used modern computing technology in space shuttles, but if safety is of the utmost important, maybe the complexity is a bad thing?
- rbanffy 17y agoI like to trace a distinction between advanced technology and complicated technology. A 45nm AGC would be more advanced. An AGC running WindowsCE would just be more complicated.
- irrelative 17y agoI can no longer understand the computer I am forced to spend my days in the lonely struggle against an implacable and yet deterministic foe: another man's APIs. Having worked as an electrical engineer creating hardware, this seems strange. Obviously the computer designer had to create an API of some sort, even if they did it in transistors. Computers aren't given to us from above -- there are people creating them too.
- asciilifeform 17y agoThere is a fundamental difference between a hardware "API" and a software one. See http://www.loper-os.org/?p=37 http://www.loper-os.org/?p=37
- arakyd 17y agoIt's not a fundamental difference, it's a consequence of the fact that hardware people are at the bottom of a very big stack and have a massive financial incentive to be as solid and predictable as possible. Higher up the stack everyone prefers to use relatively cheap programmers and build stuff quickly. The problem is not having to deal with software APIs, the problem is the sheer size of the stack and the sheer number of accumulated assumptions that are built into it. Moving more pieces into hardware might improve the stack's overall integrity and reduce bugs, but it won't do much to reduce the size. The real issue, IMHO, is that no one wants to admit that the general reuse problem is hideously, horrifyingly difficult. The biggest problems it causes are diffuse and long term, and in the short term everyone can do things faster by hacking together their old code with someone else's 95% solution library, so that's what everyone does. Putting enough thought into each new application to really do it right tends to be hard to justify on a business level, and most programmers have neither the inclination nor the skill to do it anyway. It's so ingrained that even people who are frustrated with the way things are think that a different operating system or language would solve the problem. It wouldn't - it would only start the process again, with at best a percentage reduction in stack size and corresponding percentage increase in time to frustration. I think it boils down to the fact that code reuse is basically a 2^n problem, and the bigger and more opaque the stack gets the harder it is to cheat that 2^n. The only potential solution I've seen is what Chuck Moore is doing with Forth chips. He's now at the point where he can design and manufacture chips that are cheap and simple in design but are very good at running Forth very quickly. Of course the tradeoffs are (perhaps necessarily) as horrifying as the reuse problem in that it demands a lot more from programmers in general, and in particular requires them to learn a radically different way of doing things than they are used to while at the same time strongly discouraging reuse at the binary and source levels. In other words, he's spent decades designing a small core language and hardware to run it, and that's really all you should be reusing (along with data transfer protocols). Needless to say, no desktop or web or server programmer (or said programmer's boss or company) is ever going to go for this unless problems with reuse become far worse than they are now. (Even then the supply of cheap programmers might grow fast enough to keep masking the problem for a long time.) Most programmers are not very good, managers like it that way, and most of the smarter programmers are nibbling around the edges or looking for a silver bullet. In short, there are no easy solutions. If you don't like the direction software is going, think about becoming an embedded systems programmer.
- DanielBMarkham 17y agoI've felt this way for several years -- we've went from engineering to something more like witch doctor. The problem is, of course, that all abstractions are leaky, and we've piled abstraction after abstraction on top of the hardware. So it's not unusual to have four or five levels of stuff between you and the machine. Adding to that is the problem of multi-cores: it's not just one machine operating anymore. Each piece is deterministic, sure, but as all the pieces interoperate in real-time that determinism can be so hidden as to be effectively non-existent. Languages are going to be able to help to some degree, but at the end of the day machines are just going to keep getting more and more complex and our understanding of them shallower and shallower. It'll be interesting to see if there is a major hardware refactoring that takes place anytime soon. I imagine for AI to work we're going to need it.
- giardini 17y agoThere's always the language Forth.
- FraaJad 17y agoThat was my first thought too when I read the title. Chuck Moore's site is a good place to start - http://colorforth.org/ http://colorforth.org/
- wwalker3 17y agoI think the completely comprehensible system has always been an illusion. There's always some cutoff level below which people don't understand (or don't care to understand) the system they're working in. The old Apple 2 hackers had a great understanding of assembly, but that's because it was the top level of the system to them, the stuff they worked with daily. I doubt most of them understood the PLA that decoded the instructions, or the behavior of the dynamic NMOS logic inside the 6502. The 6502 instruction set was essentially the API of the processor, and it wasn't above reproach any more than current software APIs are. Many people wished for different addressing modes or additional instructions to simplify common coding tasks.
- limmeau 17y agoHowever, the relation between how much is there to know (increasing) and how much fits in a head (constant) is growing, which is sad, and whether it has ever been 1 seems rather unimportant to me.
- neilc 17y agoThe fact that the ratio continues to grow seems like a fundamental property of technology -- personally I don't find it sad. In exchange for more powerful tools, you inevitably need to accept more levels of abstraction and more underlying complexity.
- wwalker3 17y agoThe ratio of things we know to things we don't know is essentially zero. Thankfully that doesn't preclude us from dreaming big and accomplishing great things.
- scott_s 17y agoThe fact that a single person can understand a smaller percentage of the whole of a computer system indicates progress. There was a time when any given physicist probably had a good grasp on most of their field. I doubt that's still the case. I do sympathize with the romantic notion of knowing it all, but let's not confuse this notion with a call to action.
- joshu 17y agobeagleboard?
- brianobush 17y agoLove the article and like many others here enjoy the simple. I still have the pleasure of coding in C at work and my fun work is currently writting an app for the Nintendo DS. Truly simple system. While back I was interested in designing/constructing simple 4-bit cpu, here is one that was actually completed: http://www.vttoth.com/vicproc.htm http://www.vttoth.com/vicproc.htm
- billswift 17y agoOff-topic, but someone mentioned Forth chips in a comment here, and I have read about Lisp machines, and C is often referred to as high-level assembly language - has anyone tried making a computer that actually runs C or a strong subset of it as its actual assembler?