Hacker Newsnew | past | comments | ask | show | jobs | submit | craftkiller's commentslogin

While I'm sure that would help, I still wouldn't use Windows even if it was completely free and distributed as easily as Linux. Windows has some serious problems with dark patterns like ads in the start menu and telemetry everywhere. The software is slow and bloated. The lack of a package manager makes each application run their own updater (though they did at least put the drivers inside windows update which was a step in the right direction).

Windows does have a package manager nowadays. I install the majority of software with Winget, and Chocolatey and Scoop fill in the gaps.

those aren't package managers rather a catalog of automated installer switches.

> What is the cost of Anubis for honest people?

I just made a post of one of the costs of Anubis for honest people before I saw your comment. Linking it here instead of copying: https://news.ycombinator.com/item?id=50358838


Interesting, if I understand correctly it seems like Anubis is just being used in a use case inappropriate way here?

The Arch equivalent to this would be building AUR packages from source, which seems to universally work fine without any of these issues.

Are NixOS repos putting their source behind Anubis or something? I’m tempted to start on an “I don’t like NixOS” rant but I don’t know who owns these forges.


It's sort of a mix between AUR and regular pacman repositories. On Arch, you have PKGBUILDs that list upstream URLs for your package sources. For example: https://gitlab.archlinux.org/archlinux/packaging/packages/ap...

then some process takes those PKGBUILDs, downloads the sources from the upstream URLs, and builds them into the binary packages that end up in the official pacman repositories.

The same process happens on NixOS to build their official repository (which is called the "Nix Binary Cache"). So most NixOS users, when installing software, they are just downloading prebuilt binary packages from official NixOS servers just like pacman does on Arch. I, however, disable the Nix's official package repository so when I install software it is like building from a PKGBUILD: it needs to download the sources from the upstream URL and build the package.

I'd imagine the reason I run into this issue a lot more than you do is usually you only install a couple of packages from the AUR. The vast majority of your packages are going to come prebuilt from official Arch repositories. Whereas on my systems, 100% of the software is being built from source. So if any of my software is developed on a site using anubis to protect their source tarballs or patch files, I will hit this issue.


I imagine that when I install AUR packages that are building from source, the community AUR maintainers have already figured out these issues if they exist, while you are left as the person figuring them out for every single package since you’re building from source.

Maybe the problem here is that people are using Anubis without understanding what its purpose is. If you are publishing open source code in a forge you should want and encourage bots and other automated systems to download your code.


> weird anime girl

This has been particularly annoying for me because I disable NixOS's binary cache and build all my software from source. So when I run `nix build` I end up fetching source code tarballs from code forges. Invariably, the build will fail because what was supposed to be thesourcecode.tar ended up being the html for the anime girl page, leading to a hash mismatch.

I haven't yet figured out the incantation to download the source files myself and inject them into the nix store. `nix-store --add-fixed sha256 <file>` always seems to result in a different nix store path than the one `nix build` was downloading to.

I totally understand the desire to stem the fire hose of AI crawlers. I self-host my code forge and so I am no stranger to the devastation those locusts leave in their wake. But this is also hurting innocent non-crawling humans who are just trying to compile your software.


> FBI should not run surveillance Ops on Right activists, J6 rioters

I think an important distinction here ICE is Immigration and Customs Enforcement, so they have no reason to be spying on US citizens unless we're harboring illegal immigrants.

The FBI's *is* the domestic intelligence and security service. So an angry armed mob smashing the Capitol building, threatening to hang the vice president, interfering with the lawful transfer of power, and attempting to gouge the eyes out of a police officer are absolutely something the FBI should be investigating and surveilling. If I merely posted online that I *wanted* to do any of those things, I would expect to be surveilled by the FBI. Actually doing those things is a guarantee.

Neither agency should be doing it for political affiliation reasons, but J6 was a lot more than people just "being conservatives".


I'd be willing to spend that much if it unlocked the ability to run top-of-the-line open weight models at their best quantization at a decent enough speed for personal agentic use. We're clearly not there yet, and I just can't imagine dropping the price of a brand new car on something that will only get me heavily quantized versions of the smaller models.

> Does anyone use/like touch on their windows (linux?) laptops

My retired parents. When they borrow my laptop, I see them trying to touch my regular non-touch screen.


> no contributions

That's just obviously not true. Check out the commit history on FreeBSD and look at all the contributions from Netflix. Off the top of my head they contributed kTLS and asynchronous sendfile which made it such that a single syscall could send the full contents of a file over a socket even with TLS.

Grepping through the git logs for the "Sponsored by" lines shows these top results:

  15925 The FreeBSD Foundation
   3738 Netflix
   2084 EMC / Isilon Storage Division
   1922 Rubicon Communications, LLC ("Netgate")
   1733 Dell EMC Isilon
   1550 Chelsio Communications
   1446 DARPA, AFRL
   1421 Mellanox Technologies
   1262 Klara, Inc.
    784 Arm Ltd
    729 iXsystems, Inc.
    707 Solarflare Communications, Inc.
    552 Netflix, Inc.
    477 Beckhoff Automation GmbH & Co. KG
    473 Microsoft
    421 Juniper Networks, Inc.
    411 DARPA, NAI Labs
    386 Stormshield
    385 Microsoft OSTC
    384 DARPA
    375 NetApp, Inc.
    358 Innovate UK
    355 DARPA, Network Associates Laboratories
    317 Yandex LLC
    299 NVIDIA Networking
One company that isn't in that list but shows up as an author is Datto which gave us native encryption on ZFS (shout out to Tom for writing that!)

So interesting to see Darpa represented in different labs. I wouldn't have bother to look for that interesting tidbit otherwise, so thanks for that.

These are pitiful amounts of changes in comparison. Sonys closed sourced PlayStation changes alone would dwarf these numbers.

You can know how much corporations put into MIT but never how much they extracted.


Without reading the contents of the patches there is no way to know how significant or insignificant those changes are.

That being said, I think it is important to consider: in a hypothetical world where the BSDs and other copyfree operating systems didn't exist we *still* wouldn't get those patches from Sony. The alternative is not "we have to use Linux now and make our work public", it is "we have to use one of the many commercially available operating systems". Just look at all the devices that ship with QNX.

https://en.wikipedia.org/wiki/QNX


The existence of some contributions to MIT code does not disprove the assertion.

If you're fit to even be in this conversation then you have enough logic to know this, which makes the comment not merely in error but knowingly disingenuous.

What are the equivalent numbers for everything that was ever licenced GPL vs MIT? Neither of us knows but I defy you to even slightly attempt to hint that the world did not benefit from gpl code about a million times more than mit code as a direct result of their fundamental natures.


The assertion I was addressing is that copyfree code "just ends up being incorporated into someone else's commercial product, with no contributions".

My post proved that copyfree code bases actually do receive contributions back from the commercial users of their code. Certainly not 100% of users, but the same is true for the GPL. Every company I've worked for after college has used Linux extensively and none of them have contributed back to Linux in either patches or dollars.

Why do you both keep incorrectly referring to the license as "MIT"? The BSDs are under the various BSD licenses, not the MIT license. If you're trying to refer to the whole category then I would suggest using the words "copyleft" for GPL-style licenses and "copyfree" for BSD-style licenses.

> If you're fit to even be in this conversation then you have enough logic to know this, which makes the comment not merely in error but knowingly disingenuous.

I would like to direct you to the HN guidelines since this is a clear violation of them: https://news.ycombinator.com/newsguidelines.html


It did not prove any such thing except in the meaningless pedantic technicality way. No reasonably rational person read that comment and thought they meant literally 100% not a single example. The existence of exceptions does not disprove anything. Everything has exceptions.

Numbers prove or disprove it. Which neither of us has. The fact that everything you showed even fits in a little comment like that compared to the scope of all software actually proves what a joke it was to even try to present this as any sort of argument.

"why do you keep saying MIT?" Oh FFS really? MIT, or BSD, is perfectly understandable shorthand for any of the mit/bsd/x11/etc in a general discussion like this. They are all of a class. How do you know? Because no one has attempted to discuss any fine points here that would make any of those any different from any of the others. You have to go out of your way to say they are different, and then cannot say in what way that matters or changes anything. So why do you yet again pretend an insignificant detail in any way affects the thrust of the argument?

Go ahead and substitute "MIT" with "BSD" or any of the specific "various BSD licences". Ok now that you did that, what changed? The argument was valid or invalid before, and the opposite now?


So far I'm the only one here who has provided any numbers. All you and soperj have provided are unsubstantiated claims. Why don't you do some analysis on the "scope of all software" and get back to me? Given the scale, I imagine it will take you at least a couple of years.

> The existence of exceptions does not disprove anything. Everything has exceptions.

It does when the original claim was an absolute one. That's how logic works.


> The existence of some contributions to MIT code does not disprove the assertion.

Yes it does. The assertion was:

> MIT licensed stuff(if it's any good) just ends up being incorporated into someone else's commercial product, with no contributions.

Therefore, any number of contributions disprove the assertion.


One thing I'm cautiously watching is NixBSD. With nix you can trivially compile all your software from source and modify it (both of which I do on the Linux-based NixOS). So I think that would cover the main selling point of Gentoo, though naturally it adds the Nix layer that you may either love or hate. The only reason I haven't dived into it yet is my FreeBSD machines are all foundational parts of my infrastructure so I don't want to take a gamble on such a young project. So for now I just load it up into a virtual machine and poke at it longingly from time to time.

https://github.com/nix-community/nixbsd


Neat project. One thing I don't see covered: is everything going to be statically linked like it is on Alpine Linux? Is statically linking libc advisable on a NetBSD kernel? I know (unlike Linux) the FreeBSD kernel ABI can change every major release, but I'm not familiar with NetBSD's approach.

Alpine Linux is not statically linked. It provides a musl environment which makes it easy to statically link your own builds, but software shipped as part of the distro is usually dynamically linked.

  $ docker run -it --rm alpine

  / # apk add cmd:ldd
  / # ldd $(which ash)
          /lib/ld-musl-x86_64.so.1 (0x7f4cb4d1d000)
          libc.musl-x86_64.so.1 => /lib/ld-musl-x86_64.so.1 (0x7f4cb4d1d000)

  / # apk add cmd:python3
  / # ldd $(which python3)
          /lib/ld-musl-x86_64.so.1 (0x7fd630cab000)
          libpython3.12.so.1.0 => /usr/lib/libpython3.12.so.1.0 (0x7fd63069a000)
          libc.musl-x86_64.so.1 => /lib/ld-musl-x86_64.so.1 (0x7fd630cab000)

Woah, TIL! My Alpine Linux world view has just been shattered. Static linking was frankly *the* selling point of Alpine Linux for me and it turns out I was just plain wrong.

Alpine selling point was that it's small, which was selling people only for people that either don't understand docker layers or can't make Dockerfile correctly.

Alpine’s connection to static linking is mainly that it provides a convenient musl build environment. A fully static binary can run in `FROM scratch`.


> A fully static binary can run in `FROM scratch`.

Not just `FROM scratch` but also in other contexts. For example:

I wrote my own password manager which lives on a USB drive. Since I compiled a static binary, I can execute it on any Linux machine.

Running static binaries in FreeBSD's Linuxulator is easier. The Linuxulator is a separate set of syscalls that get used when you attempt to run a Linux binary, so a static binary will "just work" for the most part (unless the program needs special filesystems like /proc or /sys). A dynamically linked binary means I need to make sure I have any necessary Linux libraries in the proper location and the Linuxulator's `ld` working properly. Updates to these libraries can then make something that used to work, suddenly stop working. Certainly not an insurmountable task, but there's so many fewer places where things can break when you're just running a static binary.


Well, `FROM scratch` implies that if there is something that works with linux syscalls (i.e. Linuxulator) then it generally runs. Unless, like you said, it needs special filesystems.

> which was selling people only for people that either don't understand docker layers or can't make Dockerfile correctly.

I don't think that's fair. Alpine-derived images are generally smaller, all things held equal. Of course if you do everything else right then it will matter less, but a proper multistage Dockerfile should still be smaller than the same thing built out of another distro (most of the time).


> which was selling people only for people that either don't understand docker layers or can't make Dockerfile correctly.

...or people who had a test/deploy/debug cycle on environments that necessarily had no layer cache (ephemeral VMs, one-shot kubernetes clusters, OpenWRT routers that lost the layer cache on reboot). Or people with network-constrained traffic from registries or mirrors thereof.

Or people in environments that took container security findings (perhaps too) seriously and were tired of triaging endless reports for random dependencies in "FROM ubuntu" containers, and wanted a default required-by-policy base image that didn't come with the world.

Or people who needed a relatively full-featured build environment against musl without having to do bizarre incantations in e.g. a Fedora image to switch away from libc while still being able to link against other system libraries.


> people who needed a relatively full-featured build environment against musl

Yeah, I called this out as the main appeal of alpine. IMO no one should be using musl, but its another story.

> or people who had a test/deploy/debug cycle on environments that necessarily had no layer cache (ephemeral VMs, one-shot kubernetes clusters, OpenWRT routers that lost the layer cache on reboot). Or people with network-constrained traffic from registries or mirrors thereof.

Debian slim is ~30 MB compressed, and distroless/static is ~2 MiB. Small images aren’t unique to Alpine. With a fast local mirror, the extra download is negligible.

> Or people in environments that took container security findings (perhaps too) seriously and were tired of triaging endless reports for random dependencies in "FROM ubuntu" containers, and wanted a default required-by-policy base image that didn't come with the world.

1) Nobody’s forcing you to use a full Ubuntu image.

2) Alpine images still get plenty of security findings, often in the same dependencies your application needs regardless of the base image.

3) Nix is the best container builder anyway.


You're not wrong, but both "nobody should be using musl" and "nobody's forcing you to use a full-fat distro image" often run into the reality that the choice of base image, security posture, and libc/linkage environment for distributables are, by policy or technical requirements imposed by third parties, not under the control of the person who is trying to make Docker images behave.

I agree and understand that, but I'm talking about purely technical reasons to use. IMO majority of alpine/musl usage is cargo cult. At my work, I'm yet to hear reason other than "its smaller" and "what is that? I just copy pasted it from X repo."

I won't deny that there is a use for portable binaries that don't depend on specific version of glibc, but its such a niche.


I must say, it's all of 6 days later and your "[the] majority of alpine/musl usage is cargo cult" stance has already aged like fine wine.

NetBSD retains the old ABI as well if anything changes to a syscall.

This is a strange question because you could learn Dockerfile syntax in a single night. There are only 18 directives, and the average Dockerfile uses like 6 of them. 90%+ of Dockerfiles is just "run this shell command" and "copy this file into the docker image". The only time it flirts with complexity is multi-stage Dockerfiles, but 90%+ of Dockerfiles are a single stage.

https://docs.docker.com/reference/dockerfile/


> The only time it flirts with complexity is multi-stage Dockerfiles, but 90%+ of Dockerfiles are a single stage.

And multi stage builds are just a directed graph short hand for having separate intermediate dockerfiles. There’s nothing special about them either.

If I had to pick one thing that is tricky for someone new to docker to understand, it’s how the filesystem state is cached using the previous state, the env, and the raw command text.


Indeed, the one mistake I keep seeing new people make when writing Dockerfiles is writing them in a way that doesn't optimize for caching. For example, they'll copy their code into the container first and then start installing packages and dependencies. It's an easy mistake to make because the end result is still a functional Dockerfile, they're just wasting time and stressing the poor package servers unnecessarily.


Or multi-container compose files with atypical networking, or troubleshooting daemon permission issues.

Docker is much more than memorising a handful of Dockerfile directives.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: