Qt and C++: C++20, functional programming, timezones, WASM and coroutines
Details
This meetup will be at the BI building in Nydalen, room C2-010 (Nydalsveien 37), and will, as expected, be highly tilted towards Qt :D
The meetup host will be Piotr Wierciński.
Location:
Room C2-010 in BI. Here is the MAP.
Coming from Nydalen T-Bane station: enter BI thorugh the main door, go straight, take the first stairs on the right side to level 2 and keep going in south-east direction until you get to C2-010.
There is also an interactive map of the building HERE.
Schedule:
17:00 Food is served
17:30 Marc Mutz/Piotr Wierciński: Qt and C++ 20
18:30 Break
18:45 Lightning talks
Main talk: "Qt and C++ 20" Marc Mutz/Piotr Wierciński
When Qt 5.0 was released, it was the first version to require C++98 compliant compilers. Qt 5.7 then required C++11, and Qt 6.0 C++17. We're now 3 years past the finalization of C++20, and we've developed a roadmap for C++20 support in Qt.
This talk will first present the general roadmap, then dive into details about what C++20 support means for the Qt C++ APIs. We'll talk about the big features (concepts, modules, ranges, coroutines, etc) as well as the small.
Participants will leave with a thorough understanding of the Qt roadmap for C++20 and a few API ideas to take home and apply to their own projects.
Lighting talks:
"Functional Programming in C++" Vitaly Fanaskov
The latest C++ standard brings in new tools from the world of functional programming. It's possible to use different "monadic" operations on types like std::expected and std::optional to write more succinct code abstracting away control flow and side effects. Combining this with ranges and lambda functions gives us a powerful tool for creating more robust and less wordy programs.
But when we should use these tools, or how should we combine them with each other might be a complicated question. In this short talk, I'll give some hints, show a few tricks, and explain some common use cases of the tools mentioned above.
This talk is intended for a wide audience. No experience in functional programming or a deep understanding of C++ is required.
"Why converting to and from UTC is expensive and unreliable" Edward Welbourne
As pointed out by [0], time and timezones are not as simple as many programmers commonly make the mistake of thinking. Converting between a zoned time (including local time) and any other time representation (typically the robust bedrock of UTC) gets complicated close to transitions (such as the start and end of DST), leading to one part in 2921.94 of the time accounting for a considerably larger fraction of the code to handle such conversions. To do that at all, you need information on zones and, ideally, when their transitions are. Most likely that comes from your operating system, so let's take a look at how "well" they provide that information. A comedy of naive errors awaits.
[0] Tom Scott's video "The problem with Time & Timezones" https://www.youtube.com/watch?v=-5wpm-gesOY
"WASM: Doing C++ the web way" Mikołaj Boć
With the advent of WebAssembly, the C++ community has been given an opportunity to shine on the Web in their own familiar programming ecosystem.
But is it really so transparent from developer’s perspective? We will take a look at major challenges one might be faced with when programming in C++ for the web, focusing especially on the relation between the - mostly async - web world and the somewhat sync-biased C++ APIs.
Emscripten as the most popular implementation thereof will be briefly discussed.
"Adventures with coroutines in Qt" Mårten Nordheim
Qt is written with a focus on asynchronous execution, which lends itself very well to coroutines. In this talk we will talk about how coroutines could work in Qt, why we would want it, some examples and the challenges along the way.
