Another great read on futexes is Ulrich Drepper’s paper "Futexes Are Tricky" [1].
[1] https://cis.temple.edu/~giorgio/cis307/readings/futex.pdf
HN user
Another great read on futexes is Ulrich Drepper’s paper "Futexes Are Tricky" [1].
[1] https://cis.temple.edu/~giorgio/cis307/readings/futex.pdf
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...
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...
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.
The author has a few blog posts covering the tee, split, which, and cat commands [1].
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].
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!
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.
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.
As per RFC 3986 [1], reserved characters such as , and / must be URL encoded.
, is encoded as %2C
/ is encoded as %2F
A slightly related discussion on Type Unions in C# from a week ago: https://news.ycombinator.com/item?id=41183240
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.
They have an equally impressive post [1] about CPUs!
[1] https://cpu.land
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."
Surprising! This feels exactly like finding out Overleaf is open-source a few days back [0].
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
I believe it should be https://jobs.ashbyhq.com/continua
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.
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/
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.
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.
John Oliver did a UFO segment just a few days back: https://youtu.be/zRdhoYqCAQg
Is there something similar for Ralph's or other stores?
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.
On a tangential note, here's Calvin and Hobbes Search Engine - https://news.ycombinator.com/item?id=26119380
The link 404s and should be updated to https://devblogs.microsoft.com/ise/saving-co2-using-location... instead
What are some use cases where having AHK scripts would help? On the same note, can anyone share some existing list of scripts and their functions which helped make their lives easier?