• 0 Posts
  • 24 Comments
Joined 10 months ago
cake
Cake day: June 10th, 2024

help-circle

  • That’s not what I want though. I really enjoy jumping around the actual syntax tree of the code, e.g. “select the entire function body” or “select the next list element”, stuff like this. It becomes the natural way of traversing the code after a short while. Also, Emacs is still single-threaded and thus quite laggy and slow at times; however I do like it a lot and have used it for a number of years (with evil-mode), before finally jumping to my own editor and then helix.


  • Nah. I was so annoyed by how primitive editors are that I started writing my own one, that would allow me to seamlessly traverse the AST of the code, rather than being stuck on the low abstraction levels of characters, words and paragraphs. After a bunch of misery making tree-sitter work with Haskell, and using it for a while, I stumbled upon Helix. It is pretty much my idea but faster and working well.





  • We made a (so far internal) tool at work that takes your activity from Github, your calendar, and the issue tracker, feeds that to a local LLM, which spits out a report of what you have been doing for the week. It messes up sometimes, but speeds up the process of writing the report dramatically. This is one of those cases where an LLM actually fits.


  • I think it’s best to get out of that cycle and force your body to wake up at the first alarm. Otherwise you’re just wasting time on nothing - your brain doesn’t rest properly in those 5-minute doses and you’re not getting ready either. The way I’m doing it is to put my phone in a different room next to my bedroom so that I have to get out of bed to turn off the alarm. If you’re managing to sleep through alarms it’s probably not the solution for you, so maybe the QRAlarm recommendation made elsewhere in the thread is better.




  • No, not quite. Flatpak is containers - it just stuffs every dependency that an application needs in a directory with no way to deduplicate or update independently. Gobo is a bit more nuanced, since dependencies are shared between applications when the versions match.


  • I think the main premise is that every version of every software has its own installation prefix. This allows you to mix&match different versions, perform atomic upgrades, etc. You can think of it as a proto-Nix. TBH I don’t see much point in it now that Nix(OS) and Guix exist, or, if you don’t like their purity, stal/IX.


  • The article is very light on details, but the numbers don’t seem to check out at all. Back-of-the napkin math (assuming a square 1km × 1km solar array and total sun luminosity of 3.83e26 W):

    1 km ^ 2 * (3.83e26 W) / (4 * π * (1 AU) ^ 2) * 1 year to TWh ≈ 11.94 TW·h
    

    This is a “measly” 12 TWh of TOTAL energy delivered to the array over a year - not accounting for solar panel efficiency losses (20-24%) or the elephant in the room of transmitting this energy back to earth. For context, China alone consumed around 39 PWh (39000 TWh) of energy from fossil fuels just over the course of one year, 2023. The entire world consumed 55 PWh (55000 TWh) of oil energy in 2023 alone. It’s not even comparable to the annual consumption of oil. If we consider the aforementioned factors, assuming 24% solar panel efficiency and an extremely generous 50% power transmission efficiency, we get:

    1 km ^ 2 * (3.83e26 W) / (4 * π * (1 AU) ^ 2) * 24% * 50% ≈ 163.43 MW
    

    Which is literally nothing on a national scale - it’s less than a percent of the Three Gorges Dam output.



  • In a sense that’s true for any country, though. The only differences are (1) how often the policy changes and (2) by how much. US used to have a 4-year cycle and much less variance in the policies and so it made some sense to get into long-term agreements. Even in the last 8 years, agreements reached by Trump were continued by Biden (e.g. NAFTA). Now though the cycle is like 4 days and the policy swings are 180°, so it only makes sense to enter into extremely short-term, transactional agreements, or if you have no other choice (like Ukraine).


  • balsoft@lemmy.mltoMemes@lemmy.mlTrying to quit Reddit
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    2 months ago

    Not the same, but they share are both serious behavioral disorders and share the same (or at least similar) physiological and psychological mechanisms. Some people who struggle with self-control will absolutely need outside help getting out of these kinds of addictive behavior loops. “Internet addiction isn’t real, get over it” has the same vibe as “depression isn’t real, it’s just in your head”.


  • balsoft@lemmy.mltoMemes@lemmy.mlTrying to quit Reddit
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    2 months ago

    This to me reads that you have a serious self control issue. If you need to use rehab to limit your use of heroin, you’ve fucked up. Learn and practice some self control. You don’t need rehab, you don’t need to stop buying heroin or cut off ties with your dealer, just stop using it. This is like needing to have your parents tell you to do your homework or something. You are in control of your life. You will feel much more empowered if you do it yourself.




  • Alec from Technology Connections is known for his extensive rants about household appliances: https://www.youtube.com/@TechnologyConnections

    As for me, I’m just trying to avoid things in general, and things I don’t enjoy in particular. Perhaps the only things that I find annoying at my home are:

    • An awful flow-through gas water heater, which requires me to wait for like a minute before water gets up to temperature every time I need hot water (I’d go with an electric one myself, but unfortunately I’m a renter for now). It’s also a poor design because it’s going to fuck over humanity in a couple decades via climate change.
    • Packaging on almost all processed food. I don’t need everything I buy to be in a plastic bag. It’s an incredibly poor design because it is almost always non-recyleable, either because it has a thin foil layer or it’s a mix of plastics or both, filling the landfills forever and contaminating everything with microplastics.
    • Poor window frame design, combined with inevitable building settling, has resulted in a cracked window twice within the last year.

    I have many more gripes about things, some of the most prominent:

    • Most modern smartphones just suck. Gimme back the headphone jack, an SD card slot, and a back that I can open with my fingernails! (thankfully my current phone has all of those despite being only a couple years old and very cheap)
    • Generally everything that has a battery which I can’t replace
    • Bluetooth headphones without a headphone jack or at least audio-over-USB are an awful design, it would cost the manufacturer like a dollar do add that functionality that can come in really handy and yet they don’t
    • Fuck clothes without pockets!
    • Cheap plastic crap from wish.com or similar that’s designed to fail after one use, it just shouldn’t exist. I hope CPC bans this shit soon. (although I find it fun to pull out broken christmas lights from recycling, fix them and then get free christmas lights for every New Year’s)
    • “Teflon” or similar frying pans. Just get a cast iron one. Lasts forever, doesn’t poison you, also allegedly enriches your food with iron