News for hackers. Stuff that matters.

wizerno

Re:We built our house for LAN parties on Tuesday September 08, 2026 @03:48AM (#49606945)
Re:Without the Futex, It's Futile on Tuesday August 19, 2025 @11:25AM (#44952671)
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...

Re:Gregglogger on Wednesday November 20, 2024 @09:35PM (#42200509)
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...

Re:Vercel acquires Grep to accelerate code search on Wednesday November 20, 2024 @09:18PM (#42200412)
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.
Re:Unix core utilities implemented in Haskell on Sunday November 03, 2024 @08:37AM (#42032996)
The author has a few blog posts covering the tee, split, which, and cat commands [1].

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

Re:How America's universities became debt factories on Saturday September 14, 2024 @01:09PM (#41541107)
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

Re:The Future of TLA+ [pdf] on Wednesday August 28, 2024 @05:30PM (#41384618)
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!

Re:Examples of Great URL Design (2023) on Wednesday August 14, 2024 @08:57AM (#41245556)
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.
Re:Examples of Great URL Design (2023) on Wednesday August 14, 2024 @08:54AM (#41245520)
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.
Re:Examples of Great URL Design (2023) on Wednesday August 14, 2024 @07:13AM (#41244791)
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

Re:Approximating sum types in Python with Pydantic on Wednesday August 14, 2024 @07:02AM (#41244720)
A slightly related discussion on Type Unions in C# from a week ago: https://news.ycombinator.com/item?id=41183240
Re:Examples of Great URL Design (2023) on Wednesday August 14, 2024 @06:37AM (#41244590)
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.
Re:Written by a 16 year old, a book on how computers work on Sunday August 04, 2024 @05:55PM (#41156587)
They have an equally impressive post [1] about CPUs!

[1] https://cpu.land

Re:Relationships are coevolutionary loops (2023) on Tuesday July 23, 2024 @09:57PM (#41052960)
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].

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

Re:Rounding Percentages on Tuesday July 02, 2024 @08:16AM (#40855884)
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
Re:Ask HN: Who is hiring? (July 2024) on Monday July 01, 2024 @12:09PM (#40847171)
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.
Re:My .gitconfig File Dissected on Thursday June 27, 2024 @09:17AM (#40810159)
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/

Older »