This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#![feature(min_const_generics)] | |
use std::ops; | |
#[derive(Debug)] | |
struct Matrix<T, const W: usize, const H: usize>([[T; W]; H]); | |
impl<T, const W: usize, const H: usize> Matrix<T, W, H> | |
where | |
T: Copy + Default, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Brainfuck JIT | |
# | |
# The brainfuck code is directly compiled to machine code. | |
# In the machine code, the register r13 is used to store the cell index. | |
.global brainfuck | |
# Uncomment to write the JIT code to a file | |
.equ DEBUG, 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface Parents { | |
[parent: string]: Class; | |
} | |
abstract class Class { | |
$child?: Class; | |
readonly $parents: Parents; | |
constructor($parents: Parents) { |