Stefano Cristiano's Avatar

Stefano Cristiano

@pagghiu.bsky.social

Principal Research Scientist@NVIDIA https://github.com/Pagghiu/SaneCppLibraries Videos: https://youtube.com/@Pagghiu Site: https://pagghiu.github.io Opinions are my own.

126 Followers  |  86 Following  |  154 Posts  |  Joined: 20.10.2024  |  1.7343

Latest posts by pagghiu.bsky.social on Bluesky

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.

31.01.2026 14:42 โ€” ๐Ÿ‘ 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]

31.01.2026 14:19 โ€” ๐Ÿ‘ 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]

31.01.2026 14:19 โ€” ๐Ÿ‘ 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...

31.01.2026 10:57 โ€” ๐Ÿ‘ 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

31.01.2026 10:47 โ€” ๐Ÿ‘ 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

01.01.2026 17:23 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
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).

27.12.2025 08:55 โ€” ๐Ÿ‘ 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

22.12.2025 23:32 โ€” ๐Ÿ‘ 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.

22.12.2025 10:28 โ€” ๐Ÿ‘ 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...

22.12.2025 10:28 โ€” ๐Ÿ‘ 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

14.12.2025 12:43 โ€” ๐Ÿ‘ 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

30.11.2025 12:36 โ€” ๐Ÿ‘ 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

01.11.2025 10:40 โ€” ๐Ÿ‘ 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

26.10.2025 07:59 โ€” ๐Ÿ‘ 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

30.09.2025 22:31 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
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

05.09.2025 19:19 โ€” ๐Ÿ‘ 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

31.08.2025 08:35 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

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

30.08.2025 21:46 โ€” ๐Ÿ‘ 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

11.08.2025 13:50 โ€” ๐Ÿ‘ 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

01.08.2025 21:21 โ€” ๐Ÿ‘ 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...

28.07.2025 20:58 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

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

23.07.2025 20:21 โ€” ๐Ÿ‘ 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

23.07.2025 20:21 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
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

30.06.2025 22:02 โ€” ๐Ÿ‘ 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

28.06.2025 08:58 โ€” ๐Ÿ‘ 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

21.06.2025 15:11 โ€” ๐Ÿ‘ 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

11.06.2025 20:25 โ€” ๐Ÿ‘ 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

31.05.2025 08:59 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Preview
Release 2025-04 ยท Pagghiu/SaneCppLibraries April 2025 Update Blog Post Process SC::Process library allows spawning process across all supported platforms with many features, including I/O redirection and setting environment variables / star...

Sane C++ Libraries April 2025

โœ… Process fork
โœ… Struct dumping
โœ… Async vectorized writes
โœ… Tools update
โœ… Repo restructuring

Blog:
pagghiu.github.io/site/blog/2025-04-30-SaneCppLibrariesUpdate.html

Github:
github.com/Pagghiu/SaneCppLibraries/releases/tag/release%2F2025%2F04

Have a nice week!
#cpp

30.04.2025 22:10 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Post image

I've added a ProcessFork class to Sane C++ Libraries after discovering that "fork" on Windows can be approximated with RtlCloneUserProcess.
There are a ton of limitations but it's useful to serialize a data structure without blocking for IO or copying it for async IO.
Nice!
#cpp

12.04.2025 06:49 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

@pagghiu is following 20 prominent accounts