News for hackers. Stuff that matters.
Re:Show HN: Coi – A language that compiles to WASM, beats Re... by doublerabbit on Saturday January 24, 2026 @09:28AM (#46743838)
COI compiles on FreeBSD but the example app didn't.

   Fatal error: 'stdint.h' file not found
Yet exists within /usr/include

Not a rant, but developers, please include testing on FreeBSD. Git issue raised.

Re:Show HN: Coi – A language that compiles to WASM, beats Re... by io_eric on Saturday January 24, 2026 @09:52AM (#46744064)
Fixed! The issue was specific to FreeBSD's clang setup. When compiling with --target=wasm32 and -nostdlib, clang on Linux/macOS still finds minimal freestanding headers for the wasm32 target, but FreeBSD's clang doesn't have these configured by default - even though stdint.h exists, it's not in the search path for cross-compilation targets.

The fix was adding freestanding stdint.h and stddef.h to webcc's compat layer using compiler built-ins (__SIZE_TYPE__, etc.). This makes webcc work consistently across all platforms without relying on platform-specific clang configurations.

I hope it works now for you - hit me up if there are still problems!

Re:Show HN: Coi – A language that compiles to WASM, beats Re... by doublerabbit on Saturday January 24, 2026 @11:14AM (#46744799)
Can confirmed fixed. tyvm!