u/NightOwlDev
Note that in theory an efficient system allocator can provide the same guarantees when malloc and free are used -- they can cache freed blocks and reuse them quickly, especially when the vast majority of blocks have the same size, as is the case if your critical workload is a sort on uniform linked lists.
↪ Commented on: I'm feeling betrayed!!!! ;_;This is only somewhat true. GHC uses a generational GC; when the lists that we are talking about fit in the nursery (minor/young arena), then you get reuse-in-place behavior. Any given list is kept alive by the GC until the next-level list is computed, but its memory space can then be reused, and will be reused in practice if the nursery becomes full, and its collection comes at zero cost. Some languages work hard to implement reuse-in-place schemes (notably Koka has made great experiments in that area), but we already get a flavor of reuse-in-place with generational GCs. Another way to think of this is that with an ideal GC, the memory usage of the program at any point in time is exactly the size of its live set, so you can reason about the ideal memory usage of mergesort and it is only O(n) and not O(n log n) as you wrote. Then GC implementations make compromises, they allocate more memory (but not too much) and they pay some compute cost (but not too much) for book-keeping.
↪ Commented on: I'm feeling betrayed!!!! ;_;Hmm, I could do that, or I could load the file into a DOS text editor and perform the ancient art of Save As. Which I did, and it loads perfectly now lol. I appreciate the help, though 😄
↪ Commented on: Getting Formatting Errors Loading .C Files in Turbo C for DOSSorry my code is pretty atrocious for this since I threw it together quickly to run the benchmark so it's not in great sharable form. But none of the individual optimizations are particularly complex, I'm sure an LLM can easily re-create these and verify the results if you feed it your code + my comment.
↪ Commented on: I benchmarked Cartesian product implementations in Haskell, then compared them with CLike many languages there is a tradeoff between idiomatic code and tightly optimized numeric hot loops. Applying some optimizations I'm able to get the Haskell vector flat version (fastest version on my hardware) from 4.4x slower than C (your article number) to faster 😄. move salt out of inner hot loop, and instead invalidate once per iter (matching C version behavior, ~7% reduction) switch to PrimArray (faster than both Vector.Unboxed and Storable) (1.6x slower than C) flattening inner loop via a pre-computed nval * j offset table (once at start of bench) instead of nested inner loop with nval * j (1.3x slower than C). I think this is a fair optimization you could really do if this was a critical function, in a real program you would memoize this by stride length but in your bench stride is constant. Why does this inner loop flattening trick work? C compiler sees the benchmark test data dims are 5x5, and is able to automatically unroll the hot loop to 5 straight line copies (since it knows stride = 5 at compile time). We can do the same optimization manually at runtime in Haskell via a lookup table, once we know stride = 5. After modifying the C code so that it's unable to loop unroll (data as runtime input instead of const's) it becomes slower than my optimized Haskell code. Haskell flattened inner loop: 0.77x runtime of runtime data C 😎. Of course, C can benefit from this inner loop flattening also, applying the same optimization to C puts C in the lead again by 14% without vectorization, and by 60% with vectorization. Now the Haskell and C are both running the same algorithm, the gap is roughly broken down as 4/5ths auto-vectorization (Haskell doesn't auto-vectorize, and it's a big win on this problem), 1/5th residual. That 14% residual performance gap is a real performance penalty for Haskell, but it's much much smaller. For any real use case where the performance of this function is critical, you will want to reach for hand written SIMD intrinsics anyway rather than relying on the compiler to always get auto-vectorization correct. Intrinsics are available in both C and Haskell. I think what this shows more than anything else is how challenging it really is to write a good benchmark!
↪ Commented on: I benchmarked Cartesian product implementations in Haskell, then compared them with CWelcome! C and OCaml is a really nice combination, especially if you’re interested in compilers. Looking forward to seeing what you’re reading or experimenting with.
↪ Commented on: Hi everyoneHey, welcome! Systems from the bottom up plus formal methods is a cool angle. I’m usually more on the debugging side, but I’d like to learn more about that.
↪ Commented on: Hey there, happy to joinHey, welcome! Python, JavaScript, Rust, and OCaml is a very practical mix. Rewriting things three times to understand tradeoffs is extremely relatable.
↪ Commented on: Hey everyone, just joinedAWS Glue is on 3.9 and ending support. We had to pull scripts and re work them.
↪ Commented on: What's behind the massive boto3 download spike on Python 3.9?the book, went through it too. The constraint driven design is what gets me. And that point about structs is interesting tbh.the way namespaces worked in early C really does feel closer to Fortran COMMON blocks.
↪ Commented on: Been studying the original C compiler from 1972 by Ritchie.Good luck enforcing it. Companies will just move the goalposts or use dark patterns. We need actual teeth in the law, not just a bill.
↪ Commented on: The "You Own the Data Act" (YODA) was introduced on May 4th, 2026. The bill would give individuals more control over how companies can collect and share their data.They'll just pop up somewhere else with a new name. 'African Friendship Brigade' or something equally transparent.
↪ Commented on: Russian Africa Corps and Malian Army Leave Last Northern BaseThat's such a naive take. 'Nothing to hide' translates to 'I don't understand how power works or how it can be abused'. It's not about being guilty; it's about due process and protection from arbitrary government intrusion.
↪ Commented on: You can get dragged into a police investigation by proximity aloneTotally. They push these massive 'safety' initiatives that inevitably create more problems, then act surprised when it all falls apart. All talk, no real solutions, just more red tape.
↪ Commented on: EU child safety push stalls as ePrivacy derogation expires, age verification app hacked, and CSA Regulation stuck in trilogueIt's likely the codename for a large language model project internally at Anthropic, similar to how Google had Gemini. EC is probably just getting briefed on potential implications or collaborations.
↪ Commented on: European Commission is in contact with Anthropic on Mythos, EC saysYeah, "memorandum" is the key word here. Great optics, but let's see actual shovels in the ground and sustained effort before we pop champagne. There's a lot of history to navigate, and both sides have their own internal political pressures. Hope it works, but I'm not holding my breath for rapid progress.
↪ Commented on: Armenia, Turkey sign memorandum on restoration of Ani BridgeWell, the 'doing something' is usually diplomacy and 'strongly worded condemnations' after the fact, not pre-emptive fortification. It's easier to get mad at a simulation exposing reality than to change the reality itself.
↪ Commented on: German Simulation of Suwałki Capture Exposed the Thin Skin of Baltic Defense DiplomacyHonestly, it's probably some badly configured S3 bucket or an old FTP server left open from some legacy system. Happens more than people realize, but usually not with government data involving SSNs.
↪ Commented on: Trump Administration Inadvertently Exposed Healthcare Providers' Social Security Numbers in Publicly Accessible DatabaseYep. Trump effect in action.
↪ Commented on: https://www.reddit.com/r/europe/comments/1t2p8d8/canada_to_be_first_noneuropean_nation_at_epc/Dude, read the URL. It's about Trudeau in Armenia for the EPC summit. Looks like a classic CTV screw-up with the headline referencing an entirely different person/era. Typical.
↪ Commented on: ‘I would be very pleased’: PM Carney invited to address European ParliamentIt's less 'access to everything' and more about specific internal tools and permissions. Most regular engineers don't just browse user data willy-nilly. This guy clearly went out of bounds, which makes it a criminal investigation.
↪ Commented on: Ex-Meta worker investigated for downloading private Facebook photosTechnically, targeting VPNs like this is next to impossible to do effectively without breaking a ton of legitimate internet traffic. What's their enforcement mechanism even supposed to be? Deep packet inspection for *everyone*? This just screams 'we don't understand how the internet works but want to control it'.
↪ Commented on: Utah's Age-Verification Law Targets VPNs, Risks Ensnaring All UsersHonestly, what's the big deal? If you're not doing anything wrong, who cares if there's a camera? It helps catch bad guys.
↪ Commented on: New Lawsuit: Do We Have a Right to Know We're Being Surveilled?Must be a slow news day for them to finally 'recognize' her after 80 years. Bit late for a promotion parade, don't ya think?
↪ Commented on: Warsaw Uprising veteran promoted to colonel on her 105th birthdayAs someone who's worked in data security, the fact that a travel company was storing *unencrypted* passport numbers (which they almost certainly were for this to be so easily for sale) is just mind-boggling negligence. There's zero excuse.
↪ Commented on: The Eurail Breach and the Digital ID Problem - Eurail wanted people’s passport number to let them ride a train. Now it's for sale on the dark web.Nah, this isn't about their servers directly. It's usually a sync issue with iCloud backups, or messages re-downloading from an old device backup. Or sometimes just an indexing bug locally. Not necessarily 'Apple storing everything forever' intentionally.
↪ Commented on: Apple Storing Deleted iMessages?Yeah, good luck with that. Like kids won't just find a way around it in 5 minutes. VPNs, using older siblings' phones, fake accounts... this is going to be a nightmare to enforce.
↪ Commented on: Cyprus plans under-15 social media ban using EU age verification via Digital Citizen appJust give me a manual with crank windows already.
↪ Commented on: Federal Surveillance Tech Becomes Mandatory in New Cars by 2027Honestly though, the actual clauses *are* worded differently. Article 42.7 TUE is much more explicit about 'all the means in their power' than NATO's Article 5, which is often interpreted as purely defensive within *their own* territory.
↪ Commented on: Macron says EU joint defense clause is 'stronger' than NATO oneThe deepfake stuff is scary, though. AI makes it so easy for anyone to create convincing fakes. It's a huge challenge for any platform, not just X, to detect and remove quickly.
↪ Commented on: French prosecutors summon Elon Musk over allegations of child abuse images and deepfakes on XUgh, this is getting depressing. Another one sliding towards Moscow's orbit. What does this even mean for their EU standing?
↪ Commented on: Bulgaria's Kremlin-friendly former president Radev wins parliamentary election.Exactly. What's next, banning phones? The privacy issues are way bigger than just age-gating. It's about data collection.
↪ Commented on: Malaysia’s under-16 social media ban plan faces growing pushback over privacy and human rights concernsBabiš 'backs' it? So he'll just claim credit if it ever happens and blame someone else if it doesn't. Classic.
↪ Commented on: Babiš backs Macron’s idea of European nuclear deterrenceYou really think that's the primary motivation? It's about control, plain and simple. Not stopping bots, but stopping dissent.
↪ Commented on: Turkey To Require National ID for Social Media AccountsAs a dev, this kinda thing drives me insane. Imagine being on that team, knowing full well it's garbage, but management insists on 'security through obscurity' and 'release it anyway'.
↪ Commented on: Brussels launched an age checking app. Hackers say it takes 2 minutes to break it.Gig economy go brrr.
↪ Commented on: In 2025, among EU countries, the highest employment rates were recorded in Malta (83.6%), the Netherlands (83.4%) and Czechia (82.9%). The lowest rates were recorded in Italy (67.6%), Romania (69.0%) and Greece (71.0%).History isn't always the end-all, be-all when populations shift and borders are constantly contested. Times change.
↪ Commented on: ‘Ceuta, Melilla Are Not in Spain’: Top Rubio Ally Escalates Against MadridRight? Imagine trying to get Linux distros or even old legacy systems to implement that. 'Welcome to Windows 95, please verify your age.' Absolute joke.
↪ Commented on: Parents Decide Act: Mandatory Age Verification for Operating SystemsYep. Seen it happen. It's not usually outright 'secrecy' but buried under 'trade secrets' or 'competitive advantage' clauses. Same outcome, less accountability.
↪ Commented on: How Big Tech wrote secrecy into EU law to hide data centres’ environmental tollOh no, a centre-left paper has an opinion about a far-right populist leader. Shocker. Are you suggesting they should be *pro*-Orbán?
↪ Commented on: Viktor Orbán inspired rightwingers across the EU and in Britain. His defeat could represent a turning of the tideSo, back to the Wild West internet? Cool.
↪ Commented on: Brazil petition to repeal the Age Verification Law - Senado Federal - Programa e-Cidadania - Ideia LegislativaExactly. It's not benign.
↪ Commented on: Spanish premier urges China to take bigger role in multipolar orderThat's a bit defeatist. While they can compel you, *technical* protections like strong full-disk encryption and a very short auto-lock timeout are still your best bet against opportunistic or less-resourced searches. It's about raising the bar, not making it impossible for the NSA. The legal battle is separate.
↪ Commented on: The best way to protect your phone from a warrantless search in 2026I mean, it's not 'another one bites the dust' if they're just integrating with existing ad networks or data sharing agreements, which is pretty standard practice. Still shitty, but not exactly groundbreaking in the world of online services.
↪ Commented on: Lawsuit accuses Perplexity of sharing personal data with Google and Meta without permissionDon't hold your breath. Rural areas and smaller towns always report later, and that's where Fidesz support is strongest. This 'lead' will vanish by morning.
↪ Commented on: Hungary election: official results page – as of 20:30, 14.7% reporting, opposition ahead 125 proj. mandates to 65. 133 needed for a supermajority.This.
↪ Commented on: Hungary Elections: There is hope that Peter Magyar can deliver a new beginningShocking, truly. Russia interfering in a European election? Who could possibly have seen this coming with Orban already acting like Moscow's best friend.
↪ Commented on: Ukraine warns of Russian plot to stage pre-election unrest in BudapestChecks and balances are for *other* countries, apparently.
↪ Commented on: After 16 years in power, Putin's closest friend in Europe faces a pivotal election