• 0 Posts
  • 24 Comments
Joined 1 year ago
cake
Cake day: August 2nd, 2023

help-circle
  • Pipoca@lemmy.worldto196@lemmy.blahaj.zonevimrule
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    11 months ago

    I used to do it more back in college where I’d ssh into the schools computers to work on assignments. It’s still sometimes useful if you’re in the console and want to edit something quickly.

    However, there’s e.g. macvim and gvim which are literally just vim in a gui; they give you menus and the ability to drag panes and click to move your cursor. With a decent LSP setup they can actually be pretty nice.

    And most other decent editors have vim emulation of various quality levels. Emacs is a bit buggy, but it’s really useful if you want to code in agda or clojure. And VS Code has fairly decent vim emulation.




  • Pipoca@lemmy.worldto196@lemmy.blahaj.zonevimrule
    link
    fedilink
    arrow-up
    3
    ·
    11 months ago

    Even not being a vim wizard, editing code without vim keybindings feels… slow.

    Yeah, I could grab the mouse, highlight everything between the arguments to a function and hit delete. Or I could just go to the open paren and just hit d%. I could grab the mouse, highlight the line and hit delete, or I could literally just type dd.

    And trying to edit things in nano is positively masochistic.


  • The US parties are weird.

    Because there’s no PR, anyone who wants to be effective has to join one of the parties. Because of that, diversity in each party is way higher than you see in places that use party list PR.

    For example, the Democrats have both Alrxandria Ocasio Cortez, who describes herself as a democratic socialist, and Joe Manchin, a fairly conservative former coal exec from West Virginia.

    The real interesting bit of American elections tends to be the primaries, where all the voters registered with a party vote on who their candidate should be. Alexandria Ocasio Cortez got elected because she defeated the incumbent Democrat in the primary.

    In 2020, everyone from Bernie Sanders to billionaire Michael Bloomberg ran in the Democratic primary. There was some real choice there until Biden won and it became just Trump vs Biden.


  • Climbing harnesses are usually sitting harnesses that are more padded around the legs and back than work harnesses are.

    The bigger thing, though, is that suspension trauma typically happens when you’re purely hanging. The amount of time you can hang in a void in a work harness is way, way shorter than the amount of time you can bounce off a wall in a work harness, particularly if you’re able to support much of your weight with your feet.

    For climbers, the main worry would be hanging around if you’re somehow incapacitated from a heart attack or having been knocked out somehow, because workers are a lot more likely to be suspended over a void than climbers.



  • Sure, the definition of grade school doesn’t really matter too much. Because college texts are written in ways that violate pemdas.

    Look, for example, at https://www.feynmanlectures.caltech.edu/I_45.html

    For example, if f(x,y)=x2+yx, then (∂f/∂x)y=2x+y, and (∂f/∂y)x=x. We can extend this idea to higher derivatives: ∂2f/∂y2 or ∂^2f/∂y∂x. The latter symbol indicates that we first differentiate f with respect to x, treating y as a constant, then differentiate the result with respect to y, treating x as a constant. The actual order of differentiation is immaterial: ∂2f/∂x∂y=∂2f/∂y∂x.

    Notice: ∂^2f/∂y∂x is clearly written to mean ∂^2f/(∂y∂x).






  • It’s BE(D=M)(A=S). Different places have slightly different acronyms - B for bracket vs P for parenthesis, for example.

    But multiplication and division are whichever comes first right to left in the expression, and likewise with subtraction.

    Although implicit multiplication is often treated as binding tighter than explicit. 1/2x is usually interpreted as 1/(2x), not (1/2)x.



  • What exactly is your alternative?

    Have 4, 8, 12 years of Repubican rule in the hopes of getting a better Democrat? 4 years if Trump was awful enough, and did quite a lot of long-lasting damage.

    If you’re offering me the certainty of a lot more long-lasting, hard to undo damage against the uncertain hope of a bit of progress, you’ll forgive me if I accept the certainty of the status quo combined with pushing for voting method reform at the state and local level.



  • Pipoca@lemmy.worldto196@lemmy.blahaj.zoneraytracing rule
    link
    fedilink
    arrow-up
    7
    ·
    edit-2
    1 year ago

    Basically, a scene in a game has a bunch of objects in it.

    It’s not to hard to just light them, but it doesn’t look that good. Most games want to have shadows, reflections, that sort of thing.

    The traditional approach is to use a bunch of extra manual work by pre-calculating a bunch of stuff.

    Ray tracing works by simulating how physical photons bounce around in real life. It’s existed for a long time; they’ve used it in animated movies for decades.

    The issue with games is that we haven’t had hardware capable of doing it in real time until quite recently.

    Edit:

    That is to say, if you want to animate water or a mirror with ray tracing, you know where the camera is in the scene, and you know where the water/mirror is, so you know the angle the reflection would have come from. So you bounce the photon back that way til you get to the light source.




  • Portal fantasies aren’t exactly new.

    The Chronicles of Narnia, Alice in Wonderland and The Wizard of Oz are classics that aren’t generally considered lazy.

    Isekai tend towards the lazy, self-insert escapist portion of portal fantasy, sure. Most don’t have great writing. But keep Sturgeons law in mind - every genre has a few gems in a sea of turds.