Re: Sync API for workers

> * Enable compiling code that was written for other platforms to the
> web. Specifically where such code uses synchronous APIs, but where we
> for good reasons have chosen not to expose synchronous counterparts in
> the web platform. The most obvious example here is synchronous
> filesystem access which is very commonly used in other platforms like
> posix and windows.
>
Synchronous APIs are easier to use since it's how things have been done
since decades ago, but I don't think they fit in a event-oriented
environment like Javascript, and more specially to some so time consuming
like filesystem and IO. I find it better to only develop asynchronous APIs
for this use cases. It would make sense to use synchronous APIs to help
porting current code for example from C/C++ to Javascript, but the required
POSIX-like APIs would be better developed as external libraries on top of
the asynchronous ones.

Received on Friday, 11 October 2013 19:25:01 UTC