frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Transgenerational Epigenetic Inheritance: the story of learned avoidance

https://elifesciences.org/articles/109427
26•nabla9•52m ago•10 comments

Our investigation into the suspicious pressure on Archive.today

https://adguard-dns.io/en/blog/archive-today-adguard-dns-block-demand.html
812•immibis•9h ago•268 comments

Linux on the Fujitsu Lifebook U729

https://borretti.me/article/linux-on-the-fujitsu-lifebook-u729
119•ibobev•4h ago•69 comments

Boa: A standard-conforming embeddable JavaScript engine written in Rust

https://github.com/boa-dev/boa
41•maxloh•1w ago•17 comments

The computer poetry of J. M. Coetzee's early programming career

https://sites.utexas.edu/ransomcentermagazine/2017/06/28/the-computer-poetry-of-j-m-coetzees-earl...
9•bluejay2•49m ago•0 comments

I implemented an ISO 42001-certified AI Governance program in 6 months

https://beabytes.com/iso42001-certified-ai-governance/
19•azhenley•2h ago•4 comments

Weighting an average to minimize variance

https://www.johndcook.com/blog/2025/11/12/minimum-variance/
36•ibobev•4h ago•13 comments

Windhawk Windows classic theme mod for Windows 11

https://windhawk.net/mods/classic-theme-enable
103•znpy•2h ago•54 comments

TCP, the workhorse of the internet

https://cefboud.com/posts/tcp-deep-dive-internals/
230•signa11•12h ago•107 comments

USA Gives South Korea Green Light to Build Nuclear Submarines

https://www.navalnews.com/naval-news/2025/10/usa-gives-south-korea-green-light-to-build-nuclear-s...
20•JumpCrisscross•1h ago•6 comments

Trellis AI (YC W24) Is Hiring: Streamline access to life-saving therapies

https://www.ycombinator.com/companies/trellis-ai/jobs/f4GWvH0-forward-deployed-engineer-full-time
1•macklinkachorn•2h ago

The Nature of the Beast: Charles Le Brun's Human-Animal Hybrids (1806)

https://publicdomainreview.org/collection/le-brun-human-animal-hybrids/
34•Petiver•5d ago•5 comments

AWS Deprecates Two Dozen Services (Most of Which You've Never Heard Of)

https://www.lastweekinaws.com/blog/aws-deprecates-two-dozen-services-most-of-which-youve-never-he...
16•mooreds•38m ago•4 comments

Messing with scraper bots

https://herman.bearblog.dev/messing-with-bots/
154•HermanMartinus•11h ago•55 comments

Strap Rail

https://www.construction-physics.com/p/strap-rail
24•juliangamble•1w ago•1 comments

One Handed Keyboard

https://github.com/htx-studio/One-Handed-Keyboard
118•doppp•9h ago•78 comments

Lawmakers want to ban VPNs

https://www.eff.org/deeplinks/2025/11/lawmakers-want-ban-vpns-and-they-have-no-idea-what-theyre-d...
510•gslin•1d ago•272 comments

Designing a Language (2017)

https://cs.lmu.edu/~ray/notes/languagedesignnotes/
145•veqq•13h ago•96 comments

An Antivenom Cocktail, Made by a Llama

https://www.asimov.press/p/broad-antivenom
5•surprisetalk•1w ago•0 comments

The Mighty Simplex (2023)

https://galileo-unbound.blog/2023/05/03/the-mighty-simplex/
20•just_human•2h ago•4 comments

A new Google model is nearly perfect on automated handwriting recognition

https://generativehistory.substack.com/p/has-google-quietly-solved-two-of
444•scrlk•4d ago•253 comments

Streaming AI agent desktops with gaming protocols

https://blog.helix.ml/p/technical-deep-dive-on-streaming
55•quesobob•1w ago•22 comments

Unofficial Microsoft Teams client for Linux

https://github.com/IsmaelMartinez/teams-for-linux
238•basemi•1w ago•208 comments

History and use of the Estes AstroCam 110

https://www.dembrudders.com/history-and-use-of-the-estes-astrocam-110.html
33•mmmlinux•1w ago•6 comments

FBI Director Waived Polygraph Security Screening for Three Senior Staff

https://www.propublica.org/article/fbi-kash-patel-dan-bongino-waived-polygraph
18•Jimmc414•1h ago•6 comments

Go's Sweet 16

https://go.dev/blog/16years
235•0xedb•21h ago•177 comments

'No One Lives Forever' turns 25 and you still can't buy it legitimately

https://www.techdirt.com/2025/11/13/no-one-lives-forever-turns-25-you-still-cant-buy-it-legitimat...
329•speckx•1d ago•173 comments

Löb and Möb: Loops in Haskell (2013)

https://github.com/quchen/articles/blob/master/loeb-moeb.md
84•fanf2•1w ago•13 comments

SSL Configuration Generator

https://ssl-config.mozilla.org/
223•smartmic•21h ago•73 comments

Wealth

https://saul.pw/mag/wealth/
93•andsoitis•3h ago•96 comments
Open in hackernews

Path is a utility for working with paths

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