You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current implementation of fd_write in wasmer 0.3.0 is buffered when writing to stdout (fd 1). The fd_write WASI API is designed to be similar to the POSIX write/writev calls and those write unbuffered output to stdout. In wasmtime fd_write is unbuffered. In my specific case, this prevents fd_write from being used to print a prompt that doesn't have a newline.
Describe the bug
The current implementation of
fd_write
in wasmer 0.3.0 is buffered when writing to stdout (fd 1). The fd_write WASI API is designed to be similar to the POSIXwrite/writev
calls and those write unbuffered output to stdout. In wasmtimefd_write
is unbuffered. In my specific case, this preventsfd_write
from being used to print a prompt that doesn't have a newline.Steps to reproduce
The following wat code:
results in the following behavior:
Expected behavior
The prompt should be printed before the user input. Here is the correct behavior from wasmtime:
The text was updated successfully, but these errors were encountered: