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
These 2 are not the same!
🤣4
Tests are passing under the debugger, but not otherwise!


The "It works on my machine" joke has reached a whole new level. 😬
👀4
Down to 28 failures out of 348 tests for the URI parser.

There are other features that I haven't written tests for or implemented, so there's still work to do.
Don't pass allocators to vector<any>'s constructor.

Half a day wasted debugging.

My bugs are getting crazier and crazier by the day.
😢1
My 2000+ lines of code URI Parser is being replaced.

One of my first pieces of web++ library that I implemented.
2625 failed tests out of 4986 for the WHATWG tests I generated for my URI Parser

Is that bad?
😁1
Why on earth tabs and newlines are just IGNORED in URLs and spaces are invalid characters?

WHO hurt you WHATWG?
resize_and_overwrite tip: these two values are not the same; I'm just saying to let you know before you spend an hour debugging off-by-one errors.
Merged upstream changes of my liburing C++ified fork.

Still some UBs remain (liburing itself heavily relies on UB).

Header-Only liburing fork
👍1
Media is too big
VIEW IN TELEGRAM
The White House: use Memory Safe languages

Youtube Link
| white house press release
Full Report
(A PATH TOWARD SECURE AND MEASURABLE SOFTWARE)
😁1
Back_to_the_building_blocks_a_path_toward_secure_and_measurable.pdf
591.5 KB
White house full technical report about memory safety in languages among other things.
WHATWG mindset:

Valid URLs:
file:
any-random-scheme:


Invalid URLs:
http:
https:
ws:
wss:
ftp:
😁2
I know it's off-by-one, I just don't know in which direction it's off by one!
Rust guys said "C++ is unsafe" so much that Google's AI now thinks it's unsafe for children and refuses to help you out if you're under 18 😬🤦‍♂️🤦‍♂️
I swear, if I see one more allocator error message, ...


... I'll still spend 4 hours fixing it anyway, but I'm gonna be swearing the whole time!
😁1
If you don't know how to get it right, get it wrong a couple of times first, it narrows down the right solution, and speed things up.

Sometimes, just doing it with a few trials and errors is better than actually throwing brain cells at the problem you're trying to fix.
👍5
WHATWG tells us that http://this.is.totally.a.valid.domain.%21.
This function is a simple "to_lower".


This function's author's argument for rejecting my PRs were "using const reduces readability" among other things.

Here's a benchmark for the above code if you're curious how much performance we're actually gaining by this.