Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
cmccabe
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
17 ms
·
121.
▲
by
cmccabe
13y ago
It seems like this is only really a problem if someone uses mode = 0777. But not every caller is going to do that. Are there really such a large group of bad programmers who are still using low-level C interfaces? And can't OpenBSD
122.
▲
by
cmccabe
13y ago
Google didn't have a choice about Chrome Frame. The new Internet Explorer 10 doesn't support plugins that are as invasive as Chrome Frame. See http://msdn.microsoft.com/en-us/library/ie/hh968248%28
123.
▲
by
cmccabe
13y ago
Using mmap in Java is not really that interesting-- you just use FileChannel#map, which has been around for a long time. There is no need even for JNI. The only remotely "interesting" part is that Java doesn't provide munma
124.
▲
by
cmccabe
13y ago
Yep. But our benchmarks are from this year, and they show the same thing. The situation might improve when Linux gets support for hugepages on (regular) file-backed mmaps.
125.
▲
by
cmccabe
13y ago
You access object #n by using an index. Something that the Parquet file format includes. If you or your team wrote jobs that always read the whole file, you were doing it wrong. No, our HDFS mmap testing did not include MapReduce. I'
126.
▲
by
cmccabe
13y ago
Now, if Hadoop & friends stored their data in such a way that you could do a random access read (and used a read syscall) then mmap would _still_ be about 1000 times faster than a read() call for access if the datum is already in the o
127.
▲
by
cmccabe
13y ago
Yes, APL is Turing-complete, whereas SQL is not... until you consider vendor extensions. I guess I should have included the obligatory "I know that..." in the original post. The fact remains that SQL allows you to do complicated
128.
▲
by
cmccabe
13y ago
I thought Xhibit was a rapper or something. Also-- Twityap? Is that for real?
129.
▲
by
cmccabe
13y ago
This paints a really misleading picture of what is available in Hadoop right now. Columnar data formats? Yep, we've got them-- see Parquet [ http://parquet.io/ ]. Yes, Hive spends a lot of its time reading and writing
130.
▲
by
cmccabe
13y ago
Let's not confuse a bad implementation with a bad philosophy, as a lot of these comments seem to be doing. Also, "everything is a file" is still true even when some files have additional operations possible on them. It'
131.
▲
by
cmccabe
13y ago
Plan 9 was a great OS. And it did fix a lot of these problems (although I don't know if it fixed this particular one). But it turns out that what we have is good enough, and it never gained traction.
132.
▲
by
cmccabe
13y ago
It's arguably true in a certainly commonly-used subset of C++ as well: this type of typecast doesn't work in C++ unless you use dynamic_cast or another RTTI system (like COM). dynamic_cast only works on classes with a vtable. It
133.
▲
by
cmccabe
13y ago
Supporting typecasting is hardly earth-shattering. Pretty much every statically typed programming language in actual use supports typecasts. That includes Scala, Java, C++, C, C#, Pascal, Algol, and even Ada. This title should be "st
134.
▲
by
cmccabe
13y ago
Let me guess. You are coming from Java. In Java this would be: myArray.sort(new Comparator<MyClass> ({ @Override CompareTo(MyClass lhs, MyClass rhs) { return rhs.compare(lhs); } })); Is that really shorter
135.
▲
by
cmccabe
13y ago
It's an imperative language, not a declarative one. The issue is not ordering (traversal over maps in golang is not ordered), but side effects. SQL is great. Not all languages have to be SQL.
136.
▲
by
cmccabe
13y ago
Yes, that's true. I just wanted to address the specific suggestion that the original author made. Languages make a whole set of related design choices and typically none of them makes sense without considering the others. (Sometimes
137.
▲
by
cmccabe
13y ago
That's not necessary. You can just create a type that embeds the type you're sorting, and define the Less function however you like. It's very efficient since you're just wrapping the entire slice object, not every ele
138.
▲
by
cmccabe
13y ago
With regard to the functional-style "map" function, is it really that much less typing than a simple for loop? output := make(output_type, len(input)) for idx, e := range(input) { output[idx] = convert(e) } compared to:
139.
▲
by
cmccabe
13y ago
Experiencing a networking error is different than receiving Status 200 (or any other error status), which is different than getting a media-type different than "application/json". Personally, I don't see what would be g
140.
▲
by
cmccabe
13y ago
I don't have "any evidence to back it up" but it "has not proven to be false." So because you're "avoiding tunnel vision" you should purchase some. Luckily, I'm willing to let it go for $999 a
141.
▲
by
cmccabe
13y ago
Guess what: none of this matters, because RdRand is only one source of entropy among many. For example, another source is the timing of TCP packets coming into the machine. The NSA can't predict that; nobody can. It's the butte
142.
▲
by
cmccabe
13y ago
Care to buy some of my tiger repellent? It's been 100% effective so far!
143.
▲
by
cmccabe
13y ago
This seems pretty clear: How will this work? In the short-term future, maintainers add systemd support to their packages. This does not imply dropping sysvinit support. As outlined in my post about the transition, systemd service files
144.
▲
by
cmccabe
13y ago
This is great. It will give Debian access to features like a faster startup, a sane way of restarting daemons that die, better power management and process management.
145.
▲
by
cmccabe
13y ago
As I said earlier: The idea that making something LOOK like (but not actually be) "human text" makes anything better is an idea we should have buried along with COBOL and other mistakes from the past. But I guess not.
146.
▲
by
cmccabe
13y ago
What startups do you know that are writing their own web servers? More efficient web servers will, if anything, be even better for startups than they are for Google, since they lower the barrier to entry.
147.
▲
by
cmccabe
13y ago
Marco claims that HTTP 2.0 is overly complex, but never gives any reasons why. He claims that text protocols are better than binary, but never really gives any reason for that either. Nostalgia for the days of telnet and gopher is not a r
148.
▲
by
cmccabe
13y ago
Yeah. It's too bad there aren't free web servers out there that everyone can use that implement these protocols. Oh wait, there are. By making things more efficient, HTTP 2.0 is really going to make startups spend more money. O
149.
▲
by
cmccabe
13y ago
gcc is owned by Google? Someone should tell the gcc folks and Richard Stallman that.
150.
▲
by
cmccabe
13y ago
I think the thing to do is just to write a function to keep stepping through the list until you find the right place to insert, and then just use container/list. Sorry to be "that guy" who questions the question, but sorted l
More ›