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
Live stream started
Live stream finished (1 minute)
Live stream started
Live stream finished (1 minute)
Live stream started
Live stream finished (1 hour)
Channel photo removed
Channel photo updated
It's fun getting blocked by someone who's trying to make a twitter bot that makes a list of people with different political views than you so you can block them all in one go, for saying that such tools will lead people into isolation and is a begging of radicalism.

I thought it's a good time to change the channel's photo for people who are not comfortable with the last one.

It's interesting how much people don't want to hear the opposite side fearing they might learn a thing or two along the way that'll have to change their minds about things they previously thought were facts!
⚙️ invocable_inorder, invoke_inorder Utilities:

Call your function, and pass the its arguments in any order or by omitting any number of them!

// define:
void callable(one, two, three);

// call it like this:
invoke_inorder(callable, three, one, two, four);


Source on compiler explorer
Source in project
We can totally replace "std::same_as" and "std::is_same_v" with this utility right here; and also "cvref_as" is probably more useful.

Instead of checking 2 types, you can check two ranges:

same_as_all<T..., U...>


Splits it in the middle, checks if both half are the same.

Code on Project's Github
Code on Compiler Explorer
🟢 sub_tuple implementation.

Here I needed to create a sub-tuple, so I implemented one that creates a sub-tuple.

Usages:
sub_tuple<1, 6>(tup)

or:
sub_tuple(tup, index_sequence<1, 3, 6>)


I have already implemented some utilities for making custom index_sequences based on conditions, ranges, or ...

Source code of this in the project
The tests for the new router is passing; there are a few things that need to be taken care of like manglers for example; but the general idea is done.
Today, I managed to remove the old static routing system from the library and replace it with the new valve system (the same thing, but implemented better).

I benchmarked them and the new system even though it was significantly simpler to implement, it was faster.

I guess I tried to do lots of premature optimizations when I started the library, don't be like me :)
We have a HeisenBug! It's a bug that only happens when the debugger is not watching 😅
Media is too big
VIEW IN TELEGRAM
It's been a while since I lasted did one of these In-Terminal-Timelapses, so here's me working on IP Address class which is a wrapper for variant<ipv4, ipv6>.

Does these timelapses actually inspire you or am I wasting my time here? What do you think?
Channel photo updated
Web++: A C++ Web Framework
Channel photo updated
AI generated logo for the framework; what do you think?
❤️ Best thing I've seen all week!

Link to the tweet
Some 60yrs ago, this was what some portrayed how 2022 would look like!

You're imagining the same stupid stuff about 60yrs from now that will never happen.

Just because you're going 100km/hr right now, doesn't mean you'll be going 100km/hr in the same direction 60yrs from now!

So stop worrying about AI taking your jobs and what not, we can co-exist with whatever we create too.

Humans are perfectionists; we will always be going through every little bit of things and re-create the wheel from scratch only to make it better; so no worries, you have time to re-do that project you've already done again and again until you can't make it better.
👍1