๐Ÿ’พ Archived View for iich.space โ€บ prog โ€บ threads โ€บ 111 captured on 2021-12-17 at 13:26:06. Gemini links have been rewritten to link to archived content

View Raw

More Information

โฌ…๏ธ Previous capture (2021-12-05)

โžก๏ธ Next capture (2022-01-08)

-=-=-=-=-=-=-

โ™Š๏ธŽch /prog/

Programming & Technology

Return

Anonymous ยท 3mo ยท No.111

are you learning or working on anything interesting?

Anonymous ยท 3mo ยท No.112

i've been trying to make a mush using an ecs pattern. i've read a bit through tinymush's code and it identifies everything as an object that has a type, but i was wondering how it could work where types and capabilities are applied to objects in the abstract.

something i've been struggling with whether it is a good strategy is for instance around movement. it becomes really, really convoluted but it really does break down everything into very decoupled parts of code.

Anonymous ยท 3mo ยท No.113

as an example if a player says "move north" a command component is added for the entity associated with the player.

the command system runs each tick sees a new command component to "move" an entity, checks if that entity has a location component and, if there is a "north" exit entity in its location, puts in a movement component for that entity.

the movement system then changes the entity's location component but adds an event component as a side effect saying "moved from A to B"

the event system uses this to tell the entities in "A" that it moved out of the location, and "B" that it moved into the location and adds message components

the message system sends text backto the player

Anonymous ยท 3mo ยท No.114

an alternative i can think of is to have the systems be called directly as an entity but i never got around to that. i haven't tried unity or unreal out yet, but does anyone have experience with ecs in game engines like them? (as an aside i read that unity is trying to patent the ecs pattern which is absolutely bonkers)

andrew!z8MmXsU4 ยท 3mo ยท No.136

I am slowly writing my own client for Gemini. It's in Haskell, uses my favourite effects system (Polysemy), and probably will look like diohsc (https://repo.or.cz/diohsc.git). I loved ideas behind diohsc, but the code is messy, and I couldn't add my features to it. Hopefully, I will succeed in making mine modular and extensible.

I'll probably name my client Jotaro or smth :))))

https://repo.or.cz/diohsc.git

Anonymous ยท 3mo ยท No.138

Building a little handheld Raspi computer from components and a 3d printed case. It's been done before, but it's helping me learn CAD and get more comfortable with electronics. And I get a neat little computer out of it.

Anonymous ยท 3mo ยท No.141

@136

โ€‹> jotaro client

that's fantastic

Anonymous ยท 3mo ยท No.152

@136 people who grok haskell to me are always intimidatingly smart. i took a brief intro course to it and could do a few basic algorithm exercises but i never became confident enough in it to try personal projects. and what a fantastic name

@138 rpi projects are always fun, i have a couple filling a few roles around the house. are you a whole handheld rpi kit with touchscreen/etc? and do you have your own printer?

Anonymous ยท 3mo ยท No.159

@152 yes and yes on the pi

Post a reply