Skip Navigation

InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)BA
Posts
3
Comments
300
Joined
1 yr. ago

  • Amateur! I can read and understand that almost right away. Now I present a better solution:

     bash
        
    even() ((($1+1)&1))
    
      

    (I mean, it's funny cause it's unreadable, but I suspect this is also one of the most efficient bash implementations possible)

    (Actually the obvious one is a slight bit faster. But this impl for odd is the fastest one as far as I can tell odd() (($1&1)))

  • I mean, it would be almost this exact thing in almost any language.

     rust
        
    fn is_even(n: i64) -> bool {
        n % 2 == 0
    }
    
      
     haskell
        
    even n = n `rem` 2 == 0
    
      
     python
        
    def is_even(n):
        return n % 2 == 0
    
      

    etc

  • Lots of interesting answers here. I figured I'll pitch in too.

    IMHO there is no one true, universal meaning of life - just as there is no one meaning of any piece of art. I think the idea that everything around you must have a single meaning is a relatively modern one, which came from the requirements of efficient communication (which should indeed be precise and not open to interpretation).

    As it stands, it is up to you to interpret the world around you and find different meanings for yourself, just as you should do with art. If you are struggling to start, consider those questions: What do you enjoy? What makes you happy? What do you think is "good", even if it makes you sad or uncomfortable? All those things are your personal interpretations of meaning of life. Or go ahead and make up something else, I'm not your dad.

    I was pondering why people fight so hard to beat diseases and live a few more years. What are they planning to do? Why exert effort just to be here longer when you don’t have a reason?

    As for this, I think when people realize the proximity of death and temporal nature of their life, they are much better at coming up with meanings. Maybe it is to see your partner or your children for a couple more years. Maybe it's another couple of gaming sessions with your pals. Whatever it is, when you realize you don't have much of it left, the importance of it typically rises dramatically from your perspective. If you're struggling to visualize something so dramatic, imagine that your favourite food will be completely banned and criminalized in your country in couple weeks. Wouldn't you want to enjoy it more before that happens?

  • While I agree in general, there's also nuance to be had IMHO.

    For example: Russian Empire colonizing Siberia was a bloody affair. Of course it was not anywhere near the atrocities committed in the new world, but still a lot of natives died due to localized warfare and disease. Do you think that when USSR formed, the Siberian peoples should have been given full sovereignty, as separate countries (not even part of USSR), and rule over themselves and the descendants of russian settlers that were left there; or was the actual solution of giving them autonomous republics within the RSFSR the better one? I lean on the latter. I think if a socialist revolution ever happens in the US, this is the way it would happen. Full jurisdiction and sovereignty for indigenous people in certain areas (they need to be much larger than current reservations, though), shared jurisdiction and sovereignty in other limited areas where descendants of settlers live. And, of course, land to the peasants, factories to the workers - I strongly suspect both casual and systemic racism will be much less of an issue once capitalism no longer burdens the working class.

  • First I'd like to say that I've never even been to north america, my skin colour is closer to "not ok" in the Family Guy card, and as such I'm more of a neutral observer than an active participant.

    That said, the fault with your "man and woman" argument is assuming that all non-indigenous people are direct aggressors, or are directly culpable for heinous crimes against humanity.

    A person cannot be culpable, and doesn't need to atone for, the crimes of their ancestors, people who share their race, or otherwise by unwillful association. The crime of most modern descendants of settlers is that of "illegal" (unjust?) immigration, no more and no less. And I don't believe it is even a crime, more of an infraction that can be rectified by learning the languages and traditions of the local population and becoming part of the community. There certainly are others who are still engaging in direct and active racism, colonization, even genocide. They deserve their own appropriate punishments, not due to their ancestry but due to their actions.

    However, what descendants of colonizers definitely owe everyone else in the land is the generational, systemic wealth (land, money, property, social credit, etc) they accumulated because their ancestors robbed and pillaged it from everyone else. Giving it back doesn't necessarily mean moving out; it means giving back jurisdiction, sovereignty, and sharing the wealth in a just manner (this would probably require some form of socialism or communism).

    What we shouldn’t do is tell them that they can’t tell us to leave or that we’d refuse to leave because we have a rightful claim to this land

    I don't think it's about a "rightful claim" to the land. I agree that the descendants of settlers have an extremely weak claim to the land, if at all. Rather it is about basic humanity and decency. No person should be forced to move out of what they call home through no fault of their own. On the other hand any person living on someone else's land must learn the language and the culture. It is for the same reason I believe immigrants deserve help, accommodation, and local language courses rather than rejection.

  • I have no right to say what they should do and neither do you.

    Do you think all indigenous people can do whatever the fuck they want, as long as they are on their own land, and noone has any right to judge their actions?

    1930s germans were indigenous people on their own land, after all.

    I agree that cultural assimilation requirements and dealing harshly with white nationalists are ok; mass expulsion is not.

    And I'm also pretty sure that most native Americans don't want mass expulsion, so this whole discussion is moot.

  • USAmericans are also doing this too. The overconsumption done by yankees would require multiple planet earths if everyone were allowed to consume as much as they do and the US government is guilty of exporting a capitalist system that causes climate change, not to mention the imperialism abroad.

    I mentioned this as another thing that needs addressing in a timely manner.

  • Very few countries currently are based on native eviction, where settlers have nearly replaced the indigenous peoples.

    As a founding point? Yes, I agree. I also agree that colonization scale done by British was greater than anything ever done before.

    However, that wasn't my point. My point was: almost everyone on Earth lives where they do because their ancestors killed or evicted the people that lived there previously. This is in particular is not unique to any western country. Hell, reading the history of Russia, my home country, makes it pretty clear that my own deep ancestry did plenty of killing and evicting too, mostly of themselves, to get to where they all ended up (not even talking about Siberia here). It wasn't at the founding point of Russia though, and none of the peoples who lost their wars are culturally alive anymore. Does it matter if all the conquest led to the foundation of a modern country, or just different tribal lands (or later city states)? I don't think it does.

    I think what does matter is justice for those descendants of the colonized who are still alive, and if there's noone left, at least understanding and recognition of the horribleness that lead up to the point of your birth.

  • and it means you GO BACK too, no one should give a fuck about which gen. you’re currently a part of.

    This would mean that like 99.9% of Earth's population has to move somewhere. Almost all land was fought over endlessly and changed metaphorical hands multiple times over. What we call "indigenous people" in a territory is usually just whoever was winning those wars before written history began.

    What "landback" actually means is recognizing the systemic racism that was and still is perpetuated against the indigenous people by means of taking away their ancestral lands, slaughtering and enslaving their ancestors, and destroying their way of life; and addressing that racism by giving jurisdiction and sovereignty over their lands back to them. It doesn't mean that everyone but the indigenous people have to move out; descendants of colonizers born there are technically natives of that land too. The difference is that they get systemic advantages from their ancestry whereas indigenous people get systemic discrimination. This is the thing that ought to be addressed. (well, the horrifying economic and governance system that the colonizers brought and festered must be addressed too, but all three are tightly coupled together)

    In the case of Israel the difference is that a lot of colonizers are first gen, they are not natives, they do have somewhere to "go back to", and they are actively perpetuating colonization and genocide rather than simply getting an advantage from their ancestors doing so. In such cases it of course makes sense for the decolonization effort to focus on direct expulsion of invaders.

  • Eh, honestly sometimes I stumble upon code which was last modified in the last millennium and it's usually fine. If has been working for 30 odd years then it stood the test of time and probably isn't too janky. Selection bias strikes again.

  • Honestly this made me really sad that we're stuck with this archaic, awful language as a primary way of programmatically interacting with our computers. And I don't mean to say anybody has done anything wrong here - sh and bash were revolutionary and amazing for their respective times, and maintainers who are keeping bash alive now are heroes who deserve praise. However, many decisions made when sh was originally developed turned out to be footguns, still creating bugs today (despite shellcheck et al).

    nushell is somewhat promising but flawed (because it has to be built on the same system interfaces as sh, after all). The most annoying is that there's no facilities for setting any metadata on data streams (in particular there's no way to set the format of the data) so everything has to be marshalled manually, which would be OK for a proper programming language but really annoying for a shell. At least it fixes most of the quoting, escaping, interpolation, substition etc awfulness, and allows for manipulating data in a more structured way.

    I really don't know if it's even possible to make a language that would be a good convenient shell and at the same time not prone to bugs which are easily noticeable in other languages. I hope that something like this becomes a reality at some point.

  • pics @lemmy.world

    Moonrise at sunset

    pics @lemmy.world

    Winter Dawn

    pics @lemmy.world

    Late spring in Georgia