• 4 Posts
  • 89 Comments
Joined 1 year ago
cake
Cake day: June 10th, 2024

help-circle
  • I’m sorry to say this, but your posts are not good agitprop. They are low-effort, not very convincing, sometimes misleading, and sometimes just wrong.

    If you want to make good agitprop memes,

    1. shit on ideas and arguments, not your target audience - do not alienate all liberals by portraying them as a soyjack
    2. avoid logical fallacies or incorrect/outdated facts - we can make convincing arguments without lying or manipulation
    3. educate people - give them new information or perspective that might otherwise be downplayed or ignored by media they consume

    Hope this is useful.



  • I’m glad to tell more people about it. It’s really quite amazing (I could write a somewhat complex algorithm and prove some properties about it in a couple afternoons, despite limited formal verification experience) and I’m sure that in 20 odd years the ideas behind it will make it into mainstream languages, just as with ML/Haskell.



  • The difference is that (( is a “compound command”, similar to [[ (evaluate conditional expression), while $(( )) is “aritmetic expansion”. They behave in almost exactly the same way but are used in different contexts - the former uses “exit codes” while the latter returns a string, so the former would be used where you would expect a command, while the latter would be used where you expect an expression. A function definition expects a compound command, so that’s what we use. If we used $(( )) directly, it wouldn’t parse:

    $ even() $((($1+1)&1))
    bash: syntax error near unexpected token `$((($1+1)&1))'
    

    We would have to do something like

    even() { return $(($1&1)); }
    

    (notice how this is inverted from the (( case - (( actually inverts 0 -> exit code 1 and any other result to exit code 0, so that it matches bash semantics of exit code 0 being “true” and any other exit code being “false” when used in a conditional)

    But this is a bit easier to understand and as such wouldn’t cut it, as any seasoned bash expert will tell you. Can’t be irreplaceable if anyone on your team can read your code, right?

    I can’t think of many use-cases for ((. I guess if you wanted to do some arithmetic in a conditional?

    if (( $1&1 )); then echo "odd!"; else echo "even!"; fi
    

    But this is pretty contrived. This is probably the reason you’ve never heard of it.

    This (( vs. $(( )) thing is similar to how there is ( compound command (run in a subshell), and $( ) (command substitution). You can actually use the former to define a function too (as it’s a compound command):

    real_exit() { exit 1; }
    fake_exit() ( exit 1 )
    

    Calling real_exit will exit from the shell, while calling fake_exit will do nothing as the exit 1 command is executed in a separate subshell. Notice how you can also do the same in a command substition (because it runs in a subshell too):

    echo $(echo foo; exit 1)
    

    Will run successfully and output foo.

    (( being paired with $((, and ( with $(, is mostly just a syntactic rhyme rather than anything consistent. E.g. { and ${ do very different things, and $[[ just doesn’t exist.

    Bash is awful. It’s funny but also sad that we’re stuck with it.






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

    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)))





  • 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.


  • balsoft@lemmy.mltoMemes@lemmy.ml"They're the same picture"
    link
    fedilink
    arrow-up
    3
    arrow-down
    4
    ·
    edit-2
    6 days ago

    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.


  • balsoft@lemmy.mltoMemes@lemmy.ml"They're the same picture"
    link
    fedilink
    arrow-up
    46
    arrow-down
    6
    ·
    edit-2
    6 days ago

    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.