Better HN
topnewbestaskshowjobs
Log inSign up

piinbinary

3,021 karma · joined Jul 16, 2010 (16y ago) · 466 submissions

Jeremy Mikkola

http://jeremymikkola.com

Email: <My first name><2^7=>@<google's mail product>.com

https://twitter.com/silenceofnight

Submissions

31.

Deep Habits: WorkingMemory.txt(calnewport.com ↗)

1 points · by piinbinary · 6mo ago · discuss

comment 6mo ago · link · parent

I've been going through Nora Sandler's Writing a C Compiler book and writing a compiler in Python. I'm excited to start the chapters on optimization - those seem like the most fun algorithm problems.

I recommend the book. It certainly isn't easy (maybe 3x harder than Crafting Interpreters), but I've learned a ton (eg how to deal with operations on different sizes of types, or the trick of using pseudoregisters to avoid having to figure out registers up front).

https://github.com/jmikkola/writing-a-c-compiler-python

comment 7mo ago · link · parent

I'd be very curious to know what class of vulnerability these tend to be (buffer overrun, use after free, misset execute permissions?), and if, armed with that knowledge, a deterministic tool could reliably find or prevent all such vulnerabilities. Can linters find these? Perhaps fuzzing? If code was written in a more modern language, is it sill likely that these bugs would have happened?

34.

Stripe Projects: Provision and manage services from the CLI(projects.dev ↗)

137 points · by piinbinary · 8mo ago · 31 comments

comment 8mo ago · link · parent

How does the benchmark tell how many branches were mispredicted? Is that something the processor exposes?

comment 8mo ago · link · parent

> a luxury apartment building goes up, surveys the market, and sets its rents 30% higher for the privilege of living in a new building with a gym for dogs or ball pit or whatever. Then the older buildings say, "Well, we can raise our rents 20% and still be the best deal in town," and so on.

I think that might not be the right cause and effect relationship. The actual cause is increased demand. This creates both the increased pricing of existing stock and an incentive to build new stock.

37.

Situational Awareness (2024)(situational-awareness.ai ↗)

1 points · by piinbinary · 8mo ago · discuss

38.

AI Thoughts(jeremymikkola.com ↗)

3 points · by piinbinary · 8mo ago · 1 comment

comment 9mo ago · link · parent

Back when I lived in SF, there was one bus route (the 6, I believe) that I could use to get to work. The bus was so slow due to frequent, long stops and traffic lights that I could keep up with it on foot by walking briskly. I only bothered taking it when it was raining because it didn't get me to work any faster than walking.

comment 9mo ago · link · parent

That's an interesting point.

I'm also curious how bus stops interact with timed lights. Presumably each time the bus stops, it gets kicked back to the next cycle of green lights (which might be a low-single-digit minute delay).

Hopefully there's a traffic engineer in the audience who can give the real answers.

comment 9mo ago · link · parent

I think it's missing Google's Bard

comment 9mo ago · link · parent

That reminds me of `curl wttr.in/94110`

comment 9mo ago · link · parent

> friends don’t just bring up type inference in casual conversation

I wonder if this is a reference to "I need you to understand that people don't have conversations where they randomly recommend operating systems to one another"

But to the actual point of the article: my understanding is that there are areas where you can use bidirectional typing (e.g. languages that have subclasses) where HM style type inference might become undecidable.

comment 9mo ago · link · parent

I'm impressed with how approachable the explanation is!

comment 9mo ago · link · parent

That stuck out to me as well.

I wonder if there could be a bug where extra code runs but the result is discarded (and the code that runs happens to have no side effects).

The post also says

> That is roughly 1 billion iterations

but that doesn't sound right because GCC's version runs in only 0.047s, and no CPU can do a billion iterations that quickly.

comment 9mo ago · link · parent

I am currently going through that book. I recommend it with one caveat: you'll need to have written some interpreters before (Crafting Interpreters is a perfect starting point) because it expects you to already know some things like to how write a simple recursive decent parser.

comment 9mo ago · link · parent

https://archive.is/dNffG

comment 9mo ago · link · parent

It didn't know about the Woodboring beetle: https://en.wikipedia.org/wiki/Woodboring_beetle

Doing this felt odd, it was like it wore out something in my brain. After a while I could picture the animals I wanted to enter but I struggled to remember the word for them. Only now, a minute or so after stopping, could I remember 'Dragonfly'

I was also amused by the reaction to "crab":

> (Carcinization makes it hard to define “crab”, so I'm going to pretend you said “brown crab”.)

comment 10mo ago · link · parent

Somehow, there's a relevant XKCD: https://xkcd.com/576/

comment 10mo ago · link · parent

I like having three columns of code open in my editor, but the left edge of the leftmost column (since code is left-justified) gets pretty far away from my face. Or I need stronger glasses, one of the two.

comment 10mo ago · link · parent

I have a 34" ultrawide and it is huge. I can't imagine a 52" - the edges would be so far away that it must be hard to read text without physically moving left/right

52.

A Brief, Incomplete, and Mostly Wrong History of Programming Languages(james-iry.blogspot.com ↗)

4 points · by piinbinary · 10mo ago · discuss

53.

Burnout is breaking a sacred pact(usefulfictions.substack.com ↗)

2 points · by piinbinary · 10mo ago · discuss

54.

K2pdfopt(willus.com ↗)

2 points · by piinbinary · 11mo ago · discuss

comment 11mo ago · link · parent

They should put subway stations in each of the 3 big airports.

comment 1y ago · link · parent

Does anyone have a sense for how significant of a dose of radiation this person got?

comment 1y ago · link · parent

I saw a video from Adam Savage about someone who went really overboard with spacebar stabilization https://www.youtube.com/watch?v=N3FEv1qw4_w

58.

Fixing the Biggest Problem with Mechanical Keyboards [video](youtube.com ↗)

1 points · by piinbinary · 1y ago · discuss

comment 1y ago · link · parent

It depends on how the site is configured in Cloudflare. I'm pretty sure I had to change the default settings to make it keep my site up even if my server goes down (and even then I'm not sure I did it right)

60.

A simple way to generate random points on a sphere(johndcook.com ↗)

80 points · by piinbinary · 1y ago · 75 comments

12345
16