Recent submissions

Comment · 1 month ago
Comment · 6 months ago
Comment · 7 months ago
It depends on what you are looking for. My recommendation for learning "how is X done in a shell" is the OpenBSD ksh: https://github.com/ibara/oksh

It's what they use for /bin/sh, it has everything that a complete shell needs (including a mechanism for providing command completions) and has code that is much easier to read than bash or zsh.

Something that I also would recommend is the design document for the plan9 rc shell; it is a worthwhile read for anybody interested in shells: https://doc.cat-v.org/plan_9/4th_edition/papers/rc

An implementation is also available if one wants to look at how it could be done: https://github.com/rakitzis/rc

Comment · 9 months ago
I just would get a different teacher. Not every teacher is a good fit for every student.

To me it sounds like you were not using the proper technique or didn't warm up enough and your teacher wasn't able to guide into the right direction.

Comment · 10 months ago
Comment · 1 year ago
Comment · 1 year ago
I agree completely. I also know that distros patch packages.

But for unzip the situation is particularly bad because it has no maintainer. Normally, you would raise feature requests for basic functionality upstream and once added, the maintainer would cut a new release. So software with the same version number generally, but not always, behaves similarly across distros.

But for unzip, because upstream is unmaintained, distro maintainers started to add features while keeping the version number. So in the end you end up with different behavior for what looks like the same release.

Comment · 1 year ago
I wasn't trying to imply that unzip is the only one.

But the way I learned that unzip is unmaintained was pretty horrible. I found an old zip file I created ages ago on Windows. Extracting it on Arch caused no problem. But on FreeBSD, filenames containing non-ASCII characters were not decoded correctly. Well, they probably use different projects for unzip, this happens. Wrong, they use the same upstream, but each decided to apply different patches to add features. And some of the patches address nasty bugs.

For something as basic as unzip, my experience as a user is that when it has so many issues, it either gets removed completely or it gets forked. The most reliable way I found to unzip a zip archive consists of a few lines of python.

Comment · 1 year ago
Comment · 1 year ago
Somebody once tried to clarify the situation with a similar stunt, but failed spectacularly. From the NOLF Wikipedia page:

In May 2014, Nightdive Studios, a publisher of classic PC titles, filed trademarks for "No One Lives Forever", "The Operative", "A Spy in H.A.R.M.'s Way", and "Contract J.A.C.K.", Nightdive had also been able to acquire the source code for the games, which would enable them to remaster them for modern computer systems. However, Nightdive had yet to comment on the situation regarding who owned the rights to the game. At this point, the rights to the series were unclear, as the property may have been owned solely or in part by 20th Century Fox (which owned Fox Interactive at the time of the game's release), Activision (which acquired and merged with Vivendi Games, which in turn was the parent to Sierra Entertainment, the publisher of No One Lives Forever 2, and had acquired Fox Interactive in 2003), and Warner Bros. Interactive Entertainment (which acquired Monolith Productions). Warner Bros. did file opposition to Nightdive's trademark, leading Nightdive to try to seek a license arrangement. However, Warner Bros. representatives were concerned that if either Fox or Activision had a part of the ownership, that they would also need their approval. Nightdive attempted to work with Fox and Activision to search their archives, but as these transitions pre-dated computerized records, neither company wanted to do so. Nightdive's efforts were further stalled when they were told by Warner Bros. that they had no interest in partnering or licensing the IP, leading Nightdive to abandon their efforts to acquire the rights.

Comment · 1 year ago
Comment · 1 year ago
What I learnt is that there is a rest mass and a relativistic mass. The m in your formula is the rest mass. But when you use the relativistic mass E=mc² still holds. And for the rest mass I always used m_0 to make clear what it is.
Comment · 1 year ago
In my company the official policy is that nobody but the admins gets administrator privileges. If you need them the workflow is that you go to IT and they do what is necessary. Or they just might say no. People had to complain that makes work impossible for them and will cost the company a lot of money so that they got exceptions -- but only after escalation to upper management.

I think this was a security directive that came from the top.

Comment · 1 year ago
Yes, per core power consumption or better performance per Watt is usually more relevant than the total power consumption. And 1 high-core CPU is usually better than the same number of cores on multiple CPUs. (That is unless you are trying to maximize memory bandwidth per Watt.)

What I wanted to get at is that the pure core count can be misleading if you care about power consumption. If you don't and just look at performance, the current CPU generations are monsters. But if you care about performance/Watt, the improvement isn't that large. The Zen1 CPU I was talking about had a TDP of 180 W. So you get 6x as many cores, but the power consumption increases by 2.7x.

Comment · 1 year ago
Core counts have increased dramatically. The latest AMD server CPUs have up to 192 cores. The Zen1 top model had only 32 cores and that was already a lot compared to Intel. However, the power consumption has also increased: the current top model has a TDP of 500W.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton