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
| [ 0%] clojure-lsp | |
| [ 5%] Finding kondo config | |
| [ 10%] Finding cache | |
| [ 15%] Copying kondo configs | |
| [ 15%] Resolving config paths | |
| [ 20%] Analyzing project files Exception in thread "pool-5-thread-2" java.lang.StackOverflowError | |
| at org.graalvm.nativeimage.builder/com.oracle.svm.core.graal.snippets.StackOverflowCheckImpl.newStackOverflowError0(StackOverflowCheckImpl.java:348) | |
| at org.graalvm.nativeimage.builder/com.oracle.svm.core.graal.snippets.StackOverflowCheckImpl.newStackOverflowError(StackOverflowCheckImpl.java:344) | |
| at org.graalvm.nativeimage.builder/com.oracle.svm.core.graal.snippets.StackOverflowCheckImpl.throwNewStackOverflowError(StackOverflowCheckImpl.java:324) |
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 hiredman.schedule | |
| (:import (java.util.concurrent ScheduledThreadPoolExecutor TimeUnit))) | |
| (def unit {:minutes TimeUnit/MINUTES :seconds TimeUnit/SECONDS :hours TimeUnit/HOURS}) | |
| (def tasks (ref {})) | |
| (def #^{:doc "ScheduledThreadPoolExecutor for scheduling repeated/delayed tasks"} | |
| task-runner (ScheduledThreadPoolExecutor. (+ 1 (.availableProcessors (Runtime/getRuntime))))) |
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
| #!/bin/sh | |
| #_( | |
| true; exec clj -J-Xmx256M -J-XX:-OmitStackTraceInFastThrow -Sdeps "`sed -n -e '/;;(DEPS$/,/;;DEPS)$/p' $0`" -M -i $0 -e '(user/main)' | |
| ) | |
| (ns user | |
| #?(:cljs (:require-macros [user :as m])) | |
| (:require | |
| #?@(:clj ([cljs.build.api :as cljs] |
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 Archimedes.bar | |
| (:refer-clojure :exclude [==]) | |
| (:require [clojure.core.logic :refer :all])) | |
| ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
| ;; databaseo | |
| ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
| (def types | |
| {:long {:primitive true |
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
| (do | |
| (clojure.core.server/start-server | |
| {:port 4567 | |
| :name "my-prepl" | |
| :accept 'clojure.core.server/io-prepl}) | |
| (with-open [s (java.net.Socket. "localhost" 4567) | |
| i (-> (.getInputStream s) |
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 async-iteration [from-process | |
| to-process | |
| output-channel | |
| & {:keys [values-selector some? init] | |
| :or {values-selector vector | |
| some? some?}}] | |
| (async/go | |
| (async/>! to-process init) | |
| (loop [value (async/<! from-process)] | |
| (if (some? value) |
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 topo [graph] | |
| (when-not (empty? graph) | |
| (lazy-seq | |
| (let [n (first (for [[node s] graph | |
| :when (not (seq s))] | |
| node))] | |
| (assert n "if this fails there is a cycle") | |
| (cons n (topo (into {} (for [[node deps] graph | |
| :when (not= n node)] | |
| [node (disj deps n)])))))))) |
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 handle-file-select [evt] | |
| (.stopPropagation evt) | |
| (.preventDefault evt) | |
| (let [files (.-files (.-dataTransfer evt))] | |
| (dotimes [i (.-length files)] | |
| (let [rdr (js/FileReader.) | |
| the-file (aget files i)] | |
| (set! (.-onload rdr) | |
| (fn [e] | |
| (let [file-content (.-result (.-target e)) |
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 com.manigfeald.yield | |
| (:require [clojure.tools.analyzer :as an] | |
| [clojure.tools.analyzer.ast :as ast] | |
| [clojure.tools.analyzer.env :as env] | |
| [clojure.tools.analyzer.jvm :as an-jvm] | |
| [clojure.tools.analyzer.passes :refer [schedule]] | |
| [clojure.tools.analyzer.passes.jvm.annotate-loops | |
| :refer [annotate-loops]] | |
| [clojure.tools.analyzer.passes.jvm.emit-form :as e] | |
| [clojure.tools.analyzer.passes.jvm.warn-on-reflection |
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
| ;; (load-file "/home/kevin/src/pi.clj") | |
| (require '[clojure.pprint :as pp] | |
| '[clojure.java.io :as io]) | |
| (def grammar | |
| [[:program [:process 'eof?]] | |
| [:process [:receive]] | |
| [:process [:send]] | |
| [:process [:par]] |
NewerOlder