Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Sean Corfield
    @seancorfield
    (and rdf.commons-rdf, rdf.protocols etc)
    Stian Soiland-Reyes
    @stain
    yeah.. but rdf is a bit too general.. it's like hijacking json or xml
    so I'll have to think of something clever :)
    Sean Corfield
    @seancorfield
    Can you come up with a word for what the essence of your library actually is / does?
    Stian Soiland-Reyes
    @stain
    no, that would just be something like "Commons RDF" again.. but this is my personal pet Clojure project outside Apache. (Although to complicate things I'm also a committer on Apache Commons RDF). Perhaps I can see if the #rdf channel on Clojure Slack can be woken up again..
    Your team has more than 10.000 messages in its archive, so although there are older messages than are shown below, you can't see them.
    Sean Corfield
    @seancorfield
    I looked for other RDF libraries in Clojure and there don’t seem to be any maintained ones and they don’t all seem to even be published to Clojars...
    Stian Soiland-Reyes
    @stain
    no.. that was my finding as well
    so you suggest I hijack rdf and be brave
    it worked well for RDF.rb in Ruby land
    Sean Corfield
    @seancorfield
    If you’re going to actively maintain the one and only useful RDF library in Clojure, you might as well go for it :)
    Using rdf.core only becomes a problem if someone is trying to using your library with another library that also uses rdf.core (the coords would be unique as stain/rdf) and that seems unlikely given the current landscape… so go ahead and plant your flag!
    xialvjun
    @xialvjun
    I know nothing about Clojure, and I want to know something about it. Clojure is not a strong static type language but I like strong static type, but I found some words about clojure Since all Clojure code is a Clojure data structure, we don't speak of data types and data structures the way we do in a conventional language. Instead, we speak of forms. Forms are text strings processed by the Clojure Reader.. So I want to know does type system matters in clojure programing?
    Sean Corfield
    @seancorfield
    Have you read the introduction and rationale on the main Clojure web site? http://clojure.org/
    Clojure is built on a number of strong abstractions -- including sequences and collections -- and in that sense "type" matters, and Clojure is strongly typed at runtime so in that sense "type" also matters. But the power of the abstractions and the malleability of the data are what makes Clojure (and Lisp in general) very productive, and very pleasant to work with.
    @xialvjun ^^
    Mitch Robb
    @olslash
    not sure if this is a very active room but i was wondering if someone could help me understand lein-cljsbuild, specifically i'm having trouble understanding why lein is compiling my clojure code (same project, totally different namespace) when i run cljsbuild (and throwing errors related to it)
    https://github.com/olslash/bag/blob/master/project.clj#L65-L67-- i'm running lein cljsbuild once hello -- i expect hello.js to be output, but instead it throws errors related to the stuff in the clojure namespace/src folder
    Mitch Robb
    @olslash
    my understanding is that there shouldn't be any relationship between the two besides what you specify as crossover
    Wagner Amaral
    @wamaral
    @olslash the slack community is far more active, there's a bigger chance you could get help there
    Mitch Robb
    @olslash
    thanks ^
    Jonathan Higdon
    @jhigdon
    Wat
    martabrzeszczyk
    @martabrzeszczyk
    hi
    what does it mean: "programs are increasingly more about code, decreasingly about the data" https://youtu.be/VSdnJDO-xdg?t=952
    eyelidlessness
    @eyelidlessness
    @martabrzeszczyk it means people are increasingly writing complicated solutions they're not considering about the nature of the problems they're trying to solve
    clojure fails in addressing this by refusing to accept that static types would help people think about data rather than code
    martabrzeszczyk
    @martabrzeszczyk
    @eyelidlessness OK, make sense!!
    matrixbot
    @matrixbot
    @bendlas:matrix.org transducers really are awesome ...
    Alexander Pantyukhin
    @alexpantyukhin
    Hello, I have a question about the Clojure CLR. Does it work for dotnet core?
    Daniel
    @danieltanfh95
    I'm using Arcadia right now
    It's clojureclr for unity which uses dotnet
    Yes, it does
    @alexpantyukhin
    RoelofWobben
    @RoelofWobben
    What is the best way to learn clojure very well. I like to solve adventforcode challenges and making websites.
    Joel
    @jtrunick
    dead room?
    David Zhu
    @noblecraft
    hello
    i'm stepping through book called "Web Development with Clojure 2nd Ed"

    I'm a bit confused with the following:

    ​ (ns ring-app.core
    ​ (:require [ring.adapter.jetty :as jetty]
    ​ [ring.util.response :as response]
    ​ [ring.middleware.reload :refer [wrap-reload]]))

    ​ (​defn​ handler [request]
    ​ (response/response
    ​ (str ​"<html><body> your IP is: "​
    ​ (:remote-addr request)
    ​ ​"</body></html>"​)))

    ​ (​defn​ wrap-nocache [handler]
    ​ (​fn​ [request]
    ​ (-> request
    ​ handler
    ​ (assoc-in [:headers ​"Pragma"​] ​"no-cache"​))))

    ​ (​defn​ -main []
    ​ (jetty/run-jetty
    ​ (-> handler var wrap-nocache wrap-reload)
    ​ {:port 3000
    ​ :join? false}))

    in -main, threading -> handler var wrap-nocache wrap-reload
    why is var needed here?
    The book says "Note that we have to create a var from the handler in order for this middleware to work. This is necessary to ensure that the var object containing the current handler function is returned. If we used the handler instead, then the app would only see the original value of the function and changes would not be reflected. A more common way to create a var would be to use the #’ prefix as follows: (-> #’handler wrap-nocache wrap-reload)."
    i'm clueless as to what that means. Please help thank you
    Eugene Pakhomov
    @p-himik
    @noblecraft I think it talks about the ring.middleware.reload/wrap-reload that reloads the code that you've changed upon a request. I don't know for sure but I think not using var would prevent such code from being reloaded. You can experiment a bit and confirm it yourself.
    James Sully
    @sullyj3
    (map rand-nth (replicate 5 (range 5)))
    How do I do this more efficiently, without writing the loop myself? (Using library functions) repeatedly was not quite what I wanted
    Eugene Pakhomov
    @p-himik
    @sullyj3 Using repeat instead of replicate will be a bit faster (replicate is deprecated in any case). Apart from that - don't know really. I was surprised that using repeatedly results in a slower code.
    Goldstein
    @GoldsteinE
    Hello. Sorry for noob questions, but I can't understand what I'm doing wrong.
    Here's code: https://pastebin.com/yBXMjGjy
    censor-word func works fine, and play is updated in play-with-word, but play-with-word only outputs all-censored word and game never ends.
    Eugene Pakhomov
    @p-himik
    @GoldsteinE After a superficial look at your code, it seems that \* needs to be in the set of known letters by default.
    cyberscientist
    @cyberscientist
    Hey all, Not sure of this is the right place to ask such a noob question.
    But in the docs for the reduce function says "...If val is not supplied,
    returns the result of applying f to the first 2 items in coll, then
    applying f to that result and the 3rd item, etc. ..."
    what is val?
    Eugene Pakhomov
    @p-himik
    @cyberscientist The second signature of reduce is [f val coll].