Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
amadvance
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
13 ms
·
91.
▲
by
amadvance
10y ago
Out of curiosity, color CRTs do have a kind of native resolution. It's the RGB pattern used to show colors. See: https://www.reddit.com/r/askscience/comments/3a2tx6/do_old_c...
92.
▲
by
amadvance
10y ago
I really have a dumbphone because the battery lasts more than one week..
93.
▲
by
amadvance
10y ago
Rust is surely fine, and an improvement over C, but its main advantage is that all the rust code is written now, when everyone takes more care about security. It doesn't have to deal with 40 years of bad legacy code written by sloppy d
94.
▲
by
amadvance
10y ago
And Ford could have asked: "Do you prefer it faster or that it's a horse?" - "I already have a horse." - "OK, I'll make something that goes faster."
95.
▲
by
amadvance
10y ago
If you use __builtin_expect() the Intel compiler uses a branch. I mean this way: if (__builtin_expect(index >= cap,0)) { ...
96.
▲
by
amadvance
10y ago
We can say that clang is like the young Gauss :) http://mathandmultimedia.com/2010/09/15/sum-first-n-positive...
97.
▲
by
amadvance
10y ago
Is this equivalent ? At least to me this seems a more common pattern than using memcpy(), and I expect to work better on old compilers. static uint32 read(const void *ptr) { const uint8 *b = (const uint8 *)ptr; return (b[3] <
98.
▲
by
amadvance
10y ago
Usually companies are mainly interested on getting money from me...
99.
▲
by
amadvance
10y ago
Is really rust not needing valgrind, and more specifically the memcheck tool ? OK for leak detection. But is it really able to detect all not initialized memory accesses ? Anyway, I suppose that rust can still benefit from other valgrind to
100.
▲
by
amadvance
10y ago
You are a master for Vendor Lock-In strategies ;)
101.
▲
by
amadvance
11y ago
I would say it's one of few that could not break as soon you get on :) It really looks like as a history bicycle, where you used foots to push. http://i.livescience.com/images/i/000/064/812/iFF&
102.
▲
by
amadvance
11y ago
Can the seeders enforce the rarest-first approach giving priority at lechers that ask for the rarest chunks ?
103.
▲
by
amadvance
11y ago
Having a feature implementation splitted in a sequence of commits helps a lot the review process. This often involves the use of interactive rebase to cleanup the history before presenting the branch for the review.
104.
▲
by
amadvance
11y ago
I don't get the issue with msvcrt.dll. It's available in all Windows installations, so for my concern, MinGW produces freestanding applications, because nothing additional needs to be installed.
105.
▲
by
amadvance
11y ago
I consider the CPython switch from Mercurial to git the final declaration of victory. I still have to understand how CPython could miss the symbolic meaning of this decision.
106.
▲
by
amadvance
11y ago
That number is rational, and all rational numbers are not normal.
107.
▲
by
amadvance
11y ago
Google for Linux OOM Killer (Out Of Memory Killer). It's really annoying, your application may get killed without any way to react, even to just print a "Low memory" error.
108.
▲
by
amadvance
11y ago
Second part of the talk is at: https://www.youtube.com/watch?v=3_FXy3cT5C8
109.
▲
by
amadvance
11y ago
And don't forget about helgrind and drd for multithread code. I would not even dare to use threads without the support of these tools. In fact, this seems a side where C has a big advantage over other languages.
110.
▲
by
amadvance
11y ago
Being smaller usually results also in being faster for the cache effect.
111.
▲
by
amadvance
11y ago
I follow a similar approach. Valgrind is a must. Just using malloc()+memset(,0,) in release, to override someway the Linux OOM killer. In starvation, malloc+memset "usually" results in a malloc() failure, instead of the process be
112.
▲
by
amadvance
11y ago
And also "The Logic of Scientific Discovery", Karl Popper. I read it at young age, and it was an open-mind read.
113.
▲
by
amadvance
11y ago
I see a value in this approach. I don't known your experience, but as soon you have a well known OpenSource project with binary distribution, you are going to see it available in a lot of scam download sites. In fact, the OpenSource li
114.
▲
by
amadvance
11y ago
This is like complaining with Gauss that he summed the first 100 numbers in the wrong way ;) http://mathforum.org/library/drmath/view/57919.html
115.
▲
by
amadvance
11y ago
This seems the result of years of frustration telling the same thing again and again. Even the 2009 Alan Cox rant was about the 'never break userspace' issue: https://lkml.org/lkml/2009/7/28/373
116.
▲
by
amadvance
12y ago
Likely you mean: touch ~/-@
117.
▲
by
amadvance
12y ago
Same here. I'm from Italy, but reported from Madagascar :) https://github.com/amadvance http://github-awards.com/users/search?login=amadvance
118.
▲
by
amadvance
12y ago
Russia invaded Crimea some months ago. Only a nuclear power could have done that without retaliation.
119.
▲
by
amadvance
12y ago
I implemented what you describe using the BSR (BitScanReverse) instruction as base of an indirect addressing of an exponentially growing data size. Essentially, instead of a direct addressing like V[i], you can do VV[log2(i)][i]. Where log2
120.
▲
by
amadvance
13y ago
Using strlcpy is like suppressing the "Division By Zero" exception and have divisions to return a fake value just to let the program run. In some case this could be even useful, but it's for legacy and sloppy programs that no
More ›