HN user

phoyd

249 karma
Posts2
Comments52
View on HN

I am more shocked by the "overnight" aspect. I tried running clang-format on the Chromium source (68,281 .cc files, 21 million lines according to wc):

$ find chromium-149.0.7826.1/ -name ".cc" -exec cat {} + | wc 21640925 55715244 833460441

And that took less than 6 minutes on a single E5-2696 v3 from 2014:

$ time find chromium-149.0.7826.1/ -name *.cc | parallel -j 16 clang-format $x>/dev/null

real 0m5.666s user 1m13.964s sys 0m13.373s

That’s orders of magnitude faster, especially if we assume they’re not running their workloads on potatoes like mine. Is Ruby’s syntax really that much more complicated than C++, or is this a tooling problem?

I want to drop here the not very well known fact, that the SQL Standard grammar distinguishes between "SQL language identifier" and "regular identifier". According to the rules, a SQL language identifier can not end with an underscore (copied from ISO/IEC 9075-2:1999 "5.4 Names and identifiers":

<SQL language identifier> ::=<SQL language identifier start> [ { <underscore> | <SQL language identifier part> }... ]

<SQL language identifier start> ::= <simple Latin letter> <SQL language identifier part> ::= <simple Latin letter> | <digit>

So, using names with trailing underscore should always be safe.

Giving employees stock options does not solve the "employes should own the company" problem, when there is a market to sell the stock. Shareholders and employees have different goals and interests regarding the company. For example, the employees they may have to decide on the elimination of their own jobs in order to secure the value of their stock holdings (which btw. would make the company not owned by their employees anymore)

A more interesting approach would be a model where being a employee automatically gives you a vote on company wide decisions including. the distribution of profits, just how being a cititzen of a democratic country gives you a vote on the fate of your country (similar to the Mondragon Corporation in Spain)

I'm also interested. Setting up a passwordless SSH account for some public service sounds like a good way to give your machine away to North Korean hackers, because you forgot to set someting in /etc/sshd to "no".

Is there a usable description somewhere on how to do this safely?

Raspberry Pi 5 3 years ago

Pi5 is already on Geekbench. Speed seemed to be on the ballpark of a mobile Intel i5 dual core 4xxx IIRC.

Under UNIX, the lowest available file descriptor for the process is returned from open/create (also in Posix). So if you close(0) and then immediately open() something, you will (probably) get 0 as the new file descriptor.

This is the way redirection was done in early UNIX versions, at least I think until System 7, where dup2() was introduced to address the race condition lurking here.

2008 ThinkPad t400 user here, running Ubuntu. Most business class notebooks are incredibly durable and the market offers replacement parts for 10 of 15 year old devices. A t400 battery is less than 25€ on Amazon and there are dozens of vendors.

If you’re lucky, the LED will have a CRI of 90 or higher

EU has banned incandescent lights years ago and the situation for LED buyers is much different here. My local drug store chain (Rossmann in Germany) sells 1000lm E27 bulbs under their own Rubin brand with CRI>97 for 4.99€. No flickering and available as 2700K or 4000K. My Opple Light Master 3 even reads CRI 100. So for me right now, it's just going to the drug store and buying a bulb, like before the ban.

I remember how I read about functional programming languages for the first time in the August 1985 Byte issue, which I bought as a teenager because it featured a technical rundown of the new Amiga computer. For me in the early 80'e, Byte was a cornucopia of interesting stuff, much like Hacker News today.

(For example there was a whole issue in 1981 on Smalltalk-80, with an introduction by Adele Goldberg, where the Xerox Palo Alto people from the Smalltalk-80 team explain the implementation, the VM etc.)

https://vintageapple.org/byte/ has a (complete?) archive, albeit with slightly lower resolution scans.

Do I miss something, or does the quick sort example fail to handle the case where the value of "fst" is present more than once in the list?

Actually, it is still in vb.net for compatibility reasons. "on error" is fundamentally incompatible with structured error handling, going so far, that you can't event have try..catch oder event using..end using in a sub or function that also has "on error"