Live data from Hacker News

Viewing profile — sunfish

sunfish

HN member
Joined
Wed, Apr 30, 2014, 2:58 PM UTC
HN karma
820
Public activity
114 items

About sunfish

https://hachyderm.io/@sunfish

Recent public activity

  1. comment
    Comment #36128181

    I work on WASI, and completely agree. A lot of things are not clearly documented right now, and we're working on fixing it.

  2. comment
    Comment #34339184

    That cleaner foundation is shared-nothing linking, capability-based security, virtualizable APIs, and more, and a WASI organized around things like streams as first-class types. Th…

  3. comment
    Comment #34318463

    It depends on what you mean by "at the bottom". If you mean at the bottom of the wasm, the the answer is, those won't be legacy APIs. The direction we're heading is to provide POSI…

  4. comment
    Comment #34309252

    Not yet, at least. But we're working on that :-).

  5. comment
    Comment #33958382

    In systems designed for it, communication channels can transmit handles without using a shared namespace or master list. An example of this in the real world is Unix-domain sockets…

  6. comment
    Comment #33832603

    It does, but that opens up much more powerful tools to work with. As an example of one such tool in practice, compare the task of "list all open file descriptors in an arbitrary Un…

  7. comment
    Comment #33831491

    Typing is nice, and when one is working within an existing system where environment variables are the main way for communicating data between parts of a system (which is many popul…

  8. comment
    Comment #33829976

    There are IPC mechanisms today which aren't just bytes. For example, the ability to send file descriptors over unix-domain sockets. Strings of bytes fundamentally can't do that. An…

  9. comment
    Comment #32035640

    I have a previous-generation Lemur Pro and suspend/resume on lid close/open works great.

  10. comment
    Comment #31813991

    Wasm is Turing-complete. What people typically mean by this is that in a browser context, compiling JS to Wasm does not currently make it run faster than just running the JS as JS.…

  11. comment
    Comment #30611828

    This is true, however if we modify the program to print a 4096-byte long string instead of just the "hello world" string, then it's not sufficient again. And of course, the number …

  12. comment
    Comment #29163663

    It's indeed possible! I and others are building a Rust version of this: https://github.com/sunfishcode/mustang It supports threads, filesystem, networking, and more! The library fo…

  13. comment
    Comment #28459133

    If there's community interest, there is a possible path where Mustang matures to the point where it makes sense to talk about how to incrementally migrate the parts that make sense…

  14. comment
    Comment #26782940

    First-class values are values which you can pass as arguments, return as return values, and hold in local variables. Values of type `File` or `TcpStream` are first-class in this se…

  15. comment
    Comment #24044508

    It does; the stack pointer starts out aligned, but then the function does a call, and the call instruction adjusts the stack pointer by 8 bytes to push the return address, which wo…

  16. comment
    Comment #24044253

    The compiler is using push and pop here just for their side effect of adjusting the stack pointer, to keep the stack pointer 16-byte aligned.

  17. comment
    Comment #22420172

    Good catch on that bug! I'll fix that. Beyond that, that file is just a simple example for showing how to work with the toolchain and the sandbox.

  18. comment
    Comment #22404115

    As context, at the time of those issues, the control-flow restrictions were a compromise to help get the "MVP" off the ground, with the understanding that "more expressive control …

  19. comment
    Comment #22403961

    Unfortunately, we don't actually have data which supports this. The only data that was collected at the time showed that if/else compress better than what wasm has without if/else.…

  20. comment
    Comment #22091077

    WASI has some unique goals around extending the WebAssembly sandboxing concepts into the API space using capability-based security, forming one of the key building blocks for nanop…

  21. comment
    Comment #21517028

    This is discussed in the blog post; see the discussion of "time protection".

  22. comment
    Comment #21516968

    Yes. We know that WebAssembly in its present form doesn't yet have all the functionality we'll want to make all this efficient, so we're active in many areas in the WebAssembly sta…

  23. comment
    Comment #21516861

    Wasmtime is being developed to be usable as just such an embedded runtime. We have some demos of this here: https://github.com/bytecodealliance/wasmtime-demos

  24. comment
    Comment #21516769

    It's not specifically referring to certification or process, it's more about software architecture. It's referring to how the core WebAssembly instruction set has no I/O instructio…

  25. comment
    Comment #20795077

    WebAssembly is expected to be around a long time, so it's not enough to just measure its speed today, because engines aren't very mature yet. As engines mature, it will likely get …