rpasquay
Re:Show HN: Moon simulator game, ray-casting
on Thursday April 09, 2026 @06:35AM (#47701825)
Nice game! Just having two thrusters fire at the same time sounds a bit distorted. Are you generating the engine noise procedurally?
Re:The x86 architecture is the weirdo, part 2
on Friday April 22, 2022 @07:54AM (#31120496)
I did not understand why on x86 Windows/MSVC cannot implement exceptions the same way as it was done for other architectures. I read that on x64 a different approach is used ("table based" - sounds to me like the "unwind code" approach mentioned in the article). Is this not possible no x86 for some reason ?
Re:Stanford CS248: Implement an SVG Rasterizer
on Saturday March 21, 2020 @08:04AM (#22645960)
Is there any good book/resource about how all that fancy stuff you can use in Inkscape/Illustrator is actually implemented in terms of rendering. E.g. how are curves and lines with a thickness rendered or shapes that are defined by boolean operations etc. ?
Re:TOML for Modern C++
on Thursday March 05, 2020 @09:53AM (#22493951)
Thank you for the explanation!
Re:TOML for Modern C++
on Friday February 28, 2020 @02:42AM (#22441190)
I'm a bit surprised by this snippet from the "Traversing and manipulating data" example:
for (auto& elem : *arr) {
// visitation helps deal with the polymorphic nature of TOML data
elem.visit([=](auto&& el) noexcept
{
if constexpr (toml::is_number<decltype(el)>)
(*el)++;
else if constexpr (toml::is_string<decltype(el)>)
el = "five"sv;
});
}
I thought constexpr would work at compile time but how can the compile here inside a loop "know" when this labmda will encounter an int or a string ?