swank

What does #+#. mean in lisp?

依然范特西╮ 提交于 2019-12-03 22:26:41
It is almost impossible to google, hence my understanding is limited to contextual clues from reading through the slime source code: perhaps it is part of the object system in common lisp? Something like 'self'? snippet: (cond #+#.(swank-backend::sbcl-with-new-stepper-p) Perhaps this will make it more googleable : pound plus pound // hash plus hash symbol // octothorp plus octothorp That's pretty rare to see. #+clim clim:+red+ #-clim mygraphics:+red+ above means that the reader returns either red symbol and it depends whether there is a symbol with the name CLIM is on the list of features

Stopping infinite loops while running clojure tests in emacs with leiningen and swank/slime

本小妞迷上赌 提交于 2019-12-03 16:34:46
问题 In certain kinds of code it's relatively easy to cause an infinite loop without blowing the stack. When testing code of this nature using clojure-test, is there a way to abort the current running tests without restarting the swank server? Currently my workflow has involved $ lein swank Connect to swank with emacs using slime-connect , and switch to the the tests, execute with C-c C-, , tests run until infinite loop, then just return but one cpu is still churning away on the test. The only way

Interact with a locally long-running Common Lisp image, possibly daemonized, from the command line

不想你离开。 提交于 2019-12-03 12:50:53
How could one interact with a locally long-running Common Lisp image, possibly daemonized, from the command line? I know it is possible to run a Common Lisp function from a Terminal command prompt , I am also aware of this . I would need to do a similar thing, but with a local, already long-running Common Lisp image, being able to poll available functions from the CLI or shell scripts. Is there a way to do that from a CLI, for example calling a function from a bash script, and receiving back whatever the function returns? I though one could, for example, create a primitive web service, perhaps

Embedding swank-clojure in java program

亡梦爱人 提交于 2019-12-03 07:34:26
Based on the Embedding section of http://github.com/technomancy/swank-clojure , I'm using the following to test it out. Is there a better way to do this that doesn't use Compiler? Is there a way to programmatically stop swank? It seems start-repl takes control of the thread. What would be a good way to spawn off another thread for it and be able to kill that thread programatically. import clojure.lang.Compiler; import java.io.StringReader; public class Embed { public static void main(String[] args) throws Exception { final String startSwankScript = "(ns my-app\n" + " (:use [swank.swank :as

Stopping infinite loops while running clojure tests in emacs with leiningen and swank/slime

走远了吗. 提交于 2019-12-03 05:52:45
In certain kinds of code it's relatively easy to cause an infinite loop without blowing the stack. When testing code of this nature using clojure-test, is there a way to abort the current running tests without restarting the swank server? Currently my workflow has involved $ lein swank Connect to swank with emacs using slime-connect , and switch to the the tests, execute with C-c C-, , tests run until infinite loop, then just return but one cpu is still churning away on the test. The only way to stop this I have found is to restart lein swank, but it seems like this would be a relatively

What does the 'swank-clojure' do exactly, and do we have 'swank-SOMETHING_ELSE'?

余生长醉 提交于 2019-12-02 20:51:43
My superficial understanding is that 'swank-clojure' makes 'M-x slime-connect' possible. I mean, it gives a connection to a clojure server something like 'lein swank'. Is my understanding correct? If not, what's the purpose of swank? Then, is there any 'swank-SOMETHING_ELSE' for other lisp like implementations? For example, swank-clisp? Do I need 'swank-clojure' for using SLIME/Clojure with 'M-x slime'? ADDED I found this link pretty useful. SLIME and swank form a client server architecture to run and debug lisp programs. SLIME is the emacs frontend and swank is the backend. In between they