Top
Best
New

Posted by jaypatelani 2 days ago

Let's Help NetBSD Cross the Finish Line Before 2025 Ends(mail-index.netbsd.org)
400 points | 235 comments
johnisgood 2 days ago|
NetBSD has some goodies, too, by the way!

proplib (property list library for kernel-userspace communication), RUMP (Rump Kernel - anykernel framework allowing kernel code to run in userspace), Veriexec (verified exec integrity subsystem using cryptographic fingerprints), LFS (Log-structured File System - NetBSD maintains the only production LFS implementation), WAPBL (Write Ahead Physical Block Logging - metadata journaling), ATF (Automated Testing Framework - originated from NetBSD, now used across BSDs), etc. Feel free to check them out! Each one of them is interesting, IMO.

Beyond these specific features, NetBSD's real strength is its extreme portability (runs on over 50 hardware platforms, from VAX to ARM to obscure embedded systems), exceptionally clean and readable codebase, and pkgsrc (a portable package system that works across BSDs, Linux, and other Unix-like systems). I believe it makes NetBSD valuable not just as an OS, but as a reference implementation and research platform. The code quality and documentation are outstanding for anyone studying OS internals as well. :)

I noticed someone asked what NetBSD is. I am happy to break down the different BSD flavors (NetBSD, OpenBSD, FreeBSD, DragonflyBSD) and their unique features if that would be helpful!

cperciva 2 days ago||
I believe NetBSD also holds the record for the fastest kernel boot time for a general purpose operating system -- I held this record with FreeBSD with the system booting in about 23 ms but Emile got NetBSD down to 15 ms IIRC and I've been too busy to work on FreeBSD/Firecracker lately.
johnisgood 2 days ago||
Interesting! Both 23ms and 15ms are lightning fast. Have you written about it anywhere in more detail?
cperciva 2 days ago|||
I gave a talk about FreeBSD on Firecracker at bsdcan a few years ago. Sorry I'm on my phone just before an orchestra concert so I can't give you a link but if you Google "BSDCan Colin Percival Firecracker" you should find it on YouTube.
johnisgood 2 days ago|||
https://www.youtube.com/watch?v=MT3cdeuRTzs - Porting FreeBSD to Firecracker by:Colin Percival?
cperciva 2 days ago||
Yup that's the one.
dlcarrier 1 day ago|||
I watched that video when it was published, and really enjoyed it, as well as most of the BSDCan presentations. I subscribed to the YouTube channel, but there any other similar conventions that you would recommend? I've found that the Chaos Communication Congress presentations are hit and miss, but BSDCan presentations are quite regularly succinct and entertaining.
cperciva 21 hours ago||
EuroBSDCon is very similar, for obvious reasons.
dlcarrier 4 hours ago||
Thanks, I subscribed.
lateralux 2 days ago|||
https://smolbsd.org/
1313ed01 2 days ago|||
https://news.ycombinator.com/item?id=45582758
dlcarrier 1 day ago||||
There was a thread about it, a couple of weeks ago: https://news.ycombinator.com/item?id=45582758
johnisgood 2 days ago|||
Oooh, that got me curious! I will give this a try.
bitwize 2 days ago|||
NetBSD has the neat property that it's possible for a halfway decent C programmer to learn kernel programming from the man pages alone. The documentation is that good. FreeBSD and especially OpenBSD may also share this property, but NetBSD is my go-to OS to tinker with.
johnisgood 2 days ago||
For sure! I agree.

OpenBSD has great man pages as well. :)

colonelspace 2 days ago|||
Please do break down the differences.
johnisgood 2 days ago||
I could not hold myself back, so I already elaborated on OpenBSD and DragonflyBSD here (albeit it is non-exhaustive): https://news.ycombinator.com/item?id=45714491 :D

I left out FreeBSD from that comment, which has its own set of innovations: Capsicum (capability-based security framework), Jails (OS-level virtualization/containerization which predates Docker by over a decade), MAC Framework (Mandatory Access Control for fine-grained security policies), GEOM (modular disk I/O framework), Linuxulator (Linux binary compatibility layer), ZFS (FreeBSD has arguably the best ZFS implementation outside of Solaris), bhyve (type-2 hypervisor), and so forth.

Userland tools include iocage/bastille (jail managers), poudriere (package building), jemalloc (default allocator which focuses on fragmentation avoidance and scalability) among many others.

Each BSD really does have its own character. FreeBSD leans toward performance and production use, OpenBSD toward security and correctness, NetBSD toward portability and clean design, DragonflyBSD toward alternative SMP approaches!

(illumos/OpenIndiana is quite interesting, too (see DTrace, Doors IPC, Zones, SMF, Contracts, Event Ports, RBAC)).

cyberpunk 1 day ago||
FreeBSD uses OpenZFS (which was previously called ZoL (ZFSOnLinux), afaik) -- so it's the same implementation as e.g ubuntu.
johnisgood 1 day ago||
OpenZFS was not previously called ZoL. It was one implementation that later merged into the OpenZFS project.

And sure, technically both FreeBSD and Ubuntu use OpenZFS codebase now, but FreeBSD has in-tree, native kernel integration, whereas Linux has DKMS modules that are separate from mainline kernel, AND FreeBSD had ZFS since 2007 (18 years) and is considered more mature, whereas Linux's stable ZFS is much newer.

Additionally, some features work better on FreeBSD, Boot-on-ZFS is more polished on FreeBSD, and there are performance differences, too.

So my original claim is fine, though illumos is probably the actual best which is technically not Solaris anymore (even though it comes from OpenSolaris)... but as with always, you need history. Follow the timeline. :P

LargoLasskhyfv 1 day ago||
LFS... production?
johnisgood 1 day ago||
> The Log-Structured File System (or LFS) is an implementation of a log-structured file system (a concept originally proposed and implemented by John Ousterhout), originally developed for BSD. It was removed from FreeBSD and OpenBSD; the NetBSD implementation was nonfunctional until work leading up to the 4.0 release made it viable again as a production file system.

And this was in 2007.

LargoLasskhyfv 19 hours ago||
ISTR you have read the mailing list archives at the times. And anything about LFS was most some syncer/scrub/clear/fsck not working whyever.

I thought of NILFS2 on Linux as more practical. (meanwhile, didn't test, used btrfs instead)

LargoLasskhyfv 14 hours ago||
s/I seem to recall I have read the mailing list archives at the times...
jrmg 2 days ago||
NetBSD is a powerful force for sustainability. Foundation's commitment to running on a vast array of hardware—new and old—helps reduce e-waste. Old laptops and single-board computers that would otherwise be in a landfill are given new life as robust firewalls, file servers, or even retro-gaming machines, all thanks to NetBSD.

Emotionally I like this - but thinking more dispassionately, these systems use, by modern standards, a huge amount of power. I wonder if, for many (most?) of them, it whould not be more environmentally responsible to replace them with modern, less power-hungry devices.

dijit 2 days ago||
You know, I wonder about that.

The cost of creating new computers has got to be pretty high to the environment (I've heard 85% of lifetime carbon emissions from computers are from the manufacturing process), and I strongly suspect that we don't take that into consideration since we greenwash ourselves by forcing China to do our dirty work, chastising them for it, and then patting ourselves on the back for buying "more energy efficient chips".

mmooss 2 days ago|||
We need an index of lifecycle costs for products and services, broken down by phase (material production, manufacturing, logistics, operations, disposal, etc.). It's especially needed because those costs are often externalized for buyers (i.e., they aren't built into the price - you don't pay the true cost of gas, for example; many costs are externalized to everyone else). How else can consumers, manufacturers, policymakers, etc. make anything like an informed decision?

I'm surprised someone like the Sierra Club, Consumer Reports, a scientific group, a government group, etc. doesn't undertake it. Yes, it's a bunch of work, there would be uncertainty, but it's essential and better than nothing.

There are such things for food:

* Klimato: https://klimato.com/

* The Big Climate Database: http://thebigclimatedatabase.com/

davidw 2 days ago||
This is why people keep bringing up a carbon tax. It does a lot of the work to internalize all those externalities so individuals or groups don't have to try and figure all this stuff out.
mrlongroots 2 days ago||
Yes, unfortunately even the best intentioned individuals have very limited ability to make meaningful carbon-minimizing decisions. Carbon tax is such a sensible solution!
bombcar 2 days ago||||
Money dollars are a pretty good “stand-in” but in general it’s better to reuse and reduce than to recycle.

But if the cost of a new machine is the same as a year or two of the old operating the new is probably the way to go.

mmooss 2 days ago|||
> Money dollars are a pretty good “stand-in”

They aren't; among other things, most environmental harm is externalized. When you buy things that produce climate change or microplastics, the cost of the impact is paid by society generally.

dijit 2 days ago|||
I'm saying that I think "cost" in terms of money is not a good proxy for environmental impact.
CaptainOfCoit 2 days ago|||
> The cost of creating new computers has got to be pretty high to the environment

But aren't those made regardless if the people with old computers upgrade to them or not? I guess over time, they'll make less if people buy less, but the ones we'd purchase today has already been made, and might as well replace less energy efficient devices than just being added to the global count.

dijit 2 days ago||
I think you answered your own question here.
rootnod3 2 days ago|||
Manufacturing probably way outshines the usage. And, the side-benefit of using old machines with say NetBSD or OpenBSD etc is that it makes people realize that they don't NEED new modern shiny hardware. I am still daily-driving a x220 on the road (it gets 99% of my stuff done) and at home I am using mostly a slightly upgraded T480. So a 15 year old and a 8 year old laptop. And power consumption wise, my T480 lasts about 17 hours on a charge. That is about same time I'd get out of a modern M3 MacBook Air.

With a bit less performance? Sure. But for my use-case it works. And more people realizing that might actually be a good thing.

wltr 2 days ago||
17 hours?! I can’t believe it! How did you optimise the machine to be that energy efficient?
rootnod3 2 days ago||
T480 can hold 2 batteries. A swappable and an internal one. At least under FreeBSD the swappable alone gives about 10-11 hours on low brightness. The internal one carries the rest of the way.

I did replace the screen with a low power screen, which easily had the biggest impact on battery life.

I haven't tested the T480 under OpenBSD in a while, but my guess is that if I ran it with "apm -L", it would get close to the same numbers.

wltr 2 days ago||
Oh wow, thanks! And a low power screen is what? I thought they’re mostly the same, with probably exception of the most recent oled ones.
rootnod3 1 day ago||
It's the Innolux IGZO Low-Power FHD Panel. There are similar ones or same on AliEpxress for example. Compared to the default FHD screen of the T480, The low power screen cuts the power consumption of the display by about 40%. While also having better contrast and brightness. Biggest power-saving upgrade for the T480.
NathanielK 2 days ago|||
Outside of keeping a SPARC blade system running 24/7, most old systems use similar power to a light fixture.

This argument misses the forest for the trees for non-commercial users.

kev009 2 days ago|||
It probably works as an economic argument. Readers of this site and many in first world countries have limited barriers to buy new equipment and there are low cost options. Elsewhere that may not be true, either the low cost equipment is still beyond reach, or it is simply difficult to import or completely unavailable.

It's interesting to observe that a 1990 (386) vs 2000 (Pentium III) computer is a heck of a lot different than a 2015 vs 2025 computer. We're talking about Skylake (2015) which would have no issue as a daily driver for quite a lot of people.

Fnoord 2 days ago||
It is a logistics issue. People replace perfectly working computers all the time. Sure, if you use Skylake you list performance from Spectre and Meltdown. You may not even be able to run Windows 11 on perfectly working x86-64 machines. But for poor people, power usage may even be more important than for you or me (businesses generally don't care). That Skylake's successors were so terrible is due to Intel and thankfully it allowed AMD and ARM-based SoCs to thrive.
agalush 2 days ago|||
I have a raspberry Pi 2 running NetBSD at home providing a lot of useful services.

It uses just 1.5W.

Any more recent alternative would consume much more power.

jrmg 2 days ago|||
That’s sort of why this is on my mind.

I’ve just replaced an old Cubieboard (RPi1 alternative - about 2W) running Pi-hole and an old temperamental gigabit router (~10W) with a 2014 Mac mini (plus second Gigabit adapter) - which uses about 11W (a really efficient computer for its age!)

It’s less than the old combo drew - but I wonder if I could be accomplishing the same with an (or even a couple of) SBCs - and if that would ‘pay for itself’ (environmentally well as financially) after a couple of years.

toast0 2 days ago||
> and if that would ‘pay for itself’ (environmentally well as financially) after a couple of years.

At 11W, the financial costs of running are quite low. I think it's about 90 kWh per year. Depends on your rates, but I've seen $0.60 quoted in comments lately as a high rate for PG&E customers in California, which is about $55. You might well be able to invest in something that can run your load for fewer watts, but I don't know if it's worth the effort.

You're likely to get a lot more savings by looking at things that use more energy.

wltr 2 days ago|||
Why is it NetBSD and which services do you have? I’d love to read about that, and I think I might utilise mine that way too.
agalush 2 days ago||
NetBSD because I love simplicity and because it draws less power than running Raspbian.

It is running Gitea, Prometheus and a bunch of small tools I wrote (weather monitoring, home automation, family data sharing and tools for my Kids)

wltr 2 days ago||
But how is it draw less power comparing to Raspbian? I’m not arguing, just curious how you measured that, and why NetBSD that much more efficient. I have a RPi2 with Raspbian, and another one with DietPi, I expect them to sip power similarly, considering they’re mostly idle anyway. Would love to read some blog on this though, if you happen to have one.
raddan 2 days ago|||
I too would like to see a side-by-side comparison but if we assume that the claim is true, one reason might be that NetBSD runs very few daemons after a default install. I run NetBSD on a handful of Raspberry Pi Zero machines, and it is really quite a surprise that they run as well as they do for a $5 computer. Your typical Raspbian install has a lot more going on after the default install.
1313ed01 2 days ago|||
Do you use the built-in WiFi on any of the Raspberry Pis?

By coincidence I installed NetBSD last weekend on a Raspberry Pi. Never used it before, but it seemed very nice. I had some issues with sshd (most likely just me doing something stupid) and never got as far as experimenting with WiFi, but supposedly there is some support (unlike FreeBSD and OpenBSD that do not support WiFi on any Raspberry Pis?).

raddan 11 hours ago||
Not with any of the BSDs, although I have tried. Instead I either use a USB to GigE adapter or a Waveshare carrier board (for the Zeros). The built in NICs for the ones that have them usually work fine.

If you really need wireless you can buy a USB WiFi dongle, and since there is a lot of support a compatible one is restively easy to find.

cosmic_cheese 2 days ago|||
> Your typical Raspbian install has a lot more going on after the default install.

I believe that this is true for just about all widely popular distributions. It's probably possible to set up Arch to have power draw similar to NetBSD, but you're going to have to know what you're doing and it's probably going to require more administration/attention to keep running smoothly than NetBSD does.

wltr 1 day ago||
I had Arch installed on my RPi2s, but I didn’t like the need to update the RPi that frequently, wearing off the SD card. And later on, it became unsupported by Arch ARM. Now I use DietPi, and it’s my favourite Linux distribution (for an SBC server) so far. It has very small number of processes running too). So that’s why I’m curious whether it would be much different with NetBSD.
agalush 2 days ago|||
I just measured it by myself with a domestic power usage tool.
galangalalgol 2 days ago||
That is fascinating, one of the reasons I hadn't done that is a concern about power management features. I'd read openbsd at least had them running flat out most of the time.
p_ing 2 days ago|||
It would be awesome to see a cost breakdown/environmental impact of continuing to run a P4 or G5 today vs. the metals/materials/recycling process/disposal process cost and environmental impact.

I always had the same question about cleaning recycling as it went through a recycling plant -- is the water usage environmentally "friendly" versus what is ultimately recycled (which is often not much, sadly).

steve1977 2 days ago||
That brings up an interesting point. While recycled materials like gold are obviously revenue for the recycler, the cost of polluting water might get externalized in some cases maybe.
dlcarrier 2 days ago|||
I get my power off grid through solar generation and battery storage, so I monitor usage pretty closely.

In my experience, newer computers have slightly higher idle power consumption, but much less total consumption for a given compute task. On top of that, new computers are more likely to have dedicated hardware to accelerate the latest codecs.

If you're using an old computer for ray tracing or neural networks or video transcoding, it's probably using enough power that it's worth upgrading.

If you're browsing the Web or watching YouTube videos or running a file server, power consumption is probably similar on old and new computers, but regardless of the age, much higher on desktop computers than laptops.

Look at power supplies on vintage computers, and you'll see that they're much, much smaller than on modern computers.

Panino 2 days ago|||
In some cases yes, replacing an old machine with a new one can be an evironmentally responsible choice. But in general that's not the case and one should thoughtfully consider the variables including but not limited to software choice, grid carbon cost (see Electricity Maps below), embodied carbon cost of materials, environmental issues of mining and production not strictly related to climate emissions, and more.

Low Tech Magazine wrote an article about this here:

https://solar.lowtechmagazine.com/2020/12/how-and-why-i-stop...

https://app.electricitymaps.com

wltr 2 days ago|||
Well, look, here is my use case. I have some really old hardware that I used to play with earlier in life, it’s located at the parents’ place. I still use that hardware, but not too often, since I live on my own. I could replace all that, as it consumes a lot of power indeed (comparing to SBCs). But in absolute numbers, they’re just regular computers, so power draw is somewhere at 60–90 Watt/hr, I suppose. Which is not that much, especially given I run the machines half a day once a month. What I learned over the years, you can utilise some servers by not running them 24/7. One server there, I wake it over LAN nightly, copy some backups there, and turn it off again. Very useful. So, I think I’d keep them running for as long as they’re alive.
agumonkey 2 days ago|||
This was the reason I moved from my sturdy ~2008 laptop, power efficiency. That said I don't buy new anyway, i just jumped to the 2010-2015 range.
zenlot 2 days ago|||
Always funny to read from environmentalists discussing how much power draws a lenovo laptop from 2014 running NetBSD.

Come on, look at all the businesses and what's really happening in the space you're commenting on. That laptop literally means nothing.

mrweasel 2 days ago|||
That old computer running NetBSD probably also isn't running 24/7, making the environmental impact that much lower.

The comparison probably needs to be: Running that old NetBSD machine for a few hours a day, worst case about 40 while I work vs. producing an running a brand new laptop.

If we're talking desktops, then many older machines have 2-300W PSUs, not even enough to power a modern graphics card (I know, an Nvidia card isn't running 600W all the time).

NathanielK 2 days ago||||
Even the Pentium M systems from a decade prior have <10W idle. Honestly embarrassing to mention when AI chips are dumping kilowatts.
cluckindan 2 days ago||
Wonder how long you could run an old laptop on the energy used by a single ChatGPT conversation?
Fnoord 2 days ago|||
Wonder how useful the ChatGPT conversation is compared to a Google search from begin '00s (when Google was new and something like Pentium 4 was new).
rootnod3 2 days ago|||
Months at the minimum probably.
jrmg 2 days ago||||
I think it’s a fair question when I’m literally commenting on a statement about sustainability and reuse of old computers.

And on a larger scale, you could use your dismissal against almost everything. Every part of society (and businesses are part of society) can think ‘that thing I do means literally nothing when so much else is going on!’ about almost anything.

noAnswer 2 days ago|||
Be passive, do nothing. Not even asking. Just consume. Your actions mean nothing because whatabout.
zenlot 2 days ago||
Lol. You're not using your laptop making huge impact. Wake up, be real. Sheep mentality, exactly what they want you to believe in.
jrmg 2 days ago||
There’s a lot of irony in asserting that the ones who are considering and acting upon the consequences of their small choices are the ones exhibiting ‘sheep mentlity’.
soapdog 1 day ago|||
Upcycling offloads manufacturing costs. Unless you're running something that consumes a boatload of energy, then it should be cheaper. Also, if you power it from renewables it is even cheaper and more sustainable.
fujigawa 2 days ago|||
You're right, the world is better off having some Asian kid taking apart your junk and breathing in solder fumes with no protection, rather than you running a legacy box in your basement that uses some extra kWh per year.

After all, he probably won't live long enough to tell his grandkids stories about power-hungry hardware.

That reminds me, my homelab could use a SPARC box just because.

spauldo 2 days ago|||
Yeah I don't buy that argument either. The amount of e-waste being saved by NetBSD is so tiny as to be insignificant.

NetBSD is great for retrocomputing, since it's a modern OS that can run on very limited hardware. It's also a very nice traditional UNIX. It's well documented, has a nice codebase, and is a pleasure to use. But for saving e-waste, Linux has it beat.

rpcope1 2 days ago|||
Given that there are a lot of cases that old systems are used for that don't run the system full out and that they probably idle a lot when on, just like your new stuff, given that a lot of older hardware barring known stupid designs like Pentium 4 that draw ludicrous power for the perf, and given how much of an absolute shit show electronics recycling is (I've seen a good amount of how it actually gets "broken down"), I honestly think we upgrade way too often for most use cases. If you can still get by doing something important with a P3 or a Core 2, honestly I would be really surprised if it was actually vastly more cost efficient and environmentally friendly to refresh to new hardware.
jrmg 2 days ago||
Computers of that vintage drew way more power at idle than modern systems.
PunchyHamster 2 days ago|||
Also, all of the devices that could run NetBSD can just run Linux
Narishma 2 days ago||
Not true. For example most Linux distributions have dropped 32-bit x86 and/or ARM support and I think it's only a matter of time before the Linux kernel follows suit.
myaccountonhn 1 day ago|||
Hardware is far more resource intensive. Its better to continue to use old devices.
muyuu 2 days ago|||
most older systems are surprisingly frugal on idle and are typically used sporadically
nolist_policy 2 days ago||
Also I bet >50% of personal computer e waste is bog standard x86-64 by now. No need to support a vast array of hardware.
Imustaskforhelp 2 days ago|||
> No need to support a vast array of hardware

I hope you understand how unique netbsd is, it is one of the only systems which can be compiled so easily with just a single script even from linux or other systems and its rump kernel etc. drivers from what I know are (modular?) so they could be used with other kernels as well if any kernel wants ie.

You never know where the innovation can be, I feel like that each kernel/operating system can bring a new idea, as an example, templeOS uses Holy C which basically is Just in time C (iirc) and that means that you can just edit files of templeOS and restart and those changes would occur

I know TempleOS is niche and a meme OS but I feel like that there are a lot of ideas and unique operating systems and I have heard that netbsd can be good in giving driver support to.

This is just one of many things, and I feel like the main point of NetBSD and the likes are fundamental hackability, they can run on things like routers as well although most run openbsd/freebsd but still. I don't see a reason not to unless you are speaking monetary (ie. it may take some extra funds developing/hosting but that is chump change) but I feel like NETBSD is a novel project with respectable goals and they aren't going to change just for this.

More Options are a good thing. if I can have a project run on Netbsd, then its very easy to port it over to any other vast array of hardware as well, and that hardware includes extremely embedded hardware as well I guess

johnisgood 2 days ago|||
I agree.

So in my other comment I mentioned some specific(s) to (or rather, originated from) NetBSD, just as much as for example pledge() (fine-grained system call restriction), unveil() (filesystem visibility restriction), arc4random family[1] (ChaCha20-based CSPRNG), reallocarray() (integer overflow-safe realloc), OpenBGPD (BGP daemon), OpenOSPFD (OSPF daemon), httpd (web server), acme-client (Let's Encrypt client), signify (cryptographic signing tool), etc. are specific to OpenBSD.

DragonflyBSD has some goodies too while we are at it! For example varsym (Variable Symbol System - per-process environment-like variable substitution), nlookup (namecache-based path lookup replacing the vnode-based namei()), objcache (per-CPU object caching allocator), LWKT (Light Weight Kernel Threads - message-passing based threading), HAMMER2 (clustered COW filesystem with multi-master replication, successor to HAMMER), and so forth.

All popular BSDs have their own rich history. I know more about DragonflyBSD than NetBSD, so as an example: DragonflyBSD's core design philosophy centers on SMP scalability (cache-coherent token-based synchronization and LWKT message passing, avoiding fine-grained locking), OpenBSD's gist is security, and so forth.

[1] The ChaCha20-based CSPRNG (originally arc4random was RC4-based), which has been ported to other BSDs and some Linux systems.

(Sorry, I was really tempted to elaborate on these unique features and I felt like your comment was the perfect place for it!).

ghostly_s 2 days ago||||
> I hope you understand how unique netbsd is, it is one of the only systems which can be compiled so easily with just a single script even from linux or other systems and its rump kernel etc. drivers from what I know are (modular?) so they could be used with other kernels as well if any kernel wants

Aren't competing kernels already shipping support for this hardware? Surely the project has to have more selling points than "can be compiled with a single script."

Imustaskforhelp 2 days ago||
Support for x86_64?

I meant in the sense that since NetBSD supports soooo many devices, it can also help innovation in other kernels if need be as well by being able to take driver support via its rumpkernel as well if need be

And to be honest, I feel like there is this sense of freedom knowing that you can have a system which is portable, if some script can run on my pc on netbsd, chances are if its not too specific, it could run on your pc or even your toaster lol!

https://laughingsquid.com/netbsd-toaster/

Netbsd can run on any device possible and I really appreciate it.

>Surely the project has to have more selling points than "can be compiled with a single script."

Personally I have only heard good things about netbsd but I don't have much expertise in it (sorry), I can recommend you to take a look at smolbsd which looks really cool for uni-kernel purposes as well

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

I feel like that there is a lot more things that can be done with netbsd as well or other open source projects in general as well

tredre3 2 days ago|||
> Netbsd can run on any device possible and I really appreciate it.

That's more of a meme than reality and I wish people would actually look into it before mindlessly repeating the trope. I did, when I wanted to run a new OS on a niche device, and the reality is very different. Nowadays Linux works on a lot more hardware than NetBSD does. Yes, NetBSD nominally supports a few more architectures than Linux (very few, especially that μClinux is now upstreamed), but the driver situation for the rest of the system means that it can't run on most devices from those architecture anyway.

Fnoord 2 days ago||
This and 'runs' is a very relative term. What exactly works, what doesn't? What do you need? How power efficient or buggy is it? How is the performance? I remember running Linux on an SGI Indy. Not everything worked, as not every Indy was equal (I had six) but also compared to IRIX (especially 5.x series) the performance was dog slow. The Indy had some good hardware (like the soundcard or Indycam) but that wouldn't work (well) on Linux. My Octane 2 didn't have 3D accelerated graphics on Linux. The state of every port isn't equal. Same on OpenBSD. Furthermore, if you run Linux your distribution of choice may not be available or work well.
ndiddy 2 days ago|||
Note that for most of the more esoteric platforms NetBSD supports, “support” simply means they continue to cross-compile to target that platform. There’s been lots of cases where there’s some major regression that makes a port unusable (can’t boot, can’t interact with the system, etc) and nobody notices for years because there’s both nobody testing these ports and nobody actually using them. At that point, the value of the support is questionable.
nolist_policy 2 days ago|||
> I hope you understand how unique netbsd is, it is one of the only systems which can be compiled so easily with just a single script even from linux or other systems and its rump kernel etc. drivers from what I know are (modular?) so they could be used with other kernels as well if any kernel wants ie.

Linus hast this with User Mode Linux (upstream) and Linux Kernel Library (out of tree).

> You never know where the innovation can be, I feel like that each kernel/operating system can bring a new idea, as an example, templeOS uses Holy C which basically is Just in time C (iirc) and that means that you can just edit files of templeOS and restart and those changes would occur

That's a while ago, but Fabrice Bellard did a demo with his tiny c compiler where it would would compile the Linux Kernel at boot time and then boot the compiled Kernel.

> This is just one of many things, and I feel like the main point of NetBSD and the likes are fundamental hackability, they can run on things like routers as well although most run openbsd/freebsd but still.

Most consumer grade routers run Linux out of the box.

> More Options are a good thing. if I can have a project run on Netbsd, then its very easy to port it over to any other vast array of hardware as well, and that hardware includes extremely embedded hardware as well I guess

uCLinux (upstream) doesn't even need a MMU. It can run on a Cortex-M4 with 8mb ram.

hnlmorg 2 days ago||
> That's a while ago, but Fabrice Bellard did a demo with his tiny c compiler where it would would compile the Linux Kernel at boot time and then boot the compiled Kernel.

That’s interesting. Do you have a link you can share? Or remember any more details?

I’m curious how long it took to fully start

LargoLasskhyfv 1 day ago||
https://bellard.org/tcc/tccboot.html

https://lwn.net/Articles/108341/

Gud 2 days ago||||
Have you considered any advantages with ensuring code is portable?
hnlmorg 2 days ago||
Isn’t that an advantage by itself?
_0xdd 2 days ago||
Just donated. I run a NetBSD instance on a VPS and on an old Lenovo mini PC that I use as a gateway/file server between my regular network and network of vintage PCs. I have two XT clones, two ATs, some 486s, a Pentium MMX, and an iMac G3 and G4. Fun hobby! I need to get NetBSD running on one of these old machines one of these days.
jaypatelani 2 days ago||
Thanks a lot :)
AtlasBarfed 2 days ago||
Do any governments use NetBSD? If so, they should be the #1 name and shame.
tossit444 2 days ago|||
I guess we're all complicit to <insert war crime> for using and developing software that anyone can use freely...
AtlasBarfed 1 day ago||
Why is it a war crime on here to suggest the governments, which want to aid the public interest, and have the capability in funding to keep these bedrock IT projects in good health fund them?

It's literally part of their national security. Open source operating systems are key to cyber security in addition to just plain old functioning of the military as well as the civilian government.

greenavocado 2 days ago|||
Yes, let's name and shame software users /s
mixmastamyk 2 days ago||
”Now, that, I got me some Seagram's gin, Everybody got they cups, but they ain't chipped in”—Snoop
fallen_comrade 2 days ago||
https://netbsd.org/donations/
jorgemendes 2 days ago||
Donated. I hope NetBSD becomes a stronger option for my old PCs. So many good old machines that could benefit from it.
jmclnx 2 days ago||
Same here. But one other thing to add for new responses about "Why NetBSD", the rump kernel.

Years ago I had to get a very old document off of a DOS diskette. So I tried:

* On Linux: accessing the diskette would cause a panic or a reboot or massive read failures.

* FreeBSD: panics all the time

* NetBSD: panics. But then I remembered it had rump. So I said, why not try that. Started up rump, got a few code dumps, but after a some tries I got a bit over 90% of the document off of the diskette. The main system had no issues with the rump kernel crashing.

So that alone is worth the "price of admission" :)

atomic_princess 2 days ago|||
FYI rump is essentially unmaintained since its author left NetBSD years ago
jaypatelani 2 days ago||||
Wow this is cool. I always get fascinated by how people have used NetBSD.
nolist_policy 2 days ago|||
Linux can do that with User Mode Linux.
jaypatelani 2 days ago||
Thanks a lot for donations:)
mlyle 2 days ago||
Thank -you- for all you do! Donated.

NetBSD has been a labor of love for a long, long time.

In the mid-90's I was a teenager with a 486-25 on a desk in a closet running NetBSD 0.9-1.0, connected to 10base2 going to my dad's office where there was a computer that dual booted to Linux. I learned so much from those systems; systems programming, how to really use the C programming language, sysadmin skills, reading network traces. A whole part of who I am today derives from those early experiences trying to figure out what the $## was going on while tracking -CURRENT.

jaypatelani 2 days ago||
Thanks a lot :)

Here something you might like : CS631 -- Advanced Programming in the UNIX Environment - NetBSD https://stevens.netmeister.org/631/netbsd.html

mlyle 2 days ago||
:D I've actually seen it.

I'm retired from tech and a high school teacher these days and allowed to teach wack/out of level things.

I would love to teach operating systems with NetBSD, but between the space hardware stuff I do and the Verilog/digital logic/microprocessor architecture class I teach, I soak up all the interested students' elective slots.

jaypatelani 2 days ago||
Nice.. :)
rootnod3 2 days ago||
Donated. I think what NetBSD is missing, but also hard to pull off, is something like https://openbsd.amsterdam. A service that people can use where parts of the fees go towards the foundation.
jaypatelani 2 days ago|
Thanks a lot :) agree with your idea.
dainiusse 2 days ago||
Donated. I an thankful to NetBSD - I built some routers back in 2000. Long live NetBSD!
jaypatelani 2 days ago||
Thanks a lot :)
munchlax 2 days ago||
And let me guess... You haven't had to replace them since?
dainiusse 2 days ago|||
They don't exist anymore. No need to be sarcastic. But they gave me plenty of experience
jpgvm 2 days ago|||
Migrated them onto a toaster to reduce hardware footprint.
self_awareness 2 days ago||
Donated. While I don't use NetBSD, the existence of projects like this is essential for open source technology, operating system design, and the overall vitality of programming culture.
jaypatelani 1 day ago|
Thanks a lot:)
wcchandler 2 days ago||
Do they offer a swag store like OpenBSD or FreeBSD? I realize they only get pennies from those sales but that’s typically my approach, buy a shirt for $30 and make an extra $20 donation.
jaypatelani 2 days ago|
Yes they do. Here is link https://www.freewear.org/NetBSD
jmmv 2 days ago|
Donated! I should have done this months ago when I started using NetBSD for an embedded project idea (that has gone nowhere).

But I feel this link illustrates a big problem with NetBSD’s “no hype” approach: I clicked the link you shared and found an email. The email has the donation link at the very end, and it’s not clickable. When I go to the donation page, there is a ton of text before I even get to see an ugly PayPal tiny button or a tiny form to donate via Stripe.

It’s too hard to notice and too hard to do. The project’s homepage does a better job though. But I think it should be made even more prominent if this is critical for the project’s health!

jaypatelani 1 day ago|
Thanks a lot for donation :)
More comments...