Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ambrop7
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
45 ms
·
391.
▲
by
ambrop7
13y ago
It's possible to abstract IOCP and non-blocking sockets into a single interface with reasonable efficiency. For example: - To send data, user calls Socket::send(const char *data, size_t length). This starts sending the given data; the buffe
392.
▲
by
ambrop7
13y ago
He probably doesn't have 64 threads, but he may have much more than 64 files or sockets. After all, the response was to the statement that "WaitForMultipleObjects as a kind of super-select to wait on anything". It clearly isn't, with this a
393.
▲
by
ambrop7
13y ago
"It allows users to create a block level disk backups and restore it with ease" Nitpick: I distinctly remember Ghost having mentioned specific files while it was backing up or recovering, hence it's not (entirely) a block-level backup. Also
394.
▲
by
ambrop7
13y ago
I do come in #reprap often (nick ambro718). For example, fan control could be made volumetric, based around how much filament is below the extrusion, not just the whole layer time. The bridge detection in Slic3r is a very restricted form
395.
▲
by
ambrop7
13y ago
That seems like a waste. What's wrong with it?
396.
▲
by
ambrop7
13y ago
Even if nobody manages to identify him (and probably nobody will), this says nothing about what a resourceful organization (such as an intelligence agency or a criminal organization) can do.
397.
▲
by
ambrop7
13y ago
I've built the RepRapPro Mendel from a kit about 2 months ago. Don't have any "real" use for it - it's just a cool toy to have, considering it doesn't cost that much (paid 640 EUR for the kit). But it may come very useful if I try to buil
398.
▲
by
ambrop7
13y ago
Looking out for HN users (other than voidnull) that write about Internet privacy a lot will give some candidates.
399.
▲
by
ambrop7
13y ago
Right, but it's a trivial fix, in this case at least. I'm happy as long as standard code works in their compiler. Considering how much trouble MS are having with getting their compiler standard-conformant, I'd rather they work on the more i
400.
▲
by
ambrop7
13y ago
Unless this breaks valid C++ code, I don't see how they need care too much about fixing it, especially since that would break existing code.
401.
▲
by
ambrop7
14y ago
If they're really into reducing bugs, they should embed a complete proof system into the language, rather than try to guarantee something as simple as correct memory references - which isn't much of a problem to ensure for anyone serious ab
402.
▲
by
ambrop7
14y ago
I think that this would be an instance of the bin packing problem, not the knapsack problem ( http://en.wikipedia.org/wiki/Bin_packing_problem ). (yes, the knapsack problem wikipedia page lists the bin packing problem as a generalization)
403.
▲
by
ambrop7
14y ago
Hypothetical question: if all the knowledge in the world was available to you, how long would it take to build a modern electronic device from raw materials and without using any existing machine in the build process? I mean the actual time
404.
▲
by
ambrop7
14y ago
You have to take into account that Microsoft can modify their own OS and implement what needs to be done in a proper way. On the other hand, third-party vendors can only use the public interfaces exposed by the OS, or resort to unreliable a
405.
▲
NCD, a backtracking asynchronous programming language for network configuration
(code.google.com)
5 points
by
ambrop7
14y ago
|
0 comments
406.
▲
by
ambrop7
14y ago
I think security bugs in Dalvik have less ramifications, because of at least 2 reasons: 1. Java code doesn't get executed by Dalvik automatically from web sites etc - an attacker has to get the user to install his application. 2. If an atta
407.
▲
by
ambrop7
14y ago
L E T ' S A L L F I X T H I S P R O B L E M B Y U S I N G O V E R S I Z E D F O N T S S O T H A T T H E R E A P P E A R S T O B E M O R E C O N T E N T. (seems like I can't change font size in the comments, s
408.
▲
by
ambrop7
14y ago
The solution to these problems is for everyone to be completely ignorant of any character encoding and just deal with octets. If the characters represent UTF-8 text, then only when text needs to be presented or interpreted in some way, UTF-
409.
▲
by
ambrop7
14y ago
No, of course not, I was just referring the the reluctance of the book to get modernized. I can't possibly imagine not using an abstract event loop.
410.
▲
by
ambrop7
14y ago
Still not updated to mention anything more than select() as far as non-blocking IO is concerned, like poll, epoll, or, god no, using an abstract event loop. Nobody who cares about their code and sanity does blocking I/O with sockets. But th
411.
▲
by
ambrop7
14y ago
Much less likely than someone editing code later using his superficial understanding of C++ :)
412.
▲
by
ambrop7
14y ago
I've tried this, and gcc indeed doesn't produce warnings even with -Wall -Wextra. Clang does however without needing any flags.
413.
▲
by
ambrop7
14y ago
I just made that argument up, didn't know about Conal's post, thanks for the link!
414.
▲
by
ambrop7
14y ago
Because it's an implementation thing, it has no relevance from a theoretic view on the language. It's like the "compiled/interpreted" label.
415.
▲
by
ambrop7
14y ago
C is also pure. After all, C code is just data until it gets compiled and executed. When and how often this happens is irrelevant. You could write a C interpreter in Haskell, and then your C code would be as pure as anything else in Haskell
416.
▲
by
ambrop7
14y ago
SIGKILL is not really a "special case", because signals are not equivalent, they have assigned semantics. SIGSTOP also can't be caught. The fact that other signals can be caught and these can't just follows from their intended purpose. If t
417.
▲
by
ambrop7
14y ago
I consider any uninterruptable sleep in the kernel a bug. There's no technical reason a process waiting for a resource (e.g. disk I/O) couldn't be killed on the spot, leaving the resource on its own. If it can't be, it just means it hasn't
418.
▲
by
ambrop7
14y ago
Just for fun I made a benchmark for "two-star" and "one-star" versions of remove_if() and build() (to link an array of nodes). Code: http://ideone.com/D7bzmo Results with {gcc-4.7.2,clang-3.2} -march=corei7 -O3 build_onestar+remove_if
419.
▲
by
ambrop7
14y ago
Sorry, I missed that, was distracted by your not-really-correct statement above :)
420.
▲
by
ambrop7
14y ago
> how do you write a C compiler without a C compiler? C is often the lowest-level language compilers are written in, so in order to bootstrap a C compiler for a specific architecture / OS, you need to write the entire compiler in the ta
More ›