-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/google-research/dex-lang in…
…to tutorialfinal
- Loading branch information
Showing
49 changed files
with
1,532 additions
and
832 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,8 @@ maintainer: [email protected] | |
license-file: LICENSE | ||
build-type: Simple | ||
|
||
data-files: lib/*.dx | ||
|
||
flag cuda | ||
description: Enables building with CUDA support | ||
default: False | ||
|
@@ -31,9 +33,9 @@ library dex-resources | |
|
||
library | ||
exposed-modules: Env, Syntax, Type, Inference, JIT, LLVMExec, | ||
Parser, Util, Imp, Imp.Embed, Imp.Optimize, | ||
Parser, Util, Imp, Imp.Builder, Imp.Optimize, | ||
PPrint, Algebra, Parallelize, Optimize, Serialize | ||
Actor, Cat, Embed, Export, | ||
Actor, Builder, Cat, Export, | ||
RenderHtml, LiveOutput, Simplify, TopLevel, | ||
Autodiff, Interpreter, Logging, CUDA, | ||
LLVM.JIT, LLVM.Shims | ||
|
@@ -49,6 +51,7 @@ library | |
store, | ||
-- Notebook support | ||
warp, wai, blaze-html, aeson, http-types, cmark, binary | ||
other-modules: Paths_dex | ||
if !os(darwin) | ||
exposed-modules: Resources | ||
hs-source-dirs: src/resources | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
include "plot.dx" | ||
import plot | ||
|
||
UnitInterval = Float | ||
|
||
|
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
'# Mandelbrot set | ||
|
||
include "plot.dx" | ||
import plot | ||
|
||
'Escape time algorithm | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
'## General MCMC utilities | ||
|
||
include "plot.dx" | ||
import plot | ||
|
||
LogProb : Type = Float | ||
|
||
|
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
'# Vector graphics library | ||
|
||
import png | ||
|
||
Point : Type = (Float & Float) | ||
|
||
data Geom = | ||
|
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
Oops, something went wrong.