Skip to content

Instantly share code, notes, and snippets.

View CubeFlix's full-sized avatar

Kevin Chen CubeFlix

View GitHub Profile
@nadavrot
nadavrot / Matrix.md
Last active June 17, 2024 09:16
Efficient matrix multiplication

High-Performance Matrix Multiplication

This is a short post that explains how to write a high-performance matrix multiplication program on modern processors. In this tutorial I will use a single core of the Skylake-client CPU with AVX2, but the principles in this post also apply to other processors with different instruction sets (such as AVX512).

Intro

Matrix multiplication is a mathematical operation that defines the product of

@deiwin
deiwin / whitespace_translator
Created November 26, 2014 11:08
Whitespace translator
#!/bin/ruby
SPACE = "S "
TAB = "T\t"
NEWLINE = "L\n"
def to_binary(c)
return c.to_s(2)
end
@spikebike
spikebike / client.go
Created March 29, 2012 01:13
TLS server and client
package main
import (
"crypto/tls"
"crypto/x509"
"fmt"
"io"
"log"
)