Skip to content

Instantly share code, notes, and snippets.

View retokromer's full-sized avatar
💭
My research assistant was raped to death during the October pogrom.

רטו\רעטאָ\רֵיטוֹ • Reto retokromer

💭
My research assistant was raped to death during the October pogrom.
View GitHub Profile
@retokromer
retokromer / Basilisk_II_Compilation.md
Last active May 26, 2019 13:50
Basilisk II Compilation

Basilisk II Compilation

On macOS

You need cvs, autoconf and automake. If you don’t have them installed yet, then you can install them e.g. via Homebrew:

brew install cvs
brew install autoconf
brew install automake
@retokromer
retokromer / ackermann_recursive.c
Last active April 12, 2020 12:30
Ackermann function computed recursively
/*
* Copyright (c) 2020 by Reto Kromer
*
* Ackermann function:
*
* A(0,n) = n+1
* A(m,0) = A(m-1,1) if m > 0
* A(m,n) = A(m-1,A(m,n-1)) if m > 0 and n > 0
*
* where m and n are non-negative integers
@retokromer
retokromer / ackermann_stack.c
Last active April 12, 2020 12:31
Ackermann function computed with stack simulation
/*
* Copyright (c) 2020 by Reto Kromer
*
* Ackermann function:
*
* A(0,n) = n+1
* A(m,0) = A(m-1,1) if m > 0
* A(m,n) = A(m-1,A(m,n-1)) if m > 0 and n > 0
*
* where m and n are non-negative integers