Skip to content

Instantly share code, notes, and snippets.

View jackos's full-sized avatar

Jack Clayton jackos

View GitHub Profile
@jackos
jackos / float8_type_values.txt
Last active November 26, 2024 23:02
float8 type values
binary float8_e5m2 (cuda) float8_e5m2fnuz (amd) float8_e4m3 (cuda) float8_e4m3fnuz (amd)
------------------------------------------------------------------------------------------------------
00000000 | 0.0 | 0.0 | 0.0 | 0.0
00000001 | 1.52587890625e-05 | 7.62939453125e-06 | 0.001953125 | 0.0009765625
00000010 | 3.0517578125e-05 | 1.52587890625e-05 | 0.00390625 | 0.001953125
00000011 | 4.57763671875e-05 | 2.288818359375e-05 | 0.005859375 | 0.0029296875
00000100 | 6.103515625e-05 | 3.0517578125e-05 | 0.0078125 | 0.00390625
00000101 | 7.62939453125e-05 | 3.814697265625e-05 | 0.009765625 | 0.0048828125
00000110 | 9.1552734375e-05 | 4.57763671875e-05 | 0.01171875 | 0.005859375
00000111 | 0.0001068115234375 | 5.340576171875e-05 | 0.013671875 | 0.0068359375
@jackos
jackos / README.md
Last active June 19, 2024 22:50
Make zsh behave like fish with even better completions

Make sure to backup your ~/.zshrc:

cp ~/.zshrc ~/.zshrc-backup

Install Oh My Zsh with:

sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

Install rustlings-fix and run it:

cargo install rustlings-fix
rustlings-fix

For more information on how the file this generates works checkout the Rust Analyzer Manual