no, but they are modern c++ constructs. the title of the post did not imply that the article was about some bizzaro means of constructing the solids using template meta-programming, or such. many c++ programmers wish that people would not do such things - not everything needs to be calculated at compile-time.
GP is saying many wish that people won't use template meta-programming. You quoted a bog standard piece of code that doesn't use template meta-programming.
Yeah, that is bog standard code. All the code in the post is. I'm just trying to figure out why we're complaining about template meta-programming, because I didn't see any in TFA and I sure didn't see any code that deserved being called bizzaro.
both these features are older than the Go, Rust and Swift programming languages, can we stop calling them modern? I started learning C++ when I was 11-12 years old, if I was born the day of the C++11 release standard I would already have started learning it by then
There are probably dozens of languages with "for each" loops, and plenty of languages where you don't have to restate the return type of a function (e.g. "with x as foo() do" or "let t = foo()" and such).
“To earth, then, let us assign the cubical form; for earth is the most immoveable of the four and the most plastic of all bodies, and that which has the most stable bases must of necessity be of such a nature. Now, of the triangles which we assumed at first, that which has two equal sides is by nature more firmly based than that which has unequal sides; and of the compound figures which are formed out of either, the plane equilateral quadrangle has necessarily a more stable basis than the equilateral triangle, both in the whole and in the parts.”
It's all in Python (and shell scripts), which IMO makes it easier to experiment with than C++.
I completely forgot how it worked until I went back and looked just now ... there is this bit of 4D polytope code we borrowed, and the rest is 3D math and integration with rendering, stitching frames together, etc.
24 comments
[ 3.3 ms ] story [ 59.6 ms ] threadthough maybe emplace_back?
https://github.com/virtualritz/polyhedron-ops
https://assets.nautil.us/8516_6a12d7ebc27cae44623468302c47ad...
If it could actually exist in 3D, it would fit somewhere between the https://en.wikipedia.org/wiki/Rhombic_dodecahedron and https://en.wikipedia.org/wiki/Tetrakis_hexahedron.
Timaeus
https://www.oilshell.org/recurse/120-cell-bathroom.original....
It's all in Python (and shell scripts), which IMO makes it easier to experiment with than C++.
I completely forgot how it worked until I went back and looked just now ... there is this bit of 4D polytope code we borrowed, and the rest is 3D math and integration with rendering, stitching frames together, etc.
https://github.com/wwwaldo/pbrt-video/blob/master/schlafli/s...
https://nedbatchelder.com/blog/200206/teapotahedron.html