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
| ;;namespace test | |
| (ns missing-test) | |
| (defn method-missing [func args] | |
| (println "missing '" func "' with args:" args) | |
| [func args]) | |
| (defn hello [name] | |
| (str "hello," name)) |
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
| From 157a0f0e271da8d94035cb330709885066fac6a1 Mon Sep 17 00:00:00 2001 | |
| From: dennis zhuang <killme2008@gmail.com> | |
| Date: Tue, 21 Jun 2016 11:47:36 +0800 | |
| Subject: [PATCH] Register DynamicClassLoader as parallel capable. | |
| --- | |
| src/jvm/clojure/lang/DynamicClassLoader.java | 26 ++++++++++++++++---------- | |
| 1 file changed, 16 insertions(+), 10 deletions(-) | |
| diff --git a/src/jvm/clojure/lang/DynamicClassLoader.java b/src/jvm/clojure/lang/DynamicClassLoader.java |
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
| # bash completion support for ruff rap command | |
| # Distributed under the WTFPL License, http://www.wtfpl.net/ | |
| # Usage: | |
| # | |
| # 1) Copy this file to somewhere (e.g. ~/.ruff_completion.sh). | |
| # 2) Add the following line to your .bashrc/.bash_profile | |
| # source ~/.ruff_completion.sh | |
| _rap() | |
| { | |
| local cur prev |
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
| (ns benchmark.core | |
| (:use criterium.core)) | |
| (defn double [n] (* 2 n)) | |
| (defn square [n] (* n n)) | |
| (defn simple-test [] | |
| (-> 1 double square)) ;;=> 4 |
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
| (-> 1 double square) ;;=> 4 | |
| public final class user$eval5993 extends clojure/lang/AFunction { | |
| // compiled from: NO_SOURCE_FILE | |
| // debug info: SMAP | |
| NO_SOURCE_FILE.java | |
| Clojure | |
| *S Clojure | |
| *F |
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
| (-> 1 double square) | |
| public final class user$eval5993 extends clojure/lang/AFunction { | |
| // compiled from: NO_SOURCE_FILE | |
| // debug info: SMAP | |
| NO_SOURCE_FILE.java | |
| Clojure | |
| *S Clojure | |
| *F |
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
| (defn square [n] (* n n)) | |
| public final class user$square extends clojure/lang/AFunction { | |
| // compiled from: NO_SOURCE_FILE | |
| // debug info: SMAP | |
| NO_SOURCE_FILE.java | |
| Clojure | |
| *S Clojure | |
| *F |
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
| (defn double [n] (* 2 n)) | |
| public final class user$double extends clojure/lang/AFunction { | |
| // compiled from: NO_SOURCE_FILE | |
| // debug info: SMAP | |
| NO_SOURCE_FILE.java | |
| Clojure | |
| *S Clojure | |
| *F |
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
| (defn double [n] (* 2 n)) | |
| public final class user$double extends clojure/lang/AFunction { | |
| // compiled from: NO_SOURCE_FILE | |
| // debug info: SMAP | |
| NO_SOURCE_FILE.java | |
| Clojure | |
| *S Clojure | |
| *F |
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
| defmodule Pipe do | |
| defmacro a|>b do | |
| pos = tuple_size(b) -1 | |
| Macro.pipe(a, b, pos) | |
| end | |
| defmacro __using__(_extras) do | |
| quote do | |
| import Kernel, except: [|>: 2] | |
| import Pipe |