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 ChurchList where | |
open import Cubical.Foundations.Prelude | |
open import Cubical.Foundations.Isomorphism | |
import Cubical.Data.List as List | |
open import Cubical.Data.List using (List) | |
private | |
variable ℓ : Level |
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
Require Import Coq.Bool.Bool. | |
Inductive Sexp := | |
| Atom : bool -> Sexp | |
| List : Forest -> Sexp | |
with | |
Forest := | |
| Nil : Forest | |
| Cons : Sexp -> Forest -> Forest. |
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
#lang typed/racket | |
(define-type Var String) | |
(define-type Type (U 'Base (List '-> Type Type))) | |
(define-type Ctx (Listof (Pair Var Type))) | |
(define-type Expr (U Var (List 'App Expr Term) (List 'Asc Type Term))) | |
(define-type Lam (List 'Lam Var Term)) | |
(define-type Term (U Expr Lam)) | |
(define-predicate lam? Lam) |
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
def print_upper(s : str): | |
up_s = s.upper() | |
def printer(n : int): | |
acc = "" | |
for i in range(0,n): | |
acc += up_s | |
return acc | |
return printer |
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
[mnew:~CODE/racket/Redex-Enum-Paper]$ scribble --latex --dest x paper.scrbl (master) | |
[Output to x/paper.tex] | |
Warning: some cross references may be broken due to undefined tags: | |
(counter ("figure" "fig:benchmark-lines")) | |
(counter ("figure" "fig:benchmark-lines" "value")) | |
(counter ("figure" "fig:benchmark-overview")) | |
(counter ("figure" "fig:benchmark")) | |
(counter ("figure" "fig:correlation" "value")) | |
(counter ("figure" "fig:benchmark-overview" "value")) | |
(counter ("figure" "fig:benchmark" "value")) |
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
extern crate graphviz; | |
use graphviz as dot; | |
use std::str; | |
type Nd = uint; | |
type Ed = (uint, uint); | |
struct Graph<'a> { | |
nodes: Vec<&'a str>, | |
edges: Vec<Ed>, |
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
data Request = PutS String | |
| Exit Int | |
| GetS | |
port out : Signal (Maybe Request) |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Test</title> | |
<script src="resources/elm-runtime.js"></script> | |
<script src="build/Ports.js"></script> | |
</head> | |
<body> | |
<h1>Test</h1> | |
<div id="bug"></div> |
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
Thu Jan 2 04:03 2014 Time and Allocation Profiling Report (Final) | |
elm +RTS -p -RTS --make blog/Interactive-Programming.elm | |
total time = 0.38 secs (1525 ticks @ 1000 us, 4 processors) | |
total alloc = 2,372,599,408 bytes (excludes profiling overheads) | |
COST CENTRE MODULE %time %alloc | |
MAIN MAIN 95.4 96.9 |
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
./Environment.hs:31:26: Warning: Redundant bracket | |
Found: | |
(show k) ++ ": " ++ p ++ "=" ++ v | |
Why not: | |
show k ++ ": " ++ p ++ "=" ++ v | |
./Environment.hs:37:1: Error: Eta reduce | |
Found: | |
reset compilerPath workingDirectory | |
= Repl compilerPath Map.empty Map.empty |
NewerOlder