Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
---|---|---|---|---|
jrsonnet large_string_join.jsonnet |
16.5 ± 0.5 | 16.1 | 19.6 | 1.00 |
gojsonnet large_string_join.jsonnet |
90.7 ± 3.8 | 85.6 | 104.0 | 5.49 ± 0.29 |
jsonnet large_string_join.jsonnet |
69.5 ± 2.4 | 68.2 | 78.1 | 4.20 ± 0.20 |
sjsonnet large_string_join.jsonnet |
760.6 ± 12.7 | 739.9 | 787.2 | 46.00 ± 1.67 |
This file contains hidden or 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
package demo; | |
import java.io.Serializable; | |
import java.security.Principal; | |
import java.util.Collection; | |
import java.util.Collections; | |
import java.util.HashMap; | |
import java.util.Map; | |
import java.util.UUID; |
This file contains hidden or 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 Tm = Var Int | Ann Tm Tm | Abs Tm | App Tm Tm | Pi Tm Tm | Fix Tm | Uni | |
data Clos = Clos Tm Env | |
data Dm = DVar Int | DAbs Clos | DNeutral Int [Dm] | DPi Dm Clos | DFix Clos | DUni | |
type Env = [Dm] | |
capp :: Clos -> Dm -> Dm | |
capp (Clos b e) t = eval (t : e) b | |
vapp :: Dm -> Dm -> Dm | |
vapp a b = |
This file contains hidden or 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 is my short-ish tutorial on how to implement closures in | |
a simple functional language: Foo. | |
First, some boilerplate. | |
> {-# LANGUAGE DeriveFunctor, TypeFamilies #-} | |
> import Control.Applicative | |
> import Control.Monad.Gen | |
> import Control.Monad.Writer | |
> import Data.Functor.Foldable |
This file contains hidden or 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 cantor where | |
open import Data.Product | |
open import Data.Empty | |
open import Level | |
-- A variant of (https://coq.inria.fr/refman/language/core/inductive.html?highlight=cantor) | |
-- Sort of spooky this works. | |
data _≡_ {ℓ : Level}{A : Set ℓ} : A → A → Set₀ where | |
refl : (a : A) → a ≡ a |
OlderNewer