HNHacker News
TopNewBestAskShowJobs

wizerno

246 karma · joined December 29, 2021

submissionscomments
wizerno··on We built our house for LAN parties (2024)
Previously discussed here: https://news.ycombinator.com/item?id=42156977
wizerno··on Without the futex, it's futile
Another great read on futexes is Ulrich Drepper’s paper "Futexes Are Tricky" [1].

[1] https://cis.temple.edu/~giorgio/cis307/readings/futex.pdf

wizerno··on Full Text Search of US Court records
https://www.judyrecords.com/what-happened-with-tyler-technol...
wizerno··on Show HN: Nissan's Leaf app doesn't have a home screen widget so I made my own
Does anyone else miss the functionality of the Android WhatsApp widget [1] on iOS? Being able to read messages without sending read receipts via the widget is a great feature. The iOS notification 'peek' is a clumsy substitute.

Is this a fundamental limitation of iOS widgets/APIs, or just something WhatsApp hasn't implemented? Curious if others have found better ways to handle this on iPhone.

[1] https://www.tomsguide.com/how-to/how-to-use-the-WhatsApp-wid...

wizerno··on Gregglogger
It looks like you're correct -- Gregglogger relies on pynput, and its behavior on macOS aligns with the library's documented limitations [1]:

Recent versions of macOS restrict monitoring of the keyboard for security reasons. For that reason, one of the following must be true:

- The process must run as root.

- Your application must be whitelisted under "Enable access for assistive devices." Note that this might require packaging your application, since otherwise the entire Python installation must be whitelisted.

- On macOS versions after Mojave, you may also need to whitelist your terminal application if running your script from a terminal.

[1] https://pynput.readthedocs.io/en/stable/limitations.html#mac...

wizerno··on Vercel acquires Grep to accelerate code search
I wonder if they'll index more repositories over time. As it stands, there's no clear way to tell what's indexed versus what's not. A transparent way to see the scope of coverage would be incredibly helpful for users.
wizerno··on Unix core utilities implemented in Haskell
The author has a few blog posts covering the tee, split, which, and cat commands [1].

[1] https://www.anardil.net/tag/coreutils.html

wizerno··on How America's universities became debt factories
John Oliver discusses how so many people have come to take on student loan debt, why it’s so hard to pay off, and what we can do about it [1].

[1] https://youtu.be/zN2_0WC7UfU

wizerno··on The Future of TLA+ [pdf]
As someone who's fascinated by formal verification and who's early in their career, what advice do senior folks who have been using TLA+ have?

TLA+ isn't taught in most universities and while I've read about so many interesting applications, I'm yet to convince myself that someone would hire me for knowing it rather than just teaching it to me on the job. Any tips to get started would also be appreciated!

wizerno··on Examples of Great URL Design (2023)
If you're referring to the StackOverflow example from the article, it's different because they follow `/questions/:id/:slug`. Keeping slug at the end makes it a lot easier to delete while keeping it readable.
wizerno··on Examples of Great URL Design (2023)
While the slug helps someone know what they're opening before reading it, most apps have link previews which give you just enough information you need.
wizerno··on Examples of Great URL Design (2023)
As per RFC 3986 [1], reserved characters such as , and / must be URL encoded.

, is encoded as %2C

/ is encoded as %2F

[1] https://www.rfc-editor.org/rfc/rfc3986

wizerno··on Approximating sum types in Python with Pydantic
A slightly related discussion on Type Unions in C# from a week ago: https://news.ycombinator.com/item?id=41183240
wizerno··on Examples of Great URL Design (2023)
An example of a not-so-great URL design: Amazon product links have an optional slug before everything else like `{slug}/dp/{id}`. So you end up copying a gigantic URL everytime you wish to share a product unless you use the share product button to get the shortened link.
wizerno··on Written by a 16 year old, a book on how computers work
They have an equally impressive post [1] about CPUs!

[1] https://cpu.land

wizerno··on Can reading make you happier? (2015)
https://archive.is/rfwJC
wizerno··on Relationships are coevolutionary loops (2023)
This is so important and underrated in life.

> "This is what I infer when I see someone who is comfortable in their unique strangeness, too. There probably exists someone who enabled that evolution of personality. A parent, a friend group, a spouse. It is rare for people to come into themselves if no one is excited and curious about their core, their potential. We need someone who gives us space to unfold."

wizerno··on Ask HN: what are examples of successful "open-source alternatives"?
Surprising! This feels exactly like finding out Overleaf is open-source a few days back [0].

[0] https://news.ycombinator.com/item?id=40832930

wizerno··on Rounding Percentages
It's also called banker's rounding. To understand why it's a good default, you can check out https://mathematica.stackexchange.com/a/2120
wizerno··on Ask HN: Who is hiring? (July 2024)
I believe it should be https://jobs.ashbyhq.com/continua
wizerno··on Overleaf: An open-source online real-time collaborative LaTeX editor
Exactly. I had the same thought so I checked the website again and there is almost none to no mention of "open-source" or their GitHub repository link anywhere. Quite likely being done to drive more users to buy subscriptions instead of self-hosting it.
wizerno··on My .gitconfig File Dissected
Julia Evans blog post [1] on the same topic, contains some more useful options.

[1] https://jvns.ca/blog/2024/02/16/popular-git-config-options/

wizerno··on Analysis of Hacker News Community Trends
Barring a bunch of tables, I don't see how this is helpful. There's no mention of how key metrics were calculated either.

I suspect everything after "This comprehensive analysis offers insights..." is written with the help of an LLM too.

wizerno··on CedarDB: German-Powered, PostgreSQL-Compatiable Freak of Nature Database System
https://cedardb.com/docs/technology talks about the technical details on how they maximize their usage of available cores and RAM, and their query optimizer.
wizerno··on Jimmy Carter UFO Incident
John Oliver did a UFO segment just a few days back: https://youtu.be/zRdhoYqCAQg
wizerno··on Show HN: Daily price tracking for Trader Joe's
Is there something similar for Ralph's or other stores?
wizerno··on How does a B-tree make queries fast?
TLDR; Garbage Collection.

In an SSD, a write operation can only be done when the page is already erased. However, the unit of read/write operations are a page, while the unit of erase operation is a block. That means for a disk write, a naive implementation needs to read the whole block, erase the block, then write updated data back to the block, which is unacceptable. Furthermore, blocks should wear out uniformly, otherwise, the SSD would lose capacity.

To tackle these problems, SSD introduces Flash Translation Layer (FTL) which helps to build an illusion of random access device. To achieve this, FTL employs an approach very similar to LSM trees. Writes are always written to new, already erased pages, while in the background, garbage collects (GC) outdated data. FTL needs to keep a map from the user’s logical address to physical address on SSD, both in-memory and persistently.

So to answer your question, why are sequential writes are faster than random writes on SSDs? Because the address map table is smaller since new data is consecutive in larger chunks. Garbage Collection is simpler and only metadata needs to be updated. Erasing a block is required anyway.

wizerno··on Bill Watterson Commencement Speech (1990)
On a tangential note, here's Calvin and Hobbes Search Engine - https://news.ycombinator.com/item?id=26119380
wizerno··on Saving CO2 using location and time shifting in Azure
The link 404s and should be updated to https://devblogs.microsoft.com/ise/saving-co2-using-location... instead
wizerno··on Tilde.news – A Link Aggregator for the Tildeverse
https://tilde.wiki/wiki/Main_Page
Page 1 of 2Next →