linux
Linux agilob 3 months ago 94%
In defence of swap: common misconceptions chrisdown.name

To be clear, I don't blame the poster of this comment at all for the content of their post – this is accepted as "common knowledge" by a lot of Linux sysadmins and is probably one of the most likely things that you will hear from one if you ask them to talk about swap. It is unfortunately also, however, a misunderstanding of the purpose and use of swap, especially on modern systems.

93
22
linux Linux Linux 6.11 To Offer More Fine-Tuned Control Over Swappiness
Jump
  • agilob agilob 3 months ago 83%

    I'm not sure if you understand what swap actually is, because even machines with 1Tb of RAM have swap partitions, just in case read this post from a developer working on swap module in Linux https://chrisdown.name/2018/01/02/in-defence-of-swap.html

    4
  • programming
    Programming agilob 3 months ago 57%
    New UUID Formats https://www.ietf.org/archive/id/draft-peabody-dispatch-new-uuid-format-01.html

    This document presents new time-based UUID formats which are suited for use as a database key.

    6
    6
    programming
    Programming agilob 3 months ago 82%
    Universally Unique IDentifiers (UUID) https://www.ietf.org/archive/id/draft-ietf-uuidrev-rfc4122bis-07.html

    This specification defines the UUIDs (Universally Unique IDentifiers) and the UUID Uniform Resource Name (URN) namespace. UUIDs are also known as GUIDs (Globally Unique IDentifiers). A UUID is 128 bits long and is intended to guarantee uniqueness across space and time. UUIDs were originally used in the Apollo Network Computing System and later in the Open Software Foundation's (OSF) Distributed Computing Environment (DCE), and then in Microsoft Windows platforms.

    30
    1
    linux Linux Is there a way to keep Linux responsive when at ~100% CPU usage?
    Jump
  • agilob agilob 3 months ago 50%

    The Linux kernel uses the CPU default scheduler, CFS,

    Linux 6.6 (which recently landed on Debian) changed the scheduled to EEVDF, which is pretty widely criticized for poor tuning. 100% busy which means the scheduler is doing good job. If the CPU was idle and compilation was slow, than we would look into task scheduling and scheduling of blocking operations.

    0
  • linux Linux Is there a way to keep Linux responsive when at ~100% CPU usage?
    Jump
  • agilob agilob 3 months ago 66%

    EDIT: Tried nice -n +19, still lags my other programs.

    yea, this is wrong way of doing things. You should have better results with CPU-pinning. Increasing priority for YOUR threads that interact all the time with disk io, memory caches and display IO is the wrong end of the stick. You still need to display compilation progress, warnings, access IO.

    There's no way of knowing why your system is so slow without profiling it first. Taking any advice from here or elsewhere without telling us first what your machine is doing is missing the point. You need to find out what the problem is and report it at the source.

    1
  • linux Linux Is there a way to keep Linux responsive when at ~100% CPU usage?
    Jump
  • agilob agilob 3 months ago 50%

    The CPU is already 100% busy, so changing number of compilation jobs won't help, CPU can't go faster than 100%.

    0
  • linux Linux Is there a way to keep Linux responsive when at ~100% CPU usage?
    Jump
  • agilob agilob 3 months ago 80%
  • linux Linux Linux user survey!
    Jump
  • agilob agilob 3 months ago 50%

    Yeah this survey is super inappropriate and offensive. Please do not ask such personal questions.

    Did you notice that more inappropriate questions appear and disappear based on your previous answers?

    0
  • performance
    Performance agilob 5 months ago 75%
    What would happen to low latency trading if exchanges moved to the cloud? https://blog.abctaylor.com/what-would-happen-to-low-latency-trading-if-exchanges-moved-to-the-cloud/

    ULL trading firms go to a lot of trouble to get their servers and switches within the same buildings as the exchanges they trade with to reduce latency. Some firms don’t even use layer 1 switches to be competitive.

    4
    0
    programming Programming Microsoft opens a "high priority" bug ticket in ffmpeg, attempting to leech the free labour of the maintainers
    Jump
  • agilob agilob 6 months ago 81%

    Old issue, so why post it now make it sound like MS demands something?

    Opened 11 months ago Last modified 11 months ago

    It's a regression, so ffmpeg should fix a regression.

    53
  • performance
    Performance agilob 6 months ago 90%
    LLaMA Now Goes Faster on CPUs justine.lol

    My kernels go 2x faster than MKL for matrices that fit in L2 cache, which makes them a work in progress, since the speedup works best for prompts having fewer than 1,000 tokens.

    17
    0
    sql SQL Is there a programming language specifically designed for interacting with SQL databases?
    Jump
  • agilob agilob 6 months ago 66%

    It really depends on where you set the limit on what ORM is, JOOQ is kind of a thing you're looking for.

    1
  • programming Programming What's your preferred code generation tool in 2024?
    Jump
  • agilob agilob 6 months ago 100%
    1
  • kubernetes Kubernetes A Peek at Kubernetes v1.30
    Jump
  • agilob agilob 6 months ago 100%

    I completely missed that user namespaces were added in 1.25. It will make homelabs much easier and safer with little effort.

    Support user namespaces in pods (KEP-127)
    User namespaces is a Linux-only feature that better isolates pods to prevent or mitigate several CVEs rated high/critical, including CVE-2024-21626, published in January 2024. In Kubernetes 1.30, support for user namespaces is migrating to beta and now supports pods with and without volumes, custom UID/GID ranges, and more!

    https://kubernetes.io/docs/concepts/workloads/pods/user-namespaces/

    1
  • programming
    Programming agilob 6 months ago 96%
    "Prolly Tree" is short for "Probabilistic B-tree" www.dolthub.com

    "Prolly Tree" is short for "Probabilistic B-tree". "Prolly Tree" was coined by the good folks who built Noms, who as far as we can tell invented the data structure. We here at DoltHub have immense respect for their pioneering work, without which Dolt would not exist.

    28
    4
    programming Programming *Permanently Deleted*
    Jump
  • agilob agilob 7 months ago 100%

    Just not in Java…

    I think you're biased against Java. Amazon was started in C/C++ and Java J2EE during times when to configure a webserver required writing like 300 lines of XML just to handle cookies, browser cache and a login page. Until recently BMW had their own JRE implementation. It's not a secret that simcards, including these in Tesla cars run JavaCard too, even government issues sim cards in EU have to run Java Card, not C++. Everything was always fine with Java until ECMA Script appeared and made people iterate on software versions faster. New programming languages and team organisation methodologies left some programming languages in the dark, but this included C# too. All are quickly catching up. If Java was so bad, it wouldn't be here with us today, like Perl.

    2
  • programming Programming *Permanently Deleted*
    Jump
  • agilob agilob 7 months ago 100%

    There are two schools:

    1. the best stack is the one you know best
    2. the best stack is the one designed for the job

    Remember that Google was written in Python and Java. Facebook in PHP. iOS in Objective-C. GitHub in Ruby on Rails.

    5
  • programming Programming What are the craziest misconceptions you’ve heard about programming from people not familiar with it?
    Jump
  • agilob agilob 7 months ago 100%

    After doing it for 15 years, I must be good at it and everything should be easy.

    hidethepainharold.jpg

    25
  • cs_career_questions CSCareerQuestions What are some actual good job boards in 2024?
    Jump
  • agilob agilob 8 months ago 100%
  • programming Programming Willow Protocol
    Jump
  • agilob agilob 8 months ago 100%

    So while I'm myself struggling to fully understand what this is, it conceptually like it's a blockchain on syncthing, where even if you subscribe to a read only share, you can locally delete what you don't want to keep. So technically you could make bitorrent to behave like syncthing with search function for contacts you already know.

    1
  • networking Networking 2.5GbE router for home use
    Jump
  • agilob agilob 8 months ago 100%

    Omnia Turris

    1
  • advent_of_code Advent Of Code Rating problems and solutions
    Jump
  • agilob agilob 9 months ago 100%
    2
  • advent_of_code Advent Of Code Day 5: The importance of detail in boundary layers
    Jump
  • agilob agilob 10 months ago 100%
    1
  • learn_programming Learn Programming Big O notation is about what matters when the numbers get big.
    Jump
  • agilob agilob 10 months ago 50%

    Big O notation is useless for smaller sets of data. Sometimes it’s worse than useless, it’s misguiding.

    I don't agree that it's useless or misguiding. The smaller dataset, the less important it is, but it makes massive difference how the rest of the algorithm will be working and changing context around it.

    Let's say that you need to sort 64 ints, in a code that starts our operating system. You need to sort it once per boot, and you boot less frequently than once per day, in fact you know instances of the OS that have 14 years of uptime, so it doesn't matter at all right? Welp. Now your OS is used by a big cloud provider and they use that code to boot the kernel 13 billions times per day. The context changed, time passed by, your silly bubble sort that doesn't matter on small numbers is still there.

    0
  • programming Programming GitHub: Can no longer search code without being logged in
    Jump
  • agilob agilob 10 months ago 40%

    Heres the blog post about the change dated in June this year

    Half year too late for that outrage anyway :)

    -2
  • programming Programming GitHub: Can no longer search code without being logged in
    Jump
  • agilob agilob 10 months ago 77%

    Fantastic way to start a shitstorm. You people don't even use search function logged out, because if you did, you would know they changed it in 2016. Microsoft has nothing to do with it.

    https://news.ycombinator.com/item?id=11321623

    85
  • programming Programming GitHub: Can no longer search code without being logged in
    Jump
  • agilob agilob 10 months ago 50%

    Yeah, fuck Microsoft. They haven’t changed at all.

    GitHub changed that a few months before acquisitions talks even started lol

    0
  • webdev Web Development Google Resuming the transition to Manifest V3 - Chrome for Developers
    Jump
  • agilob agilob 10 months ago 66%

    There already is µblock that's only MV3 based https://addons.mozilla.org/en-US/firefox/addon/ublock-origin-lite/ give it a try if you see any difference

    1
  • agilob agilob 10 months ago 100%

    You're telling me about compiling JS, to my story that is so old... I had to check. and yes, JS existed back then. HTTP2? Wasn't even planned. This was still when IRC communities weren't sure if LAMP is Perl or PHP because both were equally popular ;)

    7
  • programmer_humor Programmer Humor Merge then review
    Jump
  • agilob agilob 10 months ago 83%

    you are supposed to have written the tests and to have written your code with pair programming,

    I commented out the tests because they were failing, pipelines were green so I merged. Now it's running on prod. What do you do?

    4
  • agilob agilob 10 months ago 100%

    Blog content was stored in memory and it was served with zero-copy to the socket, so yea, it's way faster. It was before times of php-fpm and opcache that we're using now. Back then things were deployed and communicated using tcp sockets (tcp to rails, django or php) or reading from a disk, when the best HDDs were 5600rpm, but rare to find on shared hosting.

    29
  • agilob agilob 10 months ago 100%

    Before nginx was a thing, I worked with a guy who forked apache httpd and wrote this blog in C, like, literally embedded html and css inside the server, so when he made a tpyo or was adding another post he had to recompile the source code. The performance was out of this world.

    121
  • agilob agilob 10 months ago 100%

    You live like this?

    50
  • agilob agilob 10 months ago 98%

    :00 - :ff

    Edit: Just learnt this can be also noted as:

    :: - ::f

    79
  • programmer_humor Programmer Humor Merge then review
    Jump
  • agilob agilob 10 months ago 100%

    It compiles = it goes to prod!

    2
  • java Java Amper – Improving the Build Tooling User Experience | The JetBrains Blog
    Jump
  • agilob agilob 10 months ago 100%

    Also, not sure where the Java 7 thing comes from, but I run Java 17 with gradle/kotlin non-android

    Yes, this seems to have improved, just successfully made a project with gradle and it works with java 18. About 2 years ago it wasn't possible to use Flutter with Java 9, at all.

    2
  • programming Programming What is your favourite font for code ?
    Jump
  • agilob agilob 10 months ago 100%
  • java Java Amper – Improving the Build Tooling User Experience | The JetBrains Blog
    Jump
  • agilob agilob 10 months ago 100%

    who still uses maven? who would prefer xml files over build scripts? (ok… fine, big timers like RedHat definitely do, or at least, have never taken/don’t want to take the time to upgrade lol)

    Simple: Gradle doesn't work well with inherited projects. If you have a family tree of projects, maven always wins. Lowers complexity, integrations are easier, bom are better integrated, smaller size of ~/.m2 (by literally gigabytes) and no surprises with classpath loading order. It's not about stupid xml or stupid groovy, it's about complexity of managing single parent project, 200 children and 150 more grandchildren and having them working out of box. More than 12 years of using Gradle, I've never it seen working well outside of Android projects (and it still needs Java7 right?).

    End users for gradle are corporations: Google and IntelliJ. Maven has been developed for developers and technical project managers. My projects from ~2000s developed in Ant still compile and work, Maven projects from 2010s still work and compile... can't say that about an Android project from 2014. It doesn't even compile and there's no backwards compatible way to use or upgrade Gradle (from 2.4). To me, gradle is worse than npm ecosystem and we did it all to ourselves.

    4
  • java Java Amper – Improving the Build Tooling User Experience | The JetBrains Blog
    Jump
  • agilob agilob 10 months ago 100%

    Doesn't IntelliJ has some kind of Gradle wrapper built-in it that integrates with internals of IJ? They developed it to have more powers in Gradle and Kotlin, but didn't care to provide feature parity with Maven. Then they cried when people started leaving IJ for VSC.

    2
  • java Java Amper – Improving the Build Tooling User Experience | The JetBrains Blog
    Jump
  • agilob agilob 10 months ago 60%

    Since I can remember IntelliJ frequently fails to detect changes in pom.xml. Changed dependency? Manually clean the project and click 2 buttons to let IJ discover it. Added new code without having the right dependency? Download dependencies manually first, try rebuilding the project, but you're likely to have to restart the IDE anyway. That's why I moved to VSCode.

    1
  • programming Programming I would like some advice on where to go after university
    Jump
  • agilob agilob 11 months ago 100%

    I’ve thought of doing pen testing (later on in my career), but I’ve come to realize that it is better if users just started using privacy-respecting FOSS software like Signal, because if you give a hacker enough time, patience, and the right resources, they could hack into anything.

    Your idea of pentesting is so far from what it looks like in reality that it's probably not a path for you, at least not now. Let me explain: how am I going to protect my banking app using Signal? How will I know if our JSON unmarshalling library used by transaction service isn't vulnerable or exploitable? What FOSS software shows me live dashboards of deployed software in container and their security risk?

    everybody still needs them and they’re not going away any time soon.

    Bank is a civilization old concept, it has always been here and will be. Banks are so durable, they will run after our civilization ends.

    7
  • programming Programming What things really helped you toget better at programming?
    Jump
  • agilob agilob 11 months ago 100%

    Being offline doesn't mean not using a computer. I still had IDE and https://devdocs.io/ for better ctrl+f experience.

    3
  • programming Programming What things really helped you toget better at programming?
    Jump
  • agilob agilob 11 months ago 100%

    Learning from a documentation. Got a book, went offline and finished the book and training exercises without looking for anything online.

    4
  • java Java Observing Java applications running via Docker Compose using OpenTelemetry
    Jump
  • agilob agilob 11 months ago 75%

    Don't follow these instructions for anything even half-serious, don't use it at work. The agent is downloaded from latest release from github. One day 1.30 is the latest, another day older patched version 1.15.1 is the latest, or maybe even 1.45.0-alpha is the latest. You don't control what version is being downloaded, so best of luck when it breaks and you didn't change anything. That docker volume should be mounded with ro flags too.

    ::: spoiler spoiler .ai is the new .io :::

    2
  • programming Programming A collection of pure bash alternatives to external processes.
    Jump
  • agilob agilob 11 months ago 89%

    It doesn't make the content in any way out of date

    23