frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Show HN: JavaScript algorithm prep that teaches language-specific patterns

https://www.memoized.io/
1•elduderino05•14s ago•0 comments

Descent of Inanna into the Underworld

https://en.wikipedia.org/wiki/Descent_of_Inanna_into_the_Underworld
1•alganet•1m ago•0 comments

Ask HN: Why do so many developers dislike C when I find it inspiring?

1•silentpuck•1m ago•0 comments

SimpleX Chat v6.4.1: welcome your contacts, review members to protect groups

https://simplex.chat/blog/20250729-simplex-chat-v6-4-1-welcome-contacts-protect-groups-app-security.html
1•Sami_Lehtinen•2m ago•0 comments

Evidence for hepatitis C virus involvement in bipolar disorder and schizophrenia

https://www.nature.com/articles/s41398-025-03387-3
1•PaulHoule•5m ago•0 comments

Hask Is Not a Category

https://math.andrej.com/2016/08/06/hask-is-not-a-category/
1•fanf2•6m ago•0 comments

60k Gazans have been killed. 18,500 were children. These are their names

https://www.washingtonpost.com/world/interactive/2025/israel-gaza-war-children-death-toll/
10•rendang•8m ago•1 comments

Show HN: VoxChat – Anonymous Voice Chat Platform

https://voxchat.me/
1•huhtho•9m ago•0 comments

Northwest Mekeo Lacks Coronal Phonemes [pdf]

https://julietteblevins.ws.gc.cuny.edu/files/2016/10/Blevins2009e-UniversalBitesDustMekeo.pdf
1•thunderbong•9m ago•0 comments

BitVMX New Open Source Components: Key Management, Storage, and Configuration

https://bitvmx.org/knowledge/introducing-bitvmx-new-open-source-components-key-management-storage-and-configuration
1•wslh•11m ago•0 comments

Show HN: How to get instant advice from YC without needing to get in

https://www.alorapodcasts.com/chat/ycombinator
1•nkabbani10•11m ago•0 comments

Interacting with Text Adventures Through Perl

https://entropicthoughts.com/interacting-with-text-adventures-through-perl
2•Bogdanp•14m ago•0 comments

Nvidia-backed startup invents Ethernet memory pool – up to 18TB of DDR5

https://www.tomshardware.com/tech-industry/nvidia-backed-startup-invents-ethernet-memory-pool-to-help-power-ai-claims-it-can-add-up-to-18tb-of-ddr5-capacity-for-large-scale-inference-workloads-and-reduce-per-token-generation-costs-by-up-to-50-percent
1•pulse7•14m ago•0 comments

Paninaro

https://paninaro.onrender.com
1•immercato•17m ago•2 comments

How do I get ChatGPT to forget about me?

2•anupshinde•19m ago•0 comments

Show HN: I made "iChatroom" a dark webish type chatroom

https://www.ichatroomapp.com/
1•teamunited•20m ago•0 comments

Agent Interaction Guidelines

https://linear.app/developers/aig
1•GarethX•20m ago•0 comments

Flaw in Gemini CLI coding tool could allow hackers to run nasty commands

https://arstechnica.com/security/2025/07/flaw-in-gemini-cli-coding-tool-allowed-hackers-to-run-nasty-commands-on-user-devices/
1•llamasushi•20m ago•0 comments

End times of Intel [video]

https://www.youtube.com/watch?v=4ADwOm7Z3aI
1•vnorilo•22m ago•0 comments

The trade loophole that's costing the UK economy billions [video]

https://www.youtube.com/watch?v=jtqw3N4NZcA
1•ksec•24m ago•0 comments

Show HN: We built an internal MCP to improve Plaid engineering's productivity

https://plaid.com/blog/plaid-internal-mcp-server-productivity/
1•allenschen•25m ago•0 comments

One-and-done HIV protection in infants

https://www.nature.com/articles/s41586-025-09330-2
2•labanimalster•25m ago•1 comments

AMD Threadripper 9980X and 9970X Linux Benchmarks

https://www.phoronix.com/review/amd-threadripper-9970x-9980x-linux
4•Bezod•26m ago•0 comments

Fast

https://www.catherinejue.com/fast
3•gaplong•27m ago•0 comments

India overtakes China as biggest smartphone exporter to the United States

https://www.cnn.com/2025/07/29/business/india-china-us-smartphone-supplier-intl
6•LopRabbit•27m ago•0 comments

RunReveal Raises $7M Seed to Build the AI-Native Security Data Platform

https://blog.runreveal.com/runreveal-raises-7m-ai-security-platform/
1•ejcx•28m ago•0 comments

Working with AI: Measuring the Occupational Implications of Generative AI

https://arxiv.org/abs/2507.07935
1•nialse•30m ago•0 comments

Microsoft just dropped a study showing the 40 jobs most affected by AI

https://old.reddit.com/r/interestingasfuck/comments/1mcup6s/microsoft_just_dropped_a_study_showing_the_40/
3•nialse•30m ago•1 comments

Gov Walz Activates Minnesota National Guard Following Saint Paul Cyberattack

https://mn.gov/governor/newsroom/press-releases/?id=1055-699945
2•rntn•30m ago•1 comments

Some pretty cool Git tools to save your sanity and your kids

https://fev.al/posts/git-tools/
2•charles_f•32m ago•3 comments
Open in hackernews

Pkgbase Removes FreeBSD Base System Feature

https://lists.freebsd.org/archives/freebsd-pkgbase/2025-July/000590.html
30•vermaden•16h ago

Comments

o11c•11h ago
For information on what this is even about, see https://wiki.freebsd.org/PkgBase

Notably it is explicitly marked as experimental; teething problems are to be expected.

yjftsjthsd-h•11h ago
I mean, isn't the point to remove the distinction? If you tell apt/dnf/zypper/apk/... to remove everything, then the thing that will stop you isn't the base OS being separate, it's that they mark the core packages as special and require you to force the matter. (And I agree with the other commenter that this should be done for pkg but that's why it's experimental right now)
JdeBP•9h ago
This would be learning from the prior experience of others.

In particular, learning why Debian has a system of marking some packages as "essential"; and learning why tools like aptitude, when told to resolve an intended change set up in the UI into specific package actions, will start doing that by switching off attempts to remove "essential" packages.

Note from the thread that there is an idea of marking packages as "vital", but it is not a concrete one yet.

messe•11h ago
> Consider this command:

    # pkg delete -af
> [...]

> What the same "pkg delete -af" command does on a PKGBASE FreeBSD system?

> It kills/destroys almost all of the FreeBSD Base System [...]

> POLA is the principle that made FreeBSD such predictable system. Where is the POLA now?

IMO if you convert the base system to be installed via packages and then force delete all packages, then the principle of least astonishment says that you'll delete most of the base system too.

yjftsjthsd-h•11h ago
There's an interesting analog to GNU rm having --preserve-root/--no-preserve-root ... Is it more or less surprising for `rm -rf /` to be special? (This isn't meant as advocating one side or the other; I think it's a genuine point of philosophical tension.)
charcircuit•10h ago
rm should not have permission to break the operating system. If a program can break the operating system that is a failure in the operating system's sandboxing or permissions. no-preserve-root tries to solve the issue at the wrong layer of the stack and only adresses one way to break the os. Being special to just / doesn't make sense to me.
josefx•10h ago
At some point you have to give something the ability to update and modify system components and even then it is extreemely unlikely that deleting everything starting with / is the intended behavior.
mcherm•9h ago
An EXTRA flag to rm could be required in order for it to be able to modify fundamental os files. This would eliminate nearly all accidents.
dspillett•8h ago
Though that requires rm to know what objects are fundamental. While there are some obvious static choices there are many others that are going to vary between installations. You could add extended attributes to indicate what is what, but that is an extra complication for distro maintainers. You could use the immutable flag though again that will be a faf for upgrades (remove flags, update files, replace flags). Once rm is protecting users in this way, there might be an expectation that other tools will too, but the time you get to this point rather than reinventing the while, perhaps just use something like selinux (I assume BSD has an equivalent capabilities based option?) and other existing control features.

rm having --preserve-root on by default is I think a simple mitigation that protects against the most common potential accidents than any of the above would protect from, and if something more than that is wanted then things like the immutable flag already exist and would cover far more than just rm.

charcircuit•7h ago
I agree, but rm doesn't have to be the thing to modify system files.
ender341341•10h ago
It's treated special cause most shells handle undefined variables as empty strings so `rm -rf "${base_path}/${sub_dir}"` can turn into `rm -rf '/'` and users commonly don't expect that.

While that case may be simple to catch the writers of gnu rm also recognize that scripts tend to not be well tested and decided "better than it currently is" is better than "we didn't do any mitigations to a common problem cause the solution wasn't perfect".

serbuvlad•10h ago
Ah, the beauties of the POSIX shell.
riffraff•8h ago
I think a valid interpretation of GPs point could be that top-level folders should have special properties so that they're not at risk of a bad rm, e.g. xattr "unchangeable" flags.

The fact that you can accidentally nuke the system seems a remnant from the olden days which we should have corrected a long time ago.

(I think GNU did a valid mitigation with preserve-root, just musing philosophically.)

delamon•8h ago
"immutable" top-level folders won't cut it. In order to recursively delete a folder, rm has to delete leaves first. So, you will endup with empty top-level folders, which is no better.
charcircuit•7h ago
>rm has to delete leaves first

There is nothing fundamental with rm for it to work like that.

lmz•3h ago
It does if you ever want rmdir to succeed.
serbuvlad•10h ago
Why?

Obviously rm -rf / will only "destroy the operating system" if the user is root and we're in the root namespace. There is nothing stopping you from building a sandboxed OS that never gives your users real root (Android).

But what'd be the point of that? Users care about their data, not about their OS internals. If the OS blows, that's just an OS reinstall. But if a non-backed-up /home blows, that could be months of work. And any program that can delete a file in /home (as they need to be able to do to allow the user to do everyday work) can also delete all of them.

charcircuit•7h ago
>not about their OS internals

Yes, they do. Users definitely care about their system being able to properly boot and work correctly. It's unnaceptable how Linux distros make you use a live usb to go in and fix them instead of having a built in way to the OS for it to recover from bad things happening.

hulitu•2h ago
> rm should not have permission to break the operating system.

It doesn't. You must su to root to "achieve" that.

yjftsjthsd-h•2h ago
> no-preserve-root tries to solve the issue at the wrong layer of the stack and only adresses one way to break the os. Being special to just / doesn't make sense to me.

I could see that making sense. Maybe a "really important core OS" attribute? (I wouldn't want `rm /bin/sh` to run without forcing either.)

However,

> If a program can break the operating system that is a failure in the operating system's sandboxing or permissions.

Not necessarily. I have on multiple occasions logged into a machine, gotten a root shell, and then told it to wipe its own disks (either by block discard, or just dding over with /dev/null). That is a legitimate use that should work.

charcircuit•1h ago
>and then told it to wipe its own disks

This can be done via a dedicated factory reset or wipe feature. It doesn't need to be the responsibility of rm.

inopinatus•9h ago
reminds me of that time a colleague (and FreeBSD committer) proposed su --with-wheel-group for gnu coreutils
throw0101d•6h ago
> Is it more or less surprising for `rm -rf /` to be special?

A few years the POSIX folks declared that the behaviour of `rm -rf /` nuking the entire file system is a bug.

IIRC, one of the Sun Solaris folks (Cantrill? Gregg? Other?) thought the behaviour was dumb and argued successfully that it should not be work that way. Any implementation that does it is not POSIX-compliant.

hulitu•2h ago
> A few years the POSIX folks declared that the behaviour of `rm -rf /` nuking the entire file system is a bug.

Yes. PEBKAC bug. /s

pjmlp•5h ago
Once upon a time I nuked a GNU/Linux installation exactly with that command, due to a finger race between backspace and return keys.
hulitu•2h ago
Some "RTFM" for you :)

https://www.zeugmaweb.net/misc/unix/admin-horror.html

znpy•10h ago
What is POLA in this context?
phkamp•10h ago
POLA = Principle Of Least Astonishment
JdeBP•9h ago
As Graham Perrin pointed out in a reply, there are more such bugs in FreeBSD's pkgbase experiment. They were opened months ago, and they're still open. This is not a finished mechanism. Very clearly not. (-:

* https://github.com/freebsd/pkg/issues/2414

altairprime•9h ago
OP, since you wrote this email to the FreeBSD list, posted a GitHub issue, and posted this to HN — is this something you’ve been submitting patches for but they’re being ignored? Could you tell us more about why this is important to you in specific?
BSDobelix•8h ago
I would really like to have those pkg's and the programm (pkg) separated, for example:

For the system the program "pkgs" ("s" for system) can write to /bin /sbin etc, and can only install/remove .pkgs (system packages)

For port's (can only write to /usr/local) pkg and .pkg

With that we can have the same separation as we have now, for me that's a big plus on the BSD side of things. BTW Windows, Android and MACOS have some kind of that separation too.

pkg delete -af removes all "port" pkg's

pkgs delete (has no option -a but options like IDS from freebsd-update where every installable file IN the package (a *.pkgs) has a checksum instead just the pkg itself)

Drivers/Firmware will then have to move to pkgs, also we can have different groups for maintaining the system and port (root/wheel for pkgs and operator for pkg)

Also packaging error's in port packages cannot damage your system.

jmclnx•4h ago
This is from vermaden, who's site has a lot of informative very good FreeBSD information.

I remember in the 8x days, there was talk of moving parts or all of base installable via pkg. That server had a heat death and I have yet to replace it, so I have been out of the FreeBSD world for a while. At the time it was just being proposed.

I wonder if that has been completed or is this a first step to doing that ?