frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Myocardial infarction may be an infectious disease

https://www.tuni.fi/en/news/myocardial-infarction-may-be-infectious-disease
270•DaveZale•5h ago•97 comments

Pass: Unix Password Manager

https://www.passwordstore.org/
72•Bogdanp•3h ago•38 comments

If my kids excel, will they move away?

https://jeffreybigham.com/blog/2025/where-will-my-kids-go.html
78•azhenley•2h ago•22 comments

Show HN: A store that generates products from anything you type in search

https://anycrap.shop/
776•kafked•15h ago•253 comments

AMD's RDNA4 GPU Architecture at Hot Chips 2025

https://chipsandcheese.com/p/amds-rdna4-gpu-architecture-at-hot
66•rbanffy•6h ago•2 comments

Recreating the US time zone situation

https://rachelbythebay.com/w/2025/09/12/tz/
31•move-on-by•10h ago•15 comments

Lexy: A parser combinator library for C++17

https://github.com/foonathan/lexy
20•klaussilveira•3d ago•0 comments

Two Slice, a font that's only 2px tall

https://joefatula.com/twoslice.html
39•JdeBP•3h ago•14 comments

RFC9460: SVCB and HTTPS DNS Records

https://datatracker.ietf.org/doc/html/rfc9460
23•codewiz•2h ago•1 comments

RIP pthread_cancel

https://eissing.org/icing/posts/rip_pthread_cancel/
159•robin_reala•9h ago•71 comments

Adding OR logic forced us to confront why users preferred raw SQL

https://signoz.io/blog/query-builder-v5/
29•ak_builds•3d ago•19 comments

486Tang – 486 on a credit-card-sized FPGA board

https://nand2mario.github.io/posts/2025/486tang_486_on_a_credit_card_size_fpga_board/
151•bitbrewer•12h ago•45 comments

How the restoration of ancient Babylon is drawing tourists back to Iraq

https://www.theartnewspaper.com/2025/09/12/how-the-restoration-of-ancient-babylon-is-helping-to-d...
12•leoh•2h ago•1 comments

Safe C++ proposal is not being continued

https://sibellavia.lol/posts/2025/09/safe-c-proposal-is-not-being-continued/
120•charles_irl•8h ago•79 comments

How Ruby executes JIT code

https://railsatscale.com/2025-09-08-how-ruby-executes-jit-code-the-hidden-mechanics-behind-the-ma...
103•ciconia•4d ago•14 comments

Orange rivers signal toxic shift in Arctic wilderness

https://news.ucr.edu/articles/2025/09/08/orange-rivers-signal-toxic-shift-arctic-wilderness
49•hbcondo714•2d ago•1 comments

EFF to court: The Supreme Court must rein in secondary copyright liability

https://www.eff.org/deeplinks/2025/09/eff-court-supreme-court-must-rein-expansive-secondary-copyr...
59•walterbell•3h ago•18 comments

Four-year wedding crasher mystery solved

https://www.theguardian.com/uk-news/2025/sep/12/wedding-crasher-mystery-solved-four-years-bride-s...
260•wallflower•12h ago•79 comments

My first impressions of gleam

https://mtlynch.io/notes/gleam-first-impressions/
167•AlexeyBrin•13h ago•61 comments

The case against social media is stronger than you think

https://arachnemag.substack.com/p/the-case-against-social-media-is
162•ingve•8h ago•140 comments

SkiftOS: A hobby OS built from scratch using C/C++ for ARM, x86, and RISC-V

https://skiftos.org
429•ksec•22h ago•86 comments

Show HN: CLAVIER-36 – A programming environment for generative music

https://clavier36.com/p/LtZDdcRP3haTWHErgvdM
108•river_dillon•12h ago•22 comments

Open Source SDR Ham Transceiver Prototype

https://m17project.org/2025/08/18/first-linht-tests/
88•crcastle•4d ago•8 comments

The Socratic Journal Method: A Simple Journaling Method That Works

https://mindthenerd.com/the-socratic-journal-method-a-simple-journaling-method-that-actually-works/
10•surprisetalk•3d ago•0 comments

Wayland breaks the tools I use to make a living

https://rykarn.se/2025/01/26/wayland
23•junkblocker•5h ago•6 comments

Perrinn 424 – An open access electric hyper car designed for racing

https://discover.perrinn.com/home
18•pillars•3d ago•1 comments

Magical systems thinking

https://worksinprogress.co/issue/magical-systems-thinking/
257•epb_hn•10h ago•80 comments

Will AI be the basis of many future industrial fortunes, or a net loser?

https://joincolossus.com/article/ai-will-not-make-you-rich/
66•saucymew•5h ago•66 comments

How to Use Claude Code Subagents to Parallelize Development

https://zachwills.net/how-to-use-claude-code-subagents-to-parallelize-development/
246•zachwills•4d ago•108 comments

An open-source maintainer's guide to saying “no”

https://www.jlowin.dev/blog/oss-maintainers-guide-to-saying-no
150•jlowin•7h ago•73 comments
Open in hackernews

Path is a utility for working with paths

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