Hi!

My previous/alt account is yetAnotherUser@feddit.de which will be abandoned soon.

  • 2 Posts
  • 382 Comments
Joined 2 years ago
cake
Cake day: June 1st, 2024

help-circle


  • Even though this isn’t C, but if we take from the C11 draft §6.8.5 point 6 (https://www.open-std.org/jtc1/sc22/wg14/www/docs/n1570.pdf):

    An iteration statement whose controlling expression is not a constant expression, that performs no input/output operations, does not access volatile objects, and performs no synchronization or atomic operations in its body, controlling expression, or (in the case of a for statement) its expression-3, may be assumed by the implementation to terminate

    “new Random().nextInt()” might perform I/O though so it could still be defined behavior. Or the compiler does not assume this assumption.

    But an aggressive compiler could realize the loop would not terminate if x does not become 10 so x must be 10 because the loop can be assumed to terminate.






  • Is it actually possible for a fish-like animal to have eyes at the front (i.e. an animal with a hydrodynamic shape that spends all its time underwater)?

    I feel like that’s really difficult for evolution to achieve, especially because the mouth has to go somewhere at the front too. I mean, look at where the lights of a high-speed train are placed and their shape.

    Intuitively it feels easier to just put the eyes on the side. Plus it feels like there’s a lower risk of damaging them when bumping into something.




  • Let M be the set of all memes.

    Is this well-defined? How can you tell whether something is an element of M?

    f(x) is a meme making fun of x for all x in M

    Does such an f even exist? Why? Obviously it exists for some x in M but for all?

    Thus there exists a normie meme n

    What’s a normie meme? Why does its existance follow?

    and a unique function F for all natural number k

    This again requires f to be well-defined.

    The set M is also equipped with a dankness norm.

    Prove it has that norm and please also prove it fulfills all properties of a norm.

    with property that ||F(k)|| ≤ ||F(k+1)|| for all k in N.

    [proof required]. Idea for a counterexample: A meme making fun of a meme in such a terrible way it cannot possibly be “danker”. Though this would require f^-1(terrible meme making fun of meme) to not be empty.


  • I really like bash when dealing with even somewhat advanced scripting. Like the 300 LOC scraper I have written over the past two days which horribly parses HTML files using grep | sed.

    It’s genuinely so much more fun to do this with Bash than, say, Python. I have once written a scraper using Beautifulsoup and I have no desire to do so ever again.

    Honestly, only Haskell manages to beat Bash in how satisfying it feels when you manage to get something working well.



  • yetAnotherUser@discuss.tchncs.detomemes@lemmy.worldHigh five
    link
    fedilink
    arrow-up
    4
    arrow-down
    2
    ·
    2 months ago

    Times before are somewhat irrelevant when speaking about today. Not because today is supposed to be independent of the past, mind you, but rather because there have been strongly varying rates of progress across different countries. You cannot extrapolate two countries are the same today because they were the same in the past. Cultures diverge.

    And nowhere did I claim everyone in the US was tainted while elsewhere everything is perfectly fine? Did you even read my comment? There’s good reason I used the term “primarily” several times. This is a serious topic and so I thought about my precise wording.

    Ukrainian refugees in Europe are treated better than Subsaharan African refugees. Both experience xenophobia, the latter further experiences racism. Neither group is treated remotely well.

    If we want to get really specific, racism is just one specific type of xenophobia where looks alone determine membership in the in-group or various out-groups. But to claim all xenophobia is racism is misleading at best and outright wrong at worst.

    Simple US-American models about racism that are broadly accurate there just cannot be applied elsewhere without adaption. Not doing that is very much “progressive” US defaultism.


  • yetAnotherUser@discuss.tchncs.detomemes@lemmy.worldHigh five
    link
    fedilink
    arrow-up
    8
    arrow-down
    6
    ·
    2 months ago

    No, I’d say race is primarily US-American concept.

    Language/nationality are in Europe the most relevant factors. Racism simply due to skin color does happen too but it occurs less often than other forms of discrimination (because there are simply significantly fewer people of a different “race”. The US-American view would just see white people discriminating against white people.)

    I mean, a Black and a White US-American are culturally far more similar than an English and a Polish guy but in looks far more different. So US-Americans discriminate primarily by looks (racism) while the English discriminate primarily by culture (xenophobia). That’s why British Indians (considered to belong to a Brown race in the US) can be the leaders of the Tories with barely any outcry while in the US Obama caused Republicans to collapse into a hatred singularity called “Trump”.





  • Then the allegory wouldn’t make sense though, would it?

    The main character would have less reason to want to stay in the real world if they received the “wrong” body. They lived their whole life in the “right” body in the simulation and then wake up just to feel gender dysphoria? It would just be confusing and uncomfortable as fuck for them.