Readit News logoReadit News
diath commented on What to do with C++ modules?   nibblestew.blogspot.com/2... · Posted by u/ingve
holowoodman · 2 days ago
Why bother? The world seems to have moved on to Rust, C++ is only for legacy maintenance stuff anymore.
diath · 2 days ago
There are a number of areas in programming where I'd always choose C++ over Rust - gameplay programming, retained-mode GUI programming and interpreted programming languages to name a few have very complex circular memory models that are somewhat solvable with weak_ptrs or refs stored in member variables passed through constructors but would be absolutely obnoxious to deal with and get right with the borrow checker.
diath commented on What Does will-change In CSS Do?   jakub.kr/components/will-... · Posted by u/ssernikk
diath · 4 days ago
> Now the boxes get filled with pixels, colors, borders, shadows and images. Think of someone coloring in the board game pieces. This also uses the CPU and some extra memory to store the painted bits.

Are you sure this is happening on the CPU? I thought the CPU-side only generates a list of paint commands but the GPU does the bulk of this job.

diath commented on Exploring the tragedy of the Counter-Strike 2 server browser   bphilip.uk/blog/2025-08-2... · Posted by u/shaokind
xeonmc · 8 days ago
They could also use the Minecraft approach, where you're free to join servers via IP/domain addresses from a simple UI instead of being obliged to trudge through the browser.
diath · 8 days ago
Has anything changed in CS2? You could always just `connect host:port` in the console in Counter-Strike.

Deleted Comment

Deleted Comment

diath commented on ArchiveTeam has finished archiving all goo.gl short links   tracker.archiveteam.org/g... · Posted by u/pentagrama
iJohnDoe · 16 days ago
Why? Did they ask anyone if it was okay? Anything sensitive at those links? Anything at those links people didn't want or need anymore? Maybe people thought those links were dead? Did Google provide a way to cancel those links first?

It's like when the GPT links were archived and publicly available that contained sensitive information.

diath · 15 days ago
If you want something to remain private, don't post it on the public internet.
diath commented on Counting Words at SIMD Speed   healeycodes.com/counting-... · Posted by u/healeycodes
dh2022 · 16 days ago
Thanks for the advice - I never heard of pypy. Are there any downsides to making puppy the default Python interpreter? Thanks!
diath · 16 days ago
It's not universally supported by all packages, for instance C-based packages will not work, more info about it here: https://pypy.org/posts/2018/09/inside-cpyext-why-emulating-c...

With that being said, when it works, it works great but you have to evaluate whether it's suitable on a per-project/script basis.

diath commented on Counting Words at SIMD Speed   healeycodes.com/counting-... · Posted by u/healeycodes
diath · 16 days ago
On semi-related note, it's worth noting that if you're trying to make a Python script run faster and don't have the know-how to re-write your program in C or how to write SIMD (if applicable), you can always try to run the script through pypy, merely replacing python3 with pypy3 in bench.sh, with no other changes, brings the runtime of the first program down from 104s to 9s on my machine:

    Benchmark 1: python3 0_mvp.py bench.txt
      Time (mean ± σ):     104.739 s ±  3.982 s    [User: 104.213 s, System: 0.158 s]
      Range (min … max):   100.303 s … 108.005 s    3 runs
    Benchmark 2: python3 1_c_regex.py bench.txt
      Time (mean ± σ):     14.777 s ±  0.017 s    [User: 14.563 s, System: 0.158 s]
      Range (min … max):   14.759 s … 14.791 s    3 runs
    Benchmark 1: pypy3 0_mvp.py bench.txt
      Time (mean ± σ):      9.381 s ±  0.204 s    [User: 9.110 s, System: 0.234 s]
      Range (min … max):    9.245 s …  9.616 s    3 runs
    Benchmark 2: pypy3 1_c_regex.py bench.txt
      Time (mean ± σ):      4.296 s ±  0.031 s    [User: 4.038 s, System: 0.236 s]
      Range (min … max):    4.262 s …  4.324 s    3 runs

diath commented on Steam can't escape the fallout from its censorship controversy   polygon.com/steam-paypal-... · Posted by u/SilverElfin
kasey_junk · 18 days ago
There are 3 issues being commingled within this.

First, the networks have brand protection stipulations for any partner that uses the network. None of them want to be known as the porn brand.

Second, porn (and other similar categories) have a different risk profile than other charges. Specifically chargeback risk goes through the roof. None of the members of the network want to deal with sales of things that spike chargebacks.

Third, the federal government and some states have outsourced enforcement of some laws to the banks and payment networks. It’s easier to ban things than to do this enforcement at times.

None of this is a ethics issue and none of this is about money transfers. It’s about extending credit, and there is no technical solution around credit extension with electronic payments.

diath · 18 days ago
Considering the fact that these payment processors are still happily processing payments from PornHub, OnlyFans and other big real porn platforms, I don't think your explanation about the networks not wanting to be associated with porn holds any ground. They're targeting video games specifically.
diath commented on Blurry rendering of games on Mac   colincornaby.me/2025/08/y... · Posted by u/bangonkeyboard
AndriyKunitsyn · 19 days ago
Which says more about the volume of the market of gaming on Mac. It's small and unfortunate.
diath · 19 days ago
It's actually really small, according to Steam Hardware Survey, Macs are only 1.88% of Steam users, which is less than that of Linux, which is probably why most developers don't care.

u/diath

KarmaCake day481November 30, 2019View Original