rchiodo / wasm_node_test

test code for trying out wasm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Working on

--js-library with socket_file.js to try and replace socket io with writing/reading from a file

Build like this:

cd socket_server_c
emcc --js-library socket_file.js server.c -o server.js -s EXIT_RUNTIME
cd ..

Run like this:

node ./socket_server_c/server_main.js

server_main.js should load the server.js into a worker and handle the socket requests.

Next steps

Step 1

Modify CPython.js after it's built. Not sure if this is doable, have to replace the sockets.

Step 2

Do this with CPython build (without dlo) Debug a test file. Need an extension to implement debug adapter server that spawns the CPython.js as a worker, loading debugpy inside of it.

About

test code for trying out wasm

License:MIT License


Languages

Language:JavaScript 58.2%Language:WebAssembly 36.4%Language:HTML 4.2%Language:Python 0.6%Language:C 0.6%Language:Batchfile 0.0%