Sunday, January 20, 2019

Node modules with Delphi and Free Pascal

chakracore-delphi now comes with NodeSample, a new sample console application showing (as of now very limited) support for Node modules. Included are:

The sample only shows how Node modules can be resolved and used in Delphi and Free Pascal applications. It doesn't implement Node's event loop or any of its internal modules or native bindings like path, fs or http; any scripts referencing them will - for now - raise an exception.

Tuesday, January 15, 2019

WebAssembly with Delphi and ChakraCore

chakracore-delphi now contains WasmSample, a new sample project using ChakraCore to load and run a WebAssembly module (in this case, an implementation of Conway's Game of Life).

It's based on Colin Eberhardt's blog post Writing WebAssembly By Hand (you can run the code in your browser here).