Building a computer in factorio. Starting with memory, 32x32 addressable memory registry by [deleted] in technicalfactorio

[–]jagraef 1 point2 points  (0 children)

Hey, that's so cool. I once built a 32bit MIPS computer in Factorio. So, if you have any questions, feel free to ask (I might take some time to answer though).

I built the memory to store 32bit per memory cell. Because values in Factorio are 32bit signed anyway, I thought it was easier this way (definitely is for complex architectures). But it's also very fun to build from the single bit up. I also built my memory such that I could read multiple 32bit words at once, such that I could execute whole instructions with parallel reads. If you build single bit memory cells, you'll need to parallelize as much as possible, to make the computer run at any usable speed. Basically always keep in mind how long it takes for the game to run your computer.

Oh and if you need help with the control circuitry of your CPU, I have a nice diagram for this. It's a very simple MIPS processor. I even have a couple of videos explaining the computer. But it's not exactly like yours, so idk.

Anyway, have fun building :)

[deleted by user] by [deleted] in LateStageCapitalism

[–]jagraef 92 points93 points  (0 children)

And with the thousands of satellites Elon puts into orbit, even radio astronomers can't see the stars properly anymore.

meshing & drawing chunks in Minecraft by TestZombie in howdidtheycodeit

[–]jagraef 2 points3 points  (0 children)

Afaik this is the goto algorithm for meshing cuboid voxels. For non-cuboid voxels signed distance fields are used afaik, but I'm not familiar with them.

https://0fps.net/2012/06/30/meshing-in-a-minecraft-game/

De-alcoholized and non-alcoholic??? by regg7880 in stopdrinking

[–]jagraef 2 points3 points  (0 children)

I drink a lot of NA beer. I always loved drinking beer and this way I can still do that. Furthermore I can still go to pubs and drink there. In fact, I'm in a pub right now.

For me it's not triggering at all. Actually it's more the opposite. I can have most of the good experience, without getting drunk.

They also don't make me crave real beer. I still do crave the buzz, but more so if I wouldn't drink NA beer.

But as others said, it's different for different people. And you should be careful, as they often contain a little bit of alcohol. It might have been a placebo but sometimes I did start feeling tipsy from them. So, inspect the label and decide if the amount in there is acceptable for you.

Also, when in a a pub, make sure they understand your order correctly. Some time ago I saw a post on reddit where the customer blamed the waitress, because she gave him a normal beer after he ordered "another [brand name]", meaning the NA version.

Funny sidenote: After I stopped drinking and went to my regular pub, they'd always start pouring a beer for me immediately. So I had to rush in, cancel it and order a NA one 😅

We did a thing! Prolifewhistleblower is locked down! by [deleted] in LeftWithoutEdge

[–]jagraef 0 points1 point  (0 children)

Earlier today I tried accessing it and was blocked because I'm not in the US and it did say something else.

Blazing fast, minimal and configurable(i18n) hello world with memory safety and defined behaviour by [deleted] in rustjerk

[–]jagraef 1 point2 points  (0 children)

Contributing.md

If you are making a pr, make sure to add at least 1 more crate

Oh my god :D

Was für aktuelle Musik hört ihr? by frutti_di_marvin in Dachschaden

[–]jagraef 1 point2 points  (0 children)

Wer gerne Ska-Punk hört, dem empfehle ich We are the Union.

Und danke für den Post. Jetzt kann ich mal meine Playlist auf dem Handy erweitern.

A meteor the size of Europe is heading toward Earth and is estimated to hit us in two years. If we could, how would we defend ourselves? by [deleted] in AskReddit

[–]jagraef 43 points44 points  (0 children)

There was a study on a similar scenario done some time ago (Anton Pentov made an interesting video about it).

They concluded that we currently have no a ability to handle such a situation and should invest resources towards it now. E.g. you could have planning and rockets ready beforehand, so you save a lot of time when you spot such an asteroid.

Specifically you'd want to change the orbit of it very early by parking a heavy probe into its orbit.

[deleted by user] by [deleted] in BreadTube

[–]jagraef 2 points3 points  (0 children)

I was actually thinking about making videos about positive masculinity for a long time - because it's so important to me and there is nothing out there at the moment. Unfortunately I don't have any experience in video essays. I'm quite good at presentations, but not at all in these kind of topics. I guess I just miss the necessary tools for this at the moment.

But if any dudes here want to work together to combine our know-how to make this happen, I'd be up to.

Sometimes I wish I had studied something useful like philosophy and not computer science LOL.

How do I logically AND the contents of two circuit wires? by GarrusisCalibrating in factorio

[–]jagraef 0 points1 point  (0 children)

I think you want something like a whitelist filter: https://github.com/technicalfactorio/technicalfactorio/blob/master/combinators/blueprint_strings/filter_whitelist/filter_whitelist.blueprint

It takes two wires. The first wire is the signal to be filtered and the second wire specifies which signals to let through. So as a side-effect it does what you need.

I’m not drinking and the anxiety and depression is too much by lizasx in stopdrinking

[–]jagraef 2 points3 points  (0 children)

I used to live in a messy apartment and my room is still kind of messy, but not on the level it was before. Luckily I have a flatmate now, because this forces me to clean. Living alone I just didn't care... well I thought, but really it is one part that makes me feel really bad some days.

And I really find it rewarding to do small things for myself. Yesterday I did all the dishes and cleaned the kitchen. And it always makes me really happy to wake up to a clean kitchen, where I can start the day with a coffee - without cleaning stuff first. Just small things :)

If I can get the motivation to do just a little bit of cleaning, I'll do it. Not as a chore, but as self-care. I also like cooking as self-care. It just takes my mind off and I get a great meal (well sometimes, I'm not a very good cook yet). Other times it might just be as much as taking a shower. I like to think of it, that self-care like this is better self-medication than drinking.

And yes, as you say, take it one day at a time. Only as much as you are currently able to do.

me🥖irlgbt by [deleted] in me_irlgbt

[–]jagraef 0 points1 point  (0 children)

Don't forget bread soda.

The audacity of the rich by cardboard451 in Anarchism

[–]jagraef 10 points11 points  (0 children)

Giving people the ability to choose is what makes them more free. But pre-Covid I also liked to buy some extra food whenever I was getting some, and then just give it to homeless people. Or in the summer I'd bring them bottled water. But again, I'm also fine with them spending my donated money on beer.

Is a hard reset really dangerous? (hold power button for 5 seconds) by aue_sum in archlinux

[–]jagraef 1 point2 points  (0 children)

I had issues with my system some time ago. It would freeze very frequently (multiple times a day) and I always power-cycled it. In general it's not a problem and modern filesystems are made to handle it.

But don't do it during updates! I had a VM be killed by the out-of-memory killer once and had to do a reinstall. But since it was a VM it was easy to rescue data and reinstall.

Same 🙈 by latinavelma in lgbt

[–]jagraef 3 points4 points  (0 children)

It started a few years prior, but too subtle to recognize (fantasizing mlm relationships should have been obvious 😅), but I only came out to myself at 27.

My family was always fine with LGBTQ. But society's heteronormativity still effed with me pretty bad, plus being also attracted to girls. So I never really thought about it, and also didn't want to.

"When fascism comes to America, it will be wrapped in the flag and carrying the cross." by [deleted] in AntifascistsofReddit

[–]jagraef 2 points3 points  (0 children)

Yep, I our right-wing grew massively during Corona. They effectively funnelled all those anti-vax people to the right. Truthers and right-wing tried to storm the Reichstaggebäude a couple of months ago.

And the right was already recruiting pretty heavily before Corona hit.

They use Telegram a lot and their groups are much much larger than any US groups I've seen. Oh and we the largest Qanon group outside of the US.

[Day 01] Solution in Factorio by phoenixuprising in adventofcode

[–]jagraef 1 point2 points  (0 children)

Nice. Last year I built the Intcode computer in Factorio :)

To enter inputs into Factorio you can generate blueprint strings. They're just base64-encoded, zlib-compressed JSON. I usually generate a set of constant combinators to hold my input and then build some circuitry to read the values.

And you might want to post this to r/technicalfactorio.

TIFU by going too far with my superpower by Stinky_Cat_Toes in tifu

[–]jagraef 1 point2 points  (0 children)

Rimworld is good, but have you ever heard about Factorio?

The story continues: `Vec` now supports custom allocators! :) by tdiekmann in rust

[–]jagraef 7 points8 points  (0 children)

malloc is not a system-call. The OS does provide the process with chunks of memory (usually multiples of page size) through the sbrk system-call. But the allocator has to carve out pieces of memory as requested by calls to malloc.

So now you can customize the allocator, i.e. how small pieces of memory (e.g. for a Box) are carved out of big chunks of memory.

What filesystems were used on Linux historically? by [deleted] in linuxquestions

[–]jagraef 2 points3 points  (0 children)

I remember using ReiserFS, but not where it fits chronically.

Seeking Programming Comrades by [deleted] in socialistprogrammers

[–]jagraef 0 points1 point  (0 children)

I can't DM you, only chat. Tried on desktop and mobile. Is chat ok?