HNHacker News
TopNewBestAskShowJobs

caspar

246 karma · joined May 25, 2012

https://asparck.com

Solo game dev @ https://slowrush.dev

Building Signs of Danger, an online & local multiplayer Noita-like roguelite set in a falling sand world.

submissionscomments
caspar··on Why Nextcloud feels slow to use
Been using syncthing with keepass(X/XC) for probably half a decade now and it works great, especially since KeepassXC has a great built-in merge feature for the rare cases that you get conflicts from modifying your vault on different clients before they sync.

The only major point of friction with syncthing is that you should designate one almost-always-on device as "introducer" for every single one of your devices, so that it will tell all your devices whenever it learns about a new device. Otherwise whenever you gain a device (or reinstall etc) then you have to go to N devices to add your new device there.

Oh, and you can't use syncthing to replicate things between two dirs on the same computer - which isn't a big deal for the keepass usecase and arguably is more of a rsync+cron task anyway but good to be aware of.

caspar··on Dithering – Part 1
> Dithering means fading away the banding that occurs when the palette (or the apparent palette achieved via halftone) isn't large enough to avoid banding on its own.

Here[0] is a good summary of dithering/noise to reduce color banding. Interestingly, for my game[1] I found that Valve's animated dithering technique (which uses variation over time in lieu of a fixed noise pattern) worked best, as the other techniques described there altered the perceived lightness of the resulting image.

[0]: https://blog.frost.kiwi/GLSL-noise-and-radial-gradient/

[1]: A multiplayer Noita-like (more at https://slowrush.dev), where the radiance-cascades-powered lighting tends to cause obvious banding patterns on really dark backgrounds.

caspar··on Jujutsu for everyone
Another major caveat is that JJ doesn't work with Git LFS yet - though some progress is being made: https://github.com/jj-vcs/jj/issues/80
caspar··on Code review can be better
If you are used to PRs taking days (or over a week!) to merge, then I've found it's way faster to get someone to sit down and walk them through the code - which is not miles different from what's being proposed here.
caspar··on Code review can be better
Stash was not an acquisition. Stash was built from the ground up inside Atlassian during its golden age, by a bunch of engineers who really cared about performance. Though it helped that they didn't have Jira's 'problem' of having 8 figures of revenue hanging off a terrible database schema designed a decade ago.

You might be thinking of Fisheye/Crucible, which were acquisitions, and suffered the traditional fate of being sidelined.

(You are 100% correct that Stash/Bitbucket Server has also been sidelined, but that has everything to do with their cloud SaaS model generating more revenue than selling self-hosted licenses. The last time I used it circa 2024, it was still way faster than Bitbucket Cloud though.)

Source: worked at Atlassian for a long time but left a few years ago.

caspar··on Upgrading an M4 Pro Mac mini's storage for half the price
GP suggested 200k over 4 years, which is pretty reasonable.
caspar··on Fun with uv and PEP 723
Last time I checked,[0] this works great - as long as you don't particularly care which specific versions of imagemagick or cowsay you want.

If you do care, then welcome to learning about niv, flakes, etc.

[0]: admittedly 3 years ago or so.

caspar··on Rust’s dependencies are starting to worry me
To add to this, in the gamedev space there are a bunch of middleware libraries that are commonly paid for: fmod/wwise, multiplayer networking sdks, etc.
caspar··on Show HN: Factorio Blueprint Visualizer
A mod such as Bottleneck Lite[0], plus your eyeballs :)

[0]: https://mods.factorio.com/mod/BottleneckLite

caspar··on SDL3 new GPU API merged
AFAICT, if you don't want to use it then you don't have to - just like you didn't have to use SDL_render in SDL2. That is what was pitched by maintainer Ryan Gordon[0][1] at least.

[0]: https://github.com/libsdl-org/SDL_shader_tools/blob/main/doc... , though the approach that ended up getting merged was an initially-competing approach implemented by FNA folks instead and they seem to have made some different decisions than what was outlined in that markdown doc.

caspar··on SDL3 new GPU API merged
Ah, I managed to dig up the original announcement post[0]; relevant snippet:

> But this is terrible advice in 2021, because OpenGL, for all intents and purposes, is a deprecated API. It still works, it's still got some reasonably modern features, but even if you add up the 22 years Microsoft spent trying to kill it with Apple's seven-or-maybe-twenty, it doesn't change the fact that the brains behind OpenGL would rather you migrate to Vulkan, which is also terrible advice.

> It seems bonkers to tell people "write these three lines of code to make a window, and then 2000 more to clear it," but that's the migration funnel--and meat grinder--that SDL users are eventually going to get shoved into, and that's unacceptable to me.

[0]: https://www.patreon.com/posts/new-project-top-58563886

caspar··on SDL3 new GPU API merged
If you only want to support Windows/Linux/Android, then sure, you can definitely argue that the SDL GPU API is bloat.

But if you want to support Apple's operating systems then you're stuck with OpenGL 4.1 (officially deprecated by Apple 5 years ago) - so no modern GPU features like compute shaders.

You can go the Vulkan route and use MoltenVK for Apple systems, but Vulkan is quite a step up in complexity from OpenGL ("1000 lines of code for a triangle" as people like to say). The goal for SDL3's GPU API is to give you a more approachable (but still plenty flexible) alternative to that.

And similar story for consoles, presumably.

Apparently lots of people asked for "SDL_render but can you add shader support that works for all platforms", so that's the origin story.

SDL3 does also add a higher level audio API - I don't know much about its merits.

caspar··on SDL3 new GPU API merged
SDL3 is still in preview, but the new GPU API is now merged into the main branch while SDL3 maintainers apply some final tweaks.

As far as I understand: the new GPU API is notable because it should allow writing graphics code & shaders once and have it all work cross-platform (including on consoles) with minimal hassle - and previously that required Unity or Unreal, or your own custom solution.

WebGPU/WGSL is a similar "cross-platform graphics stack" effort but as far as I know nobody has written console backends for it. (Meanwhile the SDL3 GPU API currently doesn't seem to support WebGPU as a backend.)

caspar··on Celebrating 6 years since Valve announced Steam Play Proton for Linux
See also https://justine.lol/ape.html
caspar··on Show HN: Free e-book about WebGPU Programming
> looks to be cpu bound.

Apparently "Bevy's rendering stack is often CPU-bound"[0], so that would make sense.

To be fair that quote is somewhat out of context, but it was an easy official source to quote and I've heard the same claim repeated elsewhere too. (I'm not a Bevy user but am using Rust for fulltime indie game dev, so discount this comment appropriately.)

[0]: https://bevyengine.org/news/bevy-0-14/#gpu-frustum-culling

caspar··on Dioxus 0.5: Web, Desktop, Mobile Apps in Rust
> Oh, and we're committed to the bevy integration. bevy_dioxus is already updated for 0.5 and we share corporate sponsors with the bevy folks.

Silly question, but where can I see the updated bevy integration?

It looks like https://crates.io/crates/bevy_dioxus/ is still using dioxus 0.2 and bevy 0.7 - both of which are quite old. Does your official bevy integration have some other name?

caspar··on If you're interested in eye-tracking, I'm interested in funding you
As someone who suffered some severe mobility impairment a few years ago and relied extensively on eye tracking for just over a year, https://precisiongazemouse.org/ (Windows) and https://talonvoice.com/ (multiplatform) are great. In my experience the hardware is already surprisingly good, in that you get accuracy to within an inch or half an inch depending on your training. Rather, it's all about the UX wrapped around it, as a few other comments have raised.

IMO Talon wins* for that by supporting voice recognition and mouth noises (think lip popping), which are less fatiguing than one-eye blinks for common actions like clicking. The creator is active here sometimes.

(* An alternative is to roll your own sort of thing with https://github.com/dictation-toolbox/dragonfly and other tools as I did, but it's a lot more effort)

caspar··on I don’t want to sign up for your newsletter (2018)
In Firefox, you can go to Settings >> Fonts >> Advanced >> Untick "Allow pages to choose their own fonts, instead of your selections above", then you'll never have this problem again (though you sometimes will end up with others, such as icon-fonts not rendering as icons, and missing out on meta-discussions around poor font choices).
caspar··on WebGPU Fundamentals
That's basically ChromeOS, right? Some people seem to use it.
caspar··on Vimium – A browser extension that provides Vim-style keyboard controls
Modeless Keyboard Navigation[0] is a fork of Vimium by an RSI sufferer that doesn't have the mode switching element (but does keep all the other actual features); instead you use Control/Alt + whatever key combinations. Basically it's like Link Hints but with more shortcuts.

0: https://handsfreecoding.org/2017/11/22/extensions-now-availa...

caspar··on Atlassian is 20 years old and unprofitable
> That works great, until you write markdown and paste in into Confluence. Instead of just accepting markdown and formatting it in the same way it does when you type markdown, Confluence puts it between code tags..

If you are in the new editor for Confluence Cloud (i.e. the editor based on ProseMirror rather than TinyMCE), you can sometimes get it to do "the right thing" of converting pasted markdown to formatted text by copying from a different text editor. For example, for me copying from windows notepad always does the right thing, but copying from vscode doesn't.

caspar··on Ask HN: What game do you wish existed?
Any couch co-op game should do this - local multiplayer for up to 4 people is a great way to connect. Forced, Broforce, Gauntlet, Streets of Rogue, Overcooked 1/2, Ultimate Chicken Horse, Speedrunners, Unrailed, Guns Gore & Cannoli, Gang Beasts, etc.

Search for games supporting local multiplayer in steam, then look them up on https://www.co-optimus.com/ to see how many players they support.

caspar··on Ask HN: What game do you wish existed?
See also Grim Dawn, Noita, OpenTTD - basically look for indie studios.
caspar··on Ask HN: What game do you wish existed?
#1 reminds me of Totally Accurate Battle Simulator[0]; it doesn't have skill trees or a meaningful campaign, but does let you spawn a ridiculous selection of units, possess them, etc.

0: https://store.steampowered.com/app/508440/Totally_Accurate_B...

caspar··on Show HN: BookStack – An open source wiki platform and alternative to Confluence
Also an Atlassian here. For anyone wondering, we tend to use Confluence for planning, decisions, team process, tech specs, etc but use an internal view of DAC[0] for code docs. Think Hugo[1] crossed with redoc[2] with a dash of GraphQL support.

Unfortunately the docs-in-repo + PRs-for-updates approach has way more friction for drive-by-corrections/commentary/Q&A from people not on the team, so it's not a holy grail either.

    [0]: https://developer.atlassian.com/cloud/
    [1]: https://gohugo.io
    [2]: https://github.com/Redocly/redoc
caspar··on A routine gem update ended up creating $73k worth of subscriptions
Exactly, https://github.com/thoughtbot/fake_stripe works well enough for this sort of thing.
caspar··on Ask HN: Who wants to collaborate?
Unfortunately Dragon development has mostly stalled for the last 5 years (Dragon 15 was a leap forward but that was quite some time ago now).

You can still make use of it via Dragonfly (see also Caster[0]) as mentioned by a sibling comment or by using Talon[1] or Vocola.

Having used a computer 90% hands free for about a year and a half back in 2019, I chose Dragonfly then, but would probably choose Talon nowadays - less futsing about and it has alternative speech engine options.

I also recommend looking into eye tracking: the Tobii gaming products[2] work well for general computer mousing with some software like Talon or Precision Gaze[3] - well enough for me to make a hands free mod[4] for Factorio, for example.

[0]: https://github.com/dictation-toolbox/Caster [1]: https://talonvoice.com/ [2]: https://gaming.tobii.com/product/eye-tracker-5/ [3]: https://precisiongazemouse.org/ [4]: https://github.com/caspark/factorio-a11y

caspar··on Show HN: I built a no-BS recipe search engine
You may be interested in this analysis on various recipe formats, along with the proposed "RxOL" notation for explicitly expressing recipes as such a tree based structure[0].

Personally I find RxOL hard to read & edit though, so I have been thinking about whether it would be doable able to infer such tree structures from CookLang's more readable recipe format[1][2].

Ingredients and times are already marked, so surely verbs & follow up mentions of ingredients can be extracted from the text without further annotation? Haven't tried doing it yet though.

[0] http://diyhpl.us/~bryan/papers2/CompCook.html

[1] https://cooklang.org/

[2] https://news.ycombinator.com/item?id=28997309

caspar··on Spintronics: Build Mechanical Circuits
This is actually explained on the Kickstarter ("The Making of Spintronics" section).
caspar··on Prisma – ORM for Node.js and TypeScript
Perhaps you already have ideas on how to solve for this situation, but in case it helps: forcing active record model accesses to go via a layer of indirection can help with untangling this sort of thing: https://kellysutton.com/2019/10/29/taming-large-rails-codeba...

That said, for microservice extraction specifically, a bit of creative metaprogramming/monkey patching of AR to identify & categorize your callers is probably easier.

← PreviousPage 2 of 4Next →