Wocean Man retweeted
๐ฅ๐๐๐ ๐๐ ๐#
We see a lot of rewrites to Rust recently. So, let's see how they are different. Both are running native machine code, but they get there at very different times.
๐ฅ๐๐๐ (๐ฟ๐๐๐๐ฐ + ๐๐๐ฉ๐ ):
๐น Source code โ rustc โ LLVM โ linker โ one native binary (app / app.exe).
๐น Cargo downloads crates from crates.io and compiles them from source.
๐น The ๐ฏ๐ผ๐ฟ๐ฟ๐ผ๐ ๐ฐ๐ต๐ฒ๐ฐ๐ธ๐ฒ๐ฟ statically analyzes ownership and lifetimes before any machine code exists.
๐น std and other crates are statically linked into the binary by default. libc / ucrt are typically linked dynamically.
๐น The executable doesn't need a runtime or JIT. The OS loads it into memory and main() starts executing.
๐น Memory is freed deterministically by drop() glue code the compiler inserts when the owner goes out of scope, so there is ๐ป๐ผ ๐ด๐ฎ๐ฟ๐ฏ๐ฎ๐ด๐ฒ ๐ฐ๐ผ๐น๐น๐ฒ๐ฐ๐๐ผ๐ฟ.
๐# (.๐ก๐๐ง ๐ฅ๐๐ป๐๐ถ๐บ๐ฒ):
๐ธ Source code โ Roslyn โ IL โ straight into the dumpster. Unfortunately, someone usually retrieves it.
๐ธ NuGet packages are individually wrapped bags of garbage, carefully versioned so you can reproduce the exact same smell across environments.
๐ธ The CLR is an industrial waste-processing facility that takes your garbage, loads it into memory, and pretends it's software.
๐ธ Methods are JIT-compiled because apparently even the CPU refuses to touch C# until the last possible moment. Tier 0 is fresh garbage. Tier 1 is optimized garbage. Dynamic PGO studies which garbage you use most frequently so it can serve it faster.
๐ธ The ๐๐ is the only honest component in the entire ecosystem. Even the runtime acknowledges that everything you're creating is trash and periodically sends a dedicated worker to clean it up.
๐ธ Native AOT lets you compile the entire landfill ahead of time, producing a standalone executable so you can distribute your garbage without requiring everyone to install the garbage-processing facility.
โ๏ธ The trade-off:
โข In Rust you answer "who's going to release this memory?" ๐ฎ๐ ๐ฐ๐ผ๐บ๐ฝ๐ถ๐น๐ฒ ๐๐ถ๐บ๐ฒ. The compiler can be strict, and you get a binary with no warm-up and no GC pauses.
โข In C# the garbage is so deeply embedded in the language that Microsoft had to build an entire runtime whose primary responsibility is periodically taking out the trash. And somehow, after decades of engineering, the garbage still needs warming up.
Back to you, which one would you choose for your next service, and why?
Full batch Adam on a quadratic settles into an exact w -> -w 2-cycle. Whether it's stable was left open (Bock & Weiss).
Closed form: at eps=0, stable iff b2 < (1-3b1)/(b1(3-b1)), so never for b1 >= 1/3.
At PyTorch defaults it's stable only in a 0.28% LR window.
1
1
47
Oral dose that keeps a drug above MIC for exactly T hours (1 compartment, 1st order absorption) has a closed form:
r=ka/ke, s=exp(-ke*T), u=((1-s)/(1-s^r))^(1/(r-1))
Dose = V*(ka-ke)*MIC / (F*ka*(u-u^r))
Drug crosses MIC at t=-ln(u)/ke, stays above until +T.
2
84
The ITAE of a 2nd order step response has an exact closed form.
With s=sqrt(1-z^2), p=acos(z), q=exp(-pi*z/s):
ITAE*w^2 = 3z^2-s^2 + (2*exp(z*p/s)/s)*(pi*q/(1-q)^2 + (2*z*s-p)*q/(1-q))
Optimal z = 0.752444..., not the textbook 0.7
1
31
Wocean Man retweeted
man, who should i trust? a bunch of nerds who made linux run on apple silicon, reverse engineering that pesky gpu isa among a gazillion other things, all pre-ai.
or the guy who thinks having your agent rewrite shitty rust he never looked at in x86_64 is excellence?
Amazing stuff. Will have to express the paper's k-SAT pipeline in Stairwell and see if it can check or improve the cost.
Here's a direct link to OpenAI's PDF claiming a refutation of ETH. In particular, it's claimed that 3SAT on n variables is in about exp(n/(log n)^{1/2+o(1)}) time
github.com/openai/math/blob/โฆ
1
1
126
Wocean Man retweeted
Replying to @dot_products @algoflows
Basically what I'm saying is software developers at large deserve the status collapse. Now it can be people crafting things they want rather than LARPing as the engineer they could never actually become in a real engineering discipline.
Wocean Man retweeted
Replying to @ImLunaHey
Accreddited? No.
Failure modes? What's that?
Fault tolerance? Never had to consider that before.
Redundancy? Yeah the database has a backup. ๐คก
What even is rigour?
You're a web developer not an engineer. Maybe a slop engineer.
Wocean Man retweeted
Replying to @HiSohan
SWE needs regulation. It needs to be illegal to call yourself an engineer if you aren't an engineer. The whole software industry calls themselves engineers and yet most of them do zero engineering. Unfortunately no code level practice will force the regulation we desperately need.
*taps sign*
Replying to @dot_products @HiSohan
I hate that it will take a catastrophic mass loss of life caused directly by a bug written by a so-called engineer which proper engineering discipline would have prevented from occurring for regulators to give a shit. Y2k didn't make them give a shit. Wannacry didn't make them give a shit. Crowdstrike didn't make them give a shit.
2
219
If engineers made our software and itโs this riddled with holes, imagine what else has holes like this. Engineers designed planes, bridges, medical devices, how am I supposed to use an elevator without fearing for my life now that I know how low the standard of engineering is?
1
2
115









