Viewing profile — ambrop7
ambrop7
HN member- Joined
- Wed, Aug 15, 2012, 6:48 PM UTC
- HN karma
- 1,053
- Public activity
- 469 items
- HN profile
- View on Hacker News ↗
About ambrop7
- Programming, open source (C, C++)
- Linux, NixOS
- Computer networks
- RepRap 3D printers (got a RepRapPro Mendel)
Most of my open-source software is available here: https://code.google.com/p/badvpn/ . This includes:
- NCD programming language
- Tun2socks network layer proxifier
- Peer-to-peer layer 2 VPN
I'm also developing the APrinter open-source firmware for RepRap's: https://github.com/ambrop72/aprinter .
Recent public activity
-
comment
Comment #39163841
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 directio…
- comment
-
comment
Comment #22479163
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 act…
-
comment
Comment #22477153
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?
-
comment
Comment #22476536
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 detail…
-
comment
Comment #22467642
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 i…
-
comment
Comment #22172698
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…
-
comment
Comment #22070616
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 prog…
-
comment
Comment #22069630
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 …
-
comment
Comment #22069385
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.
-
comment
Comment #22069203
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 nee…
-
comment
Comment #22068307
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 intege…
-
comment
Comment #22067773
Here's a reliable/portable solution: bool double_to_uint64 (double x, uint64_t *out) { double y = trunc(x); if (y >= 0.0 && y If you need different rounding behavior, just change t…
-
comment
Comment #22067653
It could be done with a local TCP / UDP WebSocket gateway, especially if it's written in a safe language like Rust.
-
comment
Comment #21916762
See my sibling comment, that should make it much better.
-
comment
Comment #21916759
Two more about.config: - gfx.webrender.all = true (important on Linux, fixes jerky scrolling) - general.smoothScroll.mouseWheel.durationMaxMS = 200 (makes mouse scroll animation fa…
-
comment
Comment #21651219
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 clic…
-
comment
Comment #21552611
Or at least the basic double-slit experiment with snakes. WILL the snakes form an interference pattern?
-
comment
Comment #21527347
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 did…
-
comment
Comment #21446900
> -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 app…
-
comment
Comment #21446263
I only use my alarm clock in addition to my phone when I must not miss something really important.
-
comment
Comment #21429029
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 for inst…
-
comment
Comment #20751108
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 car…
-
comment
Comment #20750771
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 t…
-
comment
Comment #20520956
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…