Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
cldr
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
cldr
13y ago
That's true, but you can write C code in D as well, so switching to D won't make people write idiomatic code either. If they won't learn how to use one correctly then they won't care enough to use another correctly. And
2.
▲
by
cldr
13y ago
Same here; I used to be a huge fan of D but then C++11 came along and solved most of my problems (and some that I didn't know D had).
3.
▲
by
cldr
13y ago
Then say "better than hand-written C++", not "better than C++". It's like saying "C++ performs better than assembly". No it doesn't. It may perform better than hand-written assembly, and that's
4.
▲
by
cldr
13y ago
> compiles down to C++. Execution speed is comparable to C++, mostly better. Uh, what. Can you clarify?
5.
▲
by
cldr
13y ago
Well according to Wikipedia (yeah I know, but I don't feel like searching elsewhere) it may or may not be taken with the meaning "center of the world." And even if it is, it's more of an observation than a boast, since
6.
▲
by
cldr
13y ago
May be worth noting that the Chinese didn't name their country China, they named it Zhong guo.
7.
▲
by
cldr
13y ago
Ouch, camouflage on a tank is a good analogy. Nice response post. In addition to, as the author encourages, being "weary of the 'by obscurity'" argument (as I'm sure we all already are), I would also advocate being
8.
▲
by
cldr
13y ago
I was replying to the part where "even if the files are local" i.e. not on the net.
9.
▲
by
cldr
13y ago
I was thinking about this the other day and I came to think that Wikipedia's rule about citations is this: Wikipedia does not want to be a source of information. It wants to be a collection/aggregation of other sources of informat
10.
▲
by
cldr
13y ago
If they opened it in notepad they'd see a one-line URL, which is pretty obviously not the 5-page paper they typed. But I suppose many people wouldn't ever open it in anything other than the Drive interface, and I continue to agree
11.
▲
by
cldr
13y ago
Only that's impossible as it is now (and will be for the forseeable future) because it wouldn't be very wise to give browser apps write access to the local filesystem.
12.
▲
by
cldr
13y ago
Yeah, like I mentioned, "There were cues which the author missed, but they were obviously not prominent enough which is a (the) design flaw." I focused more on the lessons to be learned but the situation is absolutely very sad for
13.
▲
by
cldr
13y ago
While I sympathize with the author (it must have hurt pretty bad if it made him go create an entire website dedicated to "google drive sucks") I thought it was quite obvious that files created on Google Drive with their document e
14.
▲
by
cldr
13y ago
Will this let us do SRP over HTTP?
15.
▲
by
cldr
13y ago
It's not really boilerplate in the classical sense, he's just talking about headers and lines that have only a brace on them. I think it's a fair statement. Plus, he could have reduced lines even further to get down to about
16.
▲
by
cldr
13y ago
Not sure what AIUI means, but the very words "exception-safe" usually imply RAII.
17.
▲
by
cldr
13y ago
I know, I think he misread the C++ code.
18.
▲
by
cldr
13y ago
Actually wouldn't it be int[][int] whatever; ? Because I think we should be getting an array out whenever we do whatever[1] and not just an int.
19.
▲
by
cldr
13y ago
Idiomatic C++ would allocate everything possible on the stack, and if that wasn't possible, use `make_shared`/`make_unique`. So maybe I will change it to say "doesn't use `new` directly ".
20.
▲
by
cldr
13y ago
This isn't really a fair criticism because: 1. You picked probably the most verbose way to do it. 2. It's not valid C++ because you're assigning a pointer to a value. 3. Idiomatic C++ doesn't use `new` explicitly anyway
21.
▲
by
cldr
13y ago
It also could be that they're making changes and just not optimizing them until they put them in regular Chrome.
22.
▲
by
cldr
13y ago
"All that happens must be known." Wow. So much insidiousness packed into six little words. They conveniently forget to mention by whom it should be known.
23.
▲
by
cldr
13y ago
I'm not asking why reserved words are a bad idea, just opining that I think having 100 single- and double-character symbols might not be the best UI for a language. Why not have just names (neither reserved like keywords nor inscrutabl
24.
▲
by
cldr
13y ago
> Hoon is a keyword-free language - any alphanumeric text in the program is part of the program. Where other languages have reserved words, Hoon has squiggles. But... why?
25.
▲
by
cldr
13y ago
How long did it take to write this once you had all the ideas? I looked at the github history but they only went back 5 months and it looks like there was already a significant amount written so I couldn't tell how far back from there
26.
▲
by
cldr
13y ago
Awesome work. How big is the executable? Also, what did you not like about the Lua object model?
27.
▲
by
cldr
13y ago
They can do that. It's plain on any good documentation site (e.g. http://en.cppreference.com/w/cpp/string/basic_string ) that `string::size_type` is unsigned. The teachers just have to be knowledgeable en
28.
▲
by
cldr
13y ago
Or instead of digging through docs, we could do cout << is_unsigned<string::size_type>::value; and check it ourselves.
29.
▲
by
cldr
13y ago
Once again Betteridge's law proves true.
30.
▲
by
cldr
13y ago
I don't understand that part of the article, what algorithm standard was it? AES?
More ›