News for hackers. Stuff that matters.

lubutu

I initially read "the order of files in /etc/ssh/sshd_config.d/" to mean the order of files in the underlying directory inode, i.e. as returned by `ls -f` — and thought, "oh god"... But the lexicographical order, that's not too surprising.
I mean, no. If you work on a codebase that's been going for more than a few years, the author likely doesn't even work there anymore. The commit is the important thing.
Re:Static search trees: 40x faster than binary search on Wednesday January 01, 2025 @02:40AM (#42564567)
C23 has constexpr, albeit only for objects, not functions. The code also uses namespaces, as in `std::aligned_alloc(P, T)`.
Re:X debut 40 years ago (1984) on Wednesday June 19, 2024 @07:09PM (#40733365)
Meanwhile, Kerberos (also Project Athena) has been at version 5 since September 1993.
Re:The Unix-Haters Handbook [pdf] on Monday April 22, 2024 @11:26AM (#40115284)
There has been recent work on RPC-with-TLS (RFC 9289), xprtsec=mtls.
Re:The Unix-Haters Handbook [pdf] on Monday April 22, 2024 @02:25AM (#40111854)
> NFS still sucks (IMO it sucks more than it used to)

Any chance you could elaborate?

The distinction I suppose is that what you really mean is "the difference in [necessary] skill level between a burger flipper and an accountant".
I suppose such feedback could be used for reaching a fixpoint. Suppose you have a build system that reads targets to be built from stdin and outputs to stdout targets that are dependent on that target and must now be rebuilt. With an ouroboros, the build system will continue to run, even if the dependency graph is dynamically cyclical, until the fixpoint is reached and the build terminates.
Re:Write Dumb Code (2018) on Sunday February 25, 2024 @04:22PM (#39504903)
I mean, learning Haskell has made me a better programmer even if I've never used it at work.

Perl I have used. I wouldn't say the same about that...

It does make sense — the Unix debugger has always been *db, with no bridges in sight.

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

Re:Useful Uses of Cat on Wednesday February 21, 2024 @03:42PM (#39459238)
You can do...

  <access.log head -n 500 | grep ...
... though that's less familiar to many, I'm sure.
Re:How to commit part of file in Git on Friday February 16, 2024 @06:14PM (#39404306)
> So the idea is really "what's the point of having a history full of broken state?".

I rebase commits so they don't break the build but the history remains clean and incremental. Selective fixups and so on isn't the same as squashing everything into a single commit.

> This would be a hint that your PR was too big and addressing more than one thing.

I don't think so. Sure, that can be true, but squashes can also simply lose vital history. Suppose you remove a file and then replace it with code copied and modified from another file. If you then squash that, all Git will say is you made a massive edit to the file.

Re:How to commit part of file in Git on Friday February 16, 2024 @05:35PM (#39403904)
You're not the only ones, but I can't understand this approach. Do people never then read the version history? It must be impossible to understand commits' diffs with the changes all squashed together.
Re:Oasis – a small, statically-linked Linux system on Friday January 26, 2024 @04:17PM (#39148531)
It's not by the same person — sta.li was by Anselm R Garbe. It's more like a spiritual successor.
Re:Show HN: Cassette, a Personal Programming Language on Wednesday January 03, 2024 @12:28AM (#38851071)
Thanks for sharing!

  ; these produce an error, since `b` isn't defined when the body of `a` is compiled
  let a = \x -> (b x * 3),
      b = \x -> (a x / 2)
It surprised me when this was called out, given that both a and b are defined in the one 'let'. Was there a specific reason you decided not to treat it as a 'letrec'?
Re:Fine Tuning Mistral 7B on Magic the Gathering Draft on Tuesday December 05, 2023 @05:39PM (#38537918)
Lurrus into Dead Weight — that's a nice start.
Re:Git Branches: Intuition and Reality on Thursday November 23, 2023 @10:49AM (#38394039)
I think this is the one thing I feel BitKeeper does better than Git. Git can get confused about where a file came from, for moves but especially for copies, and so the version history ends, even if you ask it to try and follow along. BitKeeper, on the other hand, keeps the moves and copies as part of the history, so you can always trace it through to the origin of the file, no matter how circuitous.
Re:Omegle founder shuts down site forever? on Thursday November 09, 2023 @01:14AM (#38201754)
I looked around and found an AMA [1].

> Python, using the Twisted framework for networking.

> Omegle runs on just one server: a Linode 2880. It used to be on a 720, which was very close to sufficient. No database at the moment, but if it never needs one, I'll most likely use PostgreSQL.

[1]: https://www.reddit.com/r/IAmA/comments/9vbd7/i_made_omegleco...

When I was looking for work back in 2012 there was a company who advertised their way of working as "infrared", if I remember correctly. It was all about total openness and autonomy. For example, they asked one employee to decide how many hours everyone should work per day, and they decided on something, which was then applied company-wide. This was apparently "democracy in action". Quite odd. I think they've since dropped that whole thing.
Re:fdupes: Identify or Delete Duplicate Files on Sunday November 05, 2023 @09:02AM (#38151190)
You know another project with much of its source files in the top-level directory? https://github.com/git/git
It's in bash(1) under "Process Substitution" — https://manpages.debian.org/bookworm/bash/bash.1.en.html#Pro...
> Phispher - use javascript to show a phisphing page

Do you mean phishing? I searched for "Phispher" thinking it might be a particular tool or something, but nothing turned up.

The same is true in Norwegian, but then they go and ruin it all with "oldemor" = "great grandmother", instead of persisting with e.g. "mormormor".
No, they're saying they can't imagine it happening at a private company, but can once the company has gone public.
Re:7 simple habits of the top 1% of engineers on Saturday September 16, 2023 @09:02AM (#37534433)
That works for new code, but I'm much less keen when maintaining legacy code. Sure, you could reformat every file and then proceed to work on them, but then you've had a serious impact on the version history, worsening tools like git blame and often making it harder to understand how a particular piece of code evolved. It's even worse if one reformats and then makes a code change in the same commit...
Re:Calculate the difference and intersection of any two regexes on Tuesday September 12, 2023 @01:39AM (#37477232)
To expand, Brzozowski introduced derivatives and Antimirov partial derivatives. Essentially the former correspond to DFAs and the latter to NFAs.
Re:Patients treated by female surgeons have better outcomes on Saturday September 02, 2023 @05:59AM (#37360042)
> accounting for patient, procedure, surgeon, anesthesiologist, and hospital characteristics

This suggests to me that they have accounted for that to at least some degree. (I can't read the paper itself so I don't know the details.) At the very least I don't think one can simply dismiss the findings out of hand citing "if you think about it."

Re:How to find time to learn after work (2017) on Monday August 28, 2023 @10:35AM (#37294693)
I've heard that some well-off parents will even send their children to schools with attendance fees...
It's unsurprising given the way it was phrased — very US-centric, and essentially that "if you disagree with me, you're as bad as Putin's soldiers in Ukraine"? Hardly the best way to encourage friendly debate.
Re:Bram Moolenaar Passed Away on Sunday August 06, 2023 @01:01AM (#37019110)
Very sad to hear. I interacted with him only a couple of times, but each time I came away with a very good impression of the man. And, of course, I'm very thankful for the editor he created that I've been using daily for over a decade now. He will be missed by many, and I'm sure intensely by some. Rest in peace, Bram.

Older »