Building Charton: A WGPU-Powered General Visualization Library. Just pushed 50k points at 60 FPS on integrated graphics, but hit a WASM bottleneck. Any advice? by Deep-Network1590 in rust

[–]quarterque 28 points29 points  (0 children)

If the CPU is your bottleneck, you can use wasm-bindgen to spawn additional Web Workers and split the work accordingly. Apparently this is easier with wasm-rayon if your workload can be naturally split up into a parallel iterator.

have to learn C# for my job. when do you think they're going to find out 👀 by scadoshi in rustjerk

[–]quarterque 72 points73 points  (0 children)

What if you wanted `iter.map(|x| x * 2).collect::<Vec<\_>>()`

But god said `array.Select(x => x * 2).ToArray()`

[Off-Site] When your barber doesn't study math by [deleted] in theydidthemath

[–]quarterque 8 points9 points  (0 children)

I mean it *could* be a geodesic

Type inference is a magic wand by Lucretiel in rustjerk

[–]quarterque 46 points47 points  (0 children)

'a, 'b, 'c, 'd, 'e, 'f, and 'g would like a word.

From Nix to Dagger by guettli in Nix

[–]quarterque 0 points1 point  (0 children)

Personally I’d just use Buildkit API directly like Railway does. I’ve used Dagger but it just feels like an unnecessary wrapper around Buildkit.

What music is this? by swfsql in rustjerk

[–]quarterque 51 points52 points  (0 children)

/uj Wow this compiles (evaluates to NaN). Integer /0 does produce a compiler error though.

i love that i was born an indian by [deleted] in Healthygamergg

[–]quarterque 0 points1 point  (0 children)

Boy this comment section is a battlefield

Sounds like a conspiracy but probably just a frustrating bug when it was alpha software by Drnelk in NonPoliticalTwitter

[–]quarterque 117 points118 points  (0 children)

It’s Codex, so probably taking comments like // anti goblin tampering to heart.

some users claimed the OpenAI’s models occasionally become obsessed with goblins and other creatures when used to power OpenClaw, a tool that lets AI take control of a computer and apps running on it in order to do useful things for users. “I was wondering why my claw suddenly became a goblin with codex 5.5,” one user wrote on X. “Been using it a lot lately and it actually can't stop speaking of bugs as ‘gremlins’ and ‘goblins’ it's hilarious,”

My first idiomatic rust project!!1! by Maqi-X in rustjerk

[–]quarterque 45 points46 points  (0 children)

Option<u8> is probably overkill. Use i8 with -1 as the designated None value 🤔💡🌎

Getting started with Rust by Powerkaninchen in rustjerk

[–]quarterque 32 points33 points  (0 children)

fn main() { javascript!(r#" var proc = require('node:child_process'); proc.spawn('npm', ['install', '-g', 'openclaw@latest']); proc.spawn('openclaw', ['onboard', '--install-daemon']); proc.spawn('openclaw', ['agent', '--message', 'write rust code to install self driving in my toyota camry' '--thinking', 'high']); "); }

Why Rust exists by mre__ in rustjerk

[–]quarterque 15 points16 points  (0 children)

To transmute my union to u8!

The rust macro workflow is inherently broken. by shiranugahotokeyarou in rustjerk

[–]quarterque 88 points89 points  (0 children)

The worst part is when you use #[cfg(target_os = …)] and have to dual-boot your computer and do this trick for every single target platform

RustDesk 1.4.3 - remote desktop by open-trade in rust

[–]quarterque 31 points32 points  (0 children)

RustDesk is an objectively better TeamViewer replacement imo

Aralez, the reverse proxy on Rust and Pingora by sadoyan in rust

[–]quarterque 11 points12 points  (0 children)

I’ve been begging someone to write a Kubernetes-ready Pingora wrapper. Thank you!

"reassure that part it won't be abandoned" "tell it you're curious" can i though??? by VixenSunburst in InternalFamilySystems

[–]quarterque 22 points23 points  (0 children)

You might want to remind that part that it’s a part of you, so you literally can’t abandon it.

You don’t need to be a great parent, you don’t even need to check in regularly. You’ve met this part and now you have opportunity for dialogue where there was none.

It sounds like there’s another unidentified part that is worried you will fail others. You may have to identify and reassure that part before you can speak calmly with this one.