Advertisement · 728 × 90

Posts by Stefano Cristiano

Dependencies diagram for Sane C++ Libraries

Dependencies diagram for Sane C++ Libraries

Sane C++ Libraries - March 2026

✅ SC::Build native backend
✅ Simplified internal deps (AsyncStreams)
✅ Faster Http parser + chunked encoding
✅ NEW standalone HttpClient lib
✅ FileSystem/File metadata + permissions APIs
✅ Socket multicast + TCP_NODELAY

github.com/Pagghiu/Sane...

#cpp #cplusplus

3 weeks ago 0 0 0 0
Release 2026-02 · Pagghiu/SaneCppLibraries February 2026 Update Blog Post SerialPort and Named Pipes February has been all about connecting low-level I/O pieces end to end. A new cross-platform SerialPort library landed with dedicated tests...

Sane C++ Libraries - February 2026

✅New SerialPort lib
✅File+Async support named pipes
✅AsyncFileSend (sendfile / TransmitFile)
✅Async uses pidfd (process) / eventfd (wake-up)
✅AGENTS.md
✅Support running SCTest in parallel worktrees

github.com/Pagghiu/Sane...
#cpp #cplusplus

1 month ago 0 0 0 0

Probably prompts are to generated code the same way as human written code is to assembly.
Reading generated code may be useful in rare cases (like reading assembly today) but most future AI SW builders will happily skip it because it will be too inconvenient, slowing down software creation too much.

2 months ago 1 0 0 0

Projects like this one, aiming at lowering complexity for human programmers, in a specific programming language (C++), feel obsolete to me now that AI makes it possible to rewrite entire softwares / systems, swapping languages and/or libraries/frameworks with minimal effort [2/2]

2 months ago 0 0 1 0

In the last months I have been using AI to write 100% of the code I am responsible for.
I have been starting to ask so many questions to myself. The first is if and in what form to continue "Sane C++ Libraries" project, currently almost entirely made of "human-written" code [1/2]

2 months ago 0 0 1 0
Preview
Release 2026-01 · Pagghiu/SaneCppLibraries January 2026 Update Blog Post It looks like AI is taking over the world (starting from writing code better and faster than humans). Probably this entire project is now totally useless and obsolete,...

I copy-pasted the wrong link for the release...the correct one is
github.com/Pagghiu/Sane...

2 months ago 1 0 0 0
Preview
Release 2025-12 · Pagghiu/SaneCppLibraries December 2025 Update Blog Post Dependencies The bulk of work for this month has been getting rid of the Memory dependency from the Http library. This is incredibly important, because allocation is ...

Sane C++ Libraries - January 2026

✅Http performance + stability (keep-alive, multipart/form-data)
✅AsyncStreams (child buffers + AutoDestroy + async destruction)
✅New AsyncWebServer example
✅New Http Benchmark

github.com/Pagghiu/Sane...

#cpp #cplusplus

2 months ago 1 0 1 1
Preview
Release 2025-12 · Pagghiu/SaneCppLibraries December 2025 Update Blog Post Dependencies The bulk of work for this month has been getting rid of the Memory dependency from the Http library. This is incredibly important, because allocation is ...

Sane C++ Libraries - December 2025

✅ Http library is now allocations free!
✅ Http API is shaping up (but still draft)
✅ Async got fixes for partial Posix writes
✅ Debug visualizers for Span<T>
✅ Fixes for AsyncStreams, Process, File and Foundation!

github.com/Pagghiu/Sane...
#cpp #cplusplus

3 months ago 1 0 0 0
Advertisement
Post image

I have been further restructuring the API making it simple to fix all buffers for a given client/connection.
The single array holding memory for all connections can easily be resized at runtime, leveraging well known virtual memory reservation / commit techniques (StableArray).

3 months ago 0 0 0 0
Post image

Sane C++ Libraries is 2 years old! 🎉🎂

🙏 repost to support the project!❤️

✅Fast compile time
✅Bloat free
✅Simple readable code
✅Easy to integrate
⛔️No C++ Standard Library
⛔️No third party build dependencies

github.com/Pagghiu/SaneCppLibraries

pagghiu.github.io/site/blog/2025-12-23-SaneCpp2Year.html

3 months ago 0 0 0 0

I am also updating SCExample to use VirtualMemory, pre-allocating a large slice of address space for a large number of clients.
I still need to update SCExample to show how to do the actual runtime resizing of maximum clients with the running web server.

3 months ago 0 0 1 0
Post image

I've been pushing a few changes to cleanup and improve the API.
When using fixed request / response queues now just 4 buffers are needed instead of 6.
github.com/Pagghiu/Sane...

3 months ago 0 0 1 0
A small code snippet showing the new Async Streams based Http API for Sane C++ Libraries

A small code snippet showing the new Async Streams based Http API for Sane C++ Libraries

After some heavy rework, also Sane C++ Http library is allocation free, by adopting Async Streams everywhere.
Creating an async file web server uses only 6 buffers.
Not a single byte will be allocated outside of them.

SC::Http library is still draft, but it's steadily improving!
#cpp #cplusplus

4 months ago 4 0 1 0
Dependencies for Sane C++ Libraries for November 2025

Dependencies for Sane C++ Libraries for November 2025

Sane C++ Libraries - November 2025

✅ Http library based on AsyncStreams (still draft)
✅ AsyncStreams read-only / growable buffers support
✅ Async fixes for reentrancy
✅ ToolsBootstrap C port for extra speed
✅ Build improvements / de-hardcoding

github.com/Pagghiu/Sane...

#cpp #cplusplus

4 months ago 2 0 0 0
Sane C++ Libraries Dependencies (October 2025)

Sane C++ Libraries Dependencies (October 2025)

Sane C++ Libraries - October 2025

✅ Further reduction of internal dependencies
✅ Bring Your Own Containers example (InteropSTL)
✅ New bootstrap for SC::Tools written in C++
✅ Increased test coverage
✅ Improved CI
✅ Fixes

github.com/Pagghiu/Sane...
#cpp #cplusplus

5 months ago 2 0 0 0
Preview
InteropSTL: Show std::string and std::vector<char> usage with File an… · Pagghiu/SaneCppLibraries@cb8bca4 …d FileSystem libraries

Sane C++ Libraries has finally become a BYOC (Bring Your Own Containers) project!
We have SC::Strings and SC::Vector<T>, using relative pointers and a "scoped" allocator logic that not everyone may like, but you can now write adapters to use something else

5 months ago 1 0 0 0
A drawing showing current state of dependencies between Sane C++ Libraries

A drawing showing current state of dependencies between Sane C++ Libraries

Sane C++ Libraries - September 2025

✅Get rid of many inter-library dependencies
✅Stop accidental dependencies additions in CI
✅Free most libraries from dynamic allocation
✅Transform Build from lib to app
✅Add GDB Pretty Printer
✅Many smaller fixes

github.com/Pagghiu/Sane...

#cpp #cplusplus

6 months ago 1 0 0 0
Advertisement
Picture of the pretty printers being registered by the new GDB debug visualizer script for Sane C++ Libraries

Picture of the pretty printers being registered by the new GDB debug visualizer script for Sane C++ Libraries

I've been adding to Sane C++ Libraries a GDB debug visualizer (pretty printer in gdb terminology) taking care of strings and containers.

In addition to the already existing ones for LLDB and MSVC Debugger (.natvis) I think we should be good now!
#cpp #cplusplus

7 months ago 0 0 0 0
Preview
Release 2025-08 · Pagghiu/SaneCppLibraries August 2025 Update Blog Post Single File Libraries One of the core principles of this project is to be "Easy to Integrate". I'm always looking for ways to lower the barrier to entry for using these...

Sane C++ Libraries - August 2025

✅ Available as Single File Libs
✅ Threading: Semaphore / Barrier / RWLock (→ Stable)
✅ AsyncStreams: IPC Pipe Streams (→ MVP)
✅ Process: Improve reliability
✅ More fixes (see blog post details)

pagghiu.github.io/site/blog/2025-08-31-SaneCppLibrariesUpdate.html
#cpp

7 months ago 0 0 0 0

Of course I would only vibe-code Sane C++ Libraries!

7 months ago 0 0 0 0
Screenshot of the Sane C++ Libraries Amalgamation tool, allowing to amalgamate libraries directly in browser.

Screenshot of the Sane C++ Libraries Amalgamation tool, allowing to amalgamate libraries directly in browser.

Screenshot of one example amalgamated single file lib (SaneCppFileSystem.h) showing the initial header section with LOC count for header vs. implementation, explicit list of dependencies, copyright etc.

Screenshot of one example amalgamated single file lib (SaneCppFileSystem.h) showing the initial header section with LOC count for header vs. implementation, explicit list of dependencies, copyright etc.

Sane C++ Libraries are now available as amalgamated single-file libs!

They can be amalgamated offline or directly in-browser at: pagghiu.github.io/SaneCppLibra...

Each amalgamation lists dependencies on other amalgamated libs and the LOC of its header vs. implementation sections.

Have fun!
#cpp

8 months ago 0 0 0 0
Preview
Release 2025-07 · Pagghiu/SaneCppLibraries July 2025 Update Blog Post Automatic Dependency and LOC List of dependencies between libraries and the number of lines of code (LOC) composing them gives an immediate complexity indication. For thi...

Sane C++ Libraries - July 2025

Major cleanup month!🧹

✅ Massive reduction in inter-library dependencies
✅ 7 libraries now allocation-free:
- Async
- File
- FileSystem
- FileSystemIterator
- FileSystemWatcher
- Process
- Socket

pagghiu.github.io/site/blog/2025-07-31-SaneCppLibrariesUpdate.html
#cpp

8 months ago 0 0 0 0
Preview
FileSystemWatcher: Remove dependency from Async and File libraries · Pagghiu/SaneCppLibraries@563c03e

I have been removing the dependency of the Sane C++ FileSystemWatcher library from the Async one.
There's a new mini-lib now called FileSystemWatcherAsync wiring them together explicitly when event loops are needed.
It feels so much cleaner now!

github.com/Pagghiu/Sane...

8 months ago 0 0 0 0

I wonder if I should capitalize on this by distributing them as isolated single file libraries...

8 months ago 0 0 0 0
Post image

I have been removing many inter-dependencies between Sane C++ "Libraries" (mainly Strings/Memory/Containers)

The following libraries do not allocate anymore! 🎉

✅ Async
✅ File
✅ FileSystem
✅ FileSystemWatcher
✅ FileSystemIterator
✅ Process
✅ Socket

See: pagghiu.github.io/SaneCppLibra...

#cpp

8 months ago 0 0 1 0
Advertisement
Preview
Release 2025-06 · Pagghiu/SaneCppLibraries June 2025 Update Blog Post Async File System Operations A major new feature this month is the unified AsyncFileSystemOperation that provides async file system operations across all platforms. This ...

Sane C++ Libraries June 2025:

✅ Async FS Ops
- {copy|remove|rename}{file|folder}
- {open|close|read|write}file
✅ AsyncUDP {SendTo | ReceiveFrom}
✅ FileSystem {Iterator | Watcher} / Memory dependencies cleanup

Blog
pagghiu.github.io/site/blog/20...

Github
github.com/Pagghiu/Sane...
#cpp #cplusplus

9 months ago 2 0 0 0

This week I have been adding a few more obvious Async FileSystem Ops:

✅ file/directory rename
✅ file/directory remove

pagghiu.github.io/SaneCppLibra...

#cpp #cplusplus

9 months ago 2 0 0 0
Sane C++ Libraries: Async

Async FileSystem Operation has been added to Sane C++ Libraries for:

✅file open/close
✅file read/write
✅file copy

All ops are executed on user supplied thread-pool for IOCP(win)/kqueue(mac)/epoll(linux), with special code path for io_uring(linux)!

pagghiu.github.io/SaneCppLibra...
#cpp #cplusplus

10 months ago 2 0 0 1
Post image Post image

I have been adding to Sane C++ Libraries some async primitives needed to send and receive bytes to and from UDP sockets (sendTo and receiveFrom).

As always implemented for IOCP, kqueue / epoll and io_uring!

Documentation:
pagghiu.github.io/SaneCppLibra...

Commit:
github.com/Pagghiu/Sane...

#cpp

10 months ago 0 0 0 0
Pagghiu/SaneCppLibraries | DeepWiki The Sane C++ Libraries project provides a comprehensive set of platform abstraction libraries for macOS, Windows, and Linux. This documentation covers the architecture, components, and integration app

Sane C++ Libraries May 2025:

✅ AsyncSequence
- Serial execution of async requests
✅ SC::Async
- Smaller memory footprint
- Improved cancellation handling

deepwiki.com/Pagghiu/Sane...

Blog:
pagghiu.github.io/site/blog/20...

Github:
github.com/Pagghiu/Sane...

Have a nice weekend!
#cpp #cplusplus

10 months ago 1 0 0 0