Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
zvrba
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
92 ms
·
841.
▲
by
zvrba
15y ago
To me, Linus lost all credibility after I've seen what mess Linux kernel code is, and how well-written BSDs are.
842.
▲
by
zvrba
15y ago
ConTeXt is an awesome package. Its "only" drawback is that it's unsupported by publishers. I thought about writing my thesis in ConTeXt, but then I couldn't have easily reused the text from published papers.
843.
▲
by
zvrba
15y ago
> Random fun trivia: dogs do synthesize vitamin C. And another random fun trivia: chocolate is poisonous to dogs. I'm happy to be human! :D
844.
▲
by
zvrba
15y ago
Why do algorithm books generally devote so much space to FFT? It seems like it has very narrow applicability: apart from signal processing and multiplying big integers or polynomials, what else are they useful for? Wouldn't it be better to
845.
▲
by
zvrba
15y ago
The rhyme thing tipped me about the ending :-)
846.
▲
by
zvrba
15y ago
Tesla uses apparently Li-ion battery. I wonder why I han't experienced the same problem with other electronics using that same type of battery. For example, I had my fully-charged mobile stored away for approx 5 months without charging. W
847.
▲
by
zvrba
15y ago
This is written on the first few pages that I've bothered to read.
848.
▲
by
zvrba
15y ago
The point is that O(log N/log log N) is not O(log N): they have broken the informatic-theoretic bound of O(log N) in linear space using "ordinary" operations. (Previous such works used exotic machine models that had little to do with how
849.
▲
by
zvrba
15y ago
Too bad that you can't easily judge upfront which of those data structures and algorithms are really usable in practice. For example, fusion trees may seem like a cool idea, but they're totally impractical, as also admitted by the authors (
850.
▲
by
zvrba
15y ago
Yet another language with significant whitespace and otherwise python-ish syntax. No thanks. I would have used Python if I wanted to. Plus, any source->source translator makes debugging a pain.
851.
▲
by
zvrba
15y ago
To be fair, authors publishing with Elsevier retain many rights, including the right to publish post-review personal version of his paper on his personal and institutional web-site for dissemination of scholarly work (non-commercial pur
852.
▲
by
zvrba
15y ago
Mucking around with CSV files in command-line is painful. Been there, done that, got annoyed by many limitations of that approach, bit the bullet and learned R. It is somewhat weird language, but it was one of the best decisions I ever mad
853.
▲
by
zvrba
15y ago
This is about maintaining invariants, and I interpret the "any random input" from the parent question as "input that breaks the preconditions the function expects of its inputs." With str* functions the assumptions are that the string is nu
854.
▲
by
zvrba
15y ago
> Wrong, I already demonstrate that they have an example that is basically strcpy() and I show why it's broken. strcpy() is not broken. You cannot expect a function to work if you violate its preconditions. Exercise for you: enumerate s
855.
▲
by
zvrba
15y ago
And how are you going to make sure that the length specified is correct?
856.
▲
by
zvrba
15y ago
If "undefined behavior" were an argument for keeping features out of the language, the language we would have ended up with would not be C.
857.
▲
by
zvrba
15y ago
"Problem" 1 is also well-known behavior for people who actually bother to learn it properly. C being such small language, there is almost no excuse for not learning it properly if you deal with it daily. Also, some C compilers warn about s
858.
▲
by
zvrba
15y ago
C and C++ are efficient for general-purpose programming, if you know how to use them. C is here to stay because it is lingua franca of the computing world: OS APIs are defined in terms of C functions, and I know of no libraries in wide-sp
859.
▲
by
zvrba
15y ago
How does it have negative effect? Consider three cases: 1) an algorithm is designed and patented, and the inventor has the right to use or license it. 2) an algorithm is designed and never published, i.e., held secret for proprietary use o
860.
▲
by
zvrba
15y ago
Assuming the review is not fake: the company got what it deserved. That person could have been weeded out by a simple interview on a blackboard.
861.
▲
by
zvrba
15y ago
Your example with "MouseClick" succintly explains what I feel is wrong with much of software development today that tries to follow "modern" OO practices. Blame it on the language, or on people who try to mold the world into familiar casts
862.
▲
by
zvrba
15y ago
Useless article: he didn't even bother to explain data frames, one of the most used data structures in R.
863.
▲
by
zvrba
15y ago
What "standard things"? shared_ptr is only one of many possible ways to keep track of object lifetimes. Rolling your own reference-counted smart pointer might be a code smell, but not choosing reference counting is far from that.
864.
▲
by
zvrba
15y ago
Why do we make things so complicated? Because C++ is a low-level abomination pretending to be a high-level language. Let's start. - Allocators in the STL are a joke, so you can't use them for implementing different memory models. So you e
865.
▲
by
zvrba
15y ago
I'm tired of marketing boost as "modern C++". Alexei Alexandrescu, the author of "Modern C++ design" book has since gone on greener pastures and got involved with the D language. He participated in the design of D, and wrote a book about i
866.
▲
by
zvrba
15y ago
It is not as fast as it could be. It is an implementation of ordinary hash table, meaning that also a successful search requires comparing two strings several kB long. What I propose is to reduce ALL symbols to their hashes (SHA1 is 20 byt
867.
▲
by
zvrba
15y ago
This is an improvement of existing hashing scheme in ELF object files, and is completely different from what I proposed.
868.
▲
by
zvrba
15y ago
Not to mention link times: templates generate HUGE mangled symbols, with corresponding increase in memory and time as all those strings have to be stored and string-compared. I've long wondered about why doesn't any C++ compiler implement s
869.
▲
by
zvrba
15y ago
No, it's not. Adding a new built-in type that doesn't participate in type-checking in any meaningful way just clutters the language. _Bool is like int, just having unspecified size and slower, since the compiler has to ensure that it shall
870.
▲
by
zvrba
15y ago
I gave up from C99 and its successors when I saw that they introduced _Bool. Actually, I've never understood the meaning behind having a boolean type in any language. [It would kinda make sense if conditionals accepted ONLY boolean argum
More ›