

Teaching liberals the word “tankie” was a mistake…


Teaching liberals the word “tankie” was a mistake…
I mean… I want the war not to go well for the USA.


Keeping the working man in line. Or preserving the status quo.


For anyone interested, I did make a second version of the same logic. Even if i kind of had atomic operations in mind i did not know that i was thinking of atomic or what atomic was for that matter. So in a broad sense i assumed raw pointers were atomic. Also worth noting implementing a false Sync for &str seemed to be unnecessary to get it to run in the first example even if i got the impression during construction that it was. Just pretend in the first example “ExemptSyncStringSlice” is just &str if you want to compare them for some reason.
I don’t know the overhead of AtomicPtr compared to raw pointers and it is dependent on operating systems that can use an atomic load store (whatever that means.) But this version seems more “correct” at least.
use std::sync::atomic::{AtomicPtr, Ordering};
use std::time::Duration;
fn main()
{
let pointer: AtomicPtr<&'static str> = AtomicPtr::new(&mut "Hello!");
let mut value2: &'static str = "Hi!"; // Place outside scope due to lifetime.
thread::scope(|scope|
{
scope.spawn
(|| {
for _ in 1..1000
{
unsafe { println!("String = {}", *pointer.load(Ordering::Relaxed)); }
}
});
scope.spawn
(|| {
sleep(Duration::from_millis(1));
pointer.store(&mut value2, Ordering::Relaxed)
});
});
}
Thank you all who responded btw.


Well worst case to come with language design i could always learn assembly ;) Half joking but thank you very much for your answer. As for the example the only reason its rust is i figured it would be the easiest language to get the logic right even if i have more hours in C++ technically. Arrays seemed obvious enough that would break but i was unsure about things like pointers and integers. Just find the “lower” levels kinda fun ngl.


Hm. Good to know. As far as i know. rusts unsafe is kind of like sudo where more tools are granted to you with less checks and balances. Those checks being the borrow checker. So I think unsafe is more like saying “I don’t want the extra protection against bad memory use.” (Like say using memory you already freed). Now im not familiar with what makes a variable atomic or not. But assuming if a variable can be read or written with a single instruction. I’m interpereting that as making it safe?


Thank you for replying so quickly. Very interesting that it writes 64 bits at a time. (at least on the x86_64 platform i am on) So theres no tangible risk of a cpu processing a read and write instruction in parallel messing up the data that was read?
Knut Hamsun… That sounds very norwegi- …of course


Fuck!
I hate USA. I hate ISIS. I hate Turkey and the new Syrian Government too.
Not completely sure if you’re referring to ML’s or this meme but means and ends was published in 2023
Agreed we should be using Jpeg XL :P
Both huge wins
Love Chumbawamba


I get what you’re going for but communism isn’t synonymous with Marxism-Leninism even if it eventually became the dominant ideology under the communist umbrella. I mean the term even predate Marx’s birth
Some of the tendencies you see i attribute to vanguardism and somewhat to democratic centralism. Lenin proosed the need for a disciplined revolutionary party (the vanguard) which differs from marx’s ideas that the working class will organize itself organically and eventually seize power which would be the dictatorship of the proletariat. How democratic the dictatorship of the proletariat would be differs from who you ask but essentally it refers to the rule of the working class as opposed to the bourgeoisie which does not necessarily translate to a dictatorship but rather who holds the dominant political power.
Marx did have a lot of beef with anarchists during the first international and how often he engaged with them in good faith is uncertain so take the following with a bit of salt. But i find it interesting that in his engagement with anarchists or specifically with a text Sergey Nechayev wrote he mockingly responded claiming it to be a display of crude and authoritarian form of communism (barracks communism) and critized it for what he claimed to proposing a very unaccountable system beholden to a overarching comitee. While he used this as an excuse for the expulsion of the anarchists in the first internationale, I find it very interesting how the man who the soviet union claims to take from even critized an anarchist for being authoritarian. In general i personally find very much interest in socialist ideologies that do not take from more authoritarian tendencies. To name a few, orthodox marxism, council communism, anarcho-communism or libertarianism (not the lassiez faire kind the older kind) I believe to find very much contrast in compared to to more authoriarian ideologies. BTW thanks for reading all that. I know that was kinda disproportinally long but its very interesting and does get complicated fast.

Not to mention that cars seem to be one of the largest sources of microplastic. Me personally am hoping for a lot more infrastructure built to suit walking, biking and taking the train. Imagine free public transit that properly covers the city, is free and goes frequently enough you dont even need to worry when you arrive at the stop. Its real convenient and has much much less emissions.


Mostly go by libertarian cuz I’m not quite fully anarchist. Mostly use it as a umbrella term encompassing both anarchism, communalism etc. But I feel like i need to lightly explain every label I use anyways.
I didn’t know walls could be liberal O_O