u/Simon_Luner

1,405 post karma · 269 comment karma · joined Nov 2014

Simon_Luner

Every legend on keyboard and shortcut cheatsheet that I saw uses Ctrl for Control key.

Simon_Luner

Analog for MacOS's Cmd Don Windows and Linux is Ctrl D, not ˄ D.

Simon_Luner

I can spot my "Chaotic neutral" fellow anywhere.

Simon_Luner
Simon_Luner

double isn't an optional type.

That's absolutely true. But if your target platform does not have any FPU than it can be treated as soft float. Like in this example from GCC for AVR https://godbolt.org/z/ojj5MMe1b Both function use __addsf3.

Simon_Luner
Simon_Luner

Unless they changed it

They did not change it. https://github.com/facebook/folly/blob/master/folly/docs/FBString.md It's still 23 char SSO.

Simon_Luner
Simon_Luner
Simon_Luner

If somebody interested in this topic then more information about native code debugger can be found at CppCon 2018: Simon Brand “How C++ Debuggers Work”

Simon_Luner

an octal literal should definitely start with 0o, and not just zero, as in C ++

Simon_Luner

Reference to KSP is appreciated.

Simon_Luner

This site https://www.programmingfonts.org/ is actually working

Simon_Luner

ha-ha! Very funny dark mode.

Simon_Luner

I really like the idea of operator in for C++.

std::unordered_map<std::string, std::string> some_map = 
{
    { "cat", "dog" },
    { "day", "night" }
};

if (auto res = "cat" in some_map)
{
    res->second = "fish";
}

taken from here https://github.com/ChaosOptima/operator_in

Simon_Luner

Indeed, all Digital Signal Processing libraries that I have seen only stores 1/4 of the sin period in a table for all their sin and cos needs

Simon_Luner

basically the same thing, but 24 byte

template<class a>b<a::a>

https://godbolt.org/z/vQ-9vo

Simon_Luner

This is illformed code, because order of expression evaluation is unspecified behavior. https://en.cppreference.com/w/cpp/language/eval_order

Simon_Luner

You can listen discussion from proposal author at https://cppcast.com/jeanheyd-meneide-unicode/ starts at 50:50

Simon_Luner

Human Resource Machine - great introduction to assembly programming TIS-100 - Zachtronics game about parallel programming

Simon_Luner

Thanks!

Simon_Luner

Great! Is there printer friendly version with white background and black text?

Simon_Luner

rand() from <cstdlib> will be much faster.

Simon_Luner

wow ETL is great. Thanks for the link!

Simon_Luner

This rule was written for embedded developer.