Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
cmovq
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
121.
▲
by
cmovq
3y ago
It could be misinterpreted as a user literal [1], for example with 0xAAAA_BBBB it is unclear whether _BBBB is a user literal. The original proposal discusses some of the alternatives [2]. [1] https://en.cppreference.com/w&#x
122.
▲
by
cmovq
3y ago
Aside from the reasons mentioned by other comments, dev kits include a ton of IO for debugging (multiple ethernet ports, video outs, etc), as well as more memory and storage. IIRC the Wii devkit used an FPGA for the IO controller, and the d
123.
▲
by
cmovq
3y ago
> In fact it is so good I think it will replace Vulkan WebGPU does not support bindless resources making it a non starter as a Vulkan or D3D12 replacement.
124.
▲
by
cmovq
3y ago
> And it doesn't really matter whether a branch can be well predicted I guess we build branch predictors on our CPUs for fun?
125.
▲
by
cmovq
3y ago
> Those spikes for std::lower_bound are on powers of two, where it is somehow much slower. I looked into it a little bit but can’t come up with an easy explanation It’s been a long time since I looked into this, if I recall correctly bin
126.
▲
by
cmovq
3y ago
Syntax discussions are hardly ever productive but the `vec4<f32>` syntax is truly awful in shaders. HLSL solved this ages ago with `float4`, `int4`. And even GLSL which uses `vec4` to mean float makes sense given you are almost always
127.
▲
by
cmovq
4y ago
> you might be thinking are in there are in fact only in Windows Terminal A lot of those changes are in ConsoleHost, so Windows 10 and 11 get those improvements (like VT100 sequences) in cmd.exe as well
128.
▲
by
cmovq
4y ago
Tokenizing by storing strings in a vector is almost never what you want for high performance code, as it will result in an allocation for each token. If you can keep the original source string around, consider using std::vector<std::stri
129.
▲
by
cmovq
4y ago
I don’t know much about Julia, why would it potentially cause allocations?
130.
▲
by
cmovq
4y ago
operator[] is not only used for lookups though, it’s also used for insertions: m["nonexistent"] = 1; This would not work if you return a dummy value.
131.
▲
by
cmovq
4y ago
optional<T &> is not valid in C++ [1] [1]: https://en.cppreference.com/w/cpp/utility/optional
132.
▲
by
cmovq
4y ago
If you try to implement your own map you’ll naturally end up with this quirk. operator[] returns a reference to a slot in the map which can be read from or assigned to. Since the reference must be valid, you better have allocated a slot in
133.
▲
by
cmovq
4y ago
Did you read the article? MSVC compiles twice as fast as clang and has double the perf in debug builds. LLVM has an amazing optimizer but the compiler is just so much slower even on unoptimized builds.
134.
▲
by
cmovq
4y ago
The reason is header files. If you do `using namespace std::something` in one file and it gets included in another, the other file now has std::something in the global namespace which it may not have excepted. Other languages like Java have
135.
▲
by
cmovq
4y ago
Some intel server CPUs support 57 bit addresses [1] [1]: https://en.m.wikipedia.org/wiki/Intel_5-level_paging
136.
▲
by
cmovq
4y ago
That kind of defeats the purpose of having an embedded scripting language
137.
▲
by
cmovq
4y ago
I would say Mantle jump started the new generation of GPU APIs. Not sure if it predates Metal’s development.
138.
▲
by
cmovq
4y ago
The literal matches are useful in an editor search context where most of the time you want to search for the literal string.
139.
▲
by
cmovq
4y ago
Is apple supposed to take 30% of the transaction fee when I purchase investments in an online banking app?
140.
▲
by
cmovq
4y ago
Factorio is a great example of a game that benefits from having a custom engine. For comparison, Cities Skylines (Unity) becomes CPU bottlenecked with a large enough population. Making large cities practically unplayable even on the most po
141.
▲
by
cmovq
4y ago
Unity is still written in C++. It's fairly common to write the core engine in C++ and use a language like Lua, or as is more common in AAA, some proprietary scripting language for gameplay code.
142.
▲
by
cmovq
4y ago
I know this website is not a hivemind, but it's interesting every time an article like this gets posted the majority opinion seems to be that training diffusion models on copyrighted work is totally fine. In contrast when talking about
143.
▲
by
cmovq
4y ago
I don't think it's a cultural issue. The difference is you only have to download a game once from the store compared to downloading 10GB+ every time you load the webpage.
144.
▲
by
cmovq
4y ago
Any reason for making delay_ms a template parameter? A compiler should be able to optimize passing a constant as a regular function argument. And if it’s not optimized I assume a variable delay wouldn’t affect much?
145.
▲
by
cmovq
4y ago
I get that, but Bone Labs is developed by a small indie studio. It's hard to believe Meta can't make a decent looking VR experience with the amount of resources they have available. Point is, the hardware is clearly capable and is
146.
▲
by
cmovq
4y ago
Bone Lab[1] also runs on the Quest and looks infinitely better. [1]: https://www.oculus.com/experiences/quest/4215734068529064/