This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Example: | |
// ga_versor q = normalize(add(1.0, (ga_bivector){ .e12 = 1.0 })); | |
// see tests at end of file for more | |
#pragma once | |
#include <stdarg.h> | |
#include <complex.h> | |
#include <math.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module TypedPools | |
export | |
Handle, | |
TypedPool, | |
StructPool, | |
MutableStructPool, | |
alloc!, | |
alloc_args!, | |
alloc_inplace!, |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
execute pathogen#infect() | |
set ignorecase | |
set smartcase | |
set hlsearch | |
set wildmenu | |
set showcmd | |
set nocompatible | |
syntax on | |
filetype plugin indent on | |
set shiftwidth=2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Develop your clojurescript program here | |
(ns metacirc.evaluator (:require [cljs.reader :as reader])) | |
;; TODO: | |
;; globals: "let", "do" | |
;; javascript interop | |
;; var args or at least get more than 4 for list | |
;; {} [] #{} '() | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; TODO: deletion. warning when adding group to existing name. is this implemenation of groups a good thing? | |
(ns forces.framework.component | |
) | |
(def !nextEntityGUID (atom 1)) | |
(def !names (atom {})) | |
(def !nameReverseLookup (atom {})) ;; name to guid map | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; component access, query and data | |
(ns forces.framework.component | |
) | |
;; support stuff | |
(defn dissoc-in | |
"Dissociates an entry from a nested associative structure returning a new | |
nested structure. keys is a sequence of keys. Any empty maps that result | |
will not be present in the new structure." | |
[m [k & ks :as keys]] |