Earlier quoted context omitted.
> Some people prefer GNU make, some like bsdmake. Is there really such a person that prefers bsdmake over GNU make?? I really don't mean this as a troll comment, but bsdmake has about 5% of the functionality of GNU make. It's perfectly adequate if you just want to give it a list of files to compile, but it's a nightmare to do things like write a recursive directory scanner to auto-generate Qt .moc files, to scan PATH…
I absolutely love the bsd.*.mk system. It's not just that the tool is simple, but that the average makefile is very short and simple. Here, a few examples: (netcat) http://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/usr.... (inetd) http://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/usr.... (ntpd) http://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/usr.... (httpd) http://cvsweb.openbsd.org/cgi-bin/cvsweb…
Ask HN: Can we talk about FreeBSD vs. Linux?
121–130 of 221 posts
Re: Ask HN: Can we talk about FreeBSD vs. Linux?
#122Earlier quoted context omitted.
That's called copy-on-write (CoW) and is supported by a few modern filesystems (including ZFS). In fact ZFS does do some very basic deduping in the way you suggest (ie you copy a file instead of move it, and ZFS will just issue a pointer). However full deduplication could never be free simply because of the overhead of keeping a table of all the duplicated data and scanning new content for duplications.
And ZFS deduplication consumes an absolutely frightening amount of RAM: 5GB of RAM per 1TB of storage is recommended.
Re: Ask HN: Can we talk about FreeBSD vs. Linux?
#123Earlier quoted context omitted.
The default shell in freebsd is probably still sh, which does not have tab completion. The Linuxes long ago moved to bash, which does. However, in the FreeBSD ports tree, I guarantee you there is a bash package you can install, and then you can just switch your shell to be bash instead of sh.
Few minor corrections as several posts in this thread suggest outright installing bash just to achieve tab completion in FreeBSD. The default root shell on FreeBSD is csh (tcsh) [1] and has been that way for at least 21 years (at least if I read the revision history [2] correctly, my own memories only go back about some 15 years). As per Wikipedia article, tcsh natively supports tab completion since about 1983 [3] (w…
Also want to add that csh comes stock with historical auto completion which I very much enjoy.
Typing "tail " and pushing the up arrow will auto complete with the last command you typed starting with "tail ".
Re: Ask HN: Can we talk about FreeBSD vs. Linux?
#124Earlier quoted context omitted.
This is OT, but since you seem to know a fair bit about filesystem types and their trades and have an opinion on sane patching behavior, I have a question you might be able to answer: Why aren't modern filesystems based on a content-addressable-store where the content is 100% separated from the organization of the filesystem itself? It seems to me like it would make more sense to have only one copy of a file ever sav…
Zfs, to take one example, does do approximately what you want - the file system (or rather, the underlying block storage) has a tree structure, and changes to files are propagated via copy-on-write rewrites up the tree, so that earlier snapshots still get to see the original file. This does make rolling things back trivial. It doesn't give you dedupe for free, though. Think about what would have to happen: every modi…
Re: Ask HN: Can we talk about FreeBSD vs. Linux?
#125I started using FreeBSD (version 4.8 at the time) in 2003 and I began a switch to Ubuntu in around 2011. Disclaimer: the following is all very opinionated and 8.1 is the last version of FreeBSD I actively used. Actually, it's still running without any problems on a colocated machine, but it's a bit a "don't touch it" situation, because upgrading even a single piece of software would probably cause a cataclysm of stru…
It's worth pointing out that since FreeBSD 10, there is a new binary package manager, "pkg", which works pretty well and makes package management much less painful. It makes the experience in this regard not much different from any apt-get based linux distribution. The old way of having to compile everything makes your system very configurable, but it gets brittle on systems where you have to make big upgrades.
The problem with binary packages on freebsd was that they are frozen at release. So when you use the package manager to install everything you need... then a large package has a security hole (or it already has a hole.. since the packages might be months out of date), and the only way to patch it is by using the ports.
THe only thing packages on freebsd are good for is getting up and running. You'll save a bit of time if you install the packages.. but you have to use ports to upgrade and maintain those packages.
Re: Ask HN: Can we talk about FreeBSD vs. Linux?
#126Earlier quoted context omitted.
Zfs, to take one example, does do approximately what you want - the file system (or rather, the underlying block storage) has a tree structure, and changes to files are propagated via copy-on-write rewrites up the tree, so that earlier snapshots still get to see the original file. This does make rolling things back trivial. It doesn't give you dedupe for free, though. Think about what would have to happen: every modi…
cp --reflink
Re: Ask HN: Can we talk about FreeBSD vs. Linux?
#127My personal (limited) experience with FreeBSD vs my (extensive) experience with GNU/Linux: FreeBSD pros: Very stable Excellent network support Friendly, knowledgeable devs and tightly knit community Runs most GNU/Linux apps via ports or jails, sometimes better than on Linux Easy to learn given prior 'nix experience FreeBSD cons: Difficult to learn if you're new to the 'nix world Smaller pool of compatible hardware[1]…
> Runs most GNU/Linux apps via ports or jails, sometimes better than on Linux Jails is containers like Solaris Zone, or LXC and OpenVZ on Linux. So it doesn't have any relation to FreeBSD ports. FreeBSD does have binary repositories though (pkgng), so perhaps that's what you meant? Another interesting point worth noting is that FreeBSD also has "Linux compatibility" modes for supporting Linux ABIs and virtual file sy…
Re: Ask HN: Can we talk about FreeBSD vs. Linux?
#128Long time reader, first time poster. I've run FreeBSD on laptops, desktops and servers since 2.2.7. Laptops are not its strong suit. It works great for me as a desktop, but I've been tinkering with X desktop configurations for a long time, and don't mind doing some work to have a desktop that functions precisely the way I want it to. Also, it is not my only desktop. (/usr/ports/sysutils/synergy FTW!) Servers and netw…
In thoery, yes. But in practice, not really. The port maintainers build/test the ports against whatever the current version of FBSD is.. and if you're system is more than a version or two out of date (and you have an up to date ports tree), you'll find broken ports throughout it.
Re: Ask HN: Can we talk about FreeBSD vs. Linux?
#129Earlier quoted context omitted.
The Firefox issue is because gtk is brain damaged and sends the image to the x server, then reads it back, but it gets broken up into tiny chunks and causes a billion syscalls. You can fix it by recompiling x with larger socket buffers.
Thank you , I've been trying to figure out what the actual problem was for a while and was not having any luck. For those who haven't experienced this: it's really painful. Your entire desktop becomes completely unresponsive for 5-10 full seconds while a picture very slowly loads.
Re: Ask HN: Can we talk about FreeBSD vs. Linux?
#130I think this would be a useful conversation. The userlands are pretty similar, I think, they both support the GNU tools, as is attested to by the existence of Debian/kFreeBSD. I don't know what the OP's motivation is, but I'm an enterprise server admin, with lots of Debian experience, but no real FreeBSD knowledge at all. I've been looking at Debian/kFreeBSD off and on for a while as a way to get at ZFS, and possibly…
You can install GNU tools, but the base system is not very GNU, eg now has clang not gcc, BSD Make not Gnu make and so on. The Gnu tools are of course portable, so you can install them from ports - you will need them for compiling software that assumes Gnu options for example. Debian/kFreeBSD is a weird idea for me, you will have no support either form the FreeBSD community or the Debian community. I would go straigh…