
some guy on the internet ...interested in compilers/PL, bit twiddling, SIMD, uarch, algorithms, and rewriting everything because computers are awful
Joined February 2013
- Tweets1.2K
- Following135
- Followers238
- Likes1.7K
Possibly interesting to @geofflangdale, @lemire, and others: a CSV parsing library with some SIMD: github.com/liquidaty/zsv
Interestingly, the SIMD usage seems limited to special character testing followed by movmsk, with an old-school branchy lexer on just the special chars.
The Excel CSV format is more complicated than I thought (e.g. quotes are only significant if as the first char in a field). The authors say they studied your work and couldn't get much more SIMD usage.
I'm not sure more tricks wouldn't work here, like maybe a Sheng DFA.
1
This came up in an HN thread from the other day where I've been chatting with one of the authors: news.ycombinator.com/context…
(thread is for the second article about SIMD CSV parsing in the last few weeks, this library is distinct from those two articles)
So if you're making a trie that has internal structure sharing (thus a DAG not a tree), is that called a griph or a grieph
1
Working on reverse engineering the gyroscope output on a bluetooth Rubik's cube and wanted a real-time graph, so of course I went with the lazy print-ANSI-sequences method
1
1
A while back I figured out a trick to add swear words to the iOS autocomplete dictionary (just create a contact with swears as names). But a recent update broke this, and *contact names are filtered*.
I have to wonder if me posting about this on HN prompted them to "fix" it...
1
1
With the "memory renaming" feature of Zen/Zen 2 getting a lot of attention (and to a lesser extent the same feature on ICL), does anybody know of a compiler that takes it into account?
It seems spill/fill should now be as local as possible instead of hoisted upwards.
Been looking into the new p1 shuffle unit on ICL. A complete(?) list of instructions supported:
pshuf[bd] pshuf[lh]w shufp[sd], and their v- 128/256 bit variants
128/256-bit integer unpack instructions
[v]pmov[zs]x, only with 128-bit result
2
5
...and not supported:
any perm instructions
any floating-point unpacks
any align instructions
Notably all supported instructions have inputs that don't cross 128-bit lanes. Weird that FP shufs are supported but not unpacks, though
1
1
@trav_downs guessed the p1 shuffle is actually half of the p5 shuffle unit: xitter.cf/trav_down…
That doesn't quite seem to fit this data (though I'm not sure). So, has anyone confirmed whether ICL can do 1x512 + 1x256 shuffle/cycle?
They did: ICL has a second shuffle port (not as general as the p5 port).
I believe they are using the existing shuffle hardware: after all, p5 has a 512-bit unit, so there is 256-bits "unused" if you only have a single p5 shuffle port. They overlap the FMAs in the same way.
1
1
I'd like to propose a new metric for compiler quality, the "Hack ratio".
For each appearance of the word "hack" in the source code, take the ratio of [references to Sebastian Hack] : [comments about bad code].
...right now I'm at a lowly 2/47
3
Typography nerds have the interrobang (‽) in Unicode to express a surprising question. I'd rather have the interrocolon (something like ?̣ but aligned/combined properly), to ask a question about the following clause
make it happen unicode
2
Has anyone written a compiler named "Sufficiently Smart Compiler"?
If not, I'd like to claim it for future use
2
7
Based on this tweet the other day (xitter.cf/sigfpe/st…), and @nickappleton's explanations in that thread, I wrote some shader code to graph some complex-valued waveforms (square/saw/parabola--video below is a square wave) in 3D:
shadertoy.com/view/3tXfzN
Optimized this shader a bunch by storing bounding boxes for slices of the waveform in another texture, enough that my old HSW iGPU can render a metric crapton of cycles of the wave in real time. shadertoy.com/view/3tXfzN
(this is like the 2nd or 3rd shader I've ever written btw)
2


