3 ms·
Is there a Factorio extension like "Scriptorio" that lets you put JSON on conveyor belts? With JavaScript or Lua function factories. Then you could pass the b-
by DonHopkins 3y ago
Is there a Factorio extension like "Scriptorio" that lets you put JSON on conveyor belts? With JavaScript or Lua function factories.
Then you could pass the b-trees themselves around with conveyor belts and inserters, as well as the objects to insert and search.
And write a recursive search function with a loop of conveyor belts running through factories, that just loops the tree around peeling off a level at a time until it hits the leaf, breaking the loop and outputting the result.
It's an interesting execution model, not standard JavaScript, more data flow. Should you allow "quantum tunneling" and "action at a distance" by allowing multiple references to the same underlying JSON objects from different conveyor belts / inserters / factories? That could be useful, but Factorio itself traditionally treats each physical item having a unique identity, so maybe it would be more "realistic" not to support multiple references. Or you can only make multiple references once you research "Quantum Tunneling JSON" technology, with the "JSON Reference Entangler Factory"!
- h2odragon 3y agoFactorio is extremely mod friendly If it doesn't exist you can probably wedge it in fairly easily. I suggest that it would be worth your time to give it a poke just to see what a thoroughly excellent example of software engineering they've made there.
- DonHopkins 3y agoOh I know, but normal Factorio is Programmer Crack, and going meta like that would be like Scarfacing Programmer Fentanyl for me! First I'd use it to implement an email reader, and then ... more Factorio mods! Then Terraform integration. https://en.wikipedia.org/wiki/Jamie_Zawinski#Zawinski's_Law https://en.wikipedia.org/wiki/Jamie_Zawinski#Zawinski's_Law
- h2odragon 3y agosteam tells me my play time is 2,779.2 hr i got bored / sane after the first 10k SPM base, ~1,200hr. then i got into making "me" mods.
- DonHopkins 3y agoI'm at 6,251.5 but I leave it running all night long. I used to play Factorio. I still do, but I used to, too. https://www.youtube.com/watch?v=VqHA5CIL0fg https://www.youtube.com/watch?v=VqHA5CIL0fg
- all2 3y agoWould you accidentally a scheme? Would you could you in a train? Would you could you with a plane? If you go that route, let me know when your emacs implementation is complete. I'll replace my OS with Factorio.