frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

France confirms data breach at government agency that manages citizens' IDs

https://techcrunch.com/2026/04/22/france-confirms-data-breach-at-government-agency-that-manages-c...
174•robtherobber•1h ago•55 comments

Bitwarden CLI Compromised in Ongoing Checkmarx Supply Chain Campaign

https://socket.dev/blog/bitwarden-cli-compromised
302•tosh•2h ago•147 comments

Incident with Multple GitHub Services

https://www.githubstatus.com/incidents/myrbk7jvvs6p
49•bwannasek•55m ago•26 comments

I am building a cloud

https://crawshaw.io/blog/building-a-cloud
815•bumbledraven•12h ago•415 comments

Show HN: Honker – Postgres NOTIFY/LISTEN Semantics for SQLite

https://github.com/russellromney/honker
158•russellthehippo•5h ago•25 comments

A DIY Watch You Can Actually Wear

https://www.hackster.io/news/a-diy-watch-you-can-actually-wear-8f91c2dac682
35•sarusso•2d ago•15 comments

Your hex editor should color-code bytes

https://simonomi.dev/blog/color-code-your-bytes/
381•tobr•2d ago•110 comments

Alberta startup sells no-tech tractors for half price

https://wheelfront.com/this-alberta-startup-sells-no-tech-tractors-for-half-price/
2036•Kaibeezy•1d ago•699 comments

'Hairdryer used to trick weather sensor' to win $34,000 Polymarket bet

https://www.telegraph.co.uk/business/2026/04/23/hairdryer-used-trick-weather-sensor-34000-polymar...
7•zdw•15m ago•1 comments

To Protect and Swerve: NYPD Cop Has 547 Speeding Tickets

https://nyc.streetsblog.org/2026/04/23/to-protect-and-swerve-nypd-cop-has-527-speeding-tickets-ye...
100•greedo•2h ago•67 comments

Apple fixes bug that cops used to extract deleted chat messages from iPhones

https://techcrunch.com/2026/04/22/apple-fixes-bug-that-cops-used-to-extract-deleted-chat-messages...
777•cdrnsf•20h ago•177 comments

MeshCore development team splits over trademark dispute and AI-generated code

https://blog.meshcore.io/2026/04/23/the-split
4•wielebny•21m ago•0 comments

Investigation uncovers two sophisticated telecom surveillance campaigns

https://techcrunch.com/2026/04/23/surveillance-vendors-caught-abusing-access-to-telcos-to-track-p...
313•mentalgear•5h ago•107 comments

Writing a C Compiler, in Zig (2025)

https://ar-ms.me/thoughts/c-compiler-1-zig/
89•tosh•7h ago•28 comments

A Renaissance gambling dispute spawned probability theory

https://www.scientificamerican.com/article/how-a-renaissance-gambling-dispute-spawned-probability...
61•sohkamyung•2d ago•8 comments

Jiga (YC W21) Is Hiring

https://jiga.io/about-us/
1•grmmph•5h ago

We found a stable Firefox identifier linking all your private Tor identities

https://fingerprint.com/blog/firefox-tor-indexeddb-privacy-vulnerability/
850•danpinto•23h ago•254 comments

The Ferrari of Espresso Machines Is Fueling a Hot Resale Market

https://www.nytimes.com/2026/04/20/dining/la-marzocco-espresso-machine.html
6•mitchbob•2d ago•1 comments

Isopods of the world

https://isopod.site/
99•debesyla•2d ago•41 comments

Arch Linux Now Has a Bit-for-Bit Reproducible Docker Image

https://antiz.fr/blog/archlinux-now-has-a-reproducible-docker-image/
216•maxloh•15h ago•76 comments

5x5 Pixel font for tiny screens

https://maurycyz.com/projects/mcufont/
754•zdw•4d ago•151 comments

Raylib v6.0

https://github.com/raysan5/raylib/releases/tag/6.0
145•rydgel•5h ago•18 comments

Our newsroom AI policy

https://arstechnica.com/staff/2026/04/our-newsroom-ai-policy/
148•zdw•12h ago•102 comments

A History of Erasures Learning to Write Like Leylâ Erbil

https://thepointmag.com/criticism/a-history-of-erasures/
20•lermontov•2d ago•0 comments

A True Life Hack: What Physical 'Life Force' Turns Biology's Wheels?

https://www.quantamagazine.org/what-physical-life-force-turns-biologys-wheels-20260420/
160•Prof_Sigmund•2d ago•32 comments

The end of responsive images

https://piccalil.li/blog/the-end-of-responsive-images/
23•OuterVale•3h ago•14 comments

If America's So Rich, How'd It Get So Sad?

https://www.derekthompson.org/p/if-americas-so-rich-howd-it-get-so
113•momentmaker•1h ago•185 comments

An amateur historian's favorite books about the Silk Road

https://bookdna.com/best-books/silk-road
68•bwb•2d ago•28 comments

Website streamed live directly from a model

https://flipbook.page/
390•sethbannon•23h ago•103 comments

Over-editing refers to a model modifying code beyond what is necessary

https://nrehiew.github.io/blog/minimal_editing/
401•pella•23h ago•234 comments
Open in hackernews

Path is a utility for working with paths

https://gitlab.com/SpyrjaGaldr/path
60•spyrja•12mo ago
A recent post here got me thinking about my own personal gripes with OS path handling offerings. So I've basically spent the passed couple of days working on a little project in an attempt to rectify the situation somewhat (in the spirit of cross-platform development). It should also work pretty well with existing tools. Let me know what you think, and feel free to open an issue or a pull-request if you have any problems getting it running it on your system. Enjoy!

Github link: https://github.com/SpyrjaGaldr/path

https://simonsafar.com/2025/path_as_system_call/

https://news.ycombinator.com/item?id=43788728

Comments

vesinisa•12mo ago
What can this do that standard Unix find can not do?
autobodie•12mo ago
cross platform support, according to the description.
indemnity•12mo ago
fd exists https://github.com/sharkdp/fd
spyrja•12mo ago
Looks like it has a pretty good interface as well. It does however seem a just a bit too top-heavy (lot's of dependencies) not to mention a few more bugs than I particularly care for. But sheesh, 37K stars, it must be good for something!
blooalien•12mo ago
> ... "it must be good for something!"

It's good for finding files fast, and piping the resulting file paths into other tools for further action / handling. It does what it claims to do and does it well. :)

spyrja•12mo ago
I would say the default behaviour just isn't very ergonomic. Suppressing warnings for example requires piping to /dev/null (whereas `path` supresses permission warnings by default), if you want to limit the number of results you have to pipe the output to another command, getting xargs-like behaviour (obviously), or putting quotes around lines with embedded spaces, there are simply more hoops to jump through. It's much easier to type "path -sf .jpg .jpeg .png" than whatever would be required to get the `find` utility to do the same. (Or, say, finding all node_modules folders with "path -z n_m", it's just so much more satisfying.) But yes, these are mostly just syntactic-sugar kinds of issues. Aside from that (and perhaps the lack of cross-platform compatibility), I would say there is nothing inherently deficient about the `find` command. It's a work-horse which probably has more features than `path` does. But the latter really is growing on me. It is actually quite fun to use, if I may say so myself!
jimbokun•12mo ago
“A more ergonomic find command” is a nice elevator pitch.
pimlottc•12mo ago
From the name and description, I expected this to perform operations on file path strings, like convert relative to absolute (and vice versa), expand symlinks, convert unix paths to dos, etc. This is more like a find command.
spyrja•12mo ago
I don't see why it necessarily couldn't, my only question would be if there are really many actual use cases for such things? As far as symlinks go, I suppose being able to expand them (but not following them!) might be somewhat useful. But converting to DOS paths and vice-versa? That just doesn't seem very useful. Nevermind converting to-and-fro relative and absolute paths, I can't even imagine what the point of that would be. But perhaps I'm just not seeing the forest for the trees, as they say.
qrobit•12mo ago
As a rule of thumb I always make paths absolute when handling files in scripts. But then sometimes I need to copy a directory tree relative to $CWD somewhere else, so I convert them back to relative

Fish, being a great shell, provides this via `path` command[0]

[0]: https://fishshell.com/docs/current/cmds/path.html

jl6•12mo ago
> for the primary purpose of helping other programs know where to find stuff

Potential footgun to make a program rely on this to locate, say, a shared library (as in one of the examples), if there’s a possibility that someone has smuggled a malware’d version of it into, say, /tmp, since it defaults to searching the root directory.

spyrja•12mo ago
Kind of, but also kind of not. I mean if someone can smuggle a file into some random directory, chances are they have enough access to write directly to the "correct" folder to begin with. Personally I wouldn't execute or otherwise load any sort of executable content from a non-root directory (although certainly there are many people who wouldn't even think twice before doing such a thing). So it really just boils down to having a sane security-policy. Restrict searches with something like "path -d /usr *" and you are guaranteed not to scoop-up something that was world-writable in the first place. In fact in the example given in the README, that is precisely how that would have worked. Both /lib32 and /lib64 are owned by "root" and hence not a concern.
jl6•12mo ago
Naturally every footgun is guaranteed to be safe as long as you use it right :)

I wonder if a safer default would be to start searches at the current directory rather than the root directory?

spyrja•12mo ago
I did actually consider that at one point, but eventually decided against it because I felt would have meant a sacrifice in performance; first you'd do the local search, then start at the very top and recurse back down, checking every single entry against the local path to be sure that you don't do the local traversal all over again. Fortunately the code base is very clean and straight-forward, so it would be a fairly trivial excercise to just fork the repo and make those changes yourself to get that kind of behaviour.
spyrja•12mo ago
Well I ran a bunch of tests and it turns out that the performance wasn't actually impacted very much after all. So the changes are official. I also made some other adjustments to the default behaviour; if no pattern is specified then it just matches everything. In other words, "path -f" prints every regular file in the filesystem (starting in the current one). Anyway, thanks for the suggestion, otherwise I may not gone down that (decidedly satisfying) rabbit-hole!
account-5•12mo ago
I've been finding nushell's `ls` with a where clause is pretty good for this. There's also the `find` command too.