You are here |
willhbr.net | ||
| | | |
ochagavia.nl
|
|
| | | | Advent of code has come and passed, what should I do now with so much free time? Fear not! The JIT calculator challenge is here. 1. The challenge Back when Rust was in its infancy, the official website featured an example program to showcase the language's syntax. It was a toy calculator, implemented as an interpreter in 20 lines of code. Why talk about website archaeology, though? We are not here for nostalgia's sake, are we? | |
| | | |
www.foonathan.net
|
|
| | | | Let me share a useful insight with you: constexpr is a platform. Just like you write code that targets Windows or a microcontroller, you write code that targets compile-time execution. In both cases you restrict yourself to the subset of C++ that works on your target platform, use conditional compilation if your code needs to be portable, and execute it on the desired target platform. You can thus view constexpr as another platform you can target; it just so happens to be run by your compiler. This insig... | |
| | | |
tonybaloney.github.io
|
|
| | | | ||
| | | |
chaosinmotion.com
|
|
| | So in Objective C or Objective C++, if you pass in a pointer to something not a basic type (like 'int' or 'double' or 'void'), the Objective C compiler thinks it's an Objective C class. It needs to know this so it can perform automatic reference counting. If you need to pass in a pointer... |