Better HN
topnewbestaskshowjobs
Log inSign up

rkaehn

57 karma · joined Jan 13, 2024 (2y ago) · 9 submissions

Submissions

1.

Show HN: JavaScript web apps with WASM layout and GPU rendering in 280 KB(github.com ↗)

46 points · by rkaehn · 3w ago · 23 comments

2.

Show HN: Ideas for building better cross-platform apps(github.com ↗)

1 points · by rkaehn · 3w ago · discuss

comment 2y ago · link · parent

Regarding the footnote about the temperature encoding: it seems to be Gray code

comment 2y ago · link · parent

The tasks themselves come from a pool and are reused automatically, so no call to `free` is needed there. As for the executor, destroying it is a bit involved, because you need to wait for the currently executed task to finish before joining the threads and releasing the resources. It is a feature I do want to work on in the future though.

comment 2y ago · link · parent

The library is an "stb-style" header-only library, so the header has two modes: when you define CR_TASK_IMPL, it includes the implementation (starting from line 20), otherwise it just includes declarations (the first 19 lines). The implementation should only be included in one translation unit, but the declarations can be included in multiple units.

6.

Show HN: Async tasks in 350 lines of C(github.com ↗)

146 points · by rkaehn · 2y ago · 52 comments