Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
bnegreve
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
43 ms
·
391.
▲
by
bnegreve
12y ago
Ok, but you get my point: there may be actual limits to the development of space travel technology. Your logic seemed to imply there was none. Sorry for speculating though.
392.
▲
by
bnegreve
12y ago
I see an important difference. Planes, boats and cars are technology. Before we had planes, there were scientific evidences that objects heavier than air could fly (= birds). This in fact was a strong motivation for people to develop the te
393.
▲
by
bnegreve
12y ago
Ok, let me rephrase then: On modern systems, checking the return value of malloc() is not a proper way to check that the system is out of memory and therefore it doesn't guarantee that the program will run correctly in any case. That&
394.
▲
by
bnegreve
12y ago
Note that on many systems (e.g. Linux), malloc/calloc won't always return NULL when you're out of memory because of lazy memory allocation policies. It will only crash when you start reading / writing. That makes it argu
395.
▲
by
bnegreve
12y ago
People don't like sarcastic comments.
396.
▲
by
bnegreve
12y ago
It's definitely a good idea. Pipes are both very powerful and very simple to use and debug, yet they are not very common in general purpose programming languages (examples?). I'm not surprised that someone is trying to build a lan
397.
▲
by
bnegreve
12y ago
Well, let's look at this data on a plot http://imgur.com/EuHcSzT Conclusion: philwelch is not completely off. (edit: make the graph less ugly)
398.
▲
by
bnegreve
12y ago
The law in not that absolute, some constitutions include the right of revolution ( http://en.wikipedia.org/wiki/Right_of_revolution ) Without going this far, I personally think civil disobedience is ok in that case. How
399.
▲
by
bnegreve
12y ago
It works now.
400.
▲
by
bnegreve
12y ago
As soon as price enters the equation, you're not going to maximize your life expectancy. This is math. > I think that anyone would agree, though, that either outcome is far better than dying young. Right, but how can you be sure?
401.
▲
by
bnegreve
12y ago
C isn't a subset of C++ (eg see [1]) but more importantly proper C++ has very little to do with C. In my experience people use "C/C++" to refer to "C with class compiled with a C++ compiler" rather than to &quo
402.
▲
by
bnegreve
12y ago
Nationalization is the extreme example. It happened a couple of times [1] [1] http://en.wikipedia.org/wiki/Nationalization
403.
▲
by
bnegreve
12y ago
> You can find the text file at: http://www.gnu.org/software/emacs/news/NEWS.24.4 This is org-mode syntax, so you can browse it with org-mode.
404.
▲
by
bnegreve
12y ago
It should be clear how you pay, though.
405.
▲
A Statistician's View on Big Data and Data Science
(slideshare.net)
5 points
by
bnegreve
12y ago
|
0 comments
406.
▲
by
bnegreve
12y ago
It's a nice quote but with this logic you can justify any absurd attempt to do anything. At the time Columbus crossed the Atlantic Ocean it was a (relatively) reasonable thing to do given the boat they had. Can we say the same about t
407.
▲
by
bnegreve
12y ago
A good definition from the PDF: He wanted, in fact, to show that it is possible to convince without revealing, and so without unveiling his secret. Or from wikipedia [1]: In cryptography, a zero-knowledge proof or zero-knowledge protocol
408.
▲
by
bnegreve
12y ago
With traditional manufacturing methods, you would need to make a mold. Molds are very expensive unless you can reuse them for thousands of units.
409.
▲
by
bnegreve
12y ago
> can we create two images on a computer monitor that appear the same to a person with normal color vision yet appear different to a colorblind person? It surely depends on the type of colorblindness, there are many [1]. [1] http:
410.
▲
by
bnegreve
12y ago
This is an instance of finding the Pareto front [1] of a set of points in a two dimensional space. This problem is also known as " skyline queries "! According to [2], author's bound O(n log(n)) is the best bound for d=2. [1]
411.
▲
by
bnegreve
12y ago
Ok so to summarize: when they are talking to higher-ups, people don't want to make strong claims so they use wordings that make it explicit that this is "only" their personal opinion rather than an absolute truth. And they ty
412.
▲
by
bnegreve
12y ago
> We use "I" more when we talk to someone with power because we're more self-conscious. Isn't it simply because you need to introduce yourself and provide a bit of context when you write an unsolicited email? That s
413.
▲
by
bnegreve
12y ago
True, but self driving cars have to be much better drivers than the average human for multiple reasons. If a human has bad driving habits you can fine him or revoke his driving license without impacting the rest of the drivers. A bug is a
414.
▲
by
bnegreve
12y ago
In reply to sibling posts. - if you need dynamic storage you should use a std::vector instead of new []. - with std::vector-s, if you want to save the cost of the copy you can redefine the vector allocator to use realloc or even mremap. Edi
415.
▲
by
bnegreve
12y ago
It's the same with realloc: there is no guarantee that it will grow the chunk in place.
416.
▲
by
bnegreve
12y ago
If you need to realloc a fixed size array, souldn't you use a std::vector instead?
417.
▲
by
bnegreve
12y ago
Ah yes indeed [1], I didn't know. [1] http://en.wikipedia.org/wiki/IEEE_floating_point#Exception_h...
418.
▲
by
bnegreve
12y ago
I really like in-shell floating point operations. But this: > / 1 0 +Inf Is not the correct answer - even as a limit - since the limit of 1 / x (when x -> 0) can be +Inf or -Inf.
419.
▲
by
bnegreve
12y ago
> Stack overflows seems opaque to me, while preallocating memory (malloc) has mechanism to signal failures for proper handling. On Linux (and probably on other OSs) it's not easy to detect that the system is out heap memory becaus
420.
▲
by
bnegreve
12y ago
I realize this, but the article doesn't provide any clear definition of what actually is a bad comment. It only gives trivial examples of bad comments such as "increment a by one". Since I don't think anyone here would a
More ›