Skip to content

viveshok/hamming

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hamming

sandbox to play with and benchmark bit operations and interop in C, Erlang and Go

how to run (on Linux)

For Golang:

$ go run hamming.go

For C:

$ gcc -Wall -W -g hamming.c main.c -lrt -O3 -o hamming.out
$ ./hamming.out

For Erlang:

$ gcc -o hamming_nif.so -fpic -shared hamming.c hamming_nif.c -I/usr/lib/erlang/erts-5.10.4/include
$ erlc hamming.erl benchmark.erl
$ erl
> benchmark:benchmark().

About

sandbox to play with and benchmark bit operations in C, Erlang and Go

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published