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
I got happy after seeing 1️⃣ thinking I solved some 35+ tests until I saw 2️⃣.
These two URLs result in different strings generated!

file://localhost/path/to/somethere
file://127.0.0.1/path/to/somewhere


WHATWG is written by idiots.
Browsers are doing their own thing btw!
😁1
WHATWG mindset:

- file::::::: totally valid URL
- http:: hold on, that's not valid at all!
😁2🔥1🤣1
This is a valid WHATWG URL with a hidden "Hello World" binary message encoded within:

- / is 1
- \ is 0

https:/\\//\\////\\\\//\\/\\/\\\\/\\\\///\\\\/\\\\///\\\\/\\\\\\\\//\\//////\\/\\/\\\\\\/\\\\/\\\\\\\\/\\\\\\//\\//\\\\/\\\\///\\\\//\\//example.com
👍1
I don't know whom is to blame, but this is a valid URL:

fILe://C|\\//\////\\\\/\/\/\\\/\
C23: a slightly better C


Written by Daniel Lemire
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