Skip to content

Instantly share code, notes, and snippets.

/*
words.h - random fake word generator
Coded by Tibor Djurica Potpara <tibor.djurica@ojdip.net>, 2012
http://www.ojdip.net
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
@tibordp
tibordp / jit.cc
Last active December 27, 2017 00:33
A JIT compiler for parametrized RPN expressions
#define NOMINMAX // Otherwise the min/max will be defined as macros on VS
#include <algorithm>
#include <array>
#include <atomic>
#include <cctype>
#include <chrono>
#include <cstdint>
#include <cstdlib>
#include <cstring>
@tibordp
tibordp / variant.cc
Last active November 14, 2023 16:04
A simple variant type implementation in C++
#include <iostream>
#include <utility>
#include <typeinfo>
#include <type_traits>
#include <string>
template <size_t arg1, size_t ... others>
struct static_max;
template <size_t arg>