Live data from Hacker News

Viewing profile — burjui

burjui

HN member
Joined
Mon, Jul 27, 2015, 4:21 PM UTC
HN karma
6
Public activity
46 items

About burjui

Yet another programmer.

Recent public activity

  1. comment
    Comment #44027525

    > 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…

  2. comment
    Comment #44027410

    It's more likely they will end up shotgunning sloppy AI PRs.

  3. comment
    Comment #43358189

    ... 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 …

  4. comment
    Comment #43125029

    I've used the 2013 algorithm, it's fast, simple enough and easy to implement in Rust.

  5. comment
    Comment #43115148

    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. …

  6. comment
    Comment #42843889

    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 spec…

  7. comment
    Comment #42766067

    At least, we can assume that after a few weeks, he became not quite that depressed.

  8. comment
    Comment #42542813

    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 condition…

  9. comment
    Comment #42542692

    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) …

  10. comment
    Comment #42542479

    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 …

  11. comment
    Comment #41986183

    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…

  12. comment
    Comment #41845317

    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 pro…

  13. comment
    Comment #41575325

    C++ & autotools. No, thanks.

  14. comment
    Comment #40740281

    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. comment
    Comment #40571686

    > 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. comment
    Comment #40565692

    It's not impossible. But if one says "Rust is bad", they better elaborate, unless their goal was to post a meaningless comment.

  17. comment
    Comment #40563298

    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 resem…

  18. comment
    Comment #40532464

    How about writing relatively complex things not in Bash? If your shell script requires configuration, it shouldn't be a shell script.

  19. comment
    Comment #40392788

    That's why paths in Rust don't have to be UTF-8. See Path and OsStr documentation.

  20. comment
    Comment #40392639

    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. comment
    Comment #40245279

    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/Kot…

  22. comment
    Comment #40243853

    5g once a day, standard gym goer protocol.

  23. comment
    Comment #40178178

    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 ef…

  24. comment
    Comment #39943611

    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. Syn…

  25. comment
    Comment #39771048

    Lack of carbs supresses appetite, JFYI.