Val

joined 2 months ago
[–] Val@anarchist.nexus 11 points 6 days ago (2 children)

Decided to have a go myself:
The transgender flag with a black triangle taking up the other half of the diagonal and a circled A in the middle of the black.

Or a vertical one:
Vertical transgender flag with a black triangle containing a circled A at the top part pointing down.

And a NB one:
The nonbinary flag with a Square containing the circled A rising from middle of the last stripe.

Ok. I think I'm done.

[–] Val@anarchist.nexus 1 points 6 days ago (1 children)

My logic was simply: I need a buffer that is only initialised once no matter how many times the function is called. statics are initialised at program start so they seemed like a good fit. and since I wasn't planning for the function to me called multiple times simultaneously it seemed like the UB didn't matter. (which I think was correct)

[–] Val@anarchist.nexus 5 points 1 week ago (3 children)

Thanks! That's exactly the answer I was looking for.

The premature optimisation quote at the end of your blog post is very relevant to me. I try do find the most efficient way right off the bat so very frequently the first questions I have in a project are like this one. Which in turn lead me to understand the underlying basics, which make me want to implement those basics myself, which sends me down a spiral to wanting to write my own kernel. All the while the project I started with gets forgotten, until I pick it up a month later and the whole thing starts again.

Maybe I should just try and learn C... or zig. And try and hold myself to the higher quality standard they demand. Especially since it feels like I'm doing that already.

 

For example, is there any problems with doing this?

fn main() {  
	static mut BUF: [u8; 0x400] = [0; 0x400];  
	let buf = &mut unsafe { BUF };  
}  

and is this code the same as just using an array directly? From my understanding local variables get put on the stack but do the static variables do too?

I'm essentially trying to find the most performant way to get a simple read/write buffer.

[–] Val@anarchist.nexus 2 points 1 week ago (1 children)

Learn more of what exactly?

If you mean anarchy then I always recommend the AFAQ: https://anarchistfaq.org/afaq/index.html. (elections are handled in section J.2).

If you don't (mean anarchy) then I don't (have any recommendations).

[–] Val@anarchist.nexus 4 points 1 week ago (3 children)

The quote is in the context of socialist/anarchist ideas. If you are referring to the USian right then they are doing it because they are fascist who want to remain in power. and they've been making voting harder for a long time now in order to disenfranchise voters and get in power. From my anarchist point of view both neo-liberal democracy and fascism are the status-quo.

[–] Val@anarchist.nexus 3 points 1 week ago

I know. I deliberately chose to use a different scale for the word to make a point. By that I mean reformist/traditionalist instead of reformist/revolutionary. Using reformist for anyone who wants to change(reform) society.

I do this quite a lot. deliberately misinterpret the point to point out the fuzziness of terms. I should probably remember to point that out whenever I do it.

[–] Val@anarchist.nexus 2 points 1 week ago

"They stand for greed. They stand for hate. For nothing I believe."

[–] Val@anarchist.nexus 3 points 1 week ago (7 children)

No politician can be reformist. It's a job that requires subservience to the status quo. After all "If voting changed anything they'd make it illegal."

[–] Val@anarchist.nexus 1 points 1 week ago

One example: Instead of building a wind farm, we are arguing about economic impact, and then still stay on coal while we that argument occurs.

I agree, we should shut down the coal plants and start rationing energy instead. That way you can be sure that the green energy plants will get built efficiently. Nothing like a little discomfort to get people moving.

(This is only a half-serious point. There is a part of me that thinks this will actually work but overall I think it causes more problems than the gradual change.)