• 1 Post
  • 625 Comments
Joined 5 years ago
cake
Cake day: May 31st, 2020

help-circle





  • It’s ‘minified’, in case you’re not familiar with that. Basically, many webpages come with such obscene amounts of JavaScript, that it genuinely impacts how quickly the webpage downloads. And then replacing such amenities as whitespace or readable variable names with just 1 space or 1 letter, where possible, genuinely improves on that.



  • Ephera@lemmy.mltolinuxmemes@lemmy.worldLinux and Chill
    link
    fedilink
    English
    arrow-up
    2
    ·
    4 days ago

    I would not throw Rust and C together in this.
    Rust is low-level in terms of being usable for kernel and embedded development (due to not needing a runtime), but it’s rather high-level in terms of the syntax offering lots of abstraction from the weirdness of the hardware.

    Some of that not-needing-a-runtime does bleed into the syntax, but in my opinion, it’s still higher level from a syntax perspective than Bash et al, because it brings in many functional aspects.

    I guess, I’m also just bothered by you saying, you don’t ‘need’ Rust for writing CLIs, when it’s my favorite language for this.
    To some degree, I do just find it ridiculous to launch a whole runtime when the user just wants the --help, but the argument parsing in Rust is also just really nice: https://rust-cli.github.io/book/tutorial/cli-args.html#parsing-cli-arguments-with-clap



  • Ephera@lemmy.mltolinuxmemes@lemmy.worldLinux and Chill
    link
    fedilink
    English
    arrow-up
    25
    arrow-down
    1
    ·
    4 days ago

    Did he actually say that he likes it? My impression was that it’s not his comfort zone, but he recognizes that for the vast majority of young programmers, C is not their comfort zone. And so, if they don’t hop on this Rust train, the Linux kernel is going to look like a COBOL project in a not too distant future. It does not happen very often that a programming language capable of implementing kernels gains wide-spread adoption.




  • Ephera@lemmy.mltomemes@lemmy.worldWe're being short-sighted
    link
    fedilink
    English
    arrow-up
    22
    ·
    5 days ago

    Well, I looked at a Year 10000 problem less than 2 hours ago. We’re parsing logs to extract the timestamp and for that, we’re using a regex which starts with:

    \d{4}-\d{2}-\d{2}
    

    So, we assume there to be 4 digits for the year, always. Can’t use it, if you live in the year 10000 and beyond, nor in the year 999 and before.






  • Ephera@lemmy.mltoComic Strips@lemmy.worldEndorphins
    link
    fedilink
    English
    arrow-up
    0
    ·
    8 days ago

    Different people have different levels of heat resistance. My dad will abort mission, if you shake the pepper shaker more than once. Obviously, he doesn’t have it in him to go back for seconds. I do, but having grown up in that household, it takes a while for the same heat resistance to build up. I bought sriracha for the first time a few months ago, and you could certainly still melt my face off with it, despite me using it again and again.


  • I mean, as they kind of point out in the article, this doesn’t actually say terribly much. I’ve always had the impression that electric toothbrushes are great for scrubbing off the plaque on the big surfaces of your teeth, while they’re probably worse at reaching all the weird little angles of your teeth. This could result in 20% less plaque in total, while not removing it from where it lingers around and causes cavities. At the same time, if you also floss regularly, maybe you’ve got your weird little angles covered differently already. It depends on quite a few factors, for which a meta study like this can hardly do justice…


  • Ephera@lemmy.mltolinuxmemes@lemmy.worldDistro Focuses
    link
    fedilink
    English
    arrow-up
    1
    ·
    9 days ago

    Sure, it’s still just certainly a choice. It took me multiple years to realize why it’s so broken on TTYs, as well as when you run newgrp and probably other places.

    I thought Linux just sometimes goes into this buggy state, where you can’t make any typos. At one point, I broke my GUI session and had to fix it, typing commands off of my phone screen, without making any typos.

    Learning that this is Working As Intended™ just killed me…

    These days, I know that you can just run bash (or your shell of choice) to get out of this buggy state, and I still set bash as the system shell when I have to use a Debian-based system, because I just do not care about however much performance it brings in.