Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
tines
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
70 ms
·
901.
▲
by
tines
10y ago
I'm a C++ enthusiast interested in embedded programming but I have very little experience. What is the rationale for your company's avoidance of the STL, is it primarily binary size?
902.
▲
by
tines
10y ago
Why would variant be deprecated for C++20?
903.
▲
by
tines
10y ago
>> If you're fighting, you've lost. > I don't really get this attitude, it means that nothing new will ever overcome anything that's been established. I think he's trying to quote Dan Saks' "exter
904.
▲
by
tines
10y ago
> This is nice, but only hardcore Lisp users prefer writing C-in-sexpr's to just writing C. I object! The choice between this and straight C isn't completely up to personal preference; using s-expressions gives you objectively
905.
▲
by
tines
10y ago
But this is in deployment software, i.e. I interpret your assertion as meaning "bug prevalence in software after it has been debugged is the same regardless of type system." My argument is that, at least for me, code becomes bug-f
906.
▲
by
tines
10y ago
In my opinion, you've got the order wrong: types are the abstraction, and untyped-ness is the concrete implementation (just look at almost all assembly languages). > Do you want to invest your time worrying about types or actually
907.
▲
by
tines
10y ago
Well if you're on a local network you could be using scp or rsync, both of which do folders and at least the latter of which does compression and avoids transferring duplicate files.
908.
▲
by
tines
10y ago
So what I'm hearing is that we should send myopic people into space to fix their vision!
909.
▲
by
tines
10y ago
> Then how do you explain the same Asians people being successful in other countries where the immigration process is not as strict as USA? Since immigration costs money and it's "easier" to stay where you are born, there
910.
▲
by
tines
10y ago
When you only allow the already-successful or already-high-IQ people into the selection pool, don't be surprised when you find that your pull is full of successful high-IQ people. This is called selection bias: the Asians in this study
911.
▲
by
tines
11y ago
I too would like to hear about how org-mode is an effective task manager. On its face, it seems like grandparent is saying "This doesn't compare with the power of Markdown for managing to-dos." One is a tool, the other is a f
912.
▲
by
tines
11y ago
Also, I tried a wireless keyboard once and there was a perceptible delay between me pressing the key and the keypress showing up on the screen, which is really unacceptable.
913.
▲
by
tines
11y ago
The FTC would probably argue (not saying it's a good argument) that not implying that you are collecting data is implying that you won't .
914.
▲
by
tines
11y ago
No, it doesn't, which is why I said this is better implemented with a template :)
915.
▲
by
tines
11y ago
No, because the expression is not evaluated at any time. Only the type of the expression is used. A much better implementation would be using std::begin, std::end; #define countof(x) (end(x) - begin(x)) (except for the double e
916.
▲
by
tines
11y ago
The point is that nobody knows if it's reproducible, because nobody's attempting to reproduce it.
917.
▲
by
tines
11y ago
> Now she had to ride home with her roommate Rebecca, a nerd who would force her to listen to pretentious “indie” bands on the drive home. Sounds like an increasing emphasis on the value of all individuals to me.
918.
▲
by
tines
11y ago
> due to lack of GC or tail recursion (1) I'm pretty sure that everything that can be done by a GC can be done by `shared_ptr` and `weak_ptr`. If not, then you can use Boehm GC if you don't do anything weird with pointers. (2)
919.
▲
by
tines
11y ago
Most of this advice is pretty standard, but this stood out: > You should always use calloc. There is no performance penalty for getting zero'd memory. But isn't there? This may be true the first time the program requests a new
920.
▲
by
tines
11y ago
As a C++ programmer, I'd like to ask how is this different in effect from template<typename T, std::size_t X, std::size_t Y> std::array<T, X + Y> app(std::array<T, X>, std::array<T, Y>);
921.
▲
by
tines
11y ago
I'm not sure you could do what this does and give the members of the struct a user-supplied name though.
922.
▲
by
tines
11y ago
I think the difference is that you can't (afaik) generate a struct with metaprogramming.
923.
▲
by
tines
11y ago
I don't know about you guys, but as a reader unfamiliar with their codebase, when I see return &*rhs == NULL; I think exactly what the optimizer thought: "Well, the address of an object can't ever be NULL, so thi
924.
▲
by
tines
11y ago
The philosopher Karl Popper wrote about this and called it the Paradox of Tolerance: https://en.wikipedia.org/wiki/Paradox_of_tolerance
925.
▲
by
tines
11y ago
> Florence Williams travels to the deep woods of Japan, where researchers are backing up the surprising theory that nature can lower your blood pressure, fight off depression, beat back stress Is this surprising?
926.
▲
by
tines
11y ago
std::string isn't reference-counted in a conforming implementation (that doesn't do atomic ops just for fun).
927.
▲
by
tines
11y ago
This is what C does, so I don't think Go deserves much credit for innovation on this point...
928.
▲
by
tines
11y ago
Though the philosophy is different, I'm not sure I see an advantage for NIL when you just look at the effect it has on a programmer's code. You can still have a "NULL-pointer dereference" in CL, except the error is rephr
929.
▲
by
tines
11y ago
Seems like the under-definedness of integer addition would allow the compiler to emit better code, not worse, because it doesn't have to check for overflow.
930.
▲
by
tines
11y ago
Apparently it's not even really a "language" in the same way most articles mean, but simply an Erlang library.
More ›