Skip to content

Instantly share code, notes, and snippets.

View yebblies's full-sized avatar

Daniel Murphy yebblies

  • University of New South Wales
  • Australia
View GitHub Profile
import std.algorithm;
import std.file;
import std.range;
import std.stdio;
import std.string;
import std.process;
string deleteSources =
`
import std.stdio;
import std.process;
import std.random;
import std.exception;
import std.uuid;
import std.range;
import std.string;
abstract
import std.stdio;
import std.process;
import std.random;
import std.exception;
import std.uuid;
import std.range;
import std.string;
// x86_32 - bug with empty struct - fixed
@yebblies
yebblies / fuzzvarargs.d
Created January 9, 2015 02:39
Simple fuzz tester for C++ argument passing
import std.stdio;
import std.process;
import std.random;
import std.exception;
import std.uuid;
import std.range;
import std.string;
// x86_32 - bug with empty struct - fixed
@yebblies
yebblies / fuzzstruct.d
Created June 8, 2014 10:11
Fuzz testers to find struct field alignment mismatch between D and C++
import std.stdio;
import std.process;
import std.random;
import std.exception;
import std.uuid;
import std.range;
abstract
class Value
@yebblies
yebblies / retvisitor
Created February 4, 2014 15:55
Tempalted visitor pattern
import std.stdio;
import std.traits;
class A
{
abstract void accept(Visitor);
}
class B : A
module target;
import defs, mars, mtype;
struct Target
{
extern(C++) static __gshared int ptrsize;
extern(C++) static __gshared int realsize;
extern(C++) static __gshared int realpad;