ereslibre

Joined 9 years ago

Karma
190
Submissions
30
Member since
Aug 16
Libre Software hacker and lover.

[ my public key: https://keybase.io/ereslibre; my proof: https://keybase.io/ereslibre/sigs/FiZN0EHHCwufYf5mSLt-LRGOqQDO8ixaaZmRtzdaQXc ]

View on Hacker News

Recent submissions

Comment · 1 year ago
TOP GIT is a community to share interesting open source projects! You can join the Telegram channel on your language to stay tuned and have some treats from time to time!
Comment · 3 years ago
In this article, we will introduce Wasm Workers Server and we will describe how it empowers developers. We will show you how you can swiftly start using Wasm Workers Server with Docker Desktop. You will understand what are the benefits of embracing this new technology, and you will be able to experiment with a few easy to run, practical examples.
Comment · 3 years ago
> I kind of like it because CGI is architecturally elegant, but what about performance implications? By default, the CGI is not the fastest thing on Earth.

(Wasm Labs dev here) We haven't yet measured performance in a meaningful way that we can use to compare, mainly because our PHP builds also have certain limitations mentioned in the article, such as not having OPcache available at PHP. It is however an iterative process, and we are interested in this, as well as we understand that it's interesting for the community.

> Every time a HTTP request arrives, a CGI process should be initialized over and over again wasting CPU time on BSS section / runtime library initialization. Does it work any differently when it comes to WASM?

It's a little different in Wasm, in the sense that there is no need to fork/exec (if talking about bare CGI). The PHP executable gets loaded into the runtime once (what will compile it from Wasm -> native ISA), and then for every request we create a Wasm execution context, and run the PHP Wasm module that interprets the PHP script.

Creating a Wasm execution context is certainly much lighter than a fully fledged fork/exec.

Comment · 3 years ago

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton