Show newer

@reidrac@social.sdf.org writing parsers is a good way to understand the language. It trains a few things about composition, assembling code from smaller parts.

Type classes are Haskell's power tools of the trade (:
They encode many common patterns about types and make that distinct coding flow of "delegate this away and let me focus on my types here" (that you did with the Vector instance).

You can use the Typeclassopedia for an overview of what you can encounter in the wild and where they can be helpful. You don't have to remember everything, just the names of the things and maybe the context where you may encounter them.

The most important are Semigroup/Monoid, Functor/Applicative/Monad, and Functor/Foldable/Traversable. Recently dual-variable classes like Bifunctor are starting to get prominence too.

wiki.haskell.org/Typeclassoped

Awww yisss! Everything* I wanted feature-wise from this tileset:
- Map declared in Multicolor SDF (lava is the base layer, everything else is boolean'd together)
- 4-corner Wang tiles extracted from TileSetter project (no, I didn't do those 96 tiles by hand) (package pending)
- Per-tile attributes in the "free" vec4 slot. Here - tile speed (also used for passability).
- A* path-finding with per-tile travel costs (the truck on the screenshot prefers flat terrain as ridges are slow to crawl).

* I have unused alternative biome tiles... to spice up the landscape 😏

Reading Wikipedia resulted in a slightly different path-finding algorithm than intended.

Behold: A-A-A-A-A*!

(At least it doesn't jump straight into lava.)

@boilingsteam Should we switch to GNU mice, keyboards, and webcams?

1980: Information wants to be free.
2030: Information wants to be *me* (Eschaton voice).

@reidrac@social.sdf.org Hear, hear. This one would be the first, and perhaps the last, for me that I can fully commit to.

A robust alternative to 2FA has to take into account three super common scenarios:

- you are in a foreign city and have been mugged, your wallet and phone have been stolen from you

- you have dropped your keys down the drain

- you are homeless, your phone has just died, and your only computer is a public access library computer running Internet Explorer 6. you are not able to afford a monthly subscription to Bitwarden

@reidrac@social.sdf.org It is almost the time to get really *roasted* ! :blobcathyper:

@raccoonformality@mastodon.gamedev.place Godot q:

The floor and lava

(There are some kinky borders. Most likely the fix would end up involving a rewrite of the quad-tree structure or something like that.)

Adventures in the BitIndexLand

With no wang-compatible tileset at hand, the tiles are indices themselves.

@mike So, the push into more recent PCIe versions makes sense. If you can't have bandwidth for 2x16, you can achive that on 2x8 and double the base lane speed 🤔

OTOH it may be more efficient to put up a dedicated box that will have all the available BW for itself.

@boilingsteam Neat. I'm glad I haven't bought version ~~1~~ 0 stuff.

Show older
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.