Hi All! I want to show you some skip and hint brushwork in praxis. First I'll show you an overview of the map. The big green dot is where I take the sceenshots in game. And the line of sigth is blocked by one of the walls of the small room. But If you enable […]
06.11.2022
17.09.2022
C++ Guns: throw and catch all standard exceptions for fun
This example throw and catch all standard exceptions just for fun exception list from https://en.cppreference.com/w/cpp/error/exception sorted after C++ Standard searching a stack trace? look at https://en.cppreference.com/w/cpp/utility/basic_stacktrace $ ./a.out All exceptions which was thrown was catched
07.09.2022
C++ Guns: Streams display the format flags
Display which format flags are currently set e.g. fixed, scientific, dec, hex Example output dec fixed skipws https://en.cppreference.com/w/cpp/io/ios_base/flags
03.08.2022
Fenster Wärmedämmen (Sommer & Winter)
02.08.2022 Im zweiten Versuch belege ich ein Fenster im Flur komplett mit 4cm Styropor und wiederhole die Temperatur Messung zwischen gedämmten und ungedämmten Fenster. Das Styropor selbst habe ich auf einer Seite mit Farbe und Leim etwas widerstandsfähiger gemacht. Die Seite welche an das Fensterglas kommt bleibt unbehandelt. Die Messreihe zeigt wie erwartet eine deutlich […]
30.05.2022
C++ Guns: MPI Dataype; send struct
Das Beispiel habe ich von https://www.mpi-forum.org/docs/mpi-3.1/mpi31-report/node425.htm Jeder Thread erstellt einen MPI Datentyp welcher die Offsett Addressen der struct Member Variablen hat. Thread 1 sendet Daten zu Thread 0 Thread 0 empfaenge Daten von Thread1 und seine eigenen Daten, so dass alle in einem Array dann liegen. $ mpic++ -g -ggdb -Wall test_MPI_struct.cpp $ mpiexec -n […]
14.05.2022
Kaffeetassenwärmer Optimierungsaufgabe
Niemand mag kalten Kaffee! Darum muss ein Kaffeetassenwärmer her! Aber das Zeug was man kaufen kann taugt alles nichts! USB2/1 liefert nicht genügend Leistung und USB3 ist eine Vergewaltigung der kleine Kabelchen. Noch dazu habe ich keinen USB3 Port am Laptop. Eine simple Heizplatte mit einem EIN/AUS Schalter langt doch vollkommen. So wie die in […]
16.02.2022
C++ Guns: Play with std::tuple and std::apply
Part 1: print std::array with std::integer_sequence Part 2: convert tuple to parameter pack Part 3: print std::array with std::apply and fold Part 4: fold over std::tuple und erzeugten Assembler Code Part 5: fold over std::tuple of std::vector of Types ... Part 6: apply generic lambda to tuple Part 7: Play with std::tuple and std::apply 1 […]
15.02.2022
LED Übersicht Lichtstärke mcd Abstrahlwinkel grad
LEDs
02.10.2021
CppCon 2021
Differentiable Programming in C++ GraphBLAS: Building a C++ Matrix API for Graph Algorithms Misra Parallelism Safety-critical Guidelines for C++11, 17, Then C++20, 23 Faster, Easier, Simpler Vectors Making Out the Most of Your Compiler SIMD in C++20: EVE of a new Era POINTER ALARM Testing Compile-time Constructs Within a Runtime Unit Testing Framework Back To […]
18.09.2021
Vektorisieren leicht gemacht
Als Beispiel sollen ein paar reduzierte Zeilen Code aus der Datei computeFluxes.h [1] aus dem Vplna-OP2 [2] Projekt dienen, welche auf unterschiedliche Arten vektorisiert werden sollen. Um so nah wie möglich am original Code zu bleiben, werden die Pointer Argumente der Funktionen, welche Arrays darstellen, wo es möglich ist nicht durch einen passerenden Typen ersetzt. […]