Skip to content

Instantly share code, notes, and snippets.

View thealgebraist's full-sized avatar
🎯
Focusing

The Algebraist thealgebraist

🎯
Focusing
  • Tabula rasa
  • Gakkel Ridge
View GitHub Profile

Keybase proof

I hereby claim:

  • I am thealgebraist on github.
  • I am thealgebraist (https://keybase.io/thealgebraist) on keybase.
  • I have a public key ASCKv7SeOzvLXOInSHbgh0wS4HnrsSDPsCa4cFFiwMtUKAo

To claim this, I am signing this object:

;; A small self applicable scheme->llvm compiler.
;; , Tobias Nurmiranta
;;
;; -- To Use It --
;; Reads scheme-code from standard input.
;; cat code.ss|mzscheme --script compile.ss|llvm-as -f -o=test.bc;lli test.bc
;;
;; The compiler is painfully slow since it for testing purposes
;; compiles all help functions as well (see variable bootstrap).
;; It extends standard scheme with a subset of available
// David Eberly, Geometric Tools, Redmond WA 98052
// Copyright (c) 1998-2016
// Distributed under the Boost Software License, Version 1.0.
// http://www.boost.org/LICENSE_1_0.txt
// http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
// File Version: 2.1.0 (2016/01/25)
#pragma once
#include <Mathematics/GteBasisFunction.h>
// David Eberly, Geometric Tools, Redmond WA 98052
// Copyright (c) 1998-2016
// Distributed under the Boost Software License, Version 1.0.
// http://www.boost.org/LICENSE_1_0.txt
// http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
// File Version: 2.1.0 (2016/01/25)
#pragma once
#include <Mathematics/GteBasisFunction.h>
/* Filename: ~\lisp\lisp.c Revision Date: July 23, 2007 */
/*****************************************************************************
LISP INTERPRETER
-----------------
This progam is a GOVOL LISP interpreter. This interpreter consists of
three major functions: SREAD, SEVAL, and SWRITE. SREAD scans the
input string for input S-expressions (atoms and dotted pairs) and
returns a corresponding typed-pointer. The SEVAL function takes as
@thealgebraist
thealgebraist / GraphicGlDemoActivity.java
Created June 13, 2016 21:16 — forked from ybakos/GraphicGlDemoActivity.java
A simple example of using an Android Renderer to illustrate OpenGL ES boilerplate.
/* GraphicGlDemoActivity.java
* Author: Yong Bakos
* Since: 11/26/2012
* Thanks to:
* Cube: http://intransitione.com/blog/create-a-spinning-cube-with-opengl-es-and-android/
* OpenGL Boilerplate: http://www.jayway.com/2009/12/03/opengl-es-tutorial-for-android-part-i/
*/
package com.humanoriented.sudoku;
import java.nio.ByteBuffer;

This is a collected list of the sample code for Metal that Apple has published so far. Links are subject to change, and all content is preliminary.

@thealgebraist
thealgebraist / hxcpp_cache_example.txt
Created June 5, 2016 17:57 — forked from ruby0x1/hxcpp_cache_example.txt
hxcpp compile cache example on a clean rebuild
$ rm -rf bin/
$ flow run
flow / found custom config at /Users/sven/.flow.config.json
flow / 1.0.0-alpha.2 (node.js v0.12.7)
flow / target is mac ( arch 64 )
flow / haxe version 3.2.1
flow / build - snow.basic 1.0.0 for mac
flow / build - running haxe ...
@thealgebraist
thealgebraist / !Profiler.hx
Created May 29, 2016 18:34 — forked from hamaluik/!Profiler.hx
Simple Haxe Profiler
package ;
import haxe.ds.StringMap;
import haxe.macro.Context;
import haxe.macro.Expr;
import haxe.macro.Printer;
import haxe.macro.Type.ClassType;
import neko.Lib;
using haxe.macro.ExprTools;
@thealgebraist
thealgebraist / 0-Example.hx
Created May 25, 2016 20:04 — forked from elsassph/0-Example.hx
Haxe - use macro to generate dispatch code
/*
Automatically generate dispatch functions as:
public function onDoubleArguments(one:String, two:Int) {
for (listener in listeners)
listener.onDoubleArguments(one, two);
}
*/
class Example extends Dispatcher<Dynamic>
{