HNHacker News
TopNewBestAskShowJobs

vasama

70 karma · joined October 8, 2018

submissionscomments
vasama··on Defer available in gcc and clang
> The advantage being that you never have to remember which things are to be freed at which particular error state.

You also don't have to remember this when using defer. That's the point of defer - fire and forget.

vasama··on Microsoft is plugging more holes that let you use Windows 11 without MS account
That's sort of like asking a motorbike enthusiast why they don't just drive a car instead.

There's a big difference in the input scheme between PC and consoles. Playing with a controller might not be satisfying for someone used to keyboard and mouse. The latter also provides a higher skill ceiling for competitive play.

The lower end hardware used in consoles also does not allow for high framerates and high resolution monitors, while with PC gaming one can get as much performance as they're willing to pay for.

vasama··on C++ Standards Contributor Expelled for 'The Undefined Behavior Question'
You were clearly banned for the comment where you used offensive slurs in reference to the author of a previously discussed blog post. I was happy to report the comment.
vasama··on Cuneicode, and the Future of Text in C
ztd.text is a C++ library. cuneicode is a C library.
vasama··on It's time to halt starting any new projects in C/C++
If only Linux offered a half decent kernel API instead of that dumpster fire that is POSIX. Even so, for anything not involving graphical user interfaces I somewhat agree with you.
vasama··on It's time to halt starting any new projects in C/C++
That looks like an allocating container. Probably the most useful property of linked lists and other node based data structures is the ability to make them intrusive and to avoid dynamic allocation. In some domains you just don't have a runtime allocator available to you, so this library would be useless.
vasama··on Why Rust easily optimizes out smart pointers where C++ cannot?
If by "STL" you mean the standard library, it's not true that _all_ containers accept allocators. At least valarray and filesystem::path do not accept allocators.
vasama··on Why Rust easily optimizes out smart pointers where C++ cannot?
There's no reason to avoid static functions. It's just a better syntax and it's a shame it cannot be applied to class declarations as well.
vasama··on Lasers could cut lifespan of nuclear waste from a million years to 30 minutes
Molten salt fuel cycles where waste products may be separated from the liquid fuel through more conventional chemical separation methods seem like a simpler solution. It's too bad about the negative public view on nuclear. I think next gen fission power research deserves greater funding.
vasama··on Lasers could cut lifespan of nuclear waste from a million years to 30 minutes
Nuclear fuels such as U235 are radioactive but very slightly so, U235 specifically having a half life of roughly 700 million years. The various fission products produced by splitting these atoms in a reactor may have much shorter half lives and as such are more radioactive. In the operation of a reactor, some atoms inevitably absorb neutrons as well, which increases their mass number. Through subsequent beta decay whereby a neutron is converted into a proton, their atomic numbers may also increase, producing transuranic elements such as plutonium which account for some of the nastiest nuclear waste products.
vasama··on Stack size invisibility in C and the effects on "portability"
The information is indeed worthless unless the standard were to also define such things as the stack layout and a closed set of operations which are allowed to consume more stack, such as defining a VLA, or calling a function.
vasama··on Stack size invisibility in C and the effects on "portability"
Whatever values these functions returned, there would be no way for you to make a determination on whether another step can be performed.
vasama··on Stack size invisibility in C and the effects on "portability"
Just like with the mutex, this piece of information is out of date as soon as it reaches you. Preparations for whatever action you perform after, or the very act of retrieving this information may invalidate it.
vasama··on Stack size invisibility in C and the effects on "portability"
I believe we were discussing a potential addition to the C standard. It would however be useless unless the standard also defined such things as stack layout and a closed set of operations which may consume more stack space, such as calling a function.
vasama··on Stack size invisibility in C and the effects on "portability"
There is no useful way to employ these functions. It's equivalent to asking if a mutex is locked. That piece of information is worthless.
vasama··on Show HN: Time travel debugger for web development
Only the enterprise edition though.
vasama··on Designing a better strcpy
Migrating to a pointer-size-pair string representation would be a better use of one's time.
vasama··on Activists who embrace nuclear power
Making a molten salt reactor safe might be much cheaper than a light water reactor.
vasama··on Discord bans r/WallStreetBets server, subreddit went private for a while
Some people care about UX.
vasama··on Std::visit is everything wrong with modern C++ (2017)
We got here because adding library features is a lot easier and less risky than adding language features. Work on pattern matching [1] is ongoing, but the bar for entry for a language feature is much higher and as such takes a longer time.

1. http://wg21.link/p1371

vasama··on In the Turkish locale, "INFO".lower() != "info"
This is why I have a set of functions like AsciiToLower(char* string, size_t size). They only touch characters in the ASCII space at <0x80. Even went and implemented them with SSE for x86.
vasama··on Are planets with oceans common in the galaxy? It's likely, NASA scientists find
If time travel was possible, don't you think a time traveler would have traveled back in time to give us time travel?
vasama··on What If Planet 9 Is a Primordial Black Hole?
A black hole of this mass is colder than the cosmic background.
vasama··on 3.8M-year-old skull of an early ape-like human ancestor discovered in Ethiopia
Do you mean as opposed to humans and contemporary apes sharing common ancestors?
vasama··on Banned C standard library functions in Git source code
Looks more like an implementation of undefined behaviour to me.
vasama··on Banned C standard library functions in Git source code
I think you mean fibers, and no you can't.
vasama··on Tenants win right to physical keys over smart locks from landlords
That's a problem with the lock. Try doing that with a disc tumbler lock.
vasama··on Galaxy Simulations Offer a New Solution to the Fermi Paradox
It seems unlikely that an aquatic species could ever develop ceramics, metalworking, or any other technology requiring the use of fire. Any ocean covering an entire planet is likely very deep, making construction difficult or impossible. Early power sources such as coal would also be unavailable.
vasama··on Don't shoot, I'm disabled
> the police kill about 93% more people than they themselves are killed

Don't you mean 1330%?