This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-06-27
Channels
- # admin-announcements (3)
- # beginners (26)
- # boot (12)
- # cider (1)
- # cljs-dev (13)
- # cljsjs (101)
- # cljsrn (5)
- # clojure (64)
- # clojure-android (1)
- # clojure-gamedev (1)
- # clojure-greece (23)
- # clojure-nl (9)
- # clojure-poland (2)
- # clojure-russia (3)
- # clojure-spec (11)
- # clojure-uk (159)
- # clojurescript (19)
- # component (1)
- # core-async (2)
- # cursive (2)
- # datascript (1)
- # datomic (2)
- # devcards (1)
- # events (1)
- # funcool (1)
- # hispano (1)
- # hoplon (24)
- # immutant (12)
- # jobs (1)
- # keechma (18)
- # lein-figwheel (2)
- # leiningen (2)
- # off-topic (8)
- # om (23)
- # onyx (4)
- # planck (26)
- # re-frame (149)
- # reagent (6)
- # ring-swagger (9)
- # spacemacs (1)
- # specter (33)
- # spirituality-ethics (11)
- # testing (10)
- # untangled (335)
- # utah-clojurians (3)
- # vim (3)
- # yada (46)
I am having a hard time writing a UDP client. I want to receive packets, ACK them and get to the next packet. my current problem is that my while loop is not getting to the next packet for some reason. Wireshark shows the server sent it. Code here: https://bitbucket.org/briangorman2/tftp/src/53fdd91eac2c13da9c777d555276f0da31d4b470/src/tftp_client/core.clj?at=master&fileviewer=file-view-default
Thanks @danlebrero ! What I was searching for!
Why do I get No such var: clojure.core/–>
when I use this macro?
(defmacro macrotest [form] `(clojure.core/–> {} ~form))
I'm learnign about core.async. I know that thread macro creates a real OS thread, but what does go block do on JVM. I know that on javascript runtime, it jsut converts operations to a state machine, but I 've read somewhere that go blocks on jvm use threads from thread pool ?
Ahh..so basically my question is really about thread pooling vs using many single threads.
@smnplk: yes, go blocks are multiplexed over an internal thread pool. when no async op can be satisfied, the go block is “parked” and not considered for execution. that is, if waiting to consume but channel has no data.
@alexmiller: yeah, thanks for clearing that up.
hey guys, for compojure-api in the swagger specs :- means a required parameter, what symbol means an optional parameter?
query-params [ids :- String display :- String] — this is what I mean… the above statement generates a two required parameters and I want to be optional 😛
Not sure if it works, but give that a shot. x :- y
means "`x` must satisfy schema y
" in Schema, so I presume you can pass in anything that's a schema in Schema's view.
Refer to Schema's docs for more info: https://github.com/plumatic/schema
I found this solution: :query-params [number :- String {id :- String ""}]
which means number is required and id is optional, defaul value emptyy
I did not try your statement
let me check
s/optional requires two parameters… 😛
doesnt work
I know that for schema optionalkey requires only one key (s/defschema Result {:success Boolean, (s/optional-key :error) String})