Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
vasama
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
1.
▲
by
vasama
7mo ago
> 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.
2.
▲
by
vasama
1y ago
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 us
3.
▲
by
vasama
2y ago
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.
4.
▲
by
vasama
3y ago
ztd.text is a C++ library. cuneicode is a C library.
5.
▲
by
vasama
4y ago
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.
6.
▲
by
vasama
4y ago
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
7.
▲
by
vasama
4y ago
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.
8.
▲
by
vasama
4y ago
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.
9.
▲
by
vasama
5y ago
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
10.
▲
by
vasama
5y ago
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
11.
▲
by
vasama
5y ago
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.
12.
▲
by
vasama
5y ago
Whatever values these functions returned, there would be no way for you to make a determination on whether another step can be performed.
13.
▲
by
vasama
5y ago
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.
14.
▲
by
vasama
5y ago
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
15.
▲
by
vasama
5y ago
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.
16.
▲
by
vasama
5y ago
Only the enterprise edition though.
17.
▲
by
vasama
5y ago
Migrating to a pointer-size-pair string representation would be a better use of one's time.
18.
▲
by
vasama
6y ago
Making a molten salt reactor safe might be much cheaper than a light water reactor.
19.
▲
by
vasama
6y ago
Some people care about UX.
20.
▲
by
vasama
6y ago
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.
21.
▲
by
vasama
6y ago
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.
22.
▲
by
vasama
6y ago
If time travel was possible, don't you think a time traveler would have traveled back in time to give us time travel?
23.
▲
by
vasama
7y ago
A black hole of this mass is colder than the cosmic background.
24.
▲
by
vasama
7y ago
Do you mean as opposed to humans and contemporary apes sharing common ancestors?
25.
▲
by
vasama
7y ago
Looks more like an implementation of undefined behaviour to me.
26.
▲
by
vasama
7y ago
I think you mean fibers, and no you can't.
27.
▲
by
vasama
7y ago
That's a problem with the lock. Try doing that with a disc tumbler lock.
28.
▲
by
vasama
8y ago
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. Ea
29.
▲
by
vasama
8y ago
> the police kill about 93% more people than they themselves are killed Don't you mean 1330%?