Web++: A C++ Web Framework
132 subscribers
440 photos
36 videos
20 files
177 links
Web++ Framework (A C++ web framework to ease the pain of web development)

Using modern C++20/23.
GitHub: https://github.com/the-moisrex/webpp

I've been working on this project since 2019...
Download Telegram
Setting IDE's line-height to a less than 1.0 value is not visually pleasing, but I must confess that it helps to reduce scrolling.
👍2⚡1👏1👌1
Did GCC implemented C++26's template for by just copying and pasting the body? 😁
😭2
What's the best way to handle errors in consteval functions?

- noexcept + throw std::exception-based
- noexcept + throw "char pointers"
- no noexcept, only throw
- assert
- static_assert (how?)
- return error (std::optional, std::expected, ...)
I wanted to use std::indirect, but I needed something pimpl idiom that:

- consteval constructible-only
- consteval copyable-only

Ended up writing custom nullable_indirect; at least for now.
🤔1🫡1
Let's hope introducing "dynamic scopes" to a highly templated and complex pipeline-builder "context" type is not gonna backfire.

The user-facing pipeline API will look cute though.
👍1😭1
Now I can hold shift, and slow down my mouse and my stylus.

Good for scaling down the drawings and writings.
This simple pipeline pretty much blows up the system by itself.

How? it doesn't grab the keyboard's events, creates a new virtual keyboard, and re-grabs its own virtual keyboard events.

Is it called stack-overflow or kernel-overflow or what? 😅
❤1
Added momentum to the scroll wheel.

The scroll itself of course is being converted from pen's events to mouse events, and then we add momentum to it.
My WHATWG URL implementation is now passes WHATWG tests.
🫡1
Obviously ada wins, but I do win against older ada v2.9.2.

(not reliable benchmark results)
Not creating temporary strings reduces 140ns to 70ns.
🔥1👀1