-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for Clojure CLR #96
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your work on this! I've reviewed the code and have some changes/suggestions. Once we're done with that we'll need to clean up the commit history a little as well.
@weavejester The PR has been updated to include all your recommendations, except for those regarding |
I'm assuming after this PR is merged, all future additions will need to consider CLR compatibility? The state of Clojure survey reports that about 1% of respondents use it (compared to about 99% Clojure and 65% Clojurescript), and a port does exist. Maybe a conversation instigated this which I've missed? But if not, I wonder if one is worth having? As a contributor with no interest in CLR, I worry this will dissuade me (and others) from contributing in the future. Why not update (and continue to maintain) the port? |
Great question. I considered updating the CLR port, but decided to go this route for several reasons:
While this does add a little extra work for contributors, the translations are quite simple. I believe the time I spent adding reader conditionals to the entire repository was maybe an hour or two. Scaling this down to only future changes, I imagine time spent thinking about cljr will be negligible, especially with many of these functions knowing nothing about the platform they run on. I'm happy to move this PR over to the CLR port of medley, but I'll wait on @weavejester for that directive. |
@brandoncorrea thanks for the answer. FWIW I'm not convinced the advantages you list outweigh the disadvantages (at least when weighted by number of those affected) but of course it's @weavejester 's call. Cheers |
@tomdl89 Unofficial support of Clojure CLR may also be worth considering. This way, future contributors need not concern themselves with CLR. If there happens to be a release that doesn't fully support CLR and somebody wants those changes, they may contribute that those changes and see those in following releases. |
@tomdl89's observation is a good one, and certainly why I've rejected CLR ports in the past. However, there are a couple of differences in this case that make me more amenable to including this:
New functions being added to Medley are rare enough these days that I don't think mind the overhead of helping getting them working with ClojureCLR, especially now I have ClojureCLR and cljr running on my Linux machine. I'll give this a little more thought, but my inclination is that in this case it's a reasonable inclusion. |
deps-clr.edn
:cljr
:git/tag
/:git/sha
is addedWith this change, it may (or may not) be worth removing the ports section from
README.md
.