• 1 Post
  • 348 Comments
Joined 1 year ago
cake
Cake day: July 1st, 2023

help-circle
  • Your default types for that are i32 or u32. It’s the exact same number of characters yet encodes more precise information.

    I’m aware of packing, but for my specific niche the main bottleneck is CPU, and it’s important to minimize the amount of memory usage to improve data locality, increasing cache hit rates, ultimately increasing cpu throughout. Any gains we would make by packing such small values would likely be eliminated by the cost of unpacking them, unless it’s a flags-like value where we are primarily comparing individual bits.



  • Cargo being an all-in-one tool is actually one of my favorite things about the rust ecosystem. It’s many things, and it does it all seamlessly.

    Regarding comparing to C or C++, how can you argue either is designed better? C, while standing the test of time, predates so many modern programming concepts or standards and writing C code is extremely error prone. C++ improves on many of C’s shortfalls, but it wasn’t designed. It’s the result of different things being loosely bolted on to C over the course of 30 years. And it’s still error prone, for example while there are smart pointers and other types that can make writing memory safe code possible, they’re not default and they aren’t always fully supported in the standard library, let alone anything else.












  • Here’s a different perspective on Safari: it’s the largest competition to Chrome there is. It’s the only relevant one, really. Apple forces iOS users to use Safari (or at least WebKit), and that’s the only thing standing in the way of Chrome/Blink having >90% market share. Safari alone stops Google from dictating the web. Firefox is great and I love it but it’s got like 3% market share and is itself funded by Google. Hence I think Safari is really important in maintaining an open web, even if that’s not why Apple is incentivized to force it on users. I know web devs also hate it but requiring they put in the effort to support Safari is what an open web is all about.




  • Those are a lot of words you put in my mouth. In fact, I can and have sideloaded apps (the process is stupid and overcomplicated, but it does work, I am not in the EU), and my iPhone does in fact have USB C (was a dealbreaker, I used a Pixel until iPhones had USB C). I wish I could use other browsers on my phone besides Safari but it’s not a dealbreaker for me, I can and do run Firefox on my computer when I need a different browser for any reason, I hope this will change in the future.




  • I’m in an extremely similar situation. I’m a professional software developer, but the software I develop is cross platform, but in practice most of our users are on Linux (Ubuntu LTS more specifically), and a smaller contingent of Windows users. Honestly not sure if anyone uses macOS besides the developers, but we ship best-effort builds anyways. Our developers run a mix of macOS, Linux, and Windows. I’ve used all three, and ultimately while macOS isn’t perfect, I’ve decided it’s what I can be most productive with, for the reasons you mentioned. It’s close enough to Linux being Unix-like, homebrew is sorta like having all the up to date packages like arch, except with the comfort that an update will never completely break my system, and the macOS creature comforts are extremely nice to have when I’m doing more office tasks rather than writing or reviewing code. Hardware is head and shoulders above everything else, I can go a full day without a charger. Great community too.