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

comment 1y ago · link · parent

Unification is the core of Algorithm W, aka Hindley–Milner type inference. It's at the core of the type inference algorithms for languages like Haskell, OCaml, and standard ML.

comment 1y ago · link · parent

Relevant snipped from the article:

> Thus, the name Torpenhow Hill could be interpreted as 'hill-hill-hill Hill'.

63.

Torpenhow Hill(en.wikipedia.org ↗)

1 points · by piinbinary · 1y ago · 1 comment

comment 1y ago · link · parent

I wonder why procmacros are slow. Can the compiler interpret them or does it have to go to all the work of compiling them before they can run?

comment 1y ago · link · parent

It's always seemed strange to me how the world agrees that it is fine to deprive someone of sleep if they happen to have a late sleep schedule (by e.g. starting school or work early).

comment 1y ago · link · parent

AI training is currently a process of making the AI remember the dataset. It doesn't involve the AI thinking about the dataset and drawing (and remembering) conclusions.

It can probably remember more facts about a topic than a PhD in that topic, but the PhD will be better at thinking about that topic.

comment 1y ago · link · parent

Kudos to the author for making this very clear and easy to understand. More technical writing should be like this.

On another note, it's mind-blowing that a single string can parse as XML, JSON, and YAML.

comment 1y ago · link · parent

> At the other extreme, writing merely puts into words something readers were already thinking — or thought they were.

I actually really like this end of the essay spectrum.

Reading (and writing!) this kind of essay can tie together mental loose threads, finishing a nearly-complete bit of thinking, finally coalescing a bunch of static into a coherent signal. The essay can give the concept a name (e.g. maker's schedule, manager's schedule) or at minimum allow referring to the entire conceptual result with a single URL.

They can get people talking about a thought that they've all had but never shared. They can provide a new starting line for thinking, allowing it to advance a few millimeters further.

comment 1y ago · link · parent

Prior discussions

https://news.ycombinator.com/item?id=14177503

https://news.ycombinator.com/item?id=10842988

70.

Monads to Machine Code(stephendiehl.com ↗)

3 points · by piinbinary · 1y ago · 1 comment

comment 1y ago · link · parent

With a sample size of 1, Gemini 2.5 Pro (Experimental) did a great job of this (and was considerably faster than O3)

72.

A UI might not make it easier(jeremymikkola.com ↗)

25 points · by piinbinary · 1y ago · 5 comments

comment 1y ago · link · parent

It would be cool to see examples of what it can accomplish

74.

Software Shouldn't Flow Away (2020)(jeremymikkola.com ↗)

2 points · by piinbinary · 1y ago · discuss

comment 1y ago · link · parent

Why don't any of the trains go into New Jersey? That seems like a big wasted opportunity for adding more space that can easily commute into the city.

76.

So I rolled my own static site generator(pointersgonewild.com ↗)

2 points · by piinbinary · 1y ago · discuss

comment 2y ago · link · parent

I like debuggers and use them when I can, but folks who say you should only use debuggers tend to not realize:

* Not all languages have good debuggers.

* It's not always possible to connect a debugger in the environment where the code runs.

* Builds don't always include debug symbols, and this can be very high-friction to change.

* Compilers sometimes optimize out the variable I'm interested in, making it impossible to see in a debugger. (Haskell is particularly bad about this)

* As another commenter mentioned, the delay introduced by a debugger can change the behavior in a way that prevents the bug. (E.g. a connection times out)

* In interpreted languages, debuggers can make the code painfully slow to run (think multiple minutes before the first breakpoint is hit).

One technique that is easier to do in printf debugging is comparing two implementations. If you have (or create) one known-good implementation and have a buggy implementation, you can change the code to run both implementations and print when there's a difference in the result (possibly with some logic to determine if results are equivalent, e.g. if the resulting lists are the same up to ordering).

comment 2y ago · link · parent

It's frustrating how disposable these are designed to be

edit: e.g. screen replacements cost nearly as much as the entire computer

comment 2y ago · link · parent

Ignoring the butterfly effect issue, I would have said just pick the title of a given newspaper on a given date as the password.

comment 2y ago · link · parent

The same applies to tech debt: https://jeremymikkola.com/posts/2022_01_29_tech_debt_gets_wo...

(Yes there's a typo in the url. It bugs me, too)

prior discussion: https://news.ycombinator.com/item?id=30128627

comment 2y ago · link · parent

It's somewhat amusing to look back on my Computer Science education, where they taught us that database transactions are used to ensure bank balances are moved atomically between accounts

comment 2y ago · link · parent

That's how you can identify a 24-ohm snake https://xkcd.com/1604/

comment 2y ago · link · parent

It seems that surely there are lessons a hacker could learn from NATO's success (to the degree that you agree that it has been a success), but I am not a sufficient student of history to know what those lessons might be.

comment 2y ago · link · parent

Lambdas / functions are another common basis type

comment 2y ago · link · parent

"Bees get jet lag"

That seems like a much simpler experiment than the previous ones!

86.

The almost impossible chessboard puzzle(youtube.com ↗)

2 points · by piinbinary · 2y ago · discuss

comment 2y ago · link · parent

True, I should have said "low-end gaming PCs"

comment 2y ago · link · parent

The press release has a strange title for new chips targeted at lower-end PCs (those without a dedicated GPU).

comment 2y ago · link · parent

I bet it's big enough that it could also contain an SD card reader, which could be really useful

90.

Moving Git commits between repos (2017)(jeremymikkola.com ↗)

41 points · by piinbinary · 2y ago · 10 comments

12345
16