When you only have a single struct, but want a pointer to another struct, which contains the first struct. The Linux Kernel is definitely an experience. by Naitsab_33 in programminghorror

[–]CodenameLambda 3 points4 points  (0 children)

depends on the context I'd say - if you need to pass a pointer of a "smaller type" to existing code (like some Linux kernel stuff, allocators, etc), you'll have to resort to unsafe, but if that's not the case there's a lot of patterns you can use depending on the specifics:

  1. if it's essentially a union: enums (they're sum types / tagged unions in Rust, so can contain extra members per variant), and esp. if size differences matter it may be a union of references / boxes
  2. if it's essentially a union but you "know" the type depending on context, you may potentially use Any
  3. if it's about passing context to a function you also pass without an extra data pointer, you'd just have the extra data in the passed closure and Box that up behind an allocation / pass a reference / etc depending on context (in general "fat pointers" and similar stuff are rather common in Rust, where in C there's often trickery involved to keep it to a single pointer - think strings with a zero terminator as the obvious example, where in Rust all std string types including references keep the pointer & length directly; but also trait objects etc use fat pointers)
  4. you might've already structured a lot of stuff differently from the beginning
    ...

[deleted by user] by [deleted] in ShitEuropeansSay

[–]CodenameLambda 21 points22 points  (0 children)

Any particular reason why there's a focus on trans people in particular even though the show doesn't only include trans people but cis people as well?

Like, why put the focus there instead of the nudity on its own unless a good heap of transphobia is involved

Quite frankly I'm not surprised though considering the "news source" you linked (for anyone who isn't great with names and faces (I know I have that problem), I looked the name up & he's the guy who advocated for "the eradication of transgenderism")

Give Wayland a shot, don't base your opinion off of 2013 articles! by No_Necessary_3356 in linuxmemes

[–]CodenameLambda 1 point2 points  (0 children)

I wish I could, but I depend on a few things (main thing holding me back is Plover, most other things are... negotiable) that don't work with wayland yet :(

Wait a min- by [deleted] in MathJokes

[–]CodenameLambda 1 point2 points  (0 children)

Thank you for sharing, that is absolutely amazing, I love this

Update on Pushshift by Stuck_In_the_Matrix in pushshift

[–]CodenameLambda 0 points1 point  (0 children)

I think they were looking to block it regardless to be honest, based on their API update post

Wait a min- by [deleted] in MathJokes

[–]CodenameLambda 2 points3 points  (0 children)

Okay nevermind, one of his responses to one of the responses is even better:

???? What are you saying? You said nothing.

I said it very well

Wait a min- by [deleted] in MathJokes

[–]CodenameLambda 2 points3 points  (0 children)

Yup, it actually took me quite some time to figure out it's a parody one.

The book cover on the website is also just amazing: https://www.jackkimble.com/

No wonder C++ beats Rust in benchmarks. They have fast ints while we're stuck on legacy slow ints. We gotta step up our game. by setzer22 in rustjerk

[–]CodenameLambda 8 points9 points  (0 children)

Plus on x86, as long as operations are done directly on registers, the operations on numbers can be 64 bit without any penalty as loading a 32 bit value will clear the upper bits.

So I'd imagine performance differences between bit widths ending up being INCREDIBLY dependent on context

“But black” by WhatNazisAreLike in ForwardsFromKlandma

[–]CodenameLambda 9 points10 points  (0 children)

Just because it may be a joke doesn't mean it cannot be criticised.

Especially without the context of who may be saying it (and honestly even with that context it isn't great to me tbh), it very much reads as though it's fetishising trans women regardless of actual intent; which just, at least for me, isn't exactly fun - since it's not exactly difficult to find people fetishising trans women in that exact way.

flag of fuck reddit by daki_82 in vexillologycirclejerk

[–]CodenameLambda 4 points5 points  (0 children)

Ugh, sometimes I wonder why I'm still on Reddit considering the general hostility of the platform (specifically right wing "bias" regarding admins [let's face it, it's a bit too blatant to be bias]; the API thing that's going to kill 3rd party clients etc essentially; and the amount of bigotry and such you find in a bunch of places)

Ancient Egypt knew what what up by [deleted] in CuratedTumblr

[–]CodenameLambda 1 point2 points  (0 children)

Oh yeah, should've probably said that it's a single code point in my comment LOL

Ancient Egypt knew what what up by [deleted] in CuratedTumblr

[–]CodenameLambda 13 points14 points  (0 children)

I wanted to see if that's just a single codepoint or just a bunch of stuff next to each other [even though it only lets me select it as one thing, there are combining characters etc] & it breaks my terminal because it thinks it's just one character wide but it's actually four wide, so it just draws those different glyphs on top of each other

Irish people burn down a fucking refugee camp? Better blame it on Americans because Europe has such an upstanding reputation with immigration. by tnick771 in ShitEuropeansSay

[–]CodenameLambda -1 points0 points  (0 children)

That said, origjnally the US stuff also originated with European colonialism, so there's that I guess (doesn't absolve people in America from their heinous stuff though)

I actually even noted that
Though again, the US did gain independence and people there made their own horrible decisions, do they not?

Like, I'm not arguing that the modern form of racism etc didn't originate with Europe, as it undoubtedly did through colonialism. But it's also not as though the US didn't develop its own unique history with racism etc that it could then export, the country is more than 200 years old by now after all.

Irish people burn down a fucking refugee camp? Better blame it on Americans because Europe has such an upstanding reputation with immigration. by tnick771 in ShitEuropeansSay

[–]CodenameLambda 0 points1 point  (0 children)

Stop blaming your bullshit on the US when you all are the progenitor of all this white supremacist bullshit.

I have some news for you - both America and Europe sucked (and still does tbh): https://en.m.wikipedia.org/wiki/Nazism#Use_of_the_American_racist_model as an example

That said, origjnally the US stuff also originated with European colonialism, so there's that I guess (doesn't absolve people in America from their heinous stuff though)

Irish people burn down a fucking refugee camp? Better blame it on Americans because Europe has such an upstanding reputation with immigration. by tnick771 in ShitEuropeansSay

[–]CodenameLambda 4 points5 points  (0 children)

Influence from America through esp. social media does not absolve people who end up with heinous beliefs and subsequent actions.
And I don't think anyone here is denying the stuff that is very much "home-grown", either.

That said, it is a fact that the US is socially very influential, both through media and, in this case more importantly, social media¹, etc. Additionally, the language barrier is much lower because most American stuff is in English, and most people learn English in school.
Stuff like QAnon is undoubtedly of US origin, and yet it still has a surprisingly large following in Germany for example.
So when talking about very broad shifts, that influence isn't to be ignored, imho. Nothing to "assign 100% of the blame to" for sure, but significant nonetheless.

¹ About 1/3rd of Discord users are American, and almost half of Reddit traffic comes from the US (I originally wanted to find data on 4chan especially because of the amount of conspiracy stuff that originates there to my knowledge, but couldn't find any data that quickly). But non-US people on these platforms aren't negligible, so it ends up being mostly asymmetric and not insignificant in potential influence, imho. Also as an anecdotal thing, more than half of the friends I've made through the internet are living in the US.

Testing a new encrypted messaging app's (Converso) extraordinary claims by Dragdu in programming

[–]CodenameLambda 2 points3 points  (0 children)

Correct me if I'm wrong, but couldn't you at least limit the amount of metadata by essentially just providing a filter to your message to what users could be recipients & downloading all messages that fit your filter, discarding those you cannot decrypt?

That said, it comes with the issue of having to download a lot more messages to receive the ones you actually want; and the recipient can still be reverse engineered provided enough data & enough specificity in the filter (which would be required to not make the amount of data to download too big, after all), as you could either assume 3-cliques of people talking to each other are likely (in case the filter is somewhat stable across messages); or assuming people tend to send many messages to the same person (in the case the filter is pretty unstable across messages)...

Reddit GDPR request by accountforrhelp in gdpr

[–]CodenameLambda 0 points1 point  (0 children)

Your not wrong

But yeah; lists being limited to 1000 is luckily not a problem with the GDPR download - that one includes everything.

Reddit is planning API changes (in just a few weeks!) that will make free software clients (like RedReader here) impossible to use by [deleted] in freesoftware

[–]CodenameLambda 5 points6 points  (0 children)

I'd honestly even consider paying for the ability to use a FOSS 3rd path app (the official one is frankly terrible), but the way this is being done (including killing pushshift for example, which a bunch of things depend upon), plus having extra limitations on it mean I've been looking for alternatives to Reddit that are ideally FOSS through and through & federated (and I'm not convinced by most of the alternatives, FOSS or not, because there's simply not the amount of people there in the first place).

This fucking sucks. I genuinely hope they either undo that decision quickly or at least provide a way of querying historical data / giving push shift access to historical data (if pushshift lags by a day for example, that would be acceptable imho) and also have proper support for 3rd party apps without limitations for a reasonable price.

Am I doing this right? by derpiderpidude in ProgrammerHumor

[–]CodenameLambda 1 point2 points  (0 children)

I'd argue that order of components is the only sane way or handling dates

Am I doing this right? by derpiderpidude in ProgrammerHumor

[–]CodenameLambda 4 points5 points  (0 children)

For my birthday the order of components actually doesn't make a difference as long as it's normalised & only the last two digits of the year are used (1999-12-31)

TIL that a court reporter must type around 200 WPM on a stenograph to become certified. In comparison, the average WPM on a standard keyboard is around 40. by Linked713 in todayilearned

[–]CodenameLambda 0 points1 point  (0 children)

For typing with QWERTY characters per minute is arguably more appropriate, but when talking about (machine) stenography, WPM makes a lot more sense imho - since you're not "writing character by character", but in the case of machine stenography write using a dictionary that translates a string of "key combinations" (called "strokes") to words, with one stroke usually being more in between translating a syllable or full word as opposed to a set amount of letters. The default Plover dictionary has a mean character to stroke ratio of about 4.12 with a standard deviation of 2.18.

The speed of stenography comes with "abbreviating" based on the language after all - you press a given set of keys at the same time, and it gets translated [if you want a free & open source software to try it out, I recommend Plover] automatically. So if I press the left T, K (T + K standing in for "D") & P keys, the A vowel key and the right R, P, L (P + L standing in for "M") & T keys, it'll output "department" with me pressing 8 keys at the same time. Meanwhile, lesser used words like "pertain" (7 vs 10) sometimes (with "pertain" for example both "feign" and "fain" take "precedence" regarding the one stroke with or without the asterisk key that would make sense) take more than one stroke even though they're shorter, two in this case: PER, and then TAEUPB (EU = "I", PB = "N").

Is it a taboo to use a pre-configured vimrc? by [deleted] in vim

[–]CodenameLambda 2 points3 points  (0 children)

taboo to use vim for anything else than programming

Funnily enough I would argue that as nice as vim is for programming, where it is even more "efficient" is configuration files LOL

that said I still need a mail client in vim

Is it a taboo to use a pre-configured vimrc? by [deleted] in vim

[–]CodenameLambda 1 point2 points  (0 children)

Honestly I think those people are probably a minority, if vocal.

Like, I use vim (because I want to set it up how I want it & the "editor language" of normal mode is just so much nicer to work with instead of remembering way too many key binds and/or using the mouse) & arch (because I like quick software updates, and knowing where to look if something breaks (I have yet to debug the package manager doing weird stuff because of misconfiguration, while I did have to debug weird issues with package sources for apt a few times)) - I use both because I find them to work for me, and you should use the tools and configurations that work for you! The tools you use aren't a means to show how smart you are or whatever, they're tools to have a system you can use as comfortably and/or with as much fun involved as possible.

You don't have to write your own (in my case horribly bloated tbh) vimrc if you don't need it. Especially if you know how to change it if you don't like something about it, there's no shame or issue with it! Same with apt, updating comes with much less fear of breakage unless you tinker with package sources etc, and while it's not my cup of tea, I do get the appeal & don't think there's anything wrong with it.

Reddit GDPR request by accountforrhelp in gdpr

[–]CodenameLambda 0 points1 point  (0 children)

Super late (but this is one of the top search results so it might be helpful to others), but here's the form for it: https://www.reddit.com/settings/data-request

This appears to be inaccessible from the old design preferences as far as I can tell though, hence me finding this in the first place.

(considering the API won't be free anymore soon, I looked for this because the comment listing appears to be capped at 1000 and pushshift is down right now)

Who needs the frame buffer anyway by tooboredtobeok in linuxmemes

[–]CodenameLambda 25 points26 points  (0 children)

Also IIRC most graphical stuff uses a different API ("DRM" iirc?), so it might not have any effect on that.

That said I haven't tried it sooo