Zach Wegner (@zwegner) profile picture

some guy on the internet ...interested in compilers/PL, bit twiddling, SIMD, uarch, algorithms, and rewriting everything because computers are awful

Joined February 2013
Photo by Zach Wegner (@zwegner)Photo by Zach Wegner (@zwegner)Photo by Zach Wegner (@zwegner)Photo by Zach Wegner (@zwegner)Photo by Zach Wegner (@zwegner)Photo by Zach Wegner (@zwegner)Photo by Zach Wegner (@zwegner)Photo by Zach Wegner (@zwegner)Photo by Zach Wegner (@zwegner)Photo by Zach Wegner (@zwegner)
At this point I think Google is just fucking with us
1
2
This is a weird one though. I wonder if they're going meta and seeing that most humans will just blindly click on the traffic lights without seeing the caption (as I almost did), whereas ML would presumably not do that
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.
2
1
4
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
Turns out it was 32-bit float quaternions. Made some good progress otherwise:
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
Weird manufacturing error in this notebook: a single page out of 100 is upside-down
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.
3
1
9
...at least, unless there's a throughput limit here. Do the loads/stores still need to pass through the relevant AGU/load/store units to confirm the speculation?
1
1
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
I missed the integer "downconvert" instructions in this list. ICL p1 also supports vpmov(wb|dw|db|qd|qw|qb), and the signed/unsigned saturating variants. Or at least, the shuffle uop part of these--they seem to all be 2 uops, even the truncating ones, strangely enough
1
...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
3
1
10
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