[-] entwine@programming.dev 6 points 1 week ago

You don't actually need to "split" anything, you just read from different offsets per thread. Mmap might be the most efficient way to do this (or at least the easiest)

Whether or not that's going to run into hardware bottlenecks is a separate issue from designing a parallel algorithm. Idk what OP is trying to accomplish, but if their hardware is known (eg this is an internal tool meant to run in a data center), they'll need to read up on their hardware and virtualization architecture to squeeze the most IO performance.

But if parsing is actually the bottleneck, there's a lot you can do to optimize it in software. Simdjson would be a good place to start.

[-] entwine@programming.dev 6 points 1 month ago
  • Take a human and have him study every single repo on GitHub

  • Take an AI and train it on every single repo on Github

Which of those two will continue to make novice mistakes like SQL injection and XSS vulnerabilities?

These AI "coding agents" aren't learning or thinking. They're just natural language statistical search engines, and as such it's easy to anthropomorphize them. Future generations will laugh at us, kinda like how we laugh at old products that contain cocaine, asbestos, lead, uranium, etc.

[-] entwine@programming.dev 6 points 1 month ago

I paid ~$80 or something for Sublime Text 4 a few years ago, and I can't remember the last time it had an update, yet I am an extremely happy customer.

A text editor should only focus on stability and performance, and Sublime does exactly that, and is why I am "stuck" with it.

But Gram looks like it's going the same direction, and it's open source! I really hope development on it picks up so I can finally gain peace of mind by having a FOSS code editor that can actually compete with Sublime.

[-] entwine@programming.dev 6 points 1 month ago

Both C++ and Objective-C aimed to be "C with classes". C++ does it by hijacking existing syntax (struct), Objective-C does it by adding new syntax, while leaving the original minimalism of C untouched.

In fact, it's a strict superset of C, which means it doesn't change anything at all in C, it only appends. So every valid C program is a valid Objective C program (which is not true for C++).

You know how some C programs are valid C++ programs though? Well, those same programs can use Objective C features too, meaning you're able to use them in C++... Meaning you're able to code in "Objective C++" (which is very common for interop purposes)

[-] entwine@programming.dev 6 points 1 month ago

Feeling embarrassed is a weird reaction. If it actually helps you in your job, there's nothing wrong with that. Get that money. Whether you like programming enough to actually get good at it is a personal choice. I'm someone who has been extremely passionate about it my whole life, and when I was younger, I had a much lower opinion of people who only did it for a paycheck (the "9 to 5 people" who didn't know the difference between Microsoft Office and Microsoft Windows until they took computer science in college). These days, I couldn't care less. The tech industry stopped being a meritocracy long ago. This recent wave of AI slop is just the boot stomping on the population of people who exist within one standard deviation from the average.

But as you're sitting around scratching your balls while the agents generate your code for you, take the time to think about this bit of doomer outlook:

The "vibe coding" thing is a fad that won't last. The only reason it exists now is because the current state of LLMs isn't good enough to do everything on its own. These agents currently need a human in the loop to babysit them when they fuck up, as you've no doubt noticed. They're also highly subsidized because the AI companies want to collect data in order to train them and make them better. If/when they're truly able to build a product on their own from prompt to ops, then the price hikes and layoffs will come. Maybe they won't even raise prices, maybe some billionaires will take the company private and only give access to their friends, family, and the young white christian men they're using as blood donors in their longevity experiments...

[-] entwine@programming.dev 6 points 2 months ago

Yup. It seems CDPR were the Linux haters all along.

[-] entwine@programming.dev 6 points 4 months ago* (last edited 4 months ago)

I second the dark reader recommendation, it'll save your eyeballs and works on (almost) every site. You can even install it on Firefox mobile and its various forks

Edit: https://addons.mozilla.org/en-US/firefox/addon/darkreader/

[-] entwine@programming.dev 7 points 5 months ago

It's neat, but not a serious competitor to something like Framework. The MNT laptops are just cool shells around a Rock chip RK3588, which is a quad core ARM (meaning it only has two performance cores, and two efficiency cores). It's a good competitor in the Raspberry Pi world, but not a serious contender in the x86 one.

If they somehow release a modern x86 version, RIP framework. Otherwise, I don't think many existing FW customers will be switching to MNT. (Although there are a lot of other better laptops on the market they could switch to)

[-] entwine@programming.dev 6 points 5 months ago

Afaik it works perfectly. Podman can use Docker hub with zero issues, and is sometimes configured as the default repo for fetching images without a qualified name. Conversely, I think Docker works perfectly with the Podman ecosystem repos too (like quay.io)

[-] entwine@programming.dev 6 points 5 months ago

Higher level package managers like yum and dnf/dnf5 have implemented their own enforcing signature modes, enabled by default since the beginning of Fedora. This change brings the RPM side default behavior to this millenium.

So it seems it only applies to manually installing RPMs, but I think most people probably use dnf or yum to install packages

[-] entwine@programming.dev 6 points 5 months ago

No F-Droid, no trust. It doesn't matter how strong the cryptography is, if Google or the government can trivially deploy a backdoored version. It also brings into question Signal's own credibility/trustworthiness, as this is an obvious and well-known flaw that they've refused to rectify, and have made bogus arguments to justify their decision.

[-] entwine@programming.dev 6 points 6 months ago

I first discovered Linux in middle/highschool back when Ubuntu was the hot shit and they had that awesome Gnome 2 desktop. I loved the vibes, but didn't stick with it because I didn't know what to do. Then just over the years I'd occasionally install it for a few days and give it a shot, learning more and more, even installing Arch Linux once (back when it was actually a challenge).

Switching to Linux was inevitable for me, I think. As the years rolled on, Windows got worse and worse while my understanding/confidence with Linux got better and better. I don't remember what the final thing was that convinced me to finally go 100% Linux on all my devices, but I did around ~2017 or 2018 with zero regrets.

So I think that if there's a path for people to learn Linux at a comfortable pace, without the trauma of going all in, they'll also find it impossible to resist. The dynamic of Windows becoming worse while Linux becomes better is still holding strong.

view more: ‹ prev next ›

entwine

joined 7 months ago