This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # aatree (72)
- # aws (12)
- # beginners (34)
- # boot (256)
- # braid-chat (12)
- # cider (20)
- # clara (8)
- # cljs-dev (1)
- # cljsjs (1)
- # cljsrn (38)
- # clojure (61)
- # clojure-dev (10)
- # clojure-ireland (1)
- # clojure-japan (1)
- # clojure-sg (2)
- # clojurescript (48)
- # community-development (3)
- # conf-proposals (3)
- # core-async (6)
- # cursive (8)
- # datomic (4)
- # emacs (9)
- # hoplon (1)
- # leiningen (1)
- # mount (9)
- # off-topic (4)
- # om (109)
- # parinfer (26)
- # perun (4)
- # proton (5)
- # reagent (14)
- # vim (3)
Spacemacs is pure win in my experience. It occurred to me today, though, that I would hate to be the maintainer. Complaints from irritated vim users
My strategy is: pretend it’s vim until something doesn’t work, and then do
SPC-? and start searching commands. Definitely the lovely thing (compared to vi) is that most commands are sensibly named. Finding it that way gives you the current key binding and makes it easy (using the exact name) to rebind it yourself.
Once you know the command name, setting up a binding is often as easy as (random example)
(global-set-key (kbd "M-v") 'evil-paste-after).
Also it’s usually easy to get quick, expert advice at https://gitter.im/syl20bnr/spacemacs
A few useful commands for experimentation purposes (it’s possible that the first one is my custom binding, but I don’t think so):
SPC-k-: write and exec a line of lisp SPC-f-e-d: edit .spacemacs SPC-f-e-R: reload .spacemacs
@slester: also feel free to PM me if you’re stuck on something in spacemacs, I’ll help if I can. Or post it here, I doubt anyone would mind the off-topicness since it’s #C053AK3F9.
so type hints aren’t strict? ie
(defn type-hint [^String str] (println str)) (type-hint 32) 32
When that function is compiled that parameter will have an Object type in the bytecode
One thing to consider is
^double which end up being type declarations.
(defn type-declare [^long n] (println n))
(type-declare "a") ClassCastException java.lang.String cannot be cast to java.lang.Number user/eval4 (NO_SOURCE_FILE:5)
I'm having a hard time with this Java interop. I've got a file generating a class from an interface. I'm trying to test it but I keep getting ClassNotFoundException. Is there a problem with the file structure? src/ is on the classpath so I don't under stand why it could be that. Just stabbing.
see http://clojure.org/reference/compilation "gen-class and the :gen-class directive are ignored when not compiling."
There it is. :aot :all was in an uberjar profile so it wasn't compiling for the tests.
presumably you need to an actual physical .class for your use case and can't use proxy or reify?
Another question. Lambda uses log4j. I have two property files one for Lambda and one for dev. When I do
lein uberjar it pulls the Lambda property file like I want but since the compiler is executing my clojure forms it spits out log4j errors because the Lambda logger class isn't on the classpath. It compiles fine it just clutters the terminal. Is there something I can do for it?
Hmm. I haven't looked at lambda but this sounds like a :provided problem: https://github.com/technomancy/leiningen/blob/master/doc/TUTORIAL.md#framework-uberjars
Hi guys. I'm trying to pick up clojure on my own for the last year - as my first language. I've done almost all 4clojure problems, (except the hardest 😎 and cut teeth on Project Euler - about 100 problems. This is to say - I understand how to use the basics of the language. I've also used some libraries to create a tic-tac-toe game with AI and a web interface with enlive and ring. For my next task, I'd like to understand how to implement a basic http server in clojure - i.e. basic network programming. Are there any guides out there that can help me? Or do I need to understand Java (hoping not) and translate my way into Clojure? I've been searching around for some time now - and I can't find anything that starts gently.