> rav1d is transpiled c-to-rust version of dav1d Sounds like a bad way to port. Completely different languages. It took me some time to learn that one cannot simply write C code in Rust and expect the result to be any…
It's more likely they will end up shotgunning sloppy AI PRs.
... in the way of writing code with undefined behaviour. "You don't tell me how to live! Maybe I want to shoot myself in the foot sometimes! I already shot myself in the head, and it was awesome, instantly made me an…
I've used the 2013 algorithm, it's fast, simple enough and easy to implement in Rust.
I wonder what's the point. 8 bits is not enough to store most values for most applications, it's bad for timers and multiplication, it's just a big waste of CPU cycles in general. The more work CPU has to do, the less…
One day I needed to parse and generate RISC-V instructions. I wrote a custom bitfield implementation, nothing fancy: no derive macros or any crap like that, only u32 bitfields specified by an array —…
At least, we can assume that after a few weeks, he became not quite that depressed.
Why it's always the borrow checker that bugs the haters? You don't even see it work most of the time, because instead of using references everywhere, like most C++ers are conditioned to do, not only you can move values…
Exactly the same experience : my toy compiler project has 10477 lines of Rust code, and there is only one line with unsafe: let is_tty = unsafe { libc::isatty(libc::STDERR_FILENO) } != 0; Here's the source, just in…
It's literally THE unsafe part of the code. It's the only part of code that can invoke UB. fn do_something() { unsafe { ... } } // Somewhere in the program do_something(); Doesn't matter where "do_something" is used and…
Even plain C++ is very hard to read, it's one of the reasons I ditched it. Cannot even imagine writing code in this version. C++ is overcomplicated already, imho it's best to leave it to die naturally instead of…
Apply the flame to the sysadmin's hand and get root access. I mean, it's a cool demo, but if you can solder crap to the hardware, might as well do anything that physical access provides normally. Like, you can just…
C++ & autotools. No, thanks.
I would like that veey much, but they likely will not go to prison, just pay off the damages, as usual. Capitalism works that way.
> I think Ada not being very popular shows that the need for a memory safe non-garbage collected language is kind of overstated. It only shows that Ada is very old and verbose.
It's not impossible. But if one says "Rust is bad", they better elaborate, unless their goal was to post a meaningless comment.
It doesn't. Most people complaining about "ugliness" of Rust are either too lazy to read documentation (which is great btw), or just don't like the syntax, because it doesn't resemble their favorite language[s]. Some…
How about writing relatively complex things not in Bash? If your shell script requires configuration, it shouldn't be a shell script.
That's why paths in Rust don't have to be UTF-8. See Path and OsStr documentation.
The algorithm uses less memory, but more CPU time because of rather frequent deletions, so it's a tradeoff, not just generally better algorithm, as article may suggest.
My dad is a plumber, and I learned a bit while working with him. I was in software development for about 8 years, intermittently (casual games and microcontrollers in C++, Java/Kotlin for Android), and at the last job…
5g once a day, standard gym goer protocol.
Taking creatine cured my lightheadedness that occurs when standing up after squatting for a few minutes, which happens a lot at my job (plumbing). It also reduced other negative effects of sleep deprivation, such as…
It has a generally simpler syntax, except for function pointers and arrays, but I wouldn't call it "better". Comparing syntaxes of such different languages is pointless anyway. Syntax should serve semantics.
Lack of carbs supresses appetite, JFYI.
> rav1d is transpiled c-to-rust version of dav1d Sounds like a bad way to port. Completely different languages. It took me some time to learn that one cannot simply write C code in Rust and expect the result to be any…
It's more likely they will end up shotgunning sloppy AI PRs.
... in the way of writing code with undefined behaviour. "You don't tell me how to live! Maybe I want to shoot myself in the foot sometimes! I already shot myself in the head, and it was awesome, instantly made me an…
I've used the 2013 algorithm, it's fast, simple enough and easy to implement in Rust.
I wonder what's the point. 8 bits is not enough to store most values for most applications, it's bad for timers and multiplication, it's just a big waste of CPU cycles in general. The more work CPU has to do, the less…
One day I needed to parse and generate RISC-V instructions. I wrote a custom bitfield implementation, nothing fancy: no derive macros or any crap like that, only u32 bitfields specified by an array —…
At least, we can assume that after a few weeks, he became not quite that depressed.
Why it's always the borrow checker that bugs the haters? You don't even see it work most of the time, because instead of using references everywhere, like most C++ers are conditioned to do, not only you can move values…
Exactly the same experience : my toy compiler project has 10477 lines of Rust code, and there is only one line with unsafe: let is_tty = unsafe { libc::isatty(libc::STDERR_FILENO) } != 0; Here's the source, just in…
It's literally THE unsafe part of the code. It's the only part of code that can invoke UB. fn do_something() { unsafe { ... } } // Somewhere in the program do_something(); Doesn't matter where "do_something" is used and…
Even plain C++ is very hard to read, it's one of the reasons I ditched it. Cannot even imagine writing code in this version. C++ is overcomplicated already, imho it's best to leave it to die naturally instead of…
Apply the flame to the sysadmin's hand and get root access. I mean, it's a cool demo, but if you can solder crap to the hardware, might as well do anything that physical access provides normally. Like, you can just…
C++ & autotools. No, thanks.
I would like that veey much, but they likely will not go to prison, just pay off the damages, as usual. Capitalism works that way.
> I think Ada not being very popular shows that the need for a memory safe non-garbage collected language is kind of overstated. It only shows that Ada is very old and verbose.
It's not impossible. But if one says "Rust is bad", they better elaborate, unless their goal was to post a meaningless comment.
It doesn't. Most people complaining about "ugliness" of Rust are either too lazy to read documentation (which is great btw), or just don't like the syntax, because it doesn't resemble their favorite language[s]. Some…
How about writing relatively complex things not in Bash? If your shell script requires configuration, it shouldn't be a shell script.
That's why paths in Rust don't have to be UTF-8. See Path and OsStr documentation.
The algorithm uses less memory, but more CPU time because of rather frequent deletions, so it's a tradeoff, not just generally better algorithm, as article may suggest.
My dad is a plumber, and I learned a bit while working with him. I was in software development for about 8 years, intermittently (casual games and microcontrollers in C++, Java/Kotlin for Android), and at the last job…
5g once a day, standard gym goer protocol.
Taking creatine cured my lightheadedness that occurs when standing up after squatting for a few minutes, which happens a lot at my job (plumbing). It also reduced other negative effects of sleep deprivation, such as…
It has a generally simpler syntax, except for function pointers and arrays, but I wouldn't call it "better". Comparing syntaxes of such different languages is pointless anyway. Syntax should serve semantics.
Lack of carbs supresses appetite, JFYI.