Live data from Hacker News

Swarm: A resource-gathering game based on robot programming, written in Haskell

github.com

21–27 of 27 posts

Re: Swarm: A resource-gathering game based on robot programming, written in Haskell

#21

Oo this looks really cool! I'm bookmarking this for the future. I don't know that I'll have time to do anything with it any time soon, but looks really interesting. I wish there were more "play games while programming" projects. Only thing is that they all seem to be too low level, whereas I want to be able to write logic like: "when you have instead of having to program my own pathfinding logic or whatever.

> I wish there were more "play games while programming" projects

I'm working on just such a project right now:

https://bryanpg.com/games/pragma_twice

Periodically check that page (or follow the Twitter) for a playable demo sometime in the next few months.

Re: Swarm: A resource-gathering game based on robot programming, written in Haskell

#23
post #18

How is the compile time? I like Haskell's succinctness, but I was a bit shocked when I needed to compile Haskell IDE Engine (HIE) and had to wait almost 2 hours... That's when I thought, I'll just complete these university courses and see if I bother afterwards.

On a Thinkpad X270, 14m8s from I typed `stack build` in a fresh clone. I had the GHC version, but almost no libraries from that snapshot, so it had to compile a bunch of dependencies. I then tried a fresh clone and `stack build` again and that just took 1m15. Guess this is why people use things like cachix :-)

Re: Swarm: A resource-gathering game based on robot programming, written in Haskell

#24
post #18

How is the compile time? I like Haskell's succinctness, but I was a bit shocked when I needed to compile Haskell IDE Engine (HIE) and had to wait almost 2 hours... That's when I thought, I'll just complete these university courses and see if I bother afterwards.

Haskell does take a long time to compile from scratch, but once you compile once, it is much much faster. The annoying bit comes when you end up changing something which means a lot of other things end up needing to be recompiled, but there are ways to mitigate that, and overall I think haskell is very worth the tradeoff.

I often think about "what would replace haskell?" though and ponder it, and I do think that most likely one feature will be a faster compiler (though I don't really know how possible that is to maintain feature parity).

Re: Swarm: A resource-gathering game based on robot programming, written in Haskell

#25
post #14

Oo this looks really cool! I'm bookmarking this for the future. I don't know that I'll have time to do anything with it any time soon, but looks really interesting. I wish there were more "play games while programming" projects. Only thing is that they all seem to be too low level, whereas I want to be able to write logic like: "when you have instead of having to program my own pathfinding logic or whatever.

Interesting, I didn't think there was much demand for games like this. I'm putting together a few things in this space, would you be interested in a programming resources management game?

I mean, i baiscally want to play like Age of Empires II but script logic for units as well.

edit: I should also add that it maybe depends what you're taklintg about; one thing i'd like to do is be able to play an actual normal game, but offload some of the menial tasks to scirpts. so some manual control, but I can write logic to make it less tedious.

Re: Swarm: A resource-gathering game based on robot programming, written in Haskell

#26
post #5

Oo this looks really cool! I'm bookmarking this for the future. I don't know that I'll have time to do anything with it any time soon, but looks really interesting. I wish there were more "play games while programming" projects. Only thing is that they all seem to be too low level, whereas I want to be able to write logic like: "when you have instead of having to program my own pathfinding logic or whatever.

I highly recommend Bit Burner ( https://danielyxie.github.io/bitburner/ ). It's an idle/incremental game with a focus on automating things with javascript. Heck of a lot of fun, imo.

Nice, bookmarking!

Re: Swarm: A resource-gathering game based on robot programming, written in Haskell

#27
post #21

Oo this looks really cool! I'm bookmarking this for the future. I don't know that I'll have time to do anything with it any time soon, but looks really interesting. I wish there were more "play games while programming" projects. Only thing is that they all seem to be too low level, whereas I want to be able to write logic like: "when you have instead of having to program my own pathfinding logic or whatever.

> I wish there were more "play games while programming" projects I'm working on just such a project right now: https://bryanpg.com/games/pragma_twice Periodically check that page (or follow the Twitter) for a playable demo sometime in the next few months.

Followed you on twitter (:
Post reply on HN