Skip to content

About

A runtime for writing reliable asynchronous applications with C++. Provides I/O, networking, scheduling, timers, ...

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

Nodepp-WASM: An Asynchronous Runtime for C++ ( WASM )

MIT License Platform Valgrind Memory Test

Nodepp is an asynchronous C++ runtime that unifies application development under a single syntax, a single codebase, and a single execution model. It starts from a simple premise: you don't need a different language for every layer of your application. The same code that runs on a Linux server can run in a browser via WASM, on an ESP32, or on an Arduino Nano — without changes.

The inspiration doesn't come from a modern framework, but from Doom. Doom wasn't revolutionary for its graphics, but for its portability: it ran on hardware nobody imagined because its design didn't depend on a specific platform. That same philosophy guided Nodepp — a runtime so universal it runs on anything with a C++11 compiler, from 2KB of RAM to 64 cores. It's not a framework tied to an ecosystem. It's a runtime that adapts to the hardware, not the other way around.

Most runtimes grow until they can't be understood. Nodepp went the other direction. ~3,800 lines for the entire core. 2KB for the binary. 0% CPU when idle. No STL, no exceptions, no RTTI — not because they're bad, but because they aren't necessary. The result is a runtime small enough to fit on any controller and simple enough to audit completely. Nothing to trust. Nothing to hide.

Featured Projects

Enigma Machine - Arduino Nano: A fully functional Enigma machine running on 2KB of RAM.

ezgif-7f4dec232396a556.mp4

Spacesus.io: Fullstack P2P multiplayer game built on Nodepp, WebRTC, and Raylib.

out.mp4

Quick Start

#include <nodepp/nodepp.h>

using namespace nodepp;

void onMain(){ 

    auto addr = process::invoke([=]( any_t raw ){
        console::log( "hello world!" );
    return 1; });
    
    EM_EVAL( R"(
        document.querySelector('body').innerHTML=`
        <button onclick="Module.__call__('${0}',undefined);" > click </button>
        `; // console.log('hello world!');    
    )", addr );

    process::add( coroutine::add( COROUTINE(){
    coBegin

        while( true ){
            console::log( ">>", process::now() );
        coDelay(1000); }

    coFinish
    }));

}

License

MIT. Use it anywhere.

About

A runtime for writing reliable asynchronous applications with C++. Provides I/O, networking, scheduling, timers, ...

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages