Chocolate Dolphin's Avatar

Chocolate Dolphin

@chocolatedolphin7.bsky.social

hello I'm a human being 🐬🍫 he/him Wishlist Fierce Kingdoms on Steam! https://store.steampowered.com/app/3406130/Fierce_Kingdoms/

54 Followers  |  51 Following  |  150 Posts  |  Joined: 12.01.2024  |  2.3701

Latest posts by chocolatedolphin7.bsky.social on Bluesky

tl;dr code eventually made it to prod globally without having a specific buggy path actually run, and when it did, it was too late and crashed everything

wouldn't be surprised if it was vibecoded but they're not gonna say that

16.06.2025 00:16 — 👍 2    🔁 0    💬 0    📌 0

Which ones? I'm interested in any low level language that doesn't depend on LLVM. It's really sad that every new language I come across depends on LLVM because getting high-quality optimized codegen is extremely difficult. Writing a parser, analyzing semantics etc is super easy in comparison

15.06.2025 07:38 — 👍 0    🔁 0    💬 1    📌 0

Both clang and gcc max out near perfectly at 100% cpu usage for the threads I give them, so I wonder what exactly the culprit is. Maybe it's something to do with header files? They're essentially processed many many times, but maybe they allow for better parallelization. Idk

15.06.2025 07:35 — 👍 0    🔁 0    💬 1    📌 0

so while mozilla does some good things very rarely sometimes, I woudn't consider myself lucky or fortunate for being close friends with mozilla people, and I don't take them very seriously either. the entire org depends on morally wrong $$$ from google, it's not a very grassroots org

14.06.2025 22:56 — 👍 0    🔁 0    💬 0    📌 0

can't think of 2) as a positive though, to this day mozilla depends entirely on google, they went from being #1 in marketshare to <6% and shrinking each year, while not improving the browser much and doing lots of questionable things. they're pretty much a facade for google's monopoly on the web

14.06.2025 22:51 — 👍 0    🔁 0    💬 0    📌 0

that's an interesting background, that being said, 1) is most likely tied to the connection between wasm/rust/mozilla. haven't used wasm myself but I do know plenty of c++ projects exporting to web and workng great though (except multithreading), so idk what the exact issue is

14.06.2025 22:47 — 👍 1    🔁 0    💬 1    📌 0

I forgot but it should be like only 4 cores. didn't bother to troubleshoot but I think it was either the linking process or one big crate in particular that caused it. could you try compiling that CLI program I linked to maybe?

14.06.2025 21:32 — 👍 0    🔁 0    💬 0    📌 0

because it defeats the purpose of packages in the first place? the point is to group related functionality into one package split into several files. if by design you can't do that without compromising build times, the design is broken and pushes you into a less flexible, less organized structure

14.06.2025 21:29 — 👍 0    🔁 0    💬 1    📌 0

are you talking about docker containers or something like that? that is NOT the same thing at all. but I give up trying to explain things to you

14.06.2025 08:48 — 👍 0    🔁 0    💬 1    📌 0

it's been way over a decade at this point that the core fancy features were introduced. it's not unworkable at all, it's mostly just that lots of c++ projects are legacy or old programs. rust is so dangerous and harmful that it can steer potential new programmers away from c++ by making false claims

14.06.2025 08:47 — 👍 0    🔁 0    💬 1    📌 0

I know it's most definitely documented & according to spec, that's besides the point, I'm not even that far into the docs and already the compiler is not smart enough to notice something's wrong, it didn't even emit a warning. wouldn't be surprised if it was at least a warning in c or c++ tbh

14.06.2025 08:42 — 👍 0    🔁 0    💬 1    📌 0

go and try it yourself then, maybe that's the only way you'll learn why it's not doable, not in a remotely sane, workable manner. i could keep explaining it to you, but you simply do not get it

14.06.2025 08:40 — 👍 0    🔁 0    💬 1    📌 0
C++ Core Guidelines The C++ Core Guidelines are a set of tried-and-true guidelines, rules, and best practices about coding in C++

I give up with even considering to use this lang, it's a total mess without even looking that deep, and from what I've seen so far, it's totally a cult. and just a fun fact: yes you can have fairly safe C++ code, see isocpp.github.io/CppCoreGuide... but oh well ppl watch youtube instead of reading

14.06.2025 08:38 — 👍 0    🔁 0    💬 1    📌 0
Arrays and Slices - Rust By Example Rust by Example (RBE) is a collection of runnable examples that illustrate various Rust concepts and standard libraries.

also I had just started to try to understand rust a little bit better, was reading this doc.rust-lang.org/rust-by-exam... and then apparently simply changing slice[0] to something illegal like [8] crashes the program. WHY!? the length is even known at compile yet just crashes at runtime instead

14.06.2025 08:35 — 👍 0    🔁 0    💬 2    📌 0

again another video, yay! but also not really representative of reality. it's too long to elaborate on why they're wrong, but essentially rust *IS NOT* an upgrade from say, C++. it's quite the opposite, it's objectively worse in too many ways

14.06.2025 08:33 — 👍 0    🔁 0    💬 1    📌 0

who said single binary? how is it not clear to you that static linking everything isn't feasible? to clarify, when you statically link something, you're essentially including an entire copy of that lib's compiled code in your program (unused parts can prob be optimized away by compiler/linker tho)

14.06.2025 08:28 — 👍 0    🔁 0    💬 1    📌 0

it's not so much just choosing dependencies wisely, but also even doing it in the first place. less friction = way more dependencies. and the problems w/ too many deps are not obvious at first, they only pop up later in the form of instability, at which point it's annoying to replace/remove deps

14.06.2025 08:25 — 👍 0    🔁 0    💬 0    📌 0

btw setenv is so discouraged that it's not even supported in languages like java. if libs include libs that makes it much more likely you end up w/ obscure libraries in your product like that rust one. again, that's why C/C++ libs tend to avoid using libs themselves, it's not a new concept

14.06.2025 07:45 — 👍 0    🔁 0    💬 1    📌 0

the original article in itself is good empirical evidence that indeed, being too eager to use dependencies for trivial things leads to instability and often poor quality code. the crash happened in part bc the library is using setenv for no good reason at all, that lib shouldn't do that afaik

14.06.2025 07:43 — 👍 0    🔁 0    💬 1    📌 0

"most likely poorly" this in fact leads me to believe that it is you who doesn't have much experience being a dev, because this is like the most popular misconception ever that at some point everyone realizes is not even remotely true. sometimes using a library makes sense, sometimes not so much

14.06.2025 07:40 — 👍 0    🔁 0    💬 1    📌 0

very ironic because rust is so slow to compile when you change something, it wastes plenty of human time. it's been a real issue for lots of ppl and orgs who unfortunately got baited into using rust and had to do dirty workarounds to lower the compile times

14.06.2025 07:37 — 👍 0    🔁 0    💬 0    📌 0

and what would you do if, for example, you have dep A that's fairly close to the core, that is required by nearly every other dep? good luck constantly recompiling the entire system for every one-liner fix

14.06.2025 07:31 — 👍 0    🔁 0    💬 0    📌 0

why not instead you provide an example fully featured stable OS where *everything* is written in rust and does static linking everywhere? it's literally impossible. sure 1 program might be ok, but not all of them. don't you think if static was better, everyone would have moved to it loooong ago?

14.06.2025 07:29 — 👍 0    🔁 0    💬 4    📌 0

also ironic bc supposedly from what I've read, rust is the least productive language of all bc of the borrow checker but idk if that's true

14.06.2025 07:25 — 👍 0    🔁 0    💬 0    📌 0

saying rust forces you to do things properly is a pretty wild, biased and hard to prove claim. and no, writing safe code in *new* C++ projects does absolutely not require extreme care, it just shows you probably never even tried to and are parroting misleading information from the internet

14.06.2025 07:24 — 👍 0    🔁 0    💬 2    📌 0

for example just look at how everything breaks very often because of the sheer number of dependencies everywhere in nodejs land. APIs can break even if intentionally trying not to. fwiw I kind of like their ecosystem but just proving a point here that deps are never free

14.06.2025 07:22 — 👍 0    🔁 0    💬 2    📌 0

that's not it, it's more like I believe the average developer just doesn't care enough about doing things properly or doesn't have enough experience to know dependencies should be avoided if possible, it's a tradeoff, not a "free" thing you can include and be happy about it

14.06.2025 07:19 — 👍 0    🔁 0    💬 2    📌 0

totally incorrect too, off the top of my head I've tried like 15 languages at some point but prob more, and most of that experience was in C++ and JS which are kind of opposites

14.06.2025 07:16 — 👍 0    🔁 0    💬 0    📌 0

I can't even begin to fathom you're seriously defending a small CLI program failing to compile with 4 gigs of ram. that's preposterous. "we have high end machines for free" no we don't

14.06.2025 07:11 — 👍 0    🔁 0    💬 1    📌 0

"static is great" I think that pretty much sums up why you think rust is even remotebly usable on a large scale like for an entire OS lol. it's not. you can't have *everything* be static, just some end-user applications at best

14.06.2025 07:09 — 👍 0    🔁 0    💬 1    📌 0

@chocolatedolphin7 is following 20 prominent accounts