frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Everything you never wanted to know about file locking (2010)

https://apenwarr.ca/log/20101213
29•SmartHypercube•5d ago

Comments

Number-Six•4d ago
So good in depth post. THANK YOU.
pseudohadamard•3d ago
Another good read is the SQLite locking module, https://www.sqlite.org/src/artifact/0240c5b547b4cf585c8cac35..., since these guys have to deal with the insanity of locking across different systems in real life.

You know things are bad when the least awful implementation of OS-level locking is the one from Microsoft.

chasil•1h ago
One sure way to get a lock is to make a directory.

  #!/bin/sh

  if mkdir /your/lockdir
  then trap "rmdir /your/lockdir" EXIT INT ABRT TERM
       ...code goes here...
  else echo somebody else has the lock
  fi
No matter how many processes attempt to make the directory, only one will succeed. That works for my scripting, but I have never used it in C.
Bratmon•54m ago
Usually when I read these writeups, I walk away thinking "Wow, $foo was a more complicated problem than I thought".

With this one, it was "Wow, $foo was a simpler problem than I thought and Unix (and thus Linux and OSX) just totally screwed it up for no reason"

Signal leaders warn agentic AI is an insecure, unreliable surveillance risk

https://coywolf.com/news/productivity/signal-president-and-vp-warn-agentic-ai-is-insecure-unrelia...
58•speckx•21m ago•10 comments

The Tulip Creative Computer

https://github.com/shorepine/tulipcc
69•apitman•1h ago•16 comments

90M people. 118 hours of silence. One nation erased from the internet

https://state-of-iranblackout.whisper.security/
169•silencednetizen•1h ago•140 comments

AI Generated Music Barred from Bandcamp

https://old.reddit.com/r/BandCamp/comments/1qbw8ba/ai_generated_music_on_bandcamp/
36•cdrnsf•25m ago•13 comments

Influencers and OnlyFans models are dominating U.S. O-1 visa requests

https://www.theguardian.com/us-news/2026/jan/11/onlyfans-influencers-us-o-1-visa
166•bookofjoe•2h ago•100 comments

Show HN: Ayder – HTTP-native durable event log written in C (curl as client)

https://github.com/A1darbek/ayder
10•Aydarbek•1h ago•1 comments

The rapid rise and slow decline of Sam Altman

https://garymarcus.substack.com/p/the-rapid-rise-and-slow-decline-of
23•treadump•28m ago•2 comments

What a year of solar and batteries saved us in 2025

https://scotthelme.co.uk/what-a-year-of-solar-and-batteries-really-saved-us-in-2025/
181•MattSayar•3h ago•202 comments

Apple Creator Studio

https://www.apple.com/newsroom/2026/01/introducing-apple-creator-studio-an-inspiring-collection-o...
357•lemonlime227•4h ago•301 comments

Legion Health (YC S21) Hiring Cracked Founding Eng for AI-Native Ops

https://jobs.ashbyhq.com/legionhealth/ffdd2b52-eb21-489e-b124-3c0804231424
1•ympatel•1h ago

Text-based web browsers

https://cssence.com/2026/text-based-web-browsers/
245•pabs3•13h ago•96 comments

Scott Adams has died

https://www.youtube.com/watch?v=Rs_JrOIo3SE
257•ekianjo•3h ago•618 comments

Everything you never wanted to know about file locking (2010)

https://apenwarr.ca/log/20101213
29•SmartHypercube•5d ago•5 comments

Show HN: An iOS budget app I've been maintaining since 2011

https://primoco.me/en/
105•Priotecs•8h ago•52 comments

Git Rebase for the Terrified

https://www.brethorsting.com/blog/2026/01/git-rebase-for-the-terrified/
169•aaronbrethorst•5d ago•186 comments

The Case for Blogging in the Ruins

https://www.joanwestenberg.com/the-case-for-blogging-in-the-ruins/
20•herbertl•56m ago•2 comments

Local Journalism Is How Democracy Shows Up Close to Home

https://buckscountybeacon.com/2026/01/opinion-local-journalism-is-how-democracy-shows-up-close-to...
316•mooreds•5h ago•213 comments

Show HN: SnackBase – Open-source, GxP-compliant back end for Python teams

https://snackbase.dev
46•lalitgehani•6h ago•6 comments

Cowork: Claude Code for the rest of your work

https://claude.com/blog/cowork-research-preview
1192•adocomplete•23h ago•515 comments

Mozilla's open source AI strategy

https://blog.mozilla.org/en/mozilla/mozilla-open-source-ai-strategy/
136•nalinidash•6h ago•103 comments

Show HN: FastScheduler – Decorator-first Python task scheduler, async support

https://github.com/MichielMe/fastscheduler
14•michielme•4h ago•4 comments

Indifference is a power

https://aeon.co/essays/why-stoicism-is-one-of-the-best-mind-hacks-ever-devised
175•suioir•4h ago•187 comments

Robotopia: A 3D, first-person, talking simulator

https://elbowgreasegames.substack.com/p/introducing-robotopia-a-3d-first
93•psawaya•4d ago•38 comments

The Cray-1 Computer System (1977) [pdf]

https://s3data.computerhistory.org/brochures/cray.cray1.1977.102638650.pdf
138•LordGrey•3d ago•76 comments

The UK is shaping a future of precrime and dissent management (2025)

https://freedomnews.org.uk/2025/04/11/how-the-uk-is-shaping-a-future-of-precrime-and-dissent-mana...
186•robtherobber•6h ago•205 comments

Show HN: Self-host Reddit – 2.38B posts, works offline, yours forever

https://github.com/19-84/redd-archiver
22•19-84•3h ago•0 comments

Chromium Has Merged JpegXL

https://chromium-review.googlesource.com/c/chromium/src/+/7184969
344•thunderbong•12h ago•111 comments

Beating the House for the Love of Math

https://advantage-player.com/blog/from-excel-to-web-blackjack-calculator
6•prolly97•4d ago•2 comments

Implementing a web server in a single printf() call (2014)

https://tinyhack.com/2014/03/12/implementing-a-web-server-in-a-single-printf-call/
76•nateb2022•4d ago•8 comments

Anthropic has made a large contribution to the Python Software Foundation

https://discuss.python.org/t/anthropic-has-made-a-large-contribution-to-the-python-software-found...
260•ayhanfuat•3h ago•118 comments