u/greg7mdp
greg7mdp
greg7mdp
The whole movie was pretty stupid, but the ending where the whole world is mesmerized by the disclosure reaches a level of idiocy and wishful thinking rarely seen. A "don't look up" reaction is what it would likely get.
greg7mdp
It seems to me that the user-selected resolution for the layer needs to be stored somewhere. So if you were to create the Rescaler during OnRender(), you'd have to pass it the user-selected resolution which would then be stored in the Layer instead of the Rescaler.
So you might as well keep it as-is imo.
greg7mdp
This should be a required watch for every member of the C++ standard committee.
None of the mentioned issues will ever be fixed though for C++, I feel the best thing we can hope for is the definition of a rational subset of the language enforced on a per-file basis as Circle was doing.
greg7mdp
You could try https://github.com/greg7mdp/gf
greg7mdp
check out https://github.com/greg7mdp/gf.
greg7mdp
Check out https://github.com/greg7mdp/gf.
greg7mdp
Fair question. I don't believe the original project owner would have accepted my changes, which are opinionated and quite exhaustive, especially in the beginning where I was updating the code according to my personal preferences without adding much functionality.
greg7mdp
Thank you /u/crowbarous for trying gf and for the great bug report. Hard to believe this slipped through, my mistake for using clang exclusively. Anyhow, I fixed the issue.
About CLAUDE.md, I understand the feeling. 99% of my work on gf was without claude, which I used mosttly to generate documentation and .md files in the last month.
greg7mdp
thanks!
greg7mdp
Sean Baxter is author of the Circle C++ compiler. It's a one-man effort to build the memory-safe C++ toolchain of the future.
https://www.reddit.com/r/cpp/comments/1cnqlqi/safe_c_sean_baxter_presenting_circle_to_c/
greg7mdp
fully, no single person can make a fully functioning compiler,
Have you heard of Sean Baxter and his Circle compiler?
greg7mdp
Thank you, exactly my take as well.
greg7mdp
SPJ is just wonderful!
greg7mdp
There is no alternative to gold chloride for gilding daguerreotypes. But gilding is optional
greg7mdp
This implies that C is safer which is just not the case.
greg7mdp
Agree!
greg7mdp
Boost beast is the standard!
greg7mdp
or use one already made like this
greg7mdp
No, the conditional operator does not call both functions. See par 5.16 of the C++11 standard:
Conditional expressions group right-to-left. The first expression is contextually converted to bool (Clause 4). It is evaluated and if it is true, the result of the conditional expression is the value of the second expression, otherwise that of the third expression. Only one of the second and third expressions is evaluated. Every value computation and side effect associated with the first expression is sequenced before every value computation and side effect associated with the second or third expression.
greg7mdp
Yes, I had the same reaction when I switched from APL to C++. Such verbosity. And don't get me started on Java.
greg7mdp
you mean unique pointers, right?
greg7mdp
You could use phmap parallel_flat_hash_map which is sharded (internally composed of N submaps).
Let's say you have a 16 core CPU. On the GPU you can create 16 buckets of integers, and add to bucket i all the integers that would go in submap i (easy to figure out).
Then back on the CPU you populate the hash map (declared with N=4, creating 16 submaps) in 16 threads (each thread adding the ints from one bucket), without any contention or need of locking since each bucket updates a different submap.
This would be close to 16 times faster than updating the hash map on a single thread.
greg7mdp
After using Visual Studio for a long time, I'm now using emacs on linux, and the realgud package has all the special keys that my fingers already know (such as F5, F9, F10, F11, Shift-F11), so the switch was easy. It is still not as great as the Visual Studio debugger, but OK.
greg7mdp
about the same, I debug using realgud in emacs, and build with ninja.
If you miss the VS debugger and its key bindings on linux, you may want to try gdbf. I couldn't find a gdb front-end I liked, so I worked on gdbf and use it daily.
https://github.com/greg7mdp/gdbf