This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-04-07
Channels
- # admin-announcements (4)
- # aws (2)
- # beginners (25)
- # boot (116)
- # braid-chat (4)
- # cider (6)
- # cljsjs (4)
- # cljsrn (17)
- # clojure (196)
- # clojure-austin (23)
- # clojure-belgium (5)
- # clojure-dev (78)
- # clojure-dusseldorf (6)
- # clojure-italy (2)
- # clojure-japan (6)
- # clojure-poland (1)
- # clojure-russia (132)
- # clojure-sdn (1)
- # clojure-uk (26)
- # clojurescript (87)
- # code-reviews (3)
- # core-async (26)
- # cursive (8)
- # datomic (40)
- # devcards (8)
- # emacs (4)
- # funcool (32)
- # hoplon (30)
- # jaunt (34)
- # jobs (1)
- # lein-figwheel (1)
- # leiningen (5)
- # om (14)
- # onyx (8)
- # overtone (31)
- # parinfer (14)
- # proton (8)
- # protorepl (1)
- # re-frame (30)
- # reagent (10)
- # spacemacs (2)
- # untangled (107)
- # yada (3)
hi, how would this https://github.com/GrrrDog/ACEDcup/blob/master/sources/src/com/greendog/jser/CommUploadSer.java look like in clojure?
what's Clojure's alternative to Haskell's seq_
, where you apply a function for each item in a sequence/vector and discard the results?
i was thinking doseq
, but it appears that that also involves actually creating the sequence?
Just googled around regarding the EPL, which is new to me. I've been able to identify that I don't need to ship my source with my binaries unless I modify source under EPL. However, I'm not finding it to be as clear whether or not I can ship my derivative work under a different license. Tl;dr: Leiningen starts my repo with an EPL license. Is it okay to replace that with Apache2? EDIT: For context, I just want to push a toy library I'm writing as I learn Clojure to GitHub. I'm not trying to, say, make a business decision.
Update: Just found my answer on Quora. Thanks @seancorfield ! https://www.quora.com/Why-are-Clojure-projects-normally-under-EPL-Can-I-write-an-open-source-project-using-Clojure-and-release-it-with-Apache-2-0
for what it's worth, I find http://tldrlegal.com a good starting point for learning about unfamiliar licenses
note that that Quora answer is incomplete at best, this phrase "You can pick whatever license you want for your open source Clojure project." is misleading. You can't distribute binaries that depend on both EPL and GPL code, making GPL unsuitable for Clojure libraries
You can get around that by releasing a library as GPL + a "linking exception", stating that the GPL'd code in that library may be linked against EPL code, but it's somthing to be aware of
I mostly ignore GPL because it places so many restrictions on use (and there are lots of companies that won’t touch GPL code at all): https://clojurians.slack.com/archives/beginners/p1460036109000975
Being able to distribute Clojure programs in source form that bring in their dependencies at runtime via lein/boot does mitigate a lot of that (not a scenario that most of the OSS licenses really seem to handle well).
So the real TL;DR is "It really depends on what you want to do with your code". If you’re in the binary distribution camp, there are more restrictions to consider when combining code with different licenses. If you’re in the hobby camp of just putting a library up on GitHub for folks to look at @eenblam then you might as well stick with EPL and not worry about it, unless you have fundamental moral objections to EPL
FWIW, I put out most of my stuff under ASL2 in general (FW/1 for Clojure), but some of my Clojure stuff is EPL (engine, cfml-interop, the contrib libs I maintain). But then clj-time and congomongo are MIT. I use GPL if I really want to make sure folks can’t use it commercially in modified form (mostly that’s excerpts from code that comes from where I work that we’re putting out as examples, rather than actual libraries).
(I’m actually a bit surprised no one has written a longer answer to that Quora question!)
All the contrib libs are EPL but Cognitect has released things like Transit or the non-Clojure transducers libraries under ASL2
@alexmiller do contrib libs have to be EPL? never quite understood that. I would've released my contribs under EPL anyway but I'd like to know if there's the choice
I believe that was the intention so that we could include them in core without having to relicense (but this pre-dates me being involved)
@bronsa: Yep! @seancorfield: I did go with EPL for my hobby project, as I expect the license to be rather inconsequential in this case. I was just curious about what I could generally expect to do, since I'm a bit more familiar with ASL2 and have used it for other projects. I'm a student, not a professional developer, and I just haven't had cause to become especially familiar with how all the legal bits fit together yet. I'm trying to fix that, though, so thanks for the link to tldrlegal, @plexus!
@bronsa: Yep! @seancorfield: I did go with EPL for my hobby project, as I expect the license to be rather inconsequential in this case. I was just curious about what I could generally expect to do, since I'm a bit more familiar with ASL2 and have used it for other projects. I'm a student, not a professional developer, and I just haven't had cause to become especially familiar with how all the legal bits fit together yet. I'm trying to fix that, though, so thanks for the link to tldrlegal, @plexus!
@eenblam: Yeah, licensing for "real" projects can be a pain in the ass due to the implications of packaging code with multiple licenses. I’ve always used ASL2 prior to writing Clojure (unless I’ve needed to heavily restrict commercial usage, in which case I’ve used GPL). With Clojure I often default to EPL unless I have a specific reason not to.