Search Results

Found 4 results for "c6395b8941460ec3ad2fba4487411e0e" across all boards searching md5.

Anonymous /g/105952884#105953397
7/19/2025, 5:49:05 AM
>>105953122
>>105953138
Use case for e-readers when I have a phone, laptop, and tablet already? I haven't leisurely read any books from front to back they weren't academic material (ie college textbooks) in YEARS because let's be honest I'm a lazy bastard that has a very narrow pallet when it comes to what catches my attention. Are e-readers good at getting people back into reading for some reason?
C++ Won /g/105831578#105831578
7/8/2025, 12:12:16 AM
This is what modern C++23 looks like:

std::pair<int, double> getTwoReturnValues() {
int value1 = 32;
double value2 = 3.14;
return {value1, value2};
}

void executeThisF(std::invocable<int> auto f) {
std::print("{}\n", f(3));
}

std::expected<int, std::string> parseInt(std::string_view s) {
try {
return std::stoi(std::string(s));
} catch (const std::exception& e) {
return std::unexpected("Failed to parse int: " + std::string(s));
}
}

int main() {
auto [a, b] = getTwoReturnValues();
std::print("a = {}, b = {}\n", a, b);

executeThisF([](int x) { return x * 3; });

std::unordered_map<std::string, int> config {
{"Alice", 90},
{"Bob", 85},
};
for (const auto& [k, v] : config) {
std::print("{} = {}\n", k, v);
}

std::vector<int> v = {1, 2, 3, 4, 5};
auto results = v | std::views::filter([](int n) { return n % 2 == 0; });
for (const auto& n : results) {
std::print("{}\n", n);
}

std::string input = "42";
if (auto result = parse_int(input); result) {
std::print("Parsed int: {}\n", result.value());
} else {
std::print("Error: {}\n", result.error());
}
}


When full support for C++ modules lands on Clang and CMake, it's going to be over for rustranny, if you fell for rustroon meme and went troon, there's still time to turn back.
Anonymous Brazil /sp/149367551#149370121
6/23/2025, 1:19:10 AM
>>149370092
Elementary, my dear anon
Anonymous Brazil /sp/149362315#149364369
6/22/2025, 9:15:22 PM