Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pumpkinpal
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
pumpkinpal
5y ago
There are real benefits to be gained though from new compilers. Look at "Circle" by Sean Baxter as an example. Outside of supporting a powerful form of compile time computation and allowing things such as reflection and writing sh
2.
▲
by
pumpkinpal
6y ago
Would anyone be able to make some brief comparisons between Rust's asynchronous model and the model followed by Asio in C++ (on which C++23 executors/networking is based) and if there are any parallels with the sender/receive
3.
▲
by
pumpkinpal
6y ago
We've also spent 30+ years trying to build nuclear plants on time and on budget and we've been unable to do that.
4.
▲
by
pumpkinpal
6y ago
The n-body benchmark is slower due to a a bug in GCC's vectorization compared to Clang/LLVM.
5.
▲
by
pumpkinpal
6y ago
This functionality already exists in the C++ standard library as std::filesystem::(recursive_)directory_iterator with the default constructor creating a sentinel value. This is solution (1) and this is due to the restriction that prior to C
6.
▲
by
pumpkinpal
6y ago
The iterator and sentinel do not need to be the same type, they just need to be equality comparable. If you wanted to represent a infinite range you could implement it in terms of a regular iterator and an empty sentinel type to which the r
7.
▲
by
pumpkinpal
6y ago
Somewhat related but C++20 ranges do not replace iterators and instead build a higher level of abstraction upon iterators. Ranges are implemented in terms of iterator pairs.
8.
▲
by
pumpkinpal
6y ago
Boost STL Interfaces provides this functionality as a library. Not just for iterators but both views and containers of sequences too. https://www.boost.org/doc/libs/1_75_0/doc/html/stl_interface...
9.
▲
by
pumpkinpal
6y ago
Python and C++ are joined at the hip now primarily due to scientific computing and AI/ML adjacent fields. I feel the growth of Python has helped C++ grow too.
10.
▲
by
pumpkinpal
6y ago
I feel like the fastest growing and most dominant area for C++ is scientific computing and AI/ML. Although many people write these programs in more user-friendly languages like Python and R, most of these programs call through to C++ f
11.
▲
by
pumpkinpal
6y ago
Its funny that you mentioned games as an example of parallel computation because I'd argue they're some of the hardest programs to parallelize effectively since they don't generally involve that much bulk-processing of read-o