百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
N

nodepp

> 编程语言
开源

用 C++ 编写可靠的异步应用程序的运行时库。提供 I/O、网络、调度、定时器等功能。

197 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

用 C++ 编写可靠的异步应用程序的运行时库。提供 I/O、网络、调度、定时器等功能。

Nodepp: The Unified Asynchronous Real-Time C++ Runtime

Nodepp is the end of excuses. For too long, developers have settled for fragmented glue-ware or managed runtimes that treat hardware resources like garbage. Nodepp is a vertically-integrated C++ framework that proves you don't need a massive Virtual Machine or a bloated Garbage Collector to write high-level async code.

While others are busy masturbating the CPU — burning millions of cycles on garbage collection, context switching, and runtime management — Nodepp focuses on Pure Execution. It provides a unified world architecture where every module shares the same high-efficiency DNA, scaling from an 8-bit Arduino to an Intel XEON cloud server.

…

Whitepaper

Nodepp: Closing the Gap Between Bare-Metal Performance and Scripting Agility through Silicon-Logic Parity Read the full technical breakdown, including architectural deep-dives into ptr_t, kernel_t and coroutine_t.

⭐ Architectural Philosophy

  • : 1. Deterministic RAII (ptr_t): Eliminates the unpredictable latency spikes (Stop-the-World) of Garbage Collectors. By utilizing Small Stack Optimization (SSO) and reference counting, memory is reclaimed with microsecond precision.

  • : 2. Cooperative Multitasking (coroutine_t): Stackless coroutines eliminate context-switching overhead. This allows for massive connection density on low-power hardware, from 8-bit industrial sensors to cloud-scale reactors.

  • : 3. Platform-Agnostic Reactor (kernel_t): A unified abstraction over native kernel I/O (Epoll, Kqueue, IOCP, and IOuring). It provides a consistent non-blocking interface across Linux, Windows, Mac, and Bare-Metal, ensuring that I/O multiplexing is always native to the silicon.

Technical Reality Check: Data vs. Hype

We didn't test this on a supercomputer. We tested it on an educational-grade Dual-Core Apollo Lake potato. If your framework can't perform here, it's not "scalable" — it's just hiding behind hardware.

1 - Performance Benchmark: HTTP Throughput vs. Resource Tax

Test: 100k requests | 1k Concurrency | Environment: Localhost see benchmark

Metric Bun (v1.3.5) Go (v1.18.1) Nodepp (V1.4.0) Impact
Requests / Sec 5,985 6,139 6,851.33 +11.6% Performance
Memory (RSS) 69.5 MB 14.1 MB 2.9 MB 95.8% Reduction
Max Latency 1,452 ms 326 ms 245 ms Elimination of GC Spikes
p99 Latency 1,159 ms 249 ms 187 ms High-precision SLA stability
Energy Efficiency Low Medium Extreme Maximum hardware utilization

2 - Performace Benchmark: Resource Management & Latency Jitter Analysis

Test: 1k Cycles | 100k Allocations see benchmark

Runtime Avg. Cycle Time VIRT (Address Space) RES (Physical RAM) Memory Model
Nodepp 3.0 ms (±0.1 ms) 6.1 MB 2.7 MB Deterministic RAII
Bun 7.2 ms (5-11 ms range) 69.3 GB 72.6 MB Generational GC
Go Note: Go's Test: 100k asynchronous tasks see benchmark
Runtime RSS (Memory) CPU Load VIRT Memory Strategy
Nodepp (Balanced) 59.1 MB 75.9% 153 MB Multi-Worker Pool
Nodepp (Single) 59.0 MB 59.9% 62 MB Single Event Loop
Bun 64.2 MB 24.2% 69.3 GB JavaScriptCore Loop
Go 127.9 MB 169.4% 772 MB Preemptive Goroutines

4 - Performace Benchmark: Nodepp Stability & Memory Benchmarks

Test: 4 Valgrind-based stress tests see benchmark

Test Case Objective Iterations / Load Memory Leaks Result
Atomic Longevity High-concurrency HTTP 100k requests 0 bytes PASSED
Rapid Lifecycle Smart Pointer stress 1M object cycles 0 bytes PASSED
Broken Pipe Resilience to I/O failure 100k interruptions 0 bytes PASSED
Multi-Thread Atomicity race conditions stress 100k Messages * 2 workers 0 bytes PASSED

Why Nodepp Exists

The Nodepp Project did not originate in a laboratory; it was forged in the trenches of mission-critical Edge Computing and WASM development. While architecting ecosystems that bridge ESP32 hardware, web browsers, and cloud infrastructure, we identified a systemic crisis: the forced fragmentation of a single business logic across three incompatible execution environments.

  • The Edge: Native C/C++ for low-level hardware (High performance, near-zero agility).
  • The Frontend: JavaScript/WASM for browser interfaces (High agility, massive memory churn).
  • The Infrastructure: Managed Runtimes like Python, Go, or Node.js for server-side orchestration (High operational cost, unpredictable latency due to Garbage Collection).

Nodepp was built to collapse these silos. By providing a unified, asynchronous C++ runtime that mirrors the productivity of scripting languages, we enable Resource-Dense Computing.

cpp
#include 
#include 

using namespace nodepp;

void onMain() {

    fetch_t args;
            args.method  = "GET";
            args.url     = "http://ip-api.com/json/?fields";
            args.headers = header_t({ 
                { "Host", url::host(args.url) } 
            });

    http::fetch( args )

    .then([]( http_t cli ){
        auto data = stream::await( cli );
        console::log("->", data.value());
    })

    .fail([]( except_t err ){
        console::error( err );
    });

}

We restore the direct relationship between code and hardware through Deterministic RAII and Stackless Coroutines, allowing you to deploy the same high-level logic from an 8-bit microcontroller to a 64-core cloud reactor without changing your mental model.

Still Skeptical?

Watch logic-parity in action. This isn't a "concept"—it's A Fully Functional Enigma Machine running in a Literal Potato board :

https://github.com/user-attachments/assets/9b870671-3854-444f-893d-40fdce31a629

Quick Start: High-Density HTTP

Nodepp abstracts complex socket management into a clean, event-driven API.

cpp
#include 
#include 
#include 
#include 
#include 

using namespace nodepp;

void onMain() {

    auto server = http::server([]( http_t cli ){
        
        cli.write_header( 200, header_t({
            { "content-type", "text/html" }
        }) );

        cli.write( regex::format( R"(
            
 hello world 

            
 ${0} 

        )", date::fulltime() ));

        cli.close();

    });

    server.listen( "0.0.0.0", 8000, []( socket_t /*unused*/ ){
        console::log("Server listening on port 8000");
    });

}

Ecosystem

The Nodepp project is supported by a suite of modular extensions designed to follow the same unified design patterns:

  • : Data Parsing: XML
  • : Tor: Torify.
  • : Security: Argon2, JWT.
  • : Web: ExpressPP, ApifyPP.
  • : IoT/Embedded: SerialPort, Bluetooth.
  • : Databases: Redis, Postgres, MariaDB, Sqlite.

One Codebase, Every Platform

Nodepp is the only framework that lets you share logic between the deepest embedded layers and the highest web layers.

  • : Hardware: NodePP for Arduino
  • : Desktop: Nodepp for Desktop
  • : Browser: Nodepp for WASM
  • : ESP32: Nodepp for ESP32
  • : EPS8266: Nodepp for ESP8266

❤️‍ Contributing

Nodepp is an open-source project that values Mechanical Sympathy and Technical Excellence.

  • : Sponsorship: Support the project via Ko-fi.
  • : Bug Reports: Open an issue via GitHub.
  • : License: MIT.

️ License

Nodepp is distributed under the MIT License. See the LICENSE file for more details.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C++asynchronous-programmingcpp11-libraryopen-source

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言