This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-12-14
Channels
- # adventofcode (20)
- # arachne (11)
- # beginners (53)
- # boot (342)
- # cider (54)
- # cljs-dev (39)
- # cljsrn (4)
- # clojure (78)
- # clojure-brasil (2)
- # clojure-italy (5)
- # clojure-nl (4)
- # clojure-quebec (1)
- # clojure-russia (90)
- # clojure-sanfrancisco (4)
- # clojure-spec (55)
- # clojure-uk (27)
- # clojurescript (170)
- # core-async (1)
- # core-logic (1)
- # css (1)
- # cursive (8)
- # datomic (83)
- # dirac (5)
- # hoplon (24)
- # lambdaisland (1)
- # lein-figwheel (23)
- # midje (2)
- # off-topic (1)
- # om (4)
- # om-next (7)
- # onyx (74)
- # proton (1)
- # protorepl (22)
- # rdf (2)
- # re-frame (105)
- # reagent (15)
- # ring-swagger (3)
- # rum (4)
- # slack-help (17)
- # spacemacs (14)
- # untangled (62)
- # vim (4)
- # yada (18)
There are almost 7000 people signed up for this slack that haven’t yet filled out the State of Clojure survey. Takes about 5-10 minutes. https://www.surveymonkey.com/r/clojure2016
@alexmiller Just out of curiosity, how did you derive that number?
@iku000888 Slack shows you how many members are here (8,182 in total, 7,990 on this channel), and Survey Monkey shows Alex how many people have responded so a bit of subtraction... 🙂
(mind you, about 1,000 people completing the survey already is pretty good -- keep spreading it far and wide folks!)
@seancorfield Oh, ok. I thought there was some linkage between survey monkey and slack 🙂
(Just imagined out of how many ppl who responded to the survey are actually subscribed to this chan...)
(and there are bound to be some respondents to the survey who aren't on this Slack -- imagine that! heresy! 🙂 )
@seancorfield I know a few Clojure dev's who don't have an account here. 😄
@lxsameer to analyse for what? There are linters , for instance https://github.com/jonase/eastwood and squiggly clojure enables in editor linting for emacs https://github.com/clojure-emacs/squiggly-clojure
Kibit is quite cool too https://github.com/jonase/kibit
so if I have a list [:a :a :a :b :a :a :b]
and I only want to remove one :b
from it how would I go about that?
not to worry - found an answer: http://stackoverflow.com/questions/7662447/what-is-idiomatic-clojure-to-remove-a-single-instance-from-many-in-a-list
clojure newbie question - Would like to try out clojure by porting a simple simulation game with a desktop GUI from Python, any suggestions as to the GUI library to use? thanks.
@genec checkout quil https://github.com/quil/quil
if you have lein setup it should be as easy as entering lein new quil simple-simulation-game-project
into your terminal
@genec, JavaFX2 is actually pretty nice for a UI. It comes with all modern versions of Java, and it's rendered via OpenGL.
Depending on your needs, it may or may not be a good fit
@mikepjb thanks for the suggest, Quil does look like a great way to get started. The only thing that's missing for me is the ability to add controls to the UI. I see it can handle keyboard and mouse input, but I'll need to add some simple controls to the UI too. (textbox, sliders, buttons, etc.)
i'm watching this right now, https://skillsmatter.com/skillscasts/9159-cljs-on-electron-a-simple-odyssey
@tbaldridge thanks, I'm hoping to find something that makes the GUI easier to work with, ie. like ELM's update msg->model-> model'
Well there is fn-fx, it works for most tasks I've thrown at it: https://github.com/halgari/fn-fx/blob/master/examples/getting_started/02_form.clj
Gives you a React like API around the OOP gook of JavaFX2
@tbaldridge thank you for the link to fn-fx, will take a look at it
@tbaldridge that looks really nice. any chance you'll be at winter lambdaconf in crested butte?
@tbaldridge that's cool. I got into Clojure by playing with seesaw (the Swing wrapper) so I have a soft spot for these kinds of libraries 🐼
here's a link to re-frame from the re-frame/reagent/react/Electron talk, which is pretty good. https://github.com/Day8/re-frame
@genec re-frame is influenced by Elm … we’re using it to build a UI now … I like it a lot
I have to run to a meeting but I’m happy to talk about my experience
What’s up? So I know some emacs Lisp. I’d like to learn Clojure. First response to this gets to tell me what to build as a first project.
@jkrmr NOT skynet
@jkrmr, more seriously, here’s some seriously good ideas you may tackle https://purelyfunctional.tv/functional-programming-career-guide/10-side-projects-resume/
if you want to start really simple, to grapple with the immutable data structures, i’ve found modelling the game of poker to be fantastic
make a deck, shuffle it, and manage the state transition of a deck into a smaller deck and several hands
you cover a surprising amount of ground with this
then you can write a function that assesses if a hand has any wins in it
once you’re done with it, you could consider looking up what clojure.spec is, and either annotating your poker project with it or using it on your next project
@tankthinks I'd really like to hear more about your use of re-frame. I'm just looking to build a simple front end as easily as possible for a simulation to handle the setup and running of the model.
Any suggestions for efficiently finding the longest suffix (given a list of suffices) for a given string?
I’m guessing it’s “build a regular expression object” but I have no idea if it’s smart enough to do that cleverly
I think e.g. PyPy’s regex jit notices that you have a DFA regex and also that you’re only matching from the end
@lvh I doubt the regex engine is smart enough
I read through most of the regex code once and all I remember is dispair
Thanks, @gfredericks 🙂
@genec @tankthinks There's a #re-frame channel with quite a few active users if you want to discuss further
@shaun-mahood thanks, I'll check it out
If I want to enforce that a particular kind of computation happens at compile time, do I have to shove it in a macro?
things other than macros are evaluated at compile time, top-level forms, the right-hand side of a def, etc
if you want it evaluated at compile time and inserted into the body of something that's not then that's where macros come in
@bfabry there's nothing special about the right hand side of a def, it's also runtime executed
@lvh what are you trying to accomplish? The lines between compiled and runtime are a bit vague in a lisp.
@tbaldridge I think the vagueness of compiled and runtime in a lisp is leading to confusion there, but I meant the form on the right hand side of a def is evaluated when the def is evaluated, unlike defn
ie
boot.user=> (def a (println "foo"))
foo
#'boot.user/a
boot.user=> (defn b [] (println "foo"))
#'boot.user/b
just added core.async “0.2.395”
to my project and was greeted with Exception in thread "main" java.lang.IllegalAccessError: resolve-sym does not exist, compiling:(clojure/tools/analyzer/jvm.clj:1:1)
anyone seen this clash before?
what version of clojure are you using?
and what other libs are you using? core.match, etc.?
I’m using a bunch of other libs but lein deps :tree
only shows core async using tools analyzer jvm
:dependencies [[org.clojure/clojure "1.9.0-alpha14"]
[org.clojure/core.async "0.2.395"]
[org.clojure/data.json "0.2.6"]
[org.clojure/data.codec "0.1.0"]
[prismatic/schema "1.1.3"]
[ring "1.5.0"]
[metosin/compojure-api "1.1.9"]
[ring/ring-json "0.4.0"]
[org.apache.xmlgraphics/fop "2.1"]
[org.apache.xmlgraphics/batik-transcoder "1.8"]
[org.apache.xmlgraphics/batik-codec "1.8"]
[http-kit "2.2.0"]
[ring/ring-mock "0.3.0"]
[org.apache.pdfbox/pdfbox "2.0.3"]
[com.taoensso/timbre "4.7.4"]
[camel-snake-kebab “0.4.0”]]