News for hackers. Stuff that matters.

nick0garvey

Re:Ask HN: What are you working on? (June 2026) on Sunday June 14, 2026 @05:13PM (#48532782)
Awesome. If you are not in touch with Maker Nexus (based out of Sunnyvale) already, please reach out! Would love to put you in touch with the administrators there on what they learned about successfully running a non-profit maker space.
Re:Ask HN: Who is hiring? (March 2026) on Monday March 02, 2026 @06:15PM (#47225647)
The final Greenhouse link doesn't work in this listing
Re:How Exchanges Turn Order Books into Distributed Logs on Saturday December 13, 2025 @11:22AM (#46255683)
> Pipelined replication: the sequencer assigns a sequence number immediately and ships the event to replicas in parallel. Matching doesn't wait for the replicas to acknowledge.

How is this avoiding data loss if the lead sequencer goes down after acking but without the replica receiving the write?

Re:Where's Firefox Going Next? on Tuesday July 15, 2025 @09:34PM (#44577833)
It says "PAID ONLY BY A RELATED FOR-PROFIT", which looks to be the Mozilla Corporation. Donations are not directly paying the CEO, although I agree more of the profits from the Corporation could flow into the non-profit.
Re:Ask HN: What's your go-to message queue in 2025? on Sunday May 18, 2025 @04:31PM (#44024113)
Hold the lock and write a row with timestamp at the time you read.

That row indicates you are the one processing the data and no one else should. When reading, abort the read if someone else wrote that row first.

When you are finished processing, hold the lock and update the row you added before to indicate processing is complete.

The timestamp can be used to timeout the request.

Re:Why is it so hard to buy things that work well? on Monday December 16, 2024 @02:49PM (#42434627)
I'm not quite following. His argument appears to be: The replication system requires a backwards seek, Postgres does not support that operation, things break when that operation is attempted.

I don't understand why replication would need a backwards seek - are you saying it doesn't and he is mistaken on that?

Re:The Languages of English, Math, and Programming on Saturday October 19, 2024 @11:40PM (#41892687)
I took a Udacity class by Norvig [1] and my abilities as a programmer clearly were improved afterward.

His code here demonstrates why. It is both shorter and much easier to understand than anything the LLMs generated. It is not always as efficient as the LLMs (who often skip the third loop by calculating the last factor), but it is definitely the code I would prefer to work with in most situations.

[1] https://www.udacity.com/course/design-of-computer-programs--...

Re:Amusing Ourselves to Death on Saturday September 28, 2024 @09:22AM (#41680074)
Morphy, one of the greatest players of all time, is famous for this.

"The ability to play chess is the sign of a gentleman. The ability to play chess well is the sign of a wasted life."

Re:Show HN: I made a TUI for kafka (kaskade) on Sunday July 14, 2024 @07:28PM (#40964014)
There is also the deleteRecords API specifically for this. It's easier than the retention shrink -> increase dance, as it is a single API call and retention does not kick in immediately. The log segment must roll for retention to apply, either due to size or time.

https://kafka.apache.org/11/javadoc/org/apache/kafka/clients...

Re:Special-Use Domain 'Home.arpa.' (2018) on Monday June 03, 2024 @05:51PM (#40567994)
I use this for everything at my house. I haven't add any issues.
Re:NetworkX – Network Analysis in Python on Saturday December 09, 2023 @12:36AM (#38578940)
I use NetworkX to build the graphs and Gephi to visualize them. No need to pick a single tool.
Re:Advent of Code 2023 is nigh on Friday December 01, 2023 @12:50PM (#38489746)
I also started to write a finite state machine for part 2 but found it too tedious to craft by hand. How did you do it?
Re:Luiz André Barroso has died on Thursday November 23, 2023 @03:48PM (#38397360)
His book "The Datacenter as a Computer: An Introduction to the Design of Warehouse-Scale Machines" was immensely valuable to me as I moved into datacenter management as a new-grad. RIP.

https://research.google/pubs/pub41606/

This isn't unreasonable. ML workloads benefit from more computational time per request. Lower QPS = better results.
Can someone explain why the "no free lunch theorem" does not cause problems here?

https://en.wikipedia.org/wiki/No_free_lunch_theorem

Re:Ask HN: How to Focus Again? on Saturday September 02, 2023 @12:56PM (#37363254)
A lot of people in this thread point at motivation or mental health issues. The issue is likely not so complicated.

You have forgotten how to focus. We live in a world where we are constantly distracted. This is forced on us. The apps we use compete over our attention, our workplace expects quick replies over Slack, our free time is always accompanied by a smart phone pushing us notifications.

These effects are getting stronger. Technology evolves new attention taking techniques. Our remote work culture expects faster replies as you are, in theory, always at your desk.

You can address this focus deficiency, but it isn't easy. Put your phone always on Do Not Disturb. Use site blocking extensions to limit time wasters (yes, even Hacker News). Stop being so responsive at work.

The first few weeks will hurt. You won't instantly be able to focus, and you will feel less productive due to the lower response time. But after some time, you will be able to do work others cannot. You can complete the big work you are struggling to right now. Relearn how to focus.

Re:California Forever on Thursday August 31, 2023 @11:07PM (#37346336)
If Solano county votes this down, it dies. They need to sell it this way.
Re:Code Llama, an AI tool for coding on Thursday August 24, 2023 @12:55PM (#37251361)
They show the benchmarks in the original post, a few pages down
Most of the attacks I see on Nordic devices are power based attacks, where cutting the power for a brief instant causes protection instructions not to run.

This one is entirely different, and attacks the initialization code directly. This code has no restrictions on its ability to access memory, allowing a full dump.

Great method.

You say "don't suggest to buy some old Dell Optiplex from eBay" but I did exactly this.

I spent $43.97 (which included shipping) for the Optiplex, added a 2 port NIC for $16.37, and it's been running my house great since then.

Re:Framework Laptop 16 Deep Dive – Enclosure on Thursday June 22, 2023 @05:27PM (#36439262)
Aluminum alloys are also generally stronger than magnesium alloys.
Airplanes fit a more people into the same space than they used to.
Re:Writing the Most Boring Quine on Saturday March 04, 2023 @03:47PM (#35024349)
I wouldn't say this is the most boring. In Python it is certainly an empty file.

It was interesting to see the author work through the major obstacles one by one when writing a quine. Glad they didn't take the actual boring route!

Re:Is It Time to Replace TCP in Data Centers? on Tuesday February 21, 2023 @03:10PM (#34886360)
I don't agree. A subset of high performance applications in a datacenter can use a new protocol while still supporting TCP for other applications. I'm not saying this is easy, or even worth it, but it isn't all or nothing.
Re:Ain't It Funny How the Knight Moves? on Friday January 20, 2023 @06:38PM (#34461768)
This took me 14:02 on the first try. Definitely got faster as time went on but I found myself getting stuck on a few squares for no good reason. Starting from the destination and working toward the source helped.
Re:Salesforce, but for Dating on Wednesday January 18, 2023 @03:41PM (#34432782)
Dating has a large emotional aspect. Using heavyweight management software for this kind of thing is ridiculous. If you need CRM to remind yourself of the emotional impact you had on a date, then some part of this process has gone horribly wrong.
Re:One Thing – Put a single task or goal in your menu bar on Friday December 30, 2022 @03:00PM (#34189304)
I use the Run window for this same thing
Re:McDonalds Event Driven Architecture on Wednesday December 07, 2022 @02:23AM (#33891615)
Cloud services do go down and it's out of your control when they do. If something must work, you need redundancy.

Kafka is often used for financial applications that must not miss events, so having a backup buffer is a reasonable strategy for those use cases. Things like tracking data is likely not worth backing up due to high data volume and low external visibility when data is dropped.

Interesting one liner but would like to see the colors it generates
I make heavy use of Soulver. Really quick way to do some quick calculations with good unit conversion.

e.g. I can write hosts = 100; disk_space_used = 10MiB/s * hosts * 3 days as TiB

And it works as expected. Powerful tool when doing capacity planning or other load calculations.

Older »