You have done something, that it’s worth breaking backwards compatibility over.
- 0 Posts
- 101 Comments
If you want to load at runtime you can use https://docs.rs/ron/latest/ron/. The structs are a weird combination of the two ways to define a struct in rust, making the ron notation of structs invalid rust, but having proper enums makes it worth it.
anton@lemmy.blahaj.zoneto
Programmer Humor@lemmy.ml•Incredible stochastic algorithm, gets more reliable the larger your input, incredibly fast, trivial to implement and deterministic on its inputs
6·2 months agoThe test suite probably looks something like this:
int tests_passed=0; int tests_failed=0; for(int i=0;i<100000;i++){ printf("test no. %d: ", i); if(is_prime(i)==actually_is_prime(i)){ printf("passed\n"); tests_passed++; }else{ printf("failed\n"); tests_failed++; } } //...
anton@lemmy.blahaj.zoneto
Programmer Humor@lemmy.ml•Incredible stochastic algorithm, gets more reliable the larger your input, incredibly fast, trivial to implement and deterministic on its inputs
2·2 months agoThe test suite probably looks something like this:
int tests_passed=0; int tests_failed=0; for(int i=0;i<100000;i++){ printf("test no. %d: ", i); if(is_prime(i)==actually_is_prime(i)){ printf("passed\n"); tests_passed++; }else{ printf("failed\n"); tests_failed++; } } //...
anton@lemmy.blahaj.zoneto
Programmer Humor@programming.dev•o(1) statistical prime approximation
9·2 months agoThat’s a legitimate thing to do if you have a slow implementation that’s easy to verify and a fast implementation that isn’t.
anton@lemmy.blahaj.zoneto
Programmer Humor@lemmy.ml•Op doesn't have time for interviews
1·2 months agoBut they are able to control the lightbulb by flipping all three switches.
I thought that was the cooler of a different component and the cpu just lacks one. Now that you said it, I see the CPU footprint on the cooler.
anton@lemmy.blahaj.zoneto
Programmer Humor@programming.dev•Charlotte's web could be made with a bunch of strings
3·2 months agoYo momma’s so fat she compresses everything she steps on to its Kolmogorov complexity.
anton@lemmy.blahaj.zoneto
Programmer Humor@programming.dev•Vibe-Coded 'Sicarii' Ransomware Can't Be Decrypted
7·3 months ago-uwould give you the space back.
The ransomware doesn’t. There is a block of data, sitting there, taunting you.
anton@lemmy.blahaj.zoneto
Programmer Humor@programming.dev•Vibe-Coded 'Sicarii' Ransomware Can't Be Decrypted
35·3 months agoHebrew-based content appears machine-translated
Did they vibe code their false identity as well?
anton@lemmy.blahaj.zoneto
Programmer Humor@programming.dev•What's everyone's favorite bug?
5·3 months agoSpectre, because it forces us to acknowledge the abstractions we build upon.
2Gb well spent
While your partner can’t be found by it, they can be approximated to an arbitrary degree of precision.
Lure the bugs to your screen and catch them or let them hide in the shade. That’s the choice.
The default configuration in 2017 was public write access, but those databases where taken over long ago.
anton@lemmy.blahaj.zoneto
Programmer Humor@programming.dev•Unsafe Rust: living up to its name
4·4 months agoRust doesn’t have a scheduler.
The issue is the false assumption, that theremoveoperation can safely be done without taking a lock. This can be done in some specific data structures using atomic operations, but here the solution was to just take the lock. The same thing could have happened in a C code base but without the unsafe block indicating where to look for the bug.
The commenter must believe forks are magic.
and like half the [rust] devs left for Crab.
Crablang is a joke fork to make fun of a trademark screw up by the rust foundation.
Exactly, you never know when you want to change the base for printing out from under someone.
What unholy mix of languages is that? It is dominated by a blend of javascript and python, but with notes of something exotic. Maybe algol? or vhdl?, there is to little to tell.
Impressive, someone write up a spec and publish it to the esolang wiki.
wrong layer