Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
burjui
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
burjui
1y ago
> 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 good. Should'v
2.
▲
by
burjui
1y ago
It's more likely they will end up shotgunning sloppy AI PRs.
3.
▲
by
burjui
2y ago
... 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 old fart that
4.
▲
by
burjui
2y ago
I've used the 2013 algorithm, it's fast, simple enough and easy to implement in Rust.
5.
▲
by
burjui
2y ago
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 time it
6.
▲
by
burjui
2y ago
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 — [(RangeInclusive<u32> / src &
7.
▲
by
burjui
2y ago
At least, we can assume that after a few weeks, he became not quite that depressed.
8.
▲
by
burjui
2y ago
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 (doesn'
9.
▲
by
burjui
2y ago
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 case: https
10.
▲
by
burjui
2y ago
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 &q
11.
▲
by
burjui
2y ago
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 prolonging the suf
12.
▲
by
burjui
2y ago
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 install the pay
13.
▲
by
burjui
2y ago
C++ & autotools. No, thanks.
14.
▲
by
burjui
2y ago
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.
15.
▲
by
burjui
2y ago
> 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.
16.
▲
by
burjui
2y ago
It's not impossible. But if one says "Rust is bad", they better elaborate, unless their goal was to post a meaningless comment.
17.
▲
by
burjui
2y ago
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]. Som
18.
▲
by
burjui
2y ago
How about writing relatively complex things not in Bash? If your shell script requires configuration, it shouldn't be a shell script.
19.
▲
by
burjui
2y ago
That's why paths in Rust don't have to be UTF-8. See Path and OsStr documentation.
20.
▲
by
burjui
2y ago
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.
21.
▲
by
burjui
2y ago
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 (the Android one)
22.
▲
by
burjui
2y ago
5g once a day, standard gym goer protocol.
23.
▲
by
burjui
2y ago
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 impaired cognition, but
24.
▲
by
burjui
2y ago
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.
25.
▲
by
burjui
2y ago
Lack of carbs supresses appetite, JFYI.
26.
▲
by
burjui
3y ago
It's a weak attempt at humor based on the fact that "perdun" means "one who farts" in Russian.
27.
▲
by
burjui
3y ago
You're delusional. Humans have not only killed many of them, but also destroyed entire ecosystems without even trying, just a byproduct of expansion. What makes you think AGIs would care at all about preserving ours?
28.
▲
by
burjui
3y ago
Simple: attract more people to do it. If everyone ditched their $LANG and started rewriting everything in Rust, we could do it in a month.
29.
▲
by
burjui
3y ago
You are. Maybe you just need some additional time to get used to it. After all, even webdev monk... I mean people are used to {} in JS.
30.
▲
by
burjui
3y ago
I assume we are talking about LLMs. Optimistically, it could help, given an appropriate, carefully crafted prompt. Realistically, most devs are lazy asses and as soon as AI gives them working code, they would move on to pumping out the next
More ›