This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-08-13
Channels
- # aws (5)
- # bangalore-clj (2)
- # beginners (74)
- # boot (2)
- # cider (12)
- # cljs-dev (5)
- # cljsjs (2)
- # cljsrn (7)
- # clojure (41)
- # clojure-boston (4)
- # clojure-brasil (3)
- # clojure-russia (12)
- # clojurescript (73)
- # cloverage (35)
- # datomic (7)
- # euroclojure (1)
- # hoplon (34)
- # immutant (1)
- # luminus (9)
- # onyx (7)
- # overtone (3)
- # parinfer (1)
- # proton (2)
- # re-frame (3)
- # reagent (5)
- # spacemacs (5)
- # testing (2)
- # untangled (3)
- # yada (3)
hello, what's the best admin interface like django for simple datomic databases?
the console seems really low level for users
@vinnyataide: I'd be interested in such a thing as well, if it exists
Anybody have a hint for the 4clojure / exercism “reparent a tree” problem?
hi all. I'm trying to mimic the following few lines of Java in Clojure. Is it actually possible to override methods in place like this?
dispatcher.addAudioProcessor(new AudioProcessor() {
@Override
public void processingFinished() {
}
@Override
public boolean process(AudioEvent audioEvent) {
System.out.println(audioEvent.getTimeStamp() + "," + audioEvent.getRMS());
return true;
}
});
@triss: If AudioProcessor
is an interface, try reify
, else try proxy
What's the most straightforward way to store a list of strings and/or File objects in a file between runs?
ok, I guess the issue I really care about is analyze
ing a deftype creates a new class
so I understand macro expansion needs to run the code contained in the macro, but once you bottom out at a special form, that doesn’t need to be eval’d?
it's a bit more subtle than that -- clojure's evaluation model is fundamentally different than cljs's one wherens loading is declarative and macros run on a separate env.
the reason why t.a evals is because both macroexpansion and reading might require it. for the second case, the example would be (ns-alias 'some.ns 'foo) ::foo/bar
ns-alias
is a runtime operation -- if we only analyze it & don't eval it then the reader won't have the alias set & will fail at reading
you probably need to make sure the original ns mapping between defytpe sym -> deftype class isn't replaced aswell
yeah, it's surprisingly tricky to build analysis/reloading/.. tooling for clojure. Tons of potential edge cases and evaluation scenarios that need to be taken into account
Anyone know the best way to write to an SQL database from clojure? Like how to actually transact the request? I’m using honeySQL
@josh_tackett: Java.jdbc has a function for creating a transacted version of the connection.
got ya, I understand how to form the INSERT INTO structure, but now how to actually send it to the database @dominicm
oh this is great thank you!
this is much better than honeysql haha
does anybody know, how can I find user data files for LightTable on Mac Os ?
I could not find them under /Library/Application Support
and also not in /.config, /.lighttable
@vinnyataide, @pesterhazy : I'm interested in building one. If you have any specific usage patterns in mind, let me know. Also, it might be better to ask over at #C03RZMDSH .
I'm starting a project which will almost certainly be running in a JS environment, which suggests ClojureScript, but the majority of the code will be platform-independent. For that code, I'd like to get the faster testing loop of doing plain old Clojure in a REPL. I get the impression that I want to write those files with the .cljc extension.
Anyone have advice on setting up the project? src/logic/*.cljc
, src/ui/*.cljs
, and then configure lein test
to run only the CLJC files?
Am I just making more work for myself if I try to do some things with Clojure tools and some things with CLJS ones? The more I think about it, the more I can see myself running into awkward bits.
@yonatanel: you could make a clj file for each resource in the schema file