17 ms·
Low-Level Programming University – A roadmap to becoming a low-level programmer
- hackermailman 10y agoCS:APP 3rd version you can buy on Abe Books the global edition for $20, then follow this course and watch 'old videos' https://www.cs.cmu.edu/~213/schedule.html https://www.cs.cmu.edu/~213/schedule.html Everything in this style guide is covered in CS:APP https://matt.sh/howto-c https://matt.sh/howto-c There's also http://rust-class.org/ http://rust-class.org/ and https://www.nostarch.com/Rust https://www.nostarch.com/Rust
- itsmemattchung 10y agoCannot agree enough. I'm studying (at my own pace) the book, practicing the problems, and watching the lectures--I even downloaded the Panopto iPhone app to watch lectures while on the bus ride into work. The course is very rewarding: x86, memory systems, systems programming, linking, socket programming ... all packed in a single book, providing a holistic view of systems, from a programmers perspective.
- bogomipz 10y agoWow, what great links! Thanks. Also I had no idea No Starch had a Rust book.
- kod 10y agoThe No Starch book is just a print version of https://rust-lang.github.io/book/ https://rust-lang.github.io/book/
- bogomipz 10y agoOh I did not pick up on that, thanks. No Starch are pretty nice nice pressings though so might be worth it. Cheers.
- steveklabnik 10y agoOne of two authors here! Here's the situation: No Starch, being as awesome as they are, are totally happy with printing an open-source book. The Rust project wanted to do a second edition of the book for various reasons, so Carol and I have been doing that, but also, working with No Starch's editors. So they've been collaborating with us on it. It also means you can get a nicely laid out eBook, the paper copy, all of that. The proceeds are going to charity.
- LeeHwang 10y agoThis is great, but does any one have any gentler intros ? I'm trying to teach low-level programming to one of my junior devs. She graduated from a boot-camp school and is struggling a bit. EDIT: Thanks for the replies. Alot of good links.
- Diggie1225 10y agoI am taking a great coursera course on the very basics of a computer (uses a hardware simulator to build the chipsets necessary to build a computer). It is VERY intro-friendly and gentle, including teaching basic Boolean algebra. Also can be very hands on, which is what I really like about it. Might be a good fit! https://www.coursera.org/learn/build-a-computer/ https://www.coursera.org/learn/build-a-computer/
- tyingq 10y agoMaybe one of the beginner friendly microcontrollers would be an easier intro? Like an arduino kit (https://www.arduino.cc/ https://www.arduino.cc/) or ARM mbed (http://mbed.com/ http://mbed.com/). Either one is fairly low-level (C, or C like), but has plenty of beginner-friendly documentation. And if they progress beyond that, moving down to assembler is supported for both.
- vram22 10y agoNot sure if it exactly matches what you are looking for, but mentioning a few anyway, in case they are of help: - For concepts as well as execution, from the bottom up (hardware level etc.), I've read that nand2tetris is good. It gets mentioned once in a while here on HN. Check hn.algolia.com for threads about it. - any good book on assembly language programming. I've looked at Randall Hyde's book earlier, seemed good. There is also another which I think is good, by an American professor called Paul Carter, IIRC. Googling should find all of those and more.
- mtanski 10y agoThis is great list. My personal additional to the list would be "What Every Programmer Should Know About Memory" https://people.freebsd.org/~lstewart/articles/cpumemory.pdf https://people.freebsd.org/~lstewart/articles/cpumemory.pdf
- CliffyA 10y agoAs someone who can code in C/C++ and was recently looking for work, I don't think someone should learn low level programming for a career. What I would consider simple PHP jobs were easily paying more than C++ jobs. If you look at everyone reinventing the wheel in electron and not caring about performance I don't think the situation is going to get better anytime soon.
- Wazzymandias 10y agoThat's disappointing to hear but thank you for the honest response. I currently work in Ruby but my favorite language is C, I feel like it helped me become a better developer and improved my understanding of imperative languages. Sucks that something so useful is cast aside for something like PHP.
- cookiecaper 10y agoYeah, C/C++ is gradually becoming a lost art. Many game developers don't even bother with it anymore, instead just scripting out Unity.
- s_ngularity 10y agoI think that's probably true for indie game developers, but in the AAA space C++ is still king
- Optimal_Persona 10y agoC/C++ is not going away anytime soon in realtime audio DSP.
- myth_drannon 10y agoDepends on your location. Canada for example has very few embedded/hardware dev jobs vs. Israel were there is a huge amount of C/C++/Assembly jobs for the Aerospace/Military industry.
- bogomipz 10y agoCan I ask where you live? Maybe this was just the spot market at the time you were looking? That seems odd.
- chimtim 10y agoLow level programmer here. This is great but the job market for low level programmers is very small. Recently, while interviewing, I described a thread safe, concurrent queue implementation to a hiring manager and he asked me -- "so how does this relate to big data and ML"?
- taocp 10y agolow level programming knowledge is fundamental if you want to work with security research (software vulnerabilities, reverse engineering and exploits) and the job market at the moment is quite big.
- Arizhel 10y agoSure, if you want to work for the government or one of its contractors....
- busterarm 10y agoI wish there were a clearer path to transition to that kind of work from web/backend development. It's something I dabble in and think I'm getting quite good, but unless I start publishing/presenting, I don't obviously see it leading to paid work. I have a lot of long-time friends in InfoSec but don't really want to exploit those connections to look for work (yet).
- mentalpiracy 10y agoIf not for employment opportunities, you should be (gently) exploiting these connections for educational value. They're in the industry and have likely seen examples of colleagues transitioning in from web/backend development. At the very least, they can easily tell you what mistakes to avoid. I often have the same mindset you do about exploiting connections, and although it's been a struggle for me to change my habits, using people as educational outlets has been something that I've found to be extremely helpful to me personally and also often enhances my relationship with that individual as well.
- dbancajas 10y ago
- clavalle 10y agoI was having a conversation with a friend working on high volume data problems and was surprised just how low level he has to get in order to meet some very stringent but necessary requirements. I've worked at a high level for so long that I've forgotten how much low level work I take for granted.
- 0xFFC 10y agoAbout career, is low level programming job market that small we see in this threads comments ? I want to be C/C++/Rust programmer. This is quite frightening.
- GoToRO 10y agoAutomotive, oil, gas, military and so on. These are the industries that hire C/C++ developers. Of course, if none of it opened shop in you city, bad luck.
- AnimalMuppet 10y agoEmbedded systems and the Internet of Things need a lot of low-level programming. It's a small job market compared to programming as a whole, but it's not shrinking, and it pays better than web programming.
- pdelbarba 10y agoIt is location dependent. That said, as I mentioned elsewhere in this thread, there's money to be made. Everything has a microcontroller and someone needs to program it. You don't need all the processor architecture knowledge that they're talking about, just a willingness to learn along the way. If you think you like the work, stick with it. Building real things is deeply satisfying.
- itsokimbatman 10y agoIt's relatively small, but the amount of people with those skills is small too. Currently every company I know that needs those skills has trouble finding enough people, so talented low level hackers can pretty much name their price. Maybe that will change down the road but it doesn't look like it right now.
- deleted 10y ago[deleted]
- RandomOpinion 10y agoTake a look through the monthly HN "Who's hiring?" posts. Jobs of any kind that aren't web (front-end, back-end, or full stack) or mobile apps are vanishingly scarce. It's really quite depressing.
- thegayngler 10y agoI want to create a new operating system even though we don't need one right now. So this looks very attractive to me. Thanks for posting.
- CalChris 10y agoDon't go there. There's really not a lot of work. But if you must, low level is more a calling than a learned skill. You probably shouldn't be learning assembler. First, compilers are really quite good. Yes, it's possible to beat them (I do) but generally not by much. And not by much ain't gonna put bacon on the table. You can probably get what you need from gcc inline asm() calls. Take a look at the linux sources and figure out why and when assembly is used there: http://stackoverflow.com/questions/22122887/linux-kernel-assembly-and-logic http://stackoverflow.com/questions/22122887/linux-kernel-ass... Secondly, writing in assembler is not low level. You just think it is. You should really be understanding caches and you can improve your cache performance in C. Anyways, unless you deeply know what's going on inside of the microarchitecture of a modern superscalar, out of order, speculative, renaming, μop-cached, hyper-threaded, multicore beast then you shouldn't be fooling yourself by writing in assembler. http://blog.erratasec.com/2015/03/x86-is-high-level-language.html http://blog.erratasec.com/2015/03/x86-is-high-level-language... Unless you've really read Intel's Intel 64 and IA-32 Architectures Optimization Reference Manual (and ARM's Cortex®-A72 Software Optimization Guide) and meditated on the suras of Agner Fog's Microarchitecture you won't even know what's going on with something as simple as mov RAX, RBX. Look, most compiler writers don't even know this stuff (Intel C Compiler yes, llvm occasionally) and frankly, it isn't very useful because Intel spends a billion dollars a year to make your bad x86 code run reasonably fast. Consider a switch statement which compiles into an indirect branch, jmp reg. That branch has to be predicted by the BTB before the jmp reg instruction is even fetched and that's really hard to do. Every year they get better and better to the point that you're not even aware of it. But if you want to the help the CPU out, you could put a UD2 right after the jmp reg. This is insanely hard to understand and will help very little. Don't go there.
- pdelbarba 10y agoTo add to this, most micros these days are ARM based which are specifically designed to not need assembly in their boot code. I basically never use it anymore. That said, you should have some understanding of what C code will map to what assembly for the purposes of memory management and performance. Also: to say its a calling is accurate. I love what I do because what I create is physical and interacts with the physical world. I can hold my projects in my hands and say "I made this". I've done web and desktop stuff and can say that this work is significantly more fulfilling to me.
- blueatlas 10y agoThis embedded programming course from UNC Charlotte is quite good for getting started: https://www.youtube.com/watch?v=3Ak8cxN_bLI https://www.youtube.com/watch?v=3Ak8cxN_bLI And, Stan Warford's systems programming class is exceptional: http://www.cslab.pepperdine.edu/warford/cosc330/ http://www.cslab.pepperdine.edu/warford/cosc330/ I believe you can get the video lectures through iTunes U. For university courses, these are both really good.
- pdelbarba 10y agoIn this thread there's a lot of FUD about there being no job market. One place to look is to your undergraduate electrical engineering brethren. You'll basically always be following them around to wherever they go (though often in slightly higher demand given that board design is typically faster than the software development phase). Also worth noting that in recent years there has been an emphasis on FPGA skills for a lot of jobs in the space. It often helps to have some familiarity, especially if you like working for smaller companies that wouldn't want to hire a specialist for that role.
- deleted 10y ago[deleted]
- paulsutter 10y agoThe bearishness here surprises me. The more a company spends on infrastructure, the more they need low-level people. A good low-level programmer can reduce cost requirements 10x or more. Any company spending millions or billions on infrastructure can make enormous savings by hiring the right people. Crucial for Google, Amazon, Facebook, and even midsize startups can see a big improvement. And its difficult to fill those jobs. Which means, there's opportunity there.
- throwaway777836 10y agoBecause those companies, and their mindsets, represent a fraction of all software jobs. The performance improvements that come from having good systems programmers appeal to only a small subset of companies. Even if the opportunity is there, features are what matter primarily to most companies. Only the ones with deep pockets and forward thinking will shell out for talent who will improve the infrastructure in a way that leads to often incremental and unnoticed or "unnecessary" improvements.
- chocolatebunny 10y agoCan you clarify your statement?What does a low-level person do to improve infrastructure?
- bitwiseand 10y agoWriting and designing code that is mindful of latencies (Amdahl's law). Temporal / Spatial locality, avoiding needless copies etc.. This approach needs to start from design and also follow into implementing the code. Moreover, this is done without compromising on readability.
- CalChris 10y agoUmm, Amdahl's law is actually a negative result. It's saying that if you infinitely improve some magical hotspot that is 1% of your workload, the best you can only ever get to is 99%. If anything, Amdahl is telling us not to grind on trivialities.
- trenzalore 10y agoAnyone knows the same kind of roadmap/tutorial but for Windows Low level programming ? Thank you !
- anocendi 10y agoI can vouch for Paul E. McKenny's book. I would recommend anyone with curious mind to read it, even if day to day work does not involve much low-level programming. It will open up a whole new set of ideas / knowledge in problem solving toolbox.
- pklausler 10y agoGiven two candidates for a job, one that knows assembly language and one that doesn't, I'll hire the assembly-capable programmer nearly every time.
- gurugio 10y agoThank you to introduce my page to the world. I've just found this thread and understood why the traffic suddenly peaked. I'll add several link/books/courses here to the page. Thank you for all.
- mhh__ 10y agoCompiler backends are another topic that can really extends one's knowledge of their hardware. You end up having to learn a least a bit of every layer underneath your code e.g. ISAs, Calling Conventions and scheduling.