Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ambrop7
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
ambrop7
3y ago
The issue is not motion, the vestibular system cannot measure velocity, only linear acceleration and rotation. The only issue is while you are accelerating in a horizontal direction in VR, but you are not actually acccelerating (remember ac
2.
▲
by
ambrop7
7y ago
Do you maybe know, when frames rendered by GPU 1 (e.g. fast GPU) need to be sent to GPU 2 (e.g. slow GPU doing the compositing and outputting to the monitor), how does the data actually get transferred? I can imagine the following possibili
3.
▲
by
ambrop7
7y ago
This is quite unclear to me. Is DMA-BUF so generic that the memory it refers to can be in different types of RAM, including GPU RAM and CPU RAM?
4.
▲
by
ambrop7
7y ago
The mention of DMA-BUF makes me suspect that it involves rendered video being copied from the GPU to the main RAM and back to the GPU, which wastes energy. Does someone have details about how the integration works?
5.
▲
by
ambrop7
7y ago
In any case, if the program forks in order to exec, it shouldn't be using fork at all, but posix_spawn. Fork gets more expensive as the virtual memory of the process grows, since it needs to copy page tables. For very large process for
6.
▲
by
ambrop7
7y ago
Suppose the the period of lights is equal to the time expected to move from one light to the next, and each light is red/green for the same amount of time. You have a green wave if you pass the first light green and drive at the expect
7.
▲
by
ambrop7
7y ago
Programming languages aren't able to express arbitrary real numbers, so to "determine whether a given real number is representable as an int or not" is mostly meaningless in a programming language as opposed to a computer alg
8.
▲
by
ambrop7
7y ago
Each floating point value that is not a NaN represents a certain real number, -inf or +inf (this can be expressed in terms of the sign bit, exponent and mantissa). Knowing that, a == b when neither operand is a NaN is defined as equality of
9.
▲
by
ambrop7
7y ago
One benefit would be to protect yourself from security issues in the main torrent code. Anyway it was just an idea, not a serious proposal.
10.
▲
by
ambrop7
7y ago
You don't always need epsilon. I've written lots of floating point code that works well without epsilon checks. See my comment in this thread (double_to_uint64) how what the OP needs can be done correctly without an epsilon check.
11.
▲
by
ambrop7
7y ago
This is not right. The current rounding mode is not guaranteed to apply to integer to floating point conversions. Quoting C99, section 6.3.1.4, paragraph 2: "When a value of integer type is converted to a real floating type, if the val
12.
▲
by
ambrop7
7y ago
Here's a reliable/portable solution: bool double_to_uint64 (double x, uint64_t *out) { double y = trunc(x); if (y >= 0.0 && y < ldexp(1.0, 64)) { *out = y; return tru
13.
▲
by
ambrop7
7y ago
It could be done with a local TCP / UDP <=> WebSocket gateway, especially if it's written in a safe language like Rust.
14.
▲
by
ambrop7
7y ago
See my sibling comment, that should make it much better.
15.
▲
by
ambrop7
7y ago
Two more about.config: - gfx.webrender.all = true (important on Linux, fixes jerky scrolling) - general.smoothScroll.mouseWheel.durationMaxMS = 200 (makes mouse scroll animation faster)
16.
▲
by
ambrop7
7y ago
Plasma/KDE is mostly great, but a major thing that GNOME and Xfce still do better is GVFS and GVFS-FUSE. That means I can browse to smb://something or sftp://something, double click a file and it just works whatever
17.
▲
by
ambrop7
7y ago
Or at least the basic double-slit experiment with snakes. WILL the snakes form an interference pattern?
18.
▲
by
ambrop7
7y ago
Also, more SW programmers should be getting into this field, as by working in SW first you realize all the things that need improvement in the FPGA world (which the FPGA people didn't recognize, not knowing how SW is done in the modern
19.
▲
by
ambrop7
7y ago
> -march=native and -mtune=broadwell tell the compiler to optimize for your architecture. One would think given the compiler documentation that march implies mtune, but this is apparently not the case. That sounds like a bug to me which
20.
▲
by
ambrop7
7y ago
I only use my alarm clock in addition to my phone when I must not miss something really important.
21.
▲
by
ambrop7
7y ago
GCC has had this since forever: cc: internal compiler error: Segmentation fault (program cc1) Please submit a full bug report, with preprocessed source if appropriate. See <URL> for instructions. (the URL may be customized by the dist
22.
▲
by
ambrop7
7y ago
Paid 13200 USD (they don't publish the price on their web page any more, but I suppose it didn't change much). Supposedly their price is one of the lowest (and you get the best care).
23.
▲
by
ambrop7
7y ago
Hope you're better. I had a similarly horrifying experience myself. More and more pain pretty much everywhere, tiredness, headaches, GERD - almost every "vague" symptom you could think of, slowly getting worse over months and
24.
▲
by
ambrop7
7y ago
I could argue that even people who genuinely feel emotions have, unconsciously, learned to feel them through their interactions with other people. Who can prove to me that emotions are something fundamental to humans and not acquired throug
25.
▲
by
ambrop7
7y ago
> It's equally clear that most of what we associate with consciousness, such as thinking, awareness of the body and the moment and time and decision making and ... doesn't exist either. Because time and time again studies prove
26.
▲
by
ambrop7
7y ago
If a brain performs the same sensory and decision-making functions, it is also going to claim that it feels emotions and experiences colors in particular ways. For all practical purpose, such a brain is conscious.
27.
▲
by
ambrop7
7y ago
Wondering what's genetic about this experiment.
28.
▲
by
ambrop7
7y ago
> It also does away with rounding errors What? Surely it does not have infinite precision with a finite number of bits, and also doesn't seem to be a rational number representation.
29.
▲
by
ambrop7
7y ago
It appears that one person is working on it and the project is in a prototype phase: https://gitlab.freedesktop.org/emersion/waypipe
30.
▲
by
ambrop7
7y ago
Nitpick: modern bone density scans use X-rays, and don't typically fall under nuclear medicine.
More ›