svalorzen | 1 year ago | on: Compile-time JSON deserialization in C++
svalorzen's comments
svalorzen | 1 year ago | on: Compile-time JSON deserialization in C++
I did not see any mention of this in the post; so are you actually simply extracting the string versions of the numbers, without verifying nor deserializing them?
svalorzen | 1 year ago | on: Earth rotation limits in-body image stabilization to 6.3 stops (2020)
svalorzen | 2 years ago | on: Welcome to Wikifunctions
svalorzen | 2 years ago | on: Moving fast with the core Vim motions
It's also fairly customizable in that you can specify which characters are actually allowed (so you don't end up with very weird keys to press), and some other stuff. So every time I need to move somewhere I can't be bothered to figure out the standard keys it would take me to get there, it saves me.
svalorzen | 3 years ago | on: ‘Breakthrough’ obesity drugs that have stunned researchers
Sure, so they just need to compute their at-rest calorie consumption differently, and from there the rest is the same.
> Conventional thermodynamics don’t work when you consider a full human, which is a very out-of-equilibrium and not-isolated system. Conservation of energy does not tell you anything about the efficiency of the energy extraction process.
This is like saying that even if you don't refuel your car it will never stop, because different cars have different mpg ratings. A human is indeed a closed system when you consider the works it outputs and the calories it ingests, unless I somehow missed a newfound capacity for photosynthesis. The fact that it might be a bit harder to compute calorie requirements than what might be naively done does not allow you to just dismiss everything else.
svalorzen | 3 years ago | on: ‘Nasty’ geometry breaks decades-old tiling conjecture
He is a chess teacher who decided to train his daughters in chess from a very young age. What do you know, two of them became the first and second best players, with the best being considered the best woman chess player of all time. Unlikely that they somehow just all got chess genius "genes" from him.
It really does seem that heavy investment from a young age by a good teacher can work wonders.
svalorzen | 3 years ago | on: The genius of binary space partitioning in Doom (2019)
The ordering is as follows: I'm assuming the isometric rendering of a map as a 45 degrees tilted square, and I'm only considering tile ordering just for simplicity but it should generalize fine. The uppermost tile is where you want to start rendering. From there, you render following the two 45 degree diagonals until you are done (so you don't only look at the y axis). Once this is done, you restart the process from the tile just below the uppermost corner, and so on. This ordering makes sure that all rectangular objects that are aligned with the 45 degree diagonals are rendered correctly.
Now you need an additional trick to render rectangular objects that are transversal to those diagonals correctly. What you do is you keep track of the boundaries of all such objects, so that the rendering loop described above can tell when it encounters one. Once it encounters it, it pauses rendering the current diagonal and considers it temporarily complete. The diagonal on the other side still needs to be rendered fully though --- or at least as far as possible with the same stopping condition. The next rendering pass will likely at some point re-encounter the same transversal object, just at a further point. Stop again, start the next diagonal. Once the rendering encounters the lowest and last part of the transversal object, then that object can be rendered, and the first stopped diagonal can be resumed (and after this resume all the paused diagonals in order).
This should always give you the correct order to render everything without errors. Let me know if this made sense, otherwise I can try to clarify.
svalorzen | 3 years ago | on: GDPR and the Lost Generation of Innovative Apps
svalorzen | 4 years ago | on: The hardest program I've ever written (2015)
svalorzen | 4 years ago | on: Ask HN: Who wants to collaborate?
The library is fully documented, but the text is probably a bit dry. I'd love for somebody to help me improve its accessibility, and I'd be willing to help them along learning how things work.
My email is my nickname and Gmail, feel free to reach out if you are interested.
svalorzen | 4 years ago | on: Naomi Wu video demonetized on YouTube
As a second point about breasts, human breasts are unique in the animal kingdom because they are specifically made to signal sexual availability. Generally animals do not have enlarged breasts, even when lactating. In humans the woman breast evolved to enlarge when sexual maturity is reached to signal sexual availability. So saying that boobs are just a body part that men sexualize is also incorrect.
svalorzen | 4 years ago | on: Man to sue parents for giving birth to him
This is like being unwillingly thrust on the top antenna of a skyscraper, barely hanging on, and you saying "Don't like it here? Then jump."
svalorzen | 4 years ago | on: Show HN: Add a command-line interface to any C++ program
svalorzen | 4 years ago | on: Ask HN: People who cashed out early and stopped working: What is your life like?
I'm sorry to say this, but this is one of the saddest things a person can say in my opinion. You can definitely become your job, but I can't see myself ever wanting something like that.
svalorzen | 4 years ago | on: Pull Requests vs. Pair Programming
svalorzen | 4 years ago | on: How I debate
When you figure what the assumption is, it's basically guaranteed to make you agree with each other: "Ah, but so you believe A! Of course you'd argue for A' then, makes total sense now!" It's then much easier to find compromises since you can work on the small thing below rather than the whole scaffold built on top.
Unfortunately I haven't yet found a way to easily discover what the differing assumption is aside from lengthy debates. This makes finding compromises with people harder as you can only discuss in depth with people where you can trust that they are truly arguing in good faith.
svalorzen | 4 years ago | on: A notable JavaScript developer shamelessly copied one of my most downloaded nod
svalorzen | 4 years ago | on: Greedy AI agents learn to cooperate
I'm always happy to help if something is unclear or difficult so feel free to open issues there :)
svalorzen | 4 years ago | on: C++20 Concepts: The Definitive Guide
[0]: https://en.cppreference.com/w/cpp/utility/compare/partial_or...