An iroh powered smart fan

(iroh.computer)

26 points | by surprisetalk 3 days ago

2 comments

  • skybrian 4 minutes ago
    It's unclear to me why they needed to compile Rust to WebAssembly to write a website. It looks like iroh has a JavaScript API:

    https://docs.iroh.computer/languages/javascript

  • shermantanktop 13 minutes ago
    This is interesting as an example of just how complicated and elaborate a toolchain you can use to build something dead simple.

    There’s a lot that comes for free by adding all these libraries and crates and steps. But from what I can tell it comes down to:

    let _ = if fan_on { fan.set_high() } else { fan.set_low() };