Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Mar 27 2015 20:26
    User @sudodoki banned @doneck-russia from this room
  • Mar 19 2015 21:07
    User @sudodoki banned @pgr-ru from this room
  • Mar 14 2015 23:15
    User @mr-mig banned @putin-hero from this room
  • Mar 14 2015 22:31
    User @mr-mig banned @stepan-bendera from this room
OrionRandD
@OrionRandD
how do I make a script using planck able to io and shell commands? Like "what is your name" (read-line) -> your name is bla, bla, bla...
Roman Myronov
@Shamash2014
Ggghhh
Gregory Reshetniak
@ror6ax
lein run -m hello-quil.core says Cannot run sketch without a display. Read this for possible solutions:
i have tried using xvfb-run lein run -m hello-quil.core but the result is sadly the same
any tips?
Varunram Ganesh
@Varunram
Hi guys! What are some resources you guys suggest for regexes in clojure? I'm creating a list of regex resources over at https://github.com/Varunram/Awesome-Regex-Resources, so please pitch in if you guys have any. Thanks.
Rumaysa Alvina
@aryabhatiya
Bravi
@Bravilogy
Hi everyone. Does format function not work in clojurescript?
Sava4
@Sava4
@Bravilogy Yes look at this issue
https://dev.clojure.org/jira/browse/CLJS-324
It was interfering with advanced optimizations
Miloslav Voloskov
@uyouthe
привет! есть кто-нибудь?
Gregory Reshetniak
@ror6ax
pong
pentatronix
@pentatronix
Out of curiosity, has anyone ever tried splitting Clojure away from Java into it's own standalone interpreter?
Or is it too heavily intermingled with Java at this point?
Alex Khomchenko
@gagoman
pentatronix
@pentatronix
@gagoman , interesting. Thanks!
Sean Murphy
@SeanFullstack
I am working with one of the biggest newspapers in London and they are currently on the lookout for permanent candidates with strong skills in ClojureScript
would anyone be interested? - please DM or email me sean@fullstack.london asap
£100,000 P/A
Sean Murphy
@SeanFullstack
I have a contract for a Clojurescript Guy paying up to 600 a day!
please get intouch
SATYAM RAMAWAT
@satyamramawat
Hello Everyone, I need bit urgent help from you all.
I want to read all function name from .clj file and make a list of it.
@SeanFullstack Hey there I am interested.
Sean Murphy
@SeanFullstack
perfect please get in contact
Rafi
@Rafi993
Hi everyone I am quite new to Clojure so forgive my ignorance
I came across this expression (= [:a :b :c] (list :a :b :c) (vec '(:a :b :c)) (vector :a :b :c)) I couldnt get my head around it. could anyone explan it
Alex Khomchenko
@gagoman
all these structures [:a :b :c], (list :a :b :c), (vec '(:a :b :c)), (vector :a :b :c) are all compared between each other
'(:a :b :c) is a quote of symbols so in this case it is equal to (list :a :b :c)
[:a :b :c] and (vector :a :b :c) are basically two ways to define same structure

as for (= x y ...) it is defined here: https://github.com/clojure/clojure/blob/master/src/clj/clojure/core.clj#L775

I hope this will make it a little bit more clear

Rafi
@Rafi993
Awesome
Thanks @gagoman
Chris Dewar-English
@babelchips
Is there a version of cond which takes a collection for the conditions and results?
I suppose a macro...
strongunit
@strongunit
@babelchips
So i had tough time providing collection as conditions to cond with custom macros, and just took cond source code and rewrited it to take collection
(defn condd
  [clauses]
    (when clauses
      (if (first clauses)
            (if (next clauses)
                (second clauses)
                (throw (IllegalArgumentException.
                         "cond requires an even number of forms")))
            (condd (next (next clauses))))))
strongunit
@strongunit
job.core> (condd [(< 0 1) "a"])
"a"
job.core> (condd [(< 1 1) "a" (< 2 3) "b"])
"b"
strongunit
@strongunit

if you want to use collection of conditions on variable, then try this one

(defn cond-for-lambda
  [variable clauses]
    (when clauses
      (if ((first clauses) variable)
            (if (next clauses)
                (second clauses)
                (throw (IllegalArgumentException.
                         "cond requires an even number of forms")))
            (cond-for-lambda variable (next (next clauses))))))

pass conditions as anonymous functions

job.core> (cond-for-lambda 1 [#(= % 1) "true"])
"true"
job.core> (cond-for-lambda [1] [#(= % 0) 1 #(sequential? %) 2])
2
melbourne2991
@melbourne2991
cljs noob here. I've just generated the figwheel-main template lein new figwheel-main hello-world.app -- --reagent. Repl is running and connected to browser - just wondering how to call functions in my app.cljs from the repl, I think they are under some sort of namespace?
Andrew Kharook
@andrewkharook
@melbourne2991 just change the namespace to the one you have in your app:
cljs.user=> (in-ns 'hello-world.app)
hello-world.app=> (multiply 2 3)
6
strongunit
@strongunit
@melbourne2991 Do you have a way to send messages in repl? i`ve tried the same you have done and repl didnt start at all.
melbourne2991
@melbourne2991

I ended up figuring it out (can't exactly remember what the issue was).

@andrewkharook nice! I was sure there would be some way of changing namespace in the repl but hadn't bothered to look it up yet so that's good to know, thanks

@strongunit yeah it worked for me
pentatronix
@pentatronix
I can't help but notice this room is mighty quiet. It may be a bit before anyone responds, but what's everyone's take on Oracle charging for Java, will it have an impact on projects running Clojure? Does everything work correctly using OpenJDK?
Ivan
@advancedwebdeveloper
Ivan
@advancedwebdeveloper
@pentatronix I do not know what are you considering (a dedicated VM?) - but it was re-implemented for the CLR