Skip to content

Instantly share code, notes, and snippets.

View marekjm's full-sized avatar

Marek Marecki marekjm

View GitHub Profile
@marekjm
marekjm / 99bottles.asm
Created July 22, 2015 19:37
99 bottles of beer for Viua VM assembler (modifed code of @snake66)
; 99 bottles of beer program for Viua VM Assembler
; Copyright (C) 2015 Harald Eilertsen
;
; This program is free software: you can redistribute it and/or modify
; it under the terms of the GNU General Public License as published by
; the Free Software Foundation, either version 3 of the License, or
; (at your option) any later version.
;
; This program is distributed in the hope that it will be useful,
; but WITHOUT ANY WARRANTY; without even the implied warranty of
@marekjm
marekjm / 99bottles_with_new_syntax.asm
Created July 26, 2015 22:19
99 bottles for Viua VM assembly written using new, extended syntax (36 lines, could be shortert if not for the shortcomings of the tokenizer)
; 99 bottles of beer program for Viua VM Assembler (modified)
; Copyright (C) 2015 Marek Marecki
;
; This program is free software: you can redistribute it and/or modify
; it under the terms of the GNU General Public License as published by
; the Free Software Foundation, either version 3 of the License, or
; (at your option) any later version.
;
; This program is distributed in the hope that it will be useful,
; but WITHOUT ANY WARRANTY; without even the implied warranty of
@marekjm
marekjm / functional-inheritance.cpp
Created August 10, 2015 19:22
An example showing that without guidance (static_cast<>) functional will sometimes not handle inheritance
// Simple test for using std::function with inheritance
#include <functional>
#include <iostream>
class Base
{
public:
virtual void do_it(const std::string & s)
{
std::cout << "Doing " << s << std::endl;
@marekjm
marekjm / gist:60c53d0c026149d0d1d3
Created December 19, 2015 09:39
VLIW/ASM PJATK
https://www.cs.umd.edu/~meesh/cmsc411/website/projects/IA64-2/411project.htm
https://www.nvidia.com/content/cudazone/cudau/courses/ucdavis/lectures/ilp3.pdf
http://www.ai.mit.edu/projects/aries/Documents/vliw.pdf
http://www.cse.unsw.edu.au/~cs9244/06/seminars/02-nfd.pdf
http://www.ida.liu.se/~TDDI68/lecture-notes/lect8-9.frm.pdf
@marekjm
marekjm / dark.css
Last active June 11, 2020 14:31
Dark realworldocaml.org
html, body {
background-color: #000;
color: #e0e0e0;
}
div.wrap {
background-color: #1a1a1a;
}
div.wrap h1, div.wrap h2, div.wrap h3, div.wrap h4, div.wrap h5 {
color: #caaa00;