Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. English: A vs. An(redblobgames.com ↗)
    39comments
  2. I built non-autoregressive decision models with RL a year ago(convaiinnovations.com ↗)
    233comments
  3. AI-generated posters don’t have to be horrible(john.hartnup.uk ↗)
    704comments
  4. Measure internet censorship. Contribute to the largest open dataset(ooni.org ↗)
    31comments
  5. How Hacker News ranking works: scoring, controversy, and penalties (2013)(righto.com ↗)
    2comments
  6. Brood War Bench(swerdlow.dev ↗)
    56comments
  7. Compiler-style optimization for drawing via Skia(arxiv.org ↗)
    5comments
  8. Deodands put a price on objects that caused death(jstor.org ↗)
    10comments
  9. Two parallel neural ectoderm progenitors contribute to the developing brain(stanford.edu ↗)
    228comments
  10. Mayday Mysteries(maydaymystery.org ↗)
    3comments
  11. Show HN: CUA-S1 – A System One Model for Computer Use(github.com/trycua ↗)
    4comments
  12. ZK-JPEG: Zero-Knowledge Image Editing and Compression(iacr.org ↗)
    6comments
  13. UFO Series Home Page: "UFO" TV Series from 1970(ufoseries.com ↗)
    15comments
  14. You can defeat the Dream Devourer from Chrono Trigger using an int overflow(chrono.fandom.com ↗)
    1comments
  15. Android 17 is the first since 3.x to add new APIs without releasing to the AOSP(grapheneos.social ↗)
    639comments
  16. Suzanne Ciani's Buchla Cookbook(echo.orpheusinstituut.be ↗)
    19comments
  17. Supabase (YC S20) Is Hiring for OrioleDB(supabase.link ↗)
    discuss
  18. The Secret Life of Circuits(coredump.cx ↗)
    69comments
  19. Tin: full-text search for Postgres(planetscale.com ↗)
    70comments
  20. New evidence for hidden chambers beyond Tutankhamun's tomb(nature.com ↗)
    34comments
  21. Black Holes or Black Hole Stars? Astronomers Spar over 'Little Red Dots'(quantamagazine.org ↗)
    43comments
  22. GPT-6 Astra Solves a WWI German Radio Cipher(prinzai.com ↗)
    159comments
  23. I think you should almost never use AI to write(erichgrunewald.substack.com ↗)
    99comments
  24. San Francisco Onion Futures Company(onionfutures.com ↗)
    150comments
  25. Adventures in Microcontroller Circuit Debugging(bigmessowires.com ↗)
    6comments
  26. How to Write with an LLM(sockpuppet.org ↗)
    371comments
  27. Microsoft director: AI scraping 'the largest theft of labor in human history'(tomshardware.com ↗)
    21comments
  28. Cloudflare Quick Tunnels(cloudflare.com ↗)
    306comments
  29. If math is more than proof, we need to better celebrate the rest of it(terrytao.wordpress.com ↗)
    230comments
  30. Saving another 100TB of RAM(cloudflare.com ↗)
    108comments

The Secret Life of Circuits

272 pointsby 3d agoblog.coredump.cx
69 comments
3d agoHN ↗

I looked at sample chapter, the fonts and layout are visually repulsive.

12h agoHN ↗

This made me have a look and I do like it a lot.

The wide margins remind me of university coursebooks.

12h agoHN ↗

The wide margins remind me of university coursebooks.

What I want is a paperback where the margins are chosen such that you can read the text when you fold back the facing part of the book.

12h agoHN ↗

Sir, you have a knack for inspiring commentary: the exact opposite of damning with faint praise! Also 0% slop it made me pre-order the book immediately.

11h agoHN ↗

That would (of course) be praising with faint damnation.

(Or is it praising with generous damnation?)

6h agoHN ↗

It can get hard to follow after a while :)

How about a triple-play, damning with damn damnation?

11h agoHN ↗

Congratulations, you are now quoted on the page!

2h agoHN ↗

Why in the world would you write something like that. Genuinely, what good does this do, other than hurt people?

3d agoHN ↗

This is a much better introduction to circuits than most. You actually get a bit of depth rather than a cookbook of "do this to get that" sort of prose.

12h agoHN ↗

That’s also what I really like about “Practical Electronics for Inventors”, the authors explains the underlying physics for each component. Though the theory chapter can be heavy if you want to follow everything. “Secrets Life of Circuits” seems to be a bit more approachable

12h agoHN ↗

I'm hoping you're right. I enthusiastically bought PEFI but found it to be way over my head. I'm eager to get SLOC because I'm hoping it can be sort of a bridge between my "MAKE: Electronics" book and PEFI.

11h agoHN ↗

PEFI/PE4I as a technical reference when you need details about a specific topic, SLOC as an overall introduction to give a good intuition, and M:E for more practical project tutorials, if that’s what we (hobbyists without any formal training) end up with that would be awesome :)

AlphaPhoenix YouTube channel is also a great source of information to clarify theoretical topics. I find it very helpful to just see how he think about electricity in his various projects: https://youtu.be/X_crwFuPht4. And his enthusiasm is contagious!

One personal note: as someone coming from software I find learning electronics pretty hard as it requires a completely different mental model and way to approach systems. Took me years of various failed attempts to finally internalize I have to stop relying on metaphors and shortcuts, and instead understand the actual physics at play to develop an intuition that makes sense. That looks daunting and I thought I would hate that part but in fact after pushing through the first weeks it becomes really satisfying! Accept things take time and that you will be uncomfortable for a while, and move at your own pace. And here LLMs are actually really helpful to clarify topics you’re not sure you understand fully, once you start to learn the terminology (I use instructions that makes it clear they shouldn’t solve things for me and instead evaluate my understanding)

10h agoHN ↗

as someone coming from software I find learning electronics pretty hard as it requires a completely different mental model and way to approach systems

I went from electronics to software and one thing that has puzzled me is how much people dislike reading docs as in reference manuals. People can get by with sloppy code full of hidden bugs and when those bugs arise they’re like deers frozen by headlights.

Imagine building a circuit without any ideas how it operates. I’ve encountered web devs that don’t understand how http works.

9h agoHN ↗

Also as a person who came to Embedded/Electronics from the Software side, i found the following incredibly useful to bridge the software-hardware gap using MCUs;

1) Introduction to Embedded Systems: Using Microcontrollers and the MSP430 by Manuel Jiménez, Rogelio Palomera, Isidoro Couvertier - https://link.springer.com/book/10.1007/978-1-4614-3143-5

This has more of a hardware interfacing slant than most books on embedded systems which is what a software person needs. Every topic is first introduced in a general way with lots of illustrations and then its application in MSP430 is shown. Hence we can easily transfer our understanding to any other MCU family. A really good textbook for serious students of embedded electronics.

1h agoHN ↗

To me, transistors are the best example of how hard EE can be. I heard "transistor is a switch" or "transistor is an amplifier". So I bought some MOSFETs and tried to use them. No go. Well, I had to learn (through random web pages and some books) that microcontrollers struggle to switch mosfets. Fine. I'll get a gate driver. Then I have to very carefully pick a bunch of resistor values that make my system behave. Eventually, I learn that transistors aren't switches at all, but can be coerced into sort of behaving like switches, but in reality, there is always leakage and a hundred other variables you have to understasnd and control for. You can see one of my threads here: https://www.reddit.com/r/AskElectronics/comments/1omqn4d/con...

8h agoHN ↗

I like Elicia White’s Making Embedded Systems because it covers a lot of practical stuff like how to read a datasheet. It’s a good book for existing programmers.

A lot of electronic books struggle to find balance between super easy projects, very specific cookbook recipes or a laundry list of components.

10h agoHN ↗

I respectfully disagree.

I'm not sure who exactly this book is for, but it's certainly not for absolute beginners. There is a huge delta between the target audience and the level of understanding and experience someone not knowing a first thing about electronics would typically have.

I can clearly remember sitting there reading about component parasitics, without even having a clear idea how an ideal component behaves, and so on. I was just lacking buckets of context, and it was a painful read with lots of assumptions about the reader's background.

On the other hand, I still think it is a great book, like pretty much everything else from NoStarch. I just disagree on it being suitable as a first book in electronics.

That said, I'm looking forward to the day when I will be on an adequate enough level to read it again -- this time, in its entirety.

12h agoHN ↗

Super looking forward to it. Got it on preorder in Europe! Will still be a bit of a waiting time.

Always enjoy reading the blog posts, and this seems like a great way to support work that gives me joy. Who knows, might start picking up actual electronics as side projects. Hardware work seems like such a great way to get code into the physical world.

12h agoHN ↗

The artwork on the cover should come with a health and safety notice :D

12h agoHN ↗

I like the pop art style. But what is she going to do with that soldering iron - stick it up her nose?

12h agoHN ↗

Maybe it should look like someone in a Western movie blowing smoke from a pistol?

11h agoHN ↗

Like the best art, it's left up to the viewer to decide!

8h agoHN ↗

That alone makes me think it was drawn by AI. They say it's not...but that iconic pic sits directly in the uncanny valley.

6h agoHN ↗

Sshh. Her lips are sealed.

It's just a stylistic thing, same with the smoke, which represents heat more so than fumes.

Normally you hold the iron horizontal under the nose and of course don't breathe during the heat test.

And you don't actually kiss the soldering iron until it's cooled all the way down, and usually not unless the experimental circuit you came up with works the first time you plug it in :) So you can relax as intended and unplug the damn iron, without having to keep on hammering til all hours.

One thing she's not telling is the way you should be effective enough soldering using (very inexpensive) uncontrolled soldering irons, that you can eventually solder two pieces of solder together. Before you graduate to a "pro-grade" soldering station.

6h agoHN ↗

It is clearly a reference to a smoking gun. I think the cover is beautiful.

12h agoHN ↗

Just ordered. Love these kinds of books. Any others like this one people are aware of?

12h agoHN ↗

Pre-ordered mine(hardback). Yeesh....I have no impulse control because this looks like so much fun,

12h agoHN ↗

I like the 'certified clank free' logo. It that a standard thing now?

7h agoHN ↗

The barrage of "X not Y" almost made me think that this was AI-generated. But I guess some people just talk like that.

6h agoHN ↗

I just read a Quanta article from 2015 and literally had to check the date after the third "X not Y" I encountered. But the models have learned that from somewhere, too.

6h agoHN ↗

Why do you think AI "talks" like that? It is pervasive in a lot oof the training material.

Most people writing scientific literature are not English majors nor even great communicators, their primary competencies are elsewhere. Expecting everyone to write literature is just odd & reductive.

Yes, it helps to be a good writer, but the primary objective for science papers is to convey information; that it is well written or enjoyable is a nice bonus but not essential.

5h agoHN ↗

I'd counter that AI usually writes way better than typical person, definitely way better than any commenters here (myself included).

What's jarring about AI content is seeing the mastery of English applied in mundane contexts, where people are used to see more basic, pedestrian language.

(That, and overuse of patterns, which is more of an artifact of how people use LLMs - specifically that 90%+ of the AI output you see is the first response to the prompt in a fresh session. For AI, each time is the first time it's using this pattern, for user it's the 10th time they saw it within the span of an hour.)

12h agoHN ↗

Michał Zalewski (the author of this book) is goated. His book Silence on the Wire was very inspiring to me and the techniques he described often come to my mind years after reading the book

11h agoHN ↗

This thing is a tome. And I like it like that. Functions as a nerdy coffee table book when not in use.

11h agoHN ↗

It would be nice to see a similar book devoted to sensors. Anyone have recommendations?

10h agoHN ↗

PE4I (“Practical Electronics for Inventors”) has a whole chapter dedicated to sensors

11h agoHN ↗

If you're ordering from Europe, be sure to check if it's available in your local Amazon page first, I almost got slapped with like a 50% shipping/import charges because I went straight to the main link (the US amazon). The ones that have it are listed in the blog post.

10h agoHN ↗

I find it crazy that Amazon haven't implemented a feature that will take you to the same product in your local store easily. I had the same issue and had to go find it manually.

7h agoHN ↗

one cool feature amazon implements is that if you change the .com for .es (and nothing else) for a product link it will do exactly that. I know it is not automatic but it works.

3h agoHN ↗

Biggest distributor on Earth, can't make a link.

9h agoHN ↗

Got mine. And I'm a former EE. Looking forward to it, maybe inspire my daughter a bit.

7h agoHN ↗

This looks like it’ll be a good book for me to learn more about electrical theory and circuit design, I know a bit about AC and DC electricity from working in electrical construction which should help me dive right in, thanks for sharing this book release!

7h agoHN ↗

It gives real answers but doesn’t demand a year of calculus beforehand.

Oh yes, these kinds of shortcuts have always worked great.

6h agoHN ↗

Ha, Ha, True.

That was a silly statement by the author; just say that this is "less theoretical" and not a textbook.

Looked at the contents/sample chapter and it seems just like many of the books published by make magazine.

5h agoHN ↗

My objective has often been to build & test as many experimental circuits as I could in the shortest amount of time.

One of the real good shortcuts is to just start soldering parts together according to a plan in your head, without taking the time to make a schematic drawing beforehand or do any advanced calculations.

There might be more emphasis on the properties and ratings of each component this way, this is not something to skip over, you should be very familiar with each component you use. Well in advance, and loads of hours of component study needs to be behind you, otherwise you may not do too good at just whipping something up on the bench that's electrically sound to begin with.

As pointed out, with math it can be the same way.

If you just want to quickly start picking up parts and soldering them together right away without doing any advanced calculations, the best shortcut is to have already become quite familiar with the equations including calculus when necessary, so you can bring to bear endless hours of mathematical study and use it to intuitively guide your soldering iron for every hour at the bench.

Edit: upvoted because your message should not be less than neutral, not greyed out at all. Obviously, I'm on the fence, sometimes I use math, other times not at all ;)

3h agoHN ↗

They have. When you need more math -- and you will if you stick with this business for very long -- it'll usually be obvious, and you can pick up those skills then. It's never been easier.

7h agoHN ↗

I see some discussion of which books are good for people with various levels of electronics knowledge. I'd like to add one that I've never seen mentioned here: Agarwal and Lang's "Foundations of Analog and Digital Electronics".

This was the book used by MIT in 2007 for the first course in the EE and CS programs. It is that year's course that is on their Open Courseware platform [1], and the readings list there links to a full PDF of the book.

(Edit: click the book title on the readings page, not the "View e-book version" link. See my response to groos' comment below for details).

This is not a link to a pirated copy BTW. Agarwal is a pioneer in the open-education movement and the authors intentionally arranged for an open access PDF.

The lecture videos on Open Courseware are very good too.

[1] https://ocw.mit.edu/courses/6-002-circuits-and-electronics-s...

7h agoHN ↗

The PDF no longer appears to be there or at least is well hidden.

7h agoHN ↗

Oh, I see the problem. You clicked the "View e-book version" link. That goes to the publisher's store. As far as I know they never had a PDF, just a special web version.

Click the book's title in the paragraph above that, where it says this:

Agarwal, Anant, and Jeffrey H. Lang. Foundations of Analog and Digital Electronic Circuits. San Mateo, CA: Morgan Kaufmann Publishers, Elsevier, July 2005. ISBN: 9781558607354.

That takes you to a PDF.

Sorry for not being more specific. I didn't even notice the "View e-book version" as I only went to the site to remind myself of the name of the book, saw the title was a link, and clicked it. Then I thought "Why is MIT linking to a pirate copy of a book from one of their own professors?", and did a little Googling to get some backstory.

5h agoHN ↗

Also, "Readings" is hidden behind a "Menu" menu button on the mobile-device version of that page.

20m agoHN ↗

As someone who’s had to refresh electronics a few times over the decades, I remember this course as being particularly good, for a couple of reasons.

The whole thing is organized around building explicit abstractions. You’re always making models, and choosing what to pay attention to and what to ignore. By making the real circuit match the model closely enough, you get to ignore the circuit and use it as building block for bigger things. This same approach is used from resistors to amplifiers to logic gates to CPUs.

Of course this how engineering actually works, but I haven’t seen an intro course presented this way so rigorously. If you’re a software person who deals with black box abstractions all day, it feels like home.

The course introduces concepts in order of simplicity, meaning you get MOSFETs and digital gates before you get BJTs. Many courses are arranged chronologically, so after you do Ohm’s law and capacitors you get dumped into BJTs, which are one of the most complicated things in the discrete toolkit, and hardly ever found in common use nowadays (except as cheap switches). Instead, you’re happily making amplifiers, switches, and logic with FETs, a much gentler introduction.

I also remember somewhere in the course lectures the professor says (paraphrased) “You may be thinking, why do I need to learn how a logic family works? Won’t I just be using some existing chip? This is MIT — you’re supposed to be the one making the chip.”

6h agoHN ↗

Already purchased, looking forward to getting it!!!

6h agoHN ↗

A couple clicks through to older lcamtuf posts and I came across this in the "what is electricity" post:

Once again, we don’t have a satisfying explanation why. We know that these quantum numbers correspond to standing-wave solutions of a three-dimensional wave function that we pulled out of thin air. We also know that the model works better than any alternatives. But we don’t know what any of it really means — or if it means anything.

It is so refreshing to see this explicated thus; physics textbooks are generally coy about "know this for now, and there will be deeper insights available later" but they typically never level with readers and say "we don't know".

6h agoHN ↗

Oddly enough, one of my upper level math textbooks (maybe real analysis, don't remember) said the same thing about the definition of a set, except that "later" meant graduate school.

2h agoHN ↗

lcamtuf is one of the smartest people I've ever seen. When you read his work you realize he's only sort of putting about 1% of his intelligence on the page.

5h agoHN ↗

This book looks like it’s targeted squarely at people like me!

I’ve been a software engineer for the last couple of decades and I’ve tinkered with microcontrollers as a hobby but always been limited by my lack of electronics knowledge - very much trial and error to get a project far enough to be able to focus on the firmware (which is more my domain). I want to bridge the knowledge gap there.

My only formal electronics education was first year introduction to analog and digital circuits module at university two decades ago, led by a lecturer who assumed students had a huge corpus of pre-existing knowledge (and who I now suspect would have preferred to be supervising his PhD students and conducting research but had to make up the teaching hours - which I do understand).

I will definitely pick up a copy. However, Amazon UK (to avoid the NoStarch UPS shipping cost of $24) won’t get it to me until November. I’m excited to receive it.

5h agoHN ↗

looks like a great book, but the cover is hard to look at after having a few painful soldering burns

2h agoHN ↗

The cover art is a gross error of judgement, and it stops me from buying this book for the next generation of hackers in the wider family.

Adults will understand that the "shush" gesture with the soldering iron is supposed to be a play on the "secret" in the title, but a large part of the target audience is 12-15 years old. There will inevitably be some who'll imitate the picture, with painful results.

21m agoHN ↗

"She's a child!" shouted Albert.

"IT'S AN EDUCATIONAL TOY."

"What if she cuts herself?"

"THAT WILL BE A PAINFUL LESSON."

2h agoHN ↗

Looks like a brilliant book. If you ever write another I think a "hands-on experiments" would be a great follow up