Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
HeliumHydride
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
91.
▲
Fun with C++26 reflection: Keyword Arguments
(pydong.org)
3 points
by
HeliumHydride
2y ago
|
0 comments
92.
▲
Git Koans (2013)
(stevelosh.com)
4 points
by
HeliumHydride
2y ago
|
0 comments
93.
▲
by
HeliumHydride
2y ago
Format strings in C++ are checked completely at compile time. There are no hacks or compiler intrinsics involved (like what C does for printf to verify format strings).
94.
▲
by
HeliumHydride
2y ago
Yes. The basic idea is that there's a specifier that allows a formatted string to transparently decay into an ordinary string (à la array-to-pointer decay) so that "auto" doesn't produce dangling references, and so that
95.
▲
by
HeliumHydride
2y ago
C++ also has std::format, which was introduced in C++20. This is just sugar on top of it, except it also returns a container type so that printing functions can have overloads that format into a file or stream directly from an f-string, ins
96.
▲
F-strings for C++26 proposal [pdf]
(open-std.org)
183 points
by
HeliumHydride
2y ago
|
213 comments
97.
▲
F-strings proposal for C++26 [pdf]
(open-std.org)
2 points
by
HeliumHydride
2y ago
|
0 comments
98.
▲
by
HeliumHydride
2y ago
C++ has made efforts to fix some of this. Recently, they enforced that signed integers must be two's complement. There is a proposal currently to fix the size of bytes to 8 bits.
99.
▲
Falsehoods programmers believe about null pointers
(purplesyringa.moe)
103 points
by
HeliumHydride
2y ago
|
104 comments
100.
▲
by
HeliumHydride
2y ago
Context: This is another LLM tarpit, intended to poison datasets. I found this website a while ago, but forgot and couldn't find it. I found it again after it showed up in my autocomplete bar.
101.
▲
Web Spam
(web.sp.am)
2 points
by
HeliumHydride
2y ago
|
1 comments
102.
▲
by
HeliumHydride
2y ago
std::print is one. You need variadic generics to make it work.
103.
▲
C++26: Pack Indexing
(sandordargo.com)
60 points
by
HeliumHydride
2y ago
|
79 comments
104.
▲
by
HeliumHydride
2y ago
The "Run" app appears right after pressing Win+R, so this wouldn't work.
105.
▲
by
HeliumHydride
2y ago
https://developer.arm.com/documentation/ddi0602/2024-12/SIMD...
106.
▲
by
HeliumHydride
2y ago
The "20" is missing from the title.
107.
▲
by
HeliumHydride
2y ago
I was able to find it instantly, but that's because I always use curly braces for my if/while/for loops.
108.
▲
by
HeliumHydride
2y ago
With reflection and code generation coming to C++26, and the already existing constexpr/consteval machinery, C++ will be able to do all of this.
109.
▲
by
HeliumHydride
2y ago
Will the eventual windows release support GPU shaders like Windows terminal does?
110.
▲
by
HeliumHydride
2y ago
Longest common substring is linear time.
111.
▲
Every Goomba Glitch in Super Mario 64 [video]
(youtube.com)
2 points
by
HeliumHydride
2y ago
|
0 comments
112.
▲
Floats (2016) [video]
(youtube.com)
3 points
by
HeliumHydride
2y ago
|
0 comments
113.
▲
by
HeliumHydride
2y ago
I think you can only time travel a finite time.
114.
▲
Watch out for unexpected performance increases as well as decreases
(devblogs.microsoft.com)
2 points
by
HeliumHydride
2y ago
|
0 comments
115.
▲
Turning into Turing (2022)
(jk-keller.com)
1 points
by
HeliumHydride
2y ago
|
0 comments
116.
▲
by
HeliumHydride
2y ago
https://scholar.harvard.edu/files/mickens/files/theslowwinte... "Unfortunately for John, the branches made a pact with Satan and quantum mechanics [...] In exchange for their last remaining bits of ent