3 ms·
None of those resemble imperative programming though. Imperative programming would be like instead of having your factorio factory, having 1-32 employees runni
by Ericson2314 6y ago
None of those resemble imperative programming though.
Imperative programming would be like instead of having your factorio factory, having 1-32 employees running around at ludicrously fast speeds doing all the work trying not to crash into each other.
- Ericson2314 6y agoAnd microservices is more like normal Factorio, but spending a bunch of time designing all the building blocks a few redundant ways, and then getting really drunk and blindfolded before placing them on the map. And then having your equally drunk and blindfolded factory reliability engineers fight off the swarming bugs.
- falcolas 6y agoWhich is, funnily enough, roughly how it's programmed. Each entity has a state, time is advanced, and the threads run through their queue of entities and update their state, along with the state of connected entities. Since some entities interact directly with other entities (such as two fluid pipe segments), these queues are ordered (so the fluid movement and pressure calculations make sense). For example, a belt would advance the items on it 1/60th of its speed. Inserters would look to see if there's room in the destination, if there are items within their reach on the belt, and start moving to pick them up. Assemblers would check to see if they're currently building something, if they're full (the quantity that determines "full" is based on whether there's an outgoing inserter attached), if they have the necessary ingredients in their incoming buffer, and start incrementing the creation timer. The outgoing inserter would check for items in the assembler's output, grab them, and so forth.
- Ericson2314 6y agoSee, Factorio should be implemented by reflashing an FPGA every time one places a new structure :D
- elihu 6y agoThat's basically what you get in Factorio with logistics bots. They fly around grabbing things out of boxes and putting them in other boxes, according to what's being "requested" and "provided" on their logistics network. (They don't crash into each other. That would be an amusing mod.)
- Ericson2314 6y agoI do think that Amazon being more interested in delivery drones than society is interested in the revival of large scale pneumatic tube networks says something deep about us.