Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ambrop7
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
23 ms
·
181.
▲
by
ambrop7
10y ago
I don't get it. The probability must depend on how likely I am to select any specific integer, i.e. probability mass function of N. The probability cannot depend on the value of the random variable itself but could involve any paramete
182.
▲
by
ambrop7
10y ago
"the probability that N is a perfect n^nth power..." Can someone explain what probability means here in relation to N? From my understanding, it depends on what N is for you. If it's a constant, that probability is obviously
183.
▲
by
ambrop7
10y ago
1000fps, what the hell? HDMI only supports up to 60fps (which makes sense considering the intended use is sending video to a display device like monitor/tv/projector).
184.
▲
by
ambrop7
10y ago
Interrupts typically do not observably interrupt currently running code. In a simple system (e.g. embedded system with no threads, all event-driven), the interrupt handler will run, then the processor will go back to running whatever it w
185.
▲
by
ambrop7
10y ago
The worst thing about signals is that they interrupt whatever system call the thread is currently inside (EINTR). This is not typically observed but can have dire consequences randomly. For example, last time I checked, in Python 2.7, a sig
186.
▲
by
ambrop7
10y ago
That is a reasonable way of looking at this, but the question is which concept belongs on your documents. The corresponding field on my (EU-based) passport says sex not gender - don't know how it is in the US. Your sex is something tha
187.
▲
by
ambrop7
10y ago
Thanks for the info. Yes I suppose zero-copy can be made to work but surely one needs to go through a LOT of trouble to make it work. I'm curious about sending data for TCP through, don't you need to have the original data availab
188.
▲
by
ambrop7
10y ago
> something might poll and not-block, but actually block by the time you get around to using the buffer On Linux if a socket is set to non-blocking it will not block. I don't really understand your point with shared buffers. You w
189.
▲
by
ambrop7
10y ago
Which design faults do you think epoll specifically has? I know there are lots of file descriptors not usable with epoll or rather async i/o in general and that sucks (e.g. regular files). For networking, I find epoll/sockets nice
190.
▲
by
ambrop7
10y ago
Also more people getting their life prolonged by cancer treatment?
191.
▲
by
ambrop7
10y ago
Some questions come to mind: - Can it not accelerate smoothly? The graph on the page seems to imply that. - Also on that graph, the relation between distance and speed on accelerated parts appears to be linear, but, if this is supposed to a
192.
▲
by
ambrop7
10y ago
Does this really "help" in anyone's design? I know some people despise callbacks, but I would much rather read callback-based code than this (looking at example.cpp).
193.
▲
by
ambrop7
10y ago
Yeah, I know, there are cases where it matters. But I suppose many of these cases are also the ones where performance (and a hardware implementation) matters, and you're better off designing your algorithm to deal with roundoff error t
194.
▲
by
ambrop7
10y ago
Why bother? The precision of double is sufficient for the vast majority of engineering problems. Seldom do you have measurements that are more precice than the calculations you do with them.
195.
▲
by
ambrop7
10y ago
These days it's best to just use an event-loop library like libuv, and you get much more than just sockets.
196.
▲
by
ambrop7
11y ago
As far as I know, it is an optional feature that both the controller and the drive have to support, to use reliably.
197.
▲
by
ambrop7
11y ago
You're placing a lot of trust in you presumably consumer-level disks. Even if the filesystem is perfectly crash-tolerant under some specific model of disk behavior, the disk could always behave outside of that model, especially upon su
198.
▲
by
ambrop7
11y ago
Nix/NixOS - everything is build not only in a chroot, but also in various namespaces. Of course that doesn't help if you actually use a package (directly or indirectly) hence executing it outside of the build chroot.
199.
▲
by
ambrop7
11y ago
gcc/clang with -fsanitize=undefined
200.
▲
by
ambrop7
11y ago
The @anl.gov is probably this: https://www.alcf.anl.gov/bgclang-compiler See: https://en.wikipedia.org/wiki/Blue_Gene#Blue_Gene.2FQ "The Blue Gene/Q Compute chip is an 18 core chip. The 64-bi
201.
▲
by
ambrop7
11y ago
Correct me if I'm wrong but... It is impossible for unsigned char to be 32 bits and for uint8_t to exist, on a conformant C/C++ implementation. The sizeof char / unsigned char is 1 ("byte" is defined this way). So i
202.
▲
by
ambrop7
11y ago
Why bother? You only need the ST code to work in ST chips, if you want to port to a different chip you wouldn't use the ST code.
203.
▲
by
ambrop7
11y ago
More like about 1.5m long, I don't think there are rabits that large.
204.
▲
by
ambrop7
11y ago
you can already do: auto *x = foo(); Which is actually more readable than "pointer".
205.
▲
by
ambrop7
11y ago
(this is speculation only but I suspect it's right) When the individual memory chips on a RAM stick have base-2 capacity, it is easy to make a request get serviced by the right chip. You just take some higher bits of the address as the
206.
▲
by
ambrop7
11y ago
Just now I was working on integrating and optimizing networking for some microcontroller-based software (using lwIP). At the end, I've reached 7MB/s send and 10MB/s bulk receive speed. I just did the calculation. It says for
207.
▲
by
ambrop7
11y ago
My machine is running CUPS on 127.0.0.1:631 (the local HTTP interface). Does this mean any web site can print with my printer?
208.
▲
by
ambrop7
11y ago
The security of the browser is conditional on the security of the platform in the first place, so this does not make sense. Anything that can edit the settings of the browser without its knowledge can interfere with the browser and other so
209.
▲
by
ambrop7
11y ago
I'm curious, isn't there a race condition in the WCE method, where: (1) The child terminates normally, never having received SIGINT. (2) The parent receives SIGINT before it reaches the wait() call, or while in the wait() call but
210.
▲
by
ambrop7
11y ago
But YAGNI.
More ›