Proposal for porting D runtime to WebAssembly

Ola Fosheim Grøstad ola.fosheim.grostad at gmail.com
Mon Nov 25 13:28:17 UTC 2019


On Monday, 25 November 2019 at 12:52:46 UTC, Sebastiaan Koppe 
wrote:
> As an example, it is just a matter of time before a PaaS 
> provider fully embraces wasm.

This sounds interesting, I've been pondering about serverless 
FaaS (function as a service), where you basically (hopefully) get 
functions triggered by NoSQL database updates and not have to 
bother with your own webserver.

I see that CloudFlare has support for webassembly in their 
workers, but for Google Functions I only see Node10, but maybe 
they can run webassembly as well? I haven't found anything 
definitive on it though...

https://blog.cloudflare.com/webassembly-on-cloudflare-workers/
https://cloud.google.com/functions/docs/

> Instead of having docker containers you just compile to wasm, 
> which will be pretty small and can boot in (sub) milli-seconds 
> (plus they don't necessarily need a linux host kernel running 
> and can run it closer to the hypervisor.)

Yes, but the biggest potential I see is when you don't have to 
set up servers to process data.

Just throw the data into the distributed database, which triggers 
a Function that updates other parts of the database and then 
triggers another function that push the resulting PDF (or 
whatever) to a service that serves the files directly (i.e. 
cached close to the user like CloudFlare).

Seems like it could be less hassle, but not sure if will catch on 
or fizzle out... I think I'll wait and see what happens. :-)



More information about the Digitalmars-d-announce mailing list