• 0 Posts
  • 82 Comments
Joined 3 years ago
cake
Cake day: July 1st, 2023

help-circle



  • Well, I’d start by saying that linux has a superior story here vs batch files.

    The most direct equivalent is bash/shell scripts. However, they are far more capable. Better conditional statements, loops, variables, text manipulation. It’s always shocking to me how limited batch files are when I’ve had to deal with them. Bash/shell are more equivalent to powershell if you are familiar with that.

    But if you want something nicer/more powerful, then nearly every linux distro at this point ships with python. That’s what I’d probably use if I needed more than 100 lines of code. As a bonus you can also install python on windows/mac and keep using those scripts.

    If I wanted to install something additionally though, then I do really like the asthetics of ruby. But it’s by no means as popular.

    Perl is the old guard here and it does generally exist on all linux systems. However, I think python is superior in basically every way.



  • I suppose my very basic knowledge of terminal isn’t enough to install Gentoo, even with the handbook.

    Nope. The gentoo handbook is VERY good. Don’t skip parts on it and you can install a gentoo. You really don’t need very advanced terminal skills to get gentoo up and running. So long as you understand basics like cd/nano/ls/cat then you can pretty easily do the entire handbook.

    One thing to realize is that you can always go backwards and fix things if you make a mistake. Nothing is permanent. If you get into a “why isn’t this working” state, just go back and see if you’ve skipped something.



  • I like to subscribe to the “magic makes it’s users imbeciles” fan theory. (Though the truth is that JK just isn’t all that bright).

    It isn’t that the killing spell is unblockable. Harry and his mom managed to block it twice. But apparently magicians in HP universe are just completely dumb and unwilling or incapable of innovation. That was spelled out clearly in book 1 where an elementary logic puzzle was seen a good way to protect the greatest treasure on earth.

    Ron’s dad, for example, lived in England. He could wander the muggle streets freely if he wanted to. He had a deep fascination of basic muggle items, yet he didn’t just go to his local library to check out a book or log on to the internet to learn about things that were his passion.



    1. Amtrak isn’t funded by the US government. They have to extract all their funding from operations.

    2. Amtrak’s service is bad mainly because the line operators have found ways to make it impossible to effectively operate. That means late and long delayed trains with unpredictable arrival/departure times.

    3. Amtrak is slow, mainly because it has almost no dedicated lines. It has to share them with line operators.

    4. Very few people use amtrak.

    The end result is a high price. Few people using amtrak means it has to hike ticket prices up.

    The only way for Amtrak to get better is extensive investment by the feds and regulation of rail lines in general. Without that, as you’ve correctly observed it will always be disadvantaged compared to other modes of transport.

    But hey, the war in Iran might make it cheaper than driving so that’s something.


  • I looked at the lawsuit details. Steam basically did what everyone else does. Apple, google, EA, everyone.

    They charge 30% of the sale. They require that the steam price be the same as an external price.

    It’s the most nothing of nothings.

    To compare, what MS did when they got smacked with their monopoly lawsuit is bundle IE with the OS and they both made it hard to switch the default and they’d constantly try to switch you back to IE.



  • Silly commenter.

    L1 cache shouldn’t be large. Increasing the size of the L1 cache increases the latency. Maybe if you shrink the size of the cloths you wear you can squeeze more into the chair, but the ideal L1 cache has to minimize it’s distance from processing. Oversizing adds latency.

    Your L2 cache is where you generally try and shove a much bigger cache into it, but it’s still got a size constraint for the latency you are after. Further, typically L1 and L2 only serve 1 CPU. To multi-process stuff you’ll typically need an even larger L3 cache which is shared among cores.

    So the cloths on your chair should be minimal for fast access (L1). You can put more cloths on your bed and dressers or in laundry baskets that can be promoted to the chair if you start needing them more often (L2). You can throw a bunch of cloths into a pile in the corner which sit there for a few years and serve many occasions (L3).

    The worst thing is going back to main memory (your closet) to search for specialty cloths you are ultimately going to need to send back to the closet. And heavy help you if you have to swap (do laundry).







  • All containers are, are isolated preccesses so its barely different than launching any other process.

    The two biggest differences are that containers use more disk space vs non-containers and that containers won’t use shared libraries. That means that instead of loading up 1 version of glibc for most of the OS, you end up with n containers glibcs loaded up.

    Practically speaking, this isn’t really a huge deal. A lot of those libraries fit in less than 1mb. A disaster if this was my childhood computer. A non-issue on modern systems with more than 512mb of ram.