Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dap
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
43 ms
·
421.
▲
by
dap
14y ago
Companies are not free to do whatever they want. The government compels monopolists to avoid anticompetitive behavior, and even breaks companies up, for examples. The market in this case is a little hard to define, since apartment seekers a
422.
▲
by
dap
14y ago
I'm surprised how many people here are defending Craigslist. They've got a history of both providing a terrible experience for apartment seekers and shutting down any attempts to use their data to provide a better experience. That would be
423.
▲
by
dap
14y ago
Valgrind (and tools using its methodology) isn't the only way to solve these problems. Libumem finds memory leaks too, and without imposing an immense runtime cost. It also finds many types of memory corruption without the runtime overhea
424.
▲
by
dap
14y ago
I don't know how shred works, but based on what you said, it assumes knowledge of how the underlying filesystem works. If there's fault to be had (and there probably isn't), it's not ZFS's. You really consider being able to shred individua
425.
▲
by
dap
14y ago
Yes -- see my post above. Syntax and semantics simple enough to be easily statically analyzed (both by humans and tools like lint) are a language feature that C has over C++. More generally, many people see significant value in the very pr
426.
▲
by
dap
14y ago
Just because C++ is a superset of C doesn't make it strictly better. The presence of additional features can be a liability. The obvious problem is that if you want to use the C subset in a multi-person project (whose team evolves over ti
427.
▲
by
dap
14y ago
A rigorous benchmark must seek to explain the difference in performance, not just hand-wave saying "such-and-such is faster". Otherwise, you have no way of validating (for yourself, let alone demonstrating to others) that it's not a miscon
428.
▲
by
dap
14y ago
(Response to jbooth, but for some reason I can't reply to that directly.) The whole point of sendfile is to make one system call to send all the data in one stream to another, which in general may block. If you're polling and sending only
429.
▲
by
dap
14y ago
From the article: > InfoQ: What about running a real-time app on the JVM vs. on Node.js, with respect to debugging, monitoring and operations? > Answer: I'd say monitoring and operations are really the concern of the environment in
430.
▲
by
dap
14y ago
But you have to dedicate a thread to sendFile() (by nature).
431.
▲
by
dap
14y ago
As several people have pointed out, this doesn't make a lot of sense. People could just as well put parsing directives in special properties. On the other hand, having proper comments would make using JSON for configuration significantly
432.
▲
by
dap
14y ago
You can't legally do that. That's an important difference. But you can do other things to reduce your tax burden, and people do hire tax professionals to do that. H&R Block even has a "Maximum Refund Guarantee".
433.
▲
Profiling Node.js
(dtrace.org)
50 points
by
dap
14y ago
|
4 comments
434.
▲
by
dap
15y ago
I'd prefer the opposite. I don't find the OP's "problem" that annoying, but I frequently send stuff to family and friends whose addresses I remember but whose ZIPs I can never keep straight, and it would be great if forms auto-filled that
435.
▲
Managing Node.js dependencies with npm shrinkwrap
(blog.nodejs.org)
17 points
by
dap
15y ago
|
1 comments
436.
▲
by
dap
15y ago
Yes, buffer size can have a significant effect on performance. You can quickly see buffer sizes used by "read" across your system with "dtrace -n 'syscall::read:entry{ @ = quantize(arg2); }'", which summarizes the output (in case you're do
437.
▲
by
dap
15y ago
Sure, there's a way to tell. There are lots of ways of telling which platform you're on (#defines), and platforms can document the expected behavior. If a platform doesn't, then complain to the vendor. Yes, it sucks to resort to condition
438.
▲
by
dap
15y ago
Don't paint us all with one brush. I suspect there's a significant bias in observation here because it's the sexy, fun stuff that everyone hears about. There are lots of people taking the profession seriously, but many of them are behind
439.
▲
by
dap
15y ago
Better yet, just use an OS that doesn't come with a self-destruct button: http://en.wikipedia.org/wiki/Rm_(Unix)#Protection_of_.2F
440.
▲
Oracle Pitches Solaris as ‘First Cloud OS’
(wired.com)
6 points
by
dap
15y ago
|
0 comments
441.
▲
by
dap
15y ago
As many have pointed out, there are absolutely tools that would catch this kind of problem in development. But the experience also speaks to the lack of sophisticated observability tools for Node (and just about every other popular dynamic
442.
▲
by
dap
15y ago
> If it's a kernel module, then you'd be silly not to use the gcc extension. Sure, if you're not interested in anyone porting that code to another OS. This happens all the time with drivers -- just because the interface is OS-specific
443.
▲
by
dap
15y ago
Agreed. Google is neither plaintiff nor defendant in this case. Not actually, not effectively (they don't own a controlling stake in IV). I came here from Slashdot to escape sensational headlines and linkbait.
444.
▲
by
dap
15y ago
You're right -- it's the touched pages that count. In many cases, that's a few MB per stack, which is what I said.
445.
▲
by
dap
15y ago
That thread pool isn't actually that simple. How many threads do you use? If you throw 1,000 threads at the problem with a 2MB stack each, that's 2GB of DRAM you've thrown away (instead of 20MB * ncores per Node process) -- DRAM that coul
446.
▲
by
dap
15y ago
> If your team is avoiding a tool with a 1 in 16,000 chance of failure then they'd probably also want to avoid flying (1 in 20,000 chance of death by failure), large bodies of water (1 in 8,942) and run terrified from cars (1 in 100) (s
447.
▲
by
dap
15y ago
> I've seen code where I was like "WTF was this guy thinking?". You can write obfuscated code in any language. The point about C is that the mental model is very simple. There's no magic happening anywhere, so if you can parse the lan
448.
▲
by
dap
15y ago
It's a relatively common pattern to have a "collection" data structure (like a list or hash table) use link structs embedded inside other structs to simplify memory management. When you append to a linked list in Java, you always allocate
449.
▲
by
dap
15y ago
Not at all. The beauty of KVM on SmartOS is that Joyent's customers can run BSD, or Linux, or Windows, or whatever they want without even knowing it's running on top of Illumos. That's why the user base isn't as much an issue. But the un
450.
▲
by
dap
15y ago
You're suggesting Joyent should have finished porting DTrace, ZFS, and Zones to FreeBSD, and then port KVM to FreeBSD, instead of just porting KVM to Illumos?
More ›