2,315 karma · joined Mar 8, 2013 (13y ago) · 552 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 4d ago · link · parent
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
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
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
- 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
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
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
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 4w ago · link · parent
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
At a gas station off the ring road in the middle of nowhere.
comment 4w ago · link · parent
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
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
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
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
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
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
comment 1mo ago · link · parent
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
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.