Better HN
topnewbestaskshowjobs
Log inSign up

verandaguy

2,315 karma · joined Mar 8, 2013 (13y ago) · 552 submissions

Toronto-based programmer focusing on special-purpose network applications on Linux. I hike and take landscape photos when I'm not writing software.
Submissions

1.

Proving a Fixed Upper Bound on Jensen's Affairs (J. Cincinnati, 2026) [pdf](media.bitbanter.com ↗)

3 points · by verandaguy · 11h ago · discuss

comment 23h ago · link · parent

A very Don Knuth solution, I like it.

comment 4d ago · link · parent

On your last point: when talking about algorithms in the abstract, we still use similar structures to those used in programming; loops and branches (if/else) are the most critical in many of the common complexity analysis cases (big-O, little-O, big-Theta).

Big-O specifically refers to the worst-case time or space complexity of an algorithm. Assume that your algorithm operates on an input of n elements. Then:

- A straight iteration over every element (`for item in items: print(item)`) runs in linear time: O(n) for n elements.

- If your algorithm has a nested loop, and each of the loops has a bound which is either literally n, or derived from n, this is quadratic time (O(n^2)). For example, this naïve search for duplicates:

    for item in items:
        for dupe_candidate in items:
            if item == dupe_candidate:
                print(f"{item} is a dupe!")
This extends into higher powers (O(n^3), O(n^4), etc)) with deeper nesting of loops, and if inner loops are dependent upon other input parameters, you can use a separate variable for that (O(n^m) for example).

- There are also cases where algorithms run in sub-linear time. Two very common cases for that are logarithmic time (O(log(m, n)), which often comes up in algorithms over height-balanced search trees of arity m, and constant time (O(1)), which means that regardless of the input size, the algorithm will run in the same amount of time (which sounds great, until you realize that for large enough values of 1 this is actually really slow -- so you often see these constant-time algorithms find niche applications at large scales where even a very large 1 is still small).

From a math perspective, this is really just modelling a function's behaviour over a given input range, as well as when it tends towards infinity. Understanding your algorithm's time and space complexity as well as the input domain are a very common first step towards identifying the data structures and algorithms which will make up your application.

comment 5d ago · link · parent

If I understand contracts right, as in, that they're a basic form of dependent typing, I think that offers a form of safety in its own right.

As a fan of functional programming, I love this as a language feature. I also appreciate that it's profoundly opt-in, and I agree that package management and memory safety are more pressing.

I'm curious, as a C++ outsider: what memory safety features are currently being discussed that look most promising? How many would retroactively apply to existing code bases if compiled against an appropriately recent `--std` setting?

comment 1w ago · link · parent

That is a shocking amount of Tucker Carlson.

comment 1w ago · link · parent

I might try it, I've usually had a bias towards modern settings for FPSes. I've heard good things, though.

Right now I'm on a break from traditional shooters, though, Deadlock's got most of my attention.

My point, in any case, is that some developers or publishers are operating from a point of either bad faith or truly staggering ignorance about Linux. HLL might be a good game but it doesn't change that the devs for a different game made a really weird call and publicly justified it in one of the dumbest ways I've ever seen.

comment 1w ago · link · parent

Disappointingly, some games (and even some publishers writ large) will deliberately block Linux users. Two recent examples:

- From everyone's favourite, EA, most of their bigger titles including Battlefield 2042 and Battlefield 6 don't work on Linux due to EA's anti-cheat settings.

- On the smaller studio side of the spectrum, Bulkhead, who develops WARDOGS, had a wild 180 around the time the game entered its open beta where the anticheat was configured to start blocking Linux users. This was a massive middle finger to the closed beta Linux testers and players. The stated reason on the official Discord framed Linux as some sort of hive for hackers and malware developers, which is as ignorant as it is insulting.

comment 2w ago · link · parent

Well, in any case it's the outr?age cycle.

comment 2w ago · link · parent

God forbid the news cycle slow down enough for society to process events rather than being continuously forcefed the next thing in the outrage cycle.

This is why there's such an issue with holding power to account nowadays.

comment 2w ago · link · parent

I'm arguing that with a system as distributed as email, there will certainly be people who won't do this upgrade; I'm highlighting the contrast between the need for this set of technologies (SPF, DKIM, DMARC) and the utility of an old-school open web where the barrier to entry is low and anyone can participate.

We have seen a massive erosion of the latter aspect of the web in the past few years, and I think it's useful to frame conversations in terms of that loss. The web used to be fun, and now it's become, more than ever, a professional enterprise. You often can't stand up a website without having to buy into Cloudflare's DDoS protection or something equivalent. I think this is absurd, and it's not the only such case, though these changes are obviously reactions to how usage of the web's evolved over the years.

I wonder if we can get the old web back in some way, shape, or form, cause I think we've lost something with the corporatization of the internet.

And for what it's worth, yeah, I think grandma should be able to run a mail server. Why not?

comment 2w ago · link · parent

That is a burden definitionally, though; and that's to say nothing of the effort required to understand the technology and its impacts on operations.

comment 2w ago · link · parent

I don't know. I think this disenfranchises a lot of independent operators, and the blow of that could at least be softened by making a highly-visible public announcement about it a few months ahead of time.

Maybe you're right that just enforcing it is the way, but I don't agree with doing that with no heads up.

comment 2w ago · link · parent

This is interesting. At some point, I think it'll be desirable to give increasing positive weight to emails with the DPF/DKIM/DMARC trifecta configured, since those are least likely to be problem emails (spam or phishing), but I wonder what the best avenue is to actually make that the default. It's almost certainly not this kind of unannounced cutoff.

Email is, I think, among the most distributed popular online services, and there's a ton of stuff that's legacy, self-managed, or otherwise janky. Supporting SPF, DKIM, and DMARC does put a burden on independent operators, but is it an undue or unreasonable one in the current landscape? Or is it just the new cost of doing business?

comment 3w ago · link · parent

Is it just me or do the install steps really seem a bit silly? Who's using an agent to automate a brew two-liner?

comment 3w ago · link · parent

I didn’t actually mention Europe at all in my original comment, but I guess?

I’m not above admitting I’m not up to date on how the public washroom situation in the rest of Europe has changed in the past 15-20 years, though.

comment 4w ago · link · parent

My conflation comes from the fact that in Canada, you're almost guaranteed to have terrible washrooms at gas stations (and frankly, in most public venues outside of really nice hotels and restos) coast to coast to coast.

A washroom at at an Irving in rural New Brunswick will have the same weird smells and nonspecific grossness as a Petro in North Vancouver.

Granted, I also haven't visited most of Europe since being a kid, though at that time I remember a few Orlans in Poland and Elfs and Mobils in France having a much cleaner vibe than the gas stations back home.

comment 4w ago · link · parent

I'm increasingly convinced that awful public restrooms are mostly a North America thing. Travelling in Iceland a few years ago I was shocked at how nice the restrooms at the major gas stations were (N1 stands out). Full-height doors and stall walls, meticulous cleanliness, no weird smells.

At a gas station off the ring road in the middle of nowhere.

comment 4w ago · link · parent

Almost definitionally, any amount of money spent on these kinds of washrooms would be a shitload, no?

comment 4w ago · link · parent

Presumably, asking for it in person would be seen as a request (however unreasonable). I imagine that in many jurisdictions this may constitute a breach of procedure which would get you a scolding from the judge; done enough times I'm sure there'd be more material consequences.

Asking an LLM to do this through a prompt injection attack is less an unreasonable request and more an active effort to undermine the court's infrastructure and processes.

I'm not a lawyer; that's my intuition on the matter.

comment 1mo ago · link · parent

I haven't done frontend dev in a while, but one thing stands out to me here... they call out using OKLCH colours, which I had to look up. (For the uninitiated, this is a cylindrical projection of the also-new-to-me Oklab colour space, which appears largely unrelated to the older CIE L*a*b* colour space).

Do people actually use this? In particular, before LLMs ate the world, I mean. When I did frontend, it was hex, or if you felt fancy, `rgba(...)` (though at that point named colours had mostly fallen out of style).

Is using these less-intuitive colour encodings made more practical through the use of CSS variables?

comment 1mo ago · link · parent

CVSS is an imperfect system. Most of the time it gets the idea of how severe an issue is across, but once you go above an 8, maybe an 8.5, there are some perverse incentives at play. Even with newer versions of the framework coming out over the years, there have always been gaps.

Even before AI, there was prestige in being able to say that you (or your team) found a 9.2 in some major piece of software. You could put that on your resume in some specializations.

Now with AI vulnerability scanning being so hyper-commercialized (but not yet fully commoditized), this is cranked way up since there are more monied interests involved, and many of them are probably trying to make a quick buck before LLM-based vulnerability scans are a commodity (for better or worse).

comment 1mo ago · link · parent

The astronauts on the ISS must be breathing a sigh of relief, I imagine.

comment 1mo ago · link · parent

In Mike Pondsmith's Cyberpunk universe (the same one as Cyberpunk 2077), there's this point of in-universe history that the Old Net got overrun with rogue, nigh-on sentient AIs that made safe use of the internet as it was known then impossible.

Society's response to that was to build a new Net, walling off the rogue AIs of the Old Net behind the Blackwall and carrying on in a corporate hellscape.

I wonder if we'll see life imitating art on this one.

comment 1mo ago · link · parent

    > disguised as an open source project
A software project either is or isn't open source. Gitlab CE is source-available (here: https://gitlab.com/gitlab-org/gitlab) with an MIT license, which is a permissive open-source license.

Gitlab CE is open-source. There exist versions of Gitlab with features that require payment. This does not mean that Gitlab (the product) is not open-source; it means that Gitlab (the company) has a core product which is open-source, and then sustains its development through the sale of licenses to product tiers beyond that.

comment 1mo ago · link · parent

This is so good! It's even got duplicates of songs with slightly different caps!

I don't have a lot of love for megacorps but I gotta give it to Apple on this one, goddamn.

comment 1mo ago · link · parent

In my experience, being a parent is unfortunately a poor predictor of caring and being ready to act on climate change or its effects.

The split seems mostly generational; my parents and other parents around their age seem to not really care (there are still dinner table debates about whether Al Gore's An Inconvenient Truth was a scam or not), but as my other-millennial friends are becoming parents, the vast majority of them do care, because this issue has been so front-of-mind for people my age. We're hyperaware of the fact that my country has more wildfires, milder winters, and hotter summers than it did when we all were growing up.

(There may be selection bias at play here; while I don't go out of my way to avoid them, I don't have many friends who deny the issue of climate change).

Many of us are also tracking the second- and third-order effects of these things; crop failures, droughts, and the migration and public services strain that come as a result of this; most frustrating is that the biggest voter blocs won't enact policy that's responsive to this, so when the inevitable (mass, climate-change-driven migration) grows over the coming decades, we'll be unprepared, and we'll either be overwhelmed by the movement of people, or complicit in one of the greatest humanitarian crises in history (and very possibly both).

comment 1mo ago · link · parent

It's a tool that promises that you can be lazy. That's, like, the whole schtick. Of course people will be lazy using it, even if they don't intend to.

And in much of the industry, using LLMs is regressing into what I've heard be jokingly called "yes engineering," where you give an LLM-generated plan the lightest of skims (if that) and just hit allow or yes with auto mode or whatever.

comment 1mo ago · link · parent

Guardrails are one thing, I want to see criminal and civil liability (as appropriate) for these actions. The US has given corporations exceptional latitude over the years, and this has to be rolled back; maybe with their position on the world stage faltering, they'll reconsider what it takes to be a member in good standing of the global community.

comment 1mo ago · link · parent

No, let's not get comfortable. Let's get angry at the fact that now we have hyperscalers acting with impunity, failing to properly sandbox their testbeds, and increasing the workload imposed on our public services.

Today it's a fake tip to the police and and exploit chain against Huggingface, but soon it could be an attack against a hospital's IT systems that could cost real lives immediately.

We should be locking things down, yes, but a hardened system is still vulnerable to zero day chains, and that's not unprecedented. Until public services have built up the IT defence capacity to deal with this, we cannot normalize this. If a country did this to another country, it should be treated as a war crime in the same way that targeting a hospital or an orphanage or other critical civilian infrastructure would be.

Complacency is a choice and we must not be complacent.

comment 1mo ago · link · parent

Showing off can be the point. If I did something tricky and creative and got an interesting (possibly even useful!) result, why shouldn't I be proud enough of that to have a "hey, look at this cool shit I did/made" moment?

That aside, I've been lucky enough in my career to work alongside, mostly, people who have a personal interest in using software as a tool, and knowing their toolchains very well, be that a language, a command line, a system architecture, you name it. If you found something cool to do with a tool, you'd share it to disseminate the knowledge. That culture is very quickly dying off, I feel, because LLM-driven work encourages siloing to a degree I don't think gets discussed enough.

Lastly, using LLMs to write code is its own type of exhausting. I thought I could keep up my hobby by mentally checking out of work and working on projects by hand in my free time, but babysitting the LLM, reviewing the massive corpora of code and documentation it puts out (including those put out by colleagues), and the insane volume of context switches this technology encourages in the workplace makes me want to stay the hell away from computers alltogether if I can help it.

12345
19