Skip to content

Instantly share code, notes, and snippets.

@selfsame
Created August 2, 2017 01:40
Show Gist options
  • Save selfsame/8312bdafdc106230962999195667449a to your computer and use it in GitHub Desktop.
Save selfsame/8312bdafdc106230962999195667449a to your computer and use it in GitHub Desktop.
Setting up MAGIC in Arcadia

cloning MAGIC & dependencies

Clone the following repos into Assets:

You'll need to let Arcadia know about thier source paths, which can be done in a configuration.edn file placed in Assets:

{ :arcadia.compiler/loadpaths [
    "Assets/magic"
    "Assets/mage"
    "Assets/tools.analyzer/src"]}

usage

(ns foo
  (:require [magic.api :as m]))
  
(m/defn pow2 [n] (* n n))

(defn bar [n]
  (m/faster (* n n))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment