Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
fuber2018
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
fuber2018
3y ago
I knew a guy who worked at MS when they were developing the Barney doll. He signed up to beta/play-test the doll since he had a son in the target age range. He left work on Friday with the new Barney doll. When he came into work on the
2.
▲
by
fuber2018
3y ago
The code in question has to process a string of variable length. But the compiler/CPU can process bytes one at a time or much faster in groups. The code is trying to process as much as possible in groups of 128. But since the caller ca
3.
▲
by
fuber2018
3y ago
If this code only runs on one compiler version/CPU arch, then ASSUMING the compiler will do the RIGHT THING and auto-vectorize the code is okay. But if your code will be cross-platform/run on different OSes/CPU arch's, t
4.
▲
by
fuber2018
3y ago
I assume the M1's SIMD registers are wider/more numerous than just the couple of size_t registers used for the loading/masking/accumulating inner loop in your run_swtches(). You can speedup the code by unrolling your inn
5.
▲
by
fuber2018
3y ago
If I unroll the 64-bit SWAR version by 8x instead of 4x, the runtime is reduced by another 10% over the 4x-unrolled SWAR version. Diminishing returns...
6.
▲
by
fuber2018
3y ago
Almost the same as my SWAR version - which is what you're doing. But aren't you reading off the end of the buffer in your memcpy(&w...)? Say with an empty input string whose start address is aligned to sizeof(size_t) bytes? I
7.
▲
by
fuber2018
3y ago
My SWAR version almost does what your vectorization algorithm description does - just that the SWAR-code looks rather gnarly because the compiler isn't auto-generating the vector code for you, it's hand-coded in C by me and I'
8.
▲
by
fuber2018
3y ago
If I convert the unrolled-64-bit SWAR function to use 32-bit chunks instead, average runtime almost doubles, approx. 0.1s now. Need sleep now.
9.
▲
by
fuber2018
3y ago
If I unroll the main while loop to handle 4x as much each time through the loop in the SWAR-version, the runtime drops to 0.0562s (average 10 runs). That's an overall 57.5x speedup.
10.
▲
by
fuber2018
3y ago
I took the 64-bit SWAR ('S'IMD-'W'ithin-'A'-'R'egister) road and passed in the string length - the calling code has the length "right there"!!! Using the original run_switches function, app
11.
▲
by
fuber2018
5y ago
There's a dark side to this pressure to perform well in all aspects - high suicide rate amongst your adults in the Palo Alto area. see https://www.mercurynews.com/2017/03/03/cdc-report-youth-suic... htt
12.
▲
by
fuber2018
5y ago
Some researchers suggest parents should praise effort instead of intelligence. see https://www.nytimes.com/1998/07/14/science/praise-children-f... Also children should be permitted to fail.
13.
▲
by
fuber2018
6y ago
Looking at the nutritional info for Soylent and Vite Ramen shows that they also contain Vitamin D - at the same DRV percentages. If you're getting 105% of your magnesium from these items, then you're also getting 105% of your Vita
14.
▲
by
fuber2018
6y ago
If you are missing, then authorities usually like to have a recent photo of you to aid in the search. I don't see an explicit reference to "recent image of me" in your "First step" list of data - photos in legal doc
15.
▲
by
fuber2018
7y ago
My guess is Symantec due to their change of corporate direction/vision in 2019 (selling enterprise sec biz to Broadcom, concentrating on consumer/smallbiz cybersecurity). see https://www.pcmag.com/news/symante
16.
▲
by
fuber2018
7y ago
Not when you understand the economics/operation of 1980s desktop software. Multitasking OSes? Nope - not in the early-mid 1980s. You want to use another app? Save your work, quit your current app and launch the new app. Cooperative mul
17.
▲
by
fuber2018
9y ago
Library is GPL (not LGPL), so usage will be limited to those who don't mind the entire app's source code being released.