Readit News logoReadit News
Savageman commented on Mise: Monorepo Tasks   github.com/jdx/mise/discu... · Posted by u/jdxcode
devnulled · 2 months ago
Taskfile is so much better. mise is what actually got me to start switching everything to Taskfile instead of Makefile as mise easily handles bootstrapping Taskfile and anything else you would need.

Had been using make for simple tasks for ~8 years and just got tired of how limiting it is.

Savageman · 2 months ago
Could you explain/share quickly how you combine mise and Taskfile?
Savageman commented on Which NPM package has the largest version number?   adamhl.dev/blog/largest-n... · Posted by u/genshii
dotancohen · 3 months ago
You might want to try a different storing strategy. 0.25 is above 0.4. These are, I believe, what are called in Unix flags "human numbers".
Savageman · 3 months ago
I understood the list is ordered by biggest number, aka 189 > 172 > 161 > 159 > 120
Savageman commented on Red Hat Technical Writing Style Guide   stylepedia.net/style/... · Posted by u/jumpocelot
PandaRider · 5 months ago
TLDR: which is better? it depends

RedHat's style guide is far more detailed and closer to a reference/explanation (i.e. going by Diátaxis definition).

Google's technical writing is shorter and closer to tutorial/how-to guide.

I recommend the Google's technical writing if you're a coder or a beginner. RedHat is for folks who already know they need this on first look.

Savageman · 5 months ago
Ok I phrased it badly with "better", I wanted to know how they compare.

Your answer is perfect, thank you!

Savageman commented on Red Hat Technical Writing Style Guide   stylepedia.net/style/... · Posted by u/jumpocelot
Savageman · 5 months ago
I didn't read the article yet. Does anyone know if it's better than the Google one here? [https://developers.google.com/tech-writing/overview]
Savageman commented on Marble Blast   marbleblast.vaniverse.io/... · Posted by u/sunday_serif
Savageman · 6 months ago
Is it normal that when I "turn" the camera stays still? Makes it quite unplayable for me (I tried both "Free camera" enabled/disabled, it didn't change anything)
Savageman commented on Graceful Shutdown in Go: Practical Patterns   victoriametrics.com/blog/... · Posted by u/mkl95
Savageman · 7 months ago
I wish it would talk about liveness too, I've see several times apps that use the same endpoint for liveness/readiness but it feels wrong.
Savageman commented on Docs – Open source alternative to Notion or Outline   github.com/suitenumerique... · Posted by u/maelito
sylvinus · 9 months ago
Hey. A few developers from the team are on HN and will be happy to answer any questions here!

We also made a small scratchpad you can use to test collaboration features, if it doesn't get too flooded :) https://docs.numerique.gouv.fr/docs/a3f0becc-f2b7-45be-a5e5-...

Savageman · 9 months ago
Really cool to be able to test this directly, thanks for setting it up.

I found something I would qualify as a bug: if you click on the right of any text, the cursor is placed at the beginning of the line, where I would expect to have it at the end.

Savageman commented on Wi-Fi Router at CES 2025 Has a Connectivity Radius of 9.9 Miles   yankodesign.com/2025/01/0... · Posted by u/danboarder
nubinetwork · a year ago
300mbps might be enough for 240p video, but that still sounds painfully slow.
Savageman · a year ago
I have 400Mbps at home, I can play online games with 50ms ping and watch 1080p on YouTube, it's enough for most people.
Savageman commented on Boardgame.io: an engine for creating turn-based games using JavaScript   github.com/boardgameio/bo... · Posted by u/freetonik
fleabitdev · a year ago
boardgame.io only runs game logic on the server, and it censors the State just before sending it to each client. This strategy makes the UI feel less responsive, but it keeps things simple.

The Swords and Ravens blog post recommends resolving actions on the client when they don't require secret information, but resolving other actions on the server. You'd also need to resolve actions on the server when they involve RNG.

Savageman · a year ago
Interesting, would you share the link of this post please?
Savageman commented on Boardgame.io: an engine for creating turn-based games using JavaScript   github.com/boardgameio/bo... · Posted by u/freetonik
fleabitdev · a year ago
This engine uses a Redux-like architecture. You have a State type (containing data like "the position of the black kingside rook") and a stream of in-game actions (like "knight to F3"). Each action is handled by a pure function which converts the current State to a new State. You can either transmit State deltas from the server to the client, or just transmit the actions themselves (https://longwelwind.net/blog/networking-turn-based-game/).

This design makes it easy to implement optimistic updates, rollback, replays, automated testing, and recovery after a disconnection. It's a surprisingly good fit for UI, too; you can render simple games as a React component which takes the current State as one of its props.

However, a stream of context-free actions can be a really inconvenient representation for some games. The rules of a board game are often like the control flow of a computer program: you'll see branching, iteration, local variables, function calls, structured concurrency, and sometimes even race conditions and reentrancy. When you try to represent all of this logic as a State object, you're basically maintaining a snapshot of a "call stack" as plain data, and manually resuming that "program" whenever you handle an action. It doesn't seem ideal.

I've been sketching a board game engine which would represent the game logic as normal code instead. It seems promising, but it really needs a couple of language features which don't exist in the mainstream yet, like serialisation of suspended async functions.

Savageman · a year ago
How does secret state fit in this? If you want each player hand to be secret, then each player has its own state?

u/Savageman

KarmaCake day114December 16, 2015View Original