The image shows the last state of a terminal emulator of person without command line or git knowledge. The person attempted to run
git commitand is now blaming the result of a specific configuration on their system that launches a vi derivative on the vi derivative itself. This image is expected to convince the viewer that the vi derrivative is to blame.
Simon 𐕣he 🪨 Johnson
they/them
Lord, where are you going?
- 1 Post
- 47 Comments
Simon 𐕣he 🪨 Johnson@lemmy.mlto
World News@lemmy.ml•Greta Thunberg refuses to watch Oct. 7 footage after flotilla stopped
731·6 months agoThis is quite literally the plot to A Clockwork Orange.
Now I’m super curious about Gentoo and Portage. You don’t hear so much about compiling your own stuff anymore (probably because there’s less architectures around).
“Nobody” runs Gentoo anymore because most distros have taken the 80% optimizations you can do and just mainlined them. This was back in 2000’s where some distros weren’t even by default compiling with
-O2. Gentoo usage just proved out that the underlying code was effectively-O3safe in the 80% case and nobody was sneakily relying on C/C++ vagaries.I have much less time to tinker, but my favorite new bag is Fedora Atomic (currently using Bazzite on my main desktop). I’m incredibly interested in figuring out Nix though, but I haven’t had the time. Immutable distros are honestly something incredibly useful for both power users and normies. The main issues I’ve had with Fedora Atomic have really been around vagueness in the “standard” but they’re still figuring things out as far as I can tell.
The flag -O3 exists. Or just -funroll-loops. You shouldn’t even need -funroll-all-loops in this case, since hashes have a fixed size.
I sound way more competent with the flags than I am here, haha. Does Gentoo use an alternate compiler by default?
This is in reference to an ancient linux meme cw: slur
Ironically
'a'++works in C/C++ because'a'ischarwhere in JS ‘a’ isstring.
Yeah you’re actually right, it’s an
intin C since K&R C didn’t havebool, however it’s aboolin C++. I forget my standards sometimes, because like I said this doesn’t really matter. It’s just nerd trivia.https://en.cppreference.com/w/cpp/types/type_info/operator_cmp.html
There are plenty of sha1 implementations that are more readable and sensible and less readable and sensible. This portion is simply an manually unrolled loop (lmao these gcc nerds haven’t even heard of Gentoo) of the hash chunk computation rounds. Hash functions aren’t “impenetrable” they’re just math. You can write math programmatically in a way that explains the math.
The point of this post is actually things like
x[(I-3)&0x0f]. It’s entirely the same concept as coercion to manipulate index values this way. What’s funny is that void pointer math, function pointer math, void pointers and function pointers in general are typically seen as “beyond the pale” for whatever reason.Beyond that if you know C you know why this is written this way with the parens. It’s because C has fucked up order of operations. For example
a + b == 7is literally “does adding a + b equal 7”, but if you writea & b == 7you would think it means “does a AND b equal 7”, but you’d be wrong. It actually means does b equal 7 AND a.Furthermore
a & (b ==7)makes no sense because b == 7 is a boolean value. Bitwise ANDing a boolean value should not work because the width of the boolean is 1 bit and the width of the int is 8 bits. ANDing should fail because there’s 7 void bits between the two types. However the standard coerces booleans in these cases to fit the full width, coercing the void bits to 0’s to make bitwise ANDing make sense.Beyond that asking what the memory size of a variable in C is a fools errand because the real answer is “it depends” and “it also depends if someone decided to ignore what it typically depends on (compiler and platform) with some preprocessor fun”. Remember how I said “void pointers” are beyond the pale? Yeah the typical “why” of that is because they don’t have a known size, but remember the size of something for C is “it depends”. 🤷
Almost every language has idiosyncratic stuff like this, but some let you make up your own shit on top of that. These kinda low hanging fruit jokes are just people virtue signaling their nerddom (JS bad am rite guis, use a real language like C), when in reality this stuff is everywhere in imperative languages and typically doesn’t matter too much in practice. This isn’t even getting into idiosyncracies based on how computers understand numbers which is what subtracting from
0x5F3759DF(fast inverse square root) references.
I thank god every day people who make these comics are too stupid to open gcc’s sha1.c because they’d see shit like:
#define M(I) ( tm = x[I&0x0f] ^ x[(I-14)&0x0f] \ ^ x[(I-8)&0x0f] ^ x[(I-3)&0x0f] \ , (x[I&0x0f] = rol(tm, 1)) ) #define R(A,B,C,D,E,F,K,M) do { E += rol( A, 5 ) \ + F( B, C, D ) \ + K \ + M; \ B = rol( B, 30 ); \ } while(0) R( a, b, c, d, e, F1, K1, x[ 0] ); R( e, a, b, c, d, F1, K1, x[ 1] ); R( d, e, a, b, c, F1, K1, x[ 2] ); R( c, d, e, a, b, F1, K1, x[ 3] ); R( b, c, d, e, a, F1, K1, x[ 4] ); R( a, b, c, d, e, F1, K1, x[ 5] ); R( e, a, b, c, d, F1, K1, x[ 6] ); R( d, e, a, b, c, F1, K1, x[ 7] ); R( c, d, e, a, b, F1, K1, x[ 8] ); R( b, c, d, e, a, F1, K1, x[ 9] ); R( a, b, c, d, e, F1, K1, x[10] ); R( e, a, b, c, d, F1, K1, x[11] ); R( d, e, a, b, c, F1, K1, x[12] ); R( c, d, e, a, b, F1, K1, x[13] ); R( b, c, d, e, a, F1, K1, x[14] ); R( a, b, c, d, e, F1, K1, x[15] ); R( dee, dee, dee, baa, dee, F1, K1, x[16] ); R( bee, do, do, dee, baa, F1, K1, x[17] ); R( dee, bee, do, dee, dee, F1, K1, x[18] ); R( dee, dee, dee, ba, dee, F1, K1, x[19] ); R( d, a, y, d, o, F1, K1, x[20] );And think, yeah this is real programming. Remember the difference between being smart and incredibly stupid is what language you write it in. Using seemingly nonsensical coercion and operator overloaded is cringe, making your own nonsensical coercion and operator overloads is based.
That’s why you should never subtract things from
0x5F3759DFin any language other than C.
Simon 𐕣he 🪨 Johnson@lemmy.mlto
World News@lemmy.ml•We must face reality — the Gaza War is now a war of annihilation
5·6 months agoDon’t worry it’s the Forward, there’s 3 more articles coming about how the definition of genocide should exclude destruction in whole or in part of a group by a group that has “epigenetic trauma” from being victims of a genocide themselves.
Demo Driven Development is wayyy worse.
Simon 𐕣he 🪨 Johnson@lemmy.mlto
World News@lemmy.ml•Ukraine to Skip $665 Million Payment on Growth-Linked Debt
9·6 months agoThe IMF is going to give Ukraine another loan but only if Ukraine tells every pensioner in the country that if they freeze to death next winter that’s on them. Ukraine will default on that one too.
Lol the suggested hardware for usable performance is $50k for the GPUs alone and that’s an SXM5 socket so all proprietary extremely expensive and specific hardware.
My PC currently has a 7900 XTX which gives me about 156 GB combined VRAM, but it literally generates 1-3 words per second even at this level. DDR5 wouldn’t really help, because it’s a memory bandwidth issue.
TBH for most reasonable use cases 8 bit parameter size quantizations that can run on a laptop will give you more or less what you want.
Simon 𐕣he 🪨 Johnson@lemmy.mlto
Asklemmy@lemmy.ml•Has online accessibility improved or worsened last couple of years for visually impaired people?
13·7 months agoFrom my perspective making software, it’s improved. Prior to 2016, I had to be the one pushing WCAG standards. After 2016 it’s been explicit customer facing criteria managed by product managers.
Simon 𐕣he 🪨 Johnson@lemmy.mlto
Asklemmy@lemmy.ml•Are anti-Lemmy sentiments being botted?
3·7 months agoJust a reminder that Reddit was once difficult for people to understand.
I honestly don’t believe this at all.
Snapshat was popularized by a generation that grew up only using apps, and it was designed to be obtuse, mysterious and difficult to learn in comparison to other apps as a feature. It grew regardless.
To be honest though, I’m a bit disappointed by the other users here. The quality of comments is really poor, both idiotic and adversarial. I’m talking fox news comment section level.
Yeah so is reddit. The best moderation and engagement in fediverse typically exists in the highly moderated communities that people constantly complain about not respecting their freeze peach and antisocial tendencies.
Simon 𐕣he 🪨 Johnson@lemmy.mlto
World News@lemmy.ml•LA Times reports that Palm Springs bomber had an account on Lemmy.world
31·7 months agoMaximizing the MAU and pLTV of a niche internet forum for the love of the game.
Simon 𐕣he 🪨 Johnson@lemmy.mlto
World News@lemmy.ml•LA Times reports that Palm Springs bomber had an account on Lemmy.world
15·7 months agoMost people are mad at hexbear because their moderation policies are consequentialist not deontological and thus more stringent against stupid online shit. As a poster you don’t have a “right” to post on hexbear, however the community has a right to be protected. As such it’s one of the better places if you don’t want to read reams upon reams of lib coded bigotry.
Simon 𐕣he 🪨 Johnson@lemmy.mlto
World News@lemmy.ml•LA Times reports that Palm Springs bomber had an account on Lemmy.world
679·7 months agoI love how quickly lemmy.world speed ran the aesthetically lib to fash redditor pipeline problem without even a profit motive behind them.
This already happens in enterprise code bases with dummies running the show and juniors coding. Every primitive is actually a god object that can work at any level of the software stack.
Simon 𐕣he 🪨 Johnson@lemmy.mlto
Videos@lemmy.ml•China's Internet Firewall is Good, Actually
11·7 months agoOH YEAH BUT CAN YOU HAVE AN PUBLIC, CACHED ON MULTIPLE PUBLIC SERVERS, EXTREMELY ANTI-SOCIAL, EMOTIONAL OVER REACTION AGAINST A POLITICIAN ON CHINESE INTERNET???
I have freely made history today by posting slurs into the public record. The SEE SEE PEE will never give its citizens the ability to do this.
mfs will post this calling it “freedom” or “political participation” or “democracy”.



We grasp the core point: vim is not typical. This is not insightful.
What we care more about is the link to the jobs portal of the company there will be an opening at soon that uses vim as it’s standard dev tool chain.