Skip to content

Instantly share code, notes, and snippets.

View dpzmick's full-sized avatar

David Zmick dpzmick

View GitHub Profile
#include <tuple>
#include <iostream>
class LoudCopy
{
public:
LoudCopy() { }
LoudCopy(const LoudCopy&) = delete;
LoudCopy(LoudCopy&&) {}
};
#include "benchmark/benchmark.h"
#include <cstdlib>
#include <random>
#define LIMIT 5*1024*1024
enum class Variant { eA, eB };
struct Wrapper {
#include "typestring.hh"
#include <memory>
#include <thread>
#include <type_traits>
#include <iostream>
// by default nothing is realtime
template <typename T>
struct RTSaftey
#include "typestring.hh"
#include <memory>
#include <thread>
#include <type_traits>
#include <iostream>
// by default nothing is realtime
template <typename T>
struct RTSaftey
#[macro_use]
extern crate conrod;
use conrod::Borderable;
use conrod::Positionable;
use conrod::Widget;
use conrod::backend::glium::glium::DisplayBuild;
use conrod::backend::glium::glium::Surface;
use conrod::backend::glium::glium;
use conrod::glium::backend::glutin_backend::GlutinFacade;
; ModuleID = './core.bc'
source_filename = "src/core.c"
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.image = type { i8*, i64, i64 }
; Function Attrs: alwaysinline norecurse nounwind readnone uwtable
define i8* @at(i8* readnone, i64, i64, i64) local_unnamed_addr #0 {
%5 = mul nsw i64 %3, %1
; ModuleID = './core.bc'
source_filename = "src/core.c"
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.image = type { i8*, i64, i64 }
; Function Attrs: alwaysinline nounwind uwtable
define i8* @at(i8*, i64, i64, i64) #0 {
%5 = alloca i8*, align 8
.
./frown.png
./blonde_rage_super.png
./got_a_badass_full.png
./mother_of_god_annoyed.png
./hey.png
./red_rage_extreme.png
./x_all_the_y.png
./blonde_facepalm.png
./portal_rainbows.png
#![feature(unboxed_closures)]
use std::ops::Add;
use std::ops::Mul;
use std::ops::Sub;
use std::fmt::Debug;
// an expression can be compiled or evaluated
// all of the implementations are excluded in this file
// the Inputable trait is defined elsewhere, not relevant for the question posed
trait Expr: Debug {
; ModuleID = '<stdin>'
; Function Attrs: alwaysinline norecurse nounwind readonly
define i64 @image_buffer(i64, i64) #0 {
entry:
%2 = mul i64 %1, 640
%3 = add i64 %2, %0
%4 = getelementptr inbounds i8, i8* inttoptr (i64 139681908746176 to i8*), i64 %3
%5 = load i8, i8* %4, align 1
%6 = zext i8 %5 to i64