HNHacker News
TopNewBestAskShowJobs

jason_s

474 karma · joined February 18, 2015

Embedded systems engineer in motor control and signal processing.

https://twitter.com/jms_embedded

submissionscomments
jason_s··on Build System Schism: The Curse of Meta Build Systems
file modtime-based dependencies is enough to kill any interest in make I might have had. When I update my working copy from version control to an earlier version to look at how things used to work, but the modtime is later, make does the wrong thing.
jason_s··on Build System Schism: The Curse of Meta Build Systems
> The alternative is to scan the sources using a custom parser, which is slower and more fragile.

More fragile, yes, but I dispute the "slower" aspect. waf does this very well. In C you don't need to parse the entire program structure, you just need to parse what the preprocessor does.

Also there's a difference between the complete set of header dependencies (notably #include statements within an #if or #ifdef) and a more sane but incomplete methodology for #include statements (don't do it within #if/#ifdef). Not sure whether this is a big enough difference to try to matter.

jason_s··on The Styx Programming Language
Neat! I like the syntax from what I've read so far.

I'm aware of Rust and Zig and Nim and wish I had more time to try these out and see what's going on.

Alternatives to C/C++, especially in the embedded systems space, have some real potential.

jason_s··on We updated our RSA SSH host key
How come github.blog doesn't have the "GitHub, Inc." organization as part of its certificate, the way github.com does?

  $ openssl s_client -showcerts -connect github.blog:443
  CONNECTED(00000006)
  depth=2 C = US, O = Internet Security Research Group, CN = 
  ISRG Root X1
  verify return:1
  depth=1 C = US, O = Let's Encrypt, CN = R3
  verify return:1
  depth=0 CN = github.blog
  verify return:1
  ---
  Certificate chain
   0 s:CN = github.blog
     i:C = US, O = Let's Encrypt, CN = R3
     a:PKEY: id-ecPublicKey, 256 (bit); sigalg: RSA-SHA256
     v:NotBefore: Feb  3 17:19:36 2023 GMT; NotAfter: May  4 
  17:19:35 2023 GMT
   ...
jason_s··on Typst, a new markup-based typesetting system, is now open source
As God is my witness, I'll never \makeatletter again!
jason_s··on An Aperiodic Monotile
Wow! I remember reading the Penrose tiles article (1977 Scientific American, Martin Gardner's Mathematical Games column https://www.scientificamerican.com/article/mathematical-game...) in the mid-80s, where if I remember right they were very excited to get the number of tiles required for a nonperiodic tiling down to 2.

Roger Penrose is still alive, I hope he is pleased to see this.

jason_s··on 8086 Processor's microcode pipeline from die analysis
https://www.embeddedrelated.com/showarticle/1453.php -- I wrote up a piece on the 6502 development in 1974-1975.
jason_s··on 8086 Processor's microcode pipeline from die analysis
Bill Mensch and Albert Charpentier have had discussions posted on YouTube about the 6502 and VIC-II chips, respectively.
jason_s··on Development of the MOS Technology 6502: A Historical Perspective
"MOS" like "moss" as in "Mostek"; MOS Technology pronounced their initials individually.
jason_s··on Development of the MOS Technology 6502: A Historical Perspective
Check out Bill Mensch's Oral history or one of his presentations on YouTube about the 6502; I think he mentions the Olivetti project that he and Rod Orgill worked on.
jason_s··on Development of the MOS Technology 6502: A Historical Perspective
and yet they're out of print :-( (well, at least #1 and #2)
jason_s··on Even more pi in the sky: Calculating 100T digits of pi on Google Cloud
ponders environmental impact of cat videos
jason_s··on Even more pi in the sky: Calculating 100T digits of pi on Google Cloud
Dammit I was going to post this, but you beat me to it!
jason_s··on Leaving academia
That doesn't sound too much worse than some HR in industry...

OT: could I ask you some questions about another thread (semiconductor fabs), privately? My twitter contact info is in my profile.

jason_s··on Circuit Design and Applied Optimization (Part 1)
or you throw away R1 and connect R2 between C and OUT.
jason_s··on Ask HN: Interesting gopher holes?
TIL gopher still exists
jason_s··on How do computers generate random numbers?
I lost interest at "The most common algorithms used for PRNGs are linear congruential generators."
jason_s··on The Manhole Covers Site
Sweet! I know where a triangle manhole cover is; if I'm lucky I may have a picture of it squirreled away somewhere, to submit.

https://www.nashuatelegraph.com/news/local-news/2012/07/28/c...

jason_s··on Sourcehut welcomes Bitbucket refugees
no, because like real-world refugees, we are left to flee Atlassian without an obvious place to relocate.
jason_s··on Sourcehut welcomes Bitbucket refugees
...and because Atlassian let Bitbucket's Hg support wither and die.
jason_s··on Stop Payment: A homeowner’s revolt against the banks (2012)
looks like Trotter lost... https://law.justia.com/cases/idaho/supreme-court-civil/2012/...

https://www.housingwire.com/articles/idaho-supreme-court-dec...

jason_s··on Why I Don't Love Gödel, Escher, Bach
GEB is just as technically deep as TAOCP.
jason_s··on Why I Don't Love Gödel, Escher, Bach
<quote>…well, it would have been, but for some reason I kept struggling to get through it. I thought highly of it, but my secret shame was that my admiration for the book was based mostly on the first two hundred or so pages. It took slogging effort to get myself through the rest, effort sporadically applied over the course of years. I did eventually make my way through the whole thing, but even now, I can’t necessarily be sure I’ve read and absorbed every page, even though I’ve certainly looked at each one. By the end, my impression of the book was much more reserved: it does have some genuine high points and I can understand how it came to have its classic reputation, but I also felt it had a number of problems I’ve rarely seen discussed. For me personally, it ended up falling short of its reputation as a sparkling, effervescent text that drew together art, mathematics, and culture, and given how little I’ve seen this discussed, I wanted to write down why I feel this way. </quote>

That's not the point. So what if you don't get everything? Are you supposed to get everything in Knuth's The Art of Computer Programming on the first read?

The record-playing example is a wonderful metaphor for Godel's theorem, not a terrible one.

jason_s··on You know how HTTP GET requests are meant to be idempotent?
See "Important Programming Concepts (Even on Embedded Systems) Part I: Idempotence"

https://www.embeddedrelated.com/showarticle/629.php

jason_s··on Finite Field Arithmetic, Chapter 2: Logical and Bitwise Operations
Different goal, but if you read this and are wondering what finite field operations are, and why they are important --- at least in part --- then a series of articles I am writing might be of interest:

https://www.embeddedrelated.com/showarticle/1065.php

jason_s··on Exploring different microcontrollers less than $1
hope the development toolchain is better than it was 6 or 7 years ago... I wanted to look into PSoC but couldn't figure out how to blink an LED after a few hours of messing around with it, so I gave up. And I'm not a beginner; I've had 22 years of microcontroller experience.
jason_s··on Cost goals met, the DoE is moving on to address grid reliability in solar
>hey'll need to be able to break even on the investment within something like 3 years.

???? That's a 33% discount rate. Kind of insane expectations... I put solar on my house in 2014, after doing a bunch of analysis showing the breakeven point was 8-12 years. After having it and checking the utility bills, it looks like it's going to be 10-11 years. Maybe less if they raise their rates.

jason_s··on Breaking News
Really scary.
jason_s··on Is it unethical for me to not tell my employer I've automated my job?
there's that anecdote (apocryphal?) of Steinmetz at GE: [1] (grrr yes it looks like it is apocryphal [2]; I wish people were more honest and careful about where they get their information and what they do or don't know )

----

In the early years of this century, Steinmetz was brought to General Electric's facilities in Schenectady, New York. GE had encountered a performance problem with one of their huge electrical generators and had been absolutely unable to correct it. Steinmetz, a genius in his understanding of electromagnetic phenomena, was brought in as a consultant -- not a very common occurrence in those days, as it would be now.

Steinmetz also found the problem difficult to diagnose, but for some days he closeted himself with the generator, its engineering drawings, paper and pencil. At the end of this period, he emerged, confident that he knew how to correct the problem.

After he departed, GE's engineers found a large "X" marked with chalk on the side of the generator casing. There also was a note instructing them to cut the casing open at that location and remove so many turns of wire from the stator. The generator would then function properly.

And indeed it did.

Steinmetz was asked what his fee would be. Having no idea in the world what was appropriate, he replied with the absolutely unheard of answer that his fee was $1000.

Stunned, the GE bureaucracy then required him to submit a formally itemized invoice.

They soon received it. It included two items:

1. Marking chalk "X" on side of generator: $1.

2. Knowing where to mark chalk "X": $999.

[1] http://news.mit.edu/1999/vestspeech

[2] http://www.snopes.com/business/genius/where.asp

jason_s··on Is it unethical for me to not tell my employer I've automated my job?
OK, that's splitting hairs; they are employment agreements, not employment contracts. Still a legal document, and they generally cover IP created by the employee and specify how IP created outside of company time is handled.
← PreviousPage 4 of 7Next →