frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Attention Kmart shoppers – music played over the store PA

https://www.attentionshoppers.net/
132•ChrisArchitect•3h ago•32 comments

Optimizing Rustc's next trait solver

https://donsz.nl/blog/optimizing-rustcs-next-trait-solver
58•g0xA52A2A•3d ago•0 comments

PocketBase has moved off GitHub

https://github.com/pocketbase/pocketbase/issues/7872
262•p2detar•7h ago•111 comments

Show HN: I made a tiny live replica of SFO

https://tinysfo.com/
383•eiiot•9h ago•117 comments

The importance of understanding what the fuck is going on

https://blog.jsbarretto.com/post/understanding
254•notfried•8h ago•152 comments

Gmail "Send as" ends January 2027

https://emailfa.st/blog/gmail-send-as-ending-cloudflare-email-routing
357•tombakerbuilds•9h ago•205 comments

Elephant in the Server Room: >50% of WordPress Sites Run PHP That's EOL by Jan

https://adamgreenough.net/blog/wordpress-php-versions/
32•xadz•4h ago•12 comments

The Rise of Low Precision Floating Point

https://arxiv.org/abs/2611.00301
13•matt_d•4d ago•0 comments

Lua as a Query Language

https://remy.wang/blog/lua-ql.html
54•remywang•5h ago•15 comments

Computer Disease (2020)

https://blog.adafruit.com/2020/01/13/richard-feynman-on-computer-disease/
228•jvanderbot•12h ago•87 comments

Silently degrading the model's capabilities is sabotage

https://twitter.com/TimSweeneyEpic/status/2126682647862862063
757•tosh•13h ago•308 comments

Show HN: RK3588 QEMU emulator running unmodified Armbian images

https://github.com/petabyt/clanker-rkqemu
3•petabyt•49m ago•0 comments

Cryptography Incident Review Group

https://cirg.org/
37•heavensteeth•4h ago•7 comments

Audible removes download option for purchased audiobooks

https://consumerrights.wiki/w/Audible_removes_download_option_for_purchased_audiobooks
1256•DeepLogin•17h ago•473 comments

Hacker Laws

https://github.com/dwmkerr/hacker-laws
8•Olshansky•1h ago•1 comments

M 5.0 earthquake - 5 km SW of Manhattan Beach, CA

https://earthquake.usgs.gov/earthquakes/eventpage/ci41581136/executive
181•dboreham•11h ago•110 comments

Conductive Dyes Could Turn Hair into EEG Electrodes

https://spectrum.ieee.org/hair-dye-eeg-electroencephalography
40•dverlaeckt80•2d ago•5 comments

Show HN: Archive95, an independent archive of the early web

https://archive95.net/
87•WumboSpasm•8h ago•12 comments

GGUF LLM Models with Hidden Malware on Hugging Face Reached 2400 Victims

https://malspark.com/blog/malicious-gguf-models-hugging-face/
297•homarp•17h ago•92 comments

Guitar Hero, but for Hand Bells

https://dingdonghero.com
4•devbytes•3d ago•1 comments

Tilapia are multi-jawed monsters

https://signoregalilei.com/2026/11/01/tilapia-are-multi-jawed-monsters/
70•surprisetalk•3d ago•18 comments

Werner Vogels' Tech predictions for 2027 and beyond

https://www.allthingsdistributed.com/2026/11/tech-predictions-for-2027-and-beyond.html
72•simonebrunozzi•8h ago•28 comments

What Changes When You Upgrade from PostgreSQL 18 to 19

https://rishigoomar.com/postgresql-19-what-changes-when-you-upgrade-from-18
80•rgoomar•2d ago•23 comments

Rez Dreamcast, Its Prototypes: When Psychedelic Gaming Came to Consoles

https://www.sega-dreamcast-info.com/en/rez-dreamcast-development-history-prototypes-minidv-archive
99•zdw•4d ago•37 comments

Doug Lea's Malloc

https://gee.cs.oswego.edu/dl/html/malloc.html
18•grep_it•3d ago•5 comments

Show HN: Peat, a fork of Neon's serverless Postgres, on Postgres 18 and 19

https://github.com/Zabaca/peat
59•uptownhr•7h ago•12 comments

Diablo II

https://www.filfre.net/2026/11/diablo-ii/
279•doppp•19h ago•103 comments

Does Task Framing Change How Claude Code Works? A Preliminary Study

https://xinyadu.github.io/blog/claude-code-sabotage.html
952•abedelez•19h ago•370 comments

Farewell

https://github.com/p-e-w/heretic/issues/601
1095•nolist_policy•17h ago•425 comments

Show HN: Venndetta, daily Venn diagram puzzles about real-world data

https://trost.co/venndetta/
42•matthewtoast•7h ago•20 comments
Open in hackernews

Path is a utility for working with paths

https://gitlab.com/SpyrjaGaldr/path
60•spyrja•1y 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•1y ago
What can this do that standard Unix find can not do?
autobodie•1y ago
cross platform support, according to the description.
indemnity•1y ago
fd exists https://github.com/sharkdp/fd
spyrja•1y 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•1y 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•1y 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•1y ago
“A more ergonomic find command” is a nice elevator pitch.
pimlottc•1y 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•1y 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•1y 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•1y 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•1y 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•1y 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•1y 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.
account-5•1y ago
I've been finding nushell's `ls` with a where clause is pretty good for this. There's also the `find` command too.
spyrja•1y 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!