Re: [ANN] tools.deps.alpha 0.5.452 and clj 1.9.0.394

2018-09-15 Thread Reid McKenzie
Thanks Alex! - Reid On Saturday, September 15, 2018 at 6:36:19 AM UTC-7, Alex Miller wrote: > > Just a small bug fix/enhancement release of these... > > * TDEPS-92 error and > report on unknown alias key > * TDEPS-12

Re: Bazel as Clojure build tool

2018-06-06 Thread Reid McKenzie
I previously worked with pants [1] in the context of an extremely large (~50GiB) repository which saw a huge amount of daily churn. In that context build tools like pants and Bazel become absolutely essential because the only way to have a reasonable CI/CD system and build/test times is to do chang

[:ann] Grimoire 0.5.19

2017-12-14 Thread Reid McKenzie
Hey folks, I'm delighted to announce the release of Grimoire 0.5.19 [1]! Grimoire is a documentation website which tries to enable quick access and hosts edited, extended and formatted documentation for Clojure and some contrib libraries. This release adds Clojure 1.9.0 documentation, and reso

Re: Sum types in Clojure? Better to represent as tagged records or as variant vectors?

2017-08-28 Thread Reid McKenzie
FWIW I wrote a library around defining tagged map types https://github.com/arrdem/guten-tag and used it heavily in the Grimoire implementation almost entirely to my satisfaction. No idea if anyone else ever picked it up, and due to implementation details of Clojure's let map destructuring you c

Re: Meta-data should be added to deprecated functions?

2016-08-11 Thread Reid McKenzie
I'll do you one better... instead of having a convention for the value of the :deprecated key, use a map so you can have information such as the version in which it was deprecated, planned removal version, alternatives and soforth. On Thursday, August 11, 2016 at 1:54:08 AM UTC-7, Matt Mower wr

Re: Following type annotations across call sites to eliminate reflection?

2016-05-21 Thread Reid McKenzie
You should be able to do this: (defn f [a ^bytes b ^bytes c] (if (instance? ByteBuffer a) (.f binding ^ByteBuffer a b c) (.f binding ^bytes a b c))) You have a bimorphic function and yes there isn't a way to express that with Clojure's calling convention and consequent hinting supp

[:ann] Grimoire 0.5.0

2016-02-27 Thread Reid McKenzie
Hey folks, I'm delighted to announce the overdue 0.5.0 release of Grimoire [1]! This release overhauls the landing page, replacing Andy F's venerable static HTML cheatsheet with a more responsive rendering of the same content and replacing the cheatsheet's search bar with a live search of the Gri

[ANN] Grimoire Clojure 1.8

2016-02-21 Thread Reid McKenzie
Hey folks, Sorry it's been a while coming, but I'm happy to announce that my Grimoire is now 1) https secured with thanks to the EFF's LetsEncrypt project and 2) sports Clojure 1.8 docs. AndyF's most excellent cheatsheet

Clojure compiler options

2016-01-31 Thread Reid McKenzie
One for those of you who've been around longer. Is there a reason for *warn-on-reflection* etc rather than just adding kvs to *compiler-options*? My guess is that the former is more CL/traditional/just came first and that the latter seems to have been added to support -Dclojure.compiler.foo=bar b

Re: [ANN] New clojure.org!

2016-01-19 Thread Reid McKenzie
Grimoire was originally built to replace ClojureDocs when it had been inactive for some time, and as it turns out mere months prior to the big update which is now live. That I continue to operate Grimoire now that ClojureDocs has been updated is I suppose competition at some level. Yes ClojureDocs

Re: [ANN] New clojure.org!

2016-01-18 Thread Reid McKenzie
That this is an afterthought I suppose indicates my priorities, but if you have particular complaints about the present design of Grimoire I'd be delighted to hear them over on the bugtracker [1]. I'm well aware that Grimoire lacks some amount of UI/web N+1 polish, however as I'm no UI/UX expert pr

Re: [ANN] New clojure.org!

2016-01-18 Thread Reid McKenzie
Okay. Thanks for the quick reply Alex. Reid On 01/18/2016 05:39 PM, Alex Miller wrote: > Actually, I was using an old version of the cheatsheet and have updated. > > On Mon, Jan 18, 2016 at 5:33 PM, Reid McKenzie <mailto:rmckenzi...@gmail.com>> wrote: > > Hum... if t

Re: [ANN] New clojure.org!

2016-01-18 Thread Reid McKenzie
Hum... if this is true it's because I've diverged from Andy's cheatsheet builds and haven't synced back up. Grimoire has 1.7 content and will promptly support 1.8. Looking into this. Reid On 01/15/2016 02:36 PM, Mars0i wrote: > I like the new look a lot. Thanks. > > One comment: The cheatsheet n

Re: org-mode Clojure babel

2016-01-06 Thread Reid McKenzie
"0.11.0-SNAPSHOT". It's case sensitive. Reid On 01/06/2016 02:23 PM, Johannes Brauer wrote: > I tried this before. But with > {:repl {:plugins [[cider/cider-nrepl " 0.11.0-snapshot"]]}} > in my profiles.clj and cider-jack-in I get a Java exception: > Starting nREPL server via lein repl :headless.

Re: [ANN] - New Clojure Instant Answer on DuckDuckGo

2015-08-25 Thread Reid McKenzie
Nice! Reid On 08/25/2015 05:04 PM, Rafik NACCACHE wrote: > Hi Guys, > > I contributed an Instant Answer to DuckDuckGo. > > > When you search for "Clojure" with a number of terms, you directly > have under the "software" tab all the packages matching your query > from Clojars. > > Enjoy ! > > Rafi

Re: Java constructor question

2015-08-23 Thread Reid McKenzie
So after thinking about Alex and James' respective answers I think the full answer to your question is that no you can't do that for reasons pretty fundamental to the JVM unless you care to constrain the problem domain or qualify your question some more. Making a new class instance is a three step

Re: What does Zach Tellman mean by "factored out for greater inlining joy"

2015-08-08 Thread Reid McKenzie
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Lawrence, This is just a theory, but in the interests of response time, the JVM uses a large number of heuristics to determine what optimizations will likely prove profitable. One of them is a budget for method size. I would guess that lifting this

Re: [ANN] suchwow: a grab-bag library with some twists

2015-08-06 Thread Reid McKenzie
Awesome. Thanks for doing this Brian. Reid -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsu

Strictly tagged clojure

2015-08-06 Thread Reid McKenzie
Hello all, Alan Malloy and I recently implemented[1] and contributed[2] an opt-in strict tags mode to Alexander Yakushev's Skummet compiler. To summarize the linked blog post and merge request, we created the `clojure.core/*strict-tags*` dynamic var which may either be set by users at the namespac

Re: [ANN] Initial release of Glow, a tiny library for syntax highlighting Clojure source code

2015-08-02 Thread Reid McKenzie
On the contrary, I would argue that there is some interesting stuff like locals highlighting that existing highlighting solutions don't or can't offer. However as you say pygments fulfills my requirements. Reid -- You received this message because you are subscribed to the Google Groups "Clojure

Re: [ANN] Initial release of Glow, a tiny library for syntax highlighting Clojure source code

2015-08-01 Thread Reid McKenzie
Very nice! Have you put any effort into an HTML output target? Reid -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with

Re: [ANN] suchwow: a grab-bag library with some twists

2015-07-14 Thread Reid McKenzie
While there's no frontend such as suchwow or thalia for installing docstrings into a running Clojure instance, lib-grimoire [1] was literally designed with this sharing of examples and docs in mind. There is a repo [2] of all the examples and (markdown) notes in the Grimoire service, the goal of wh

Re: spam on clojure.org

2015-03-29 Thread Reid McKenzie
clojure.org does no such thing, sounds like it's time to do a virus sweep. Reid On 03/29/2015 05:14 AM, Otto Linnemann wrote: I have just noticed a lot of spam (online gambling and stuff like that) where clojure.org redirects too which I find incredible annoying since I use clojure.org frequen

Re: [GSoC] Source meta information model proposal

2015-03-19 Thread Reid McKenzie
Found var-link kicking around in my projects dir so I re-published it for this thread. https://github.com/clojure-grimoire/var-link Reid -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com N

Re: [GSoC] Source meta information model proposal

2015-03-17 Thread Reid McKenzie
Alex, glad to see we're on the same wavelength about this more or less. Christopher, some other deliverables worth considering: - What format is documentation in? As Grimoire is evidence, plain doc text is pretty badly formatted on average certainly in comparison to HTML or even markdown.

Re: [GSoC] Source meta information model proposal

2015-03-16 Thread Reid McKenzie
Hey Christopher, I'm Reid, the Grimoire maintainer. I'm delighted to see that someone besides myself and Alex is interested in this project and I wish you the best in your GSoC application. I'm somewhat concerned in reading your proposal that while you claim the proposed data structure represen

Re: [ANN] cljfmt

2015-01-18 Thread Reid McKenzie
Awesome! Thanks James! Reid On 01/17/15 08:02, James Reeves wrote: I've just released cljfmt 0.1.0, a code formatting library and Leiningen plugin for Clojure. https://github.com/weavejester/cljfmt The library is useful for ensuring that the formatting is correct after code transformations vi

Re: Properly parse clojure source code?

2015-01-15 Thread Reid McKenzie
If what you want is a parser not a reader, I reworked this [1] recently and to the limits of my testing it's "correct" in that it parses every reader construct I thought of to throw at it. You could improve it, I believe that #() nesting is supported by this grammar, but I was trying not to com

Re: Clojure Style Guide

2014-12-20 Thread Reid McKenzie
Protip: you already can. From my .emacs: (define-clojure-indent (defroutes 'defun) (GET 2) (POST 2) (PUT 2) (DELETE 2) (HEAD 2) (ANY 2) (context 2) (for-all 1) (such-that 1) (let-routes 1) (run-db 2) (defspec 'defun)) Reid On 12/20/14 16:28, John Jacobsen wrote: Great

ANN: Grimoire 0.4

2014-12-20 Thread Reid McKenzie
Grimoire, http://conj.io, hosts documentation of Clojure and other libraries indexed for quick reference by myself and Andy F. This release brings the addition of a JSON/EDN API, http://conj.io/api, the addition of documentation for 1.7 and huge internal refactor to make Grimoire more stable,

Re: ANN: core.match 0.3.0-alpha1, enhancements & breaking changes

2014-12-12 Thread Reid McKenzie
Looks awesome. Thanks David! Reid On 12/12/14 12:01, David Nolen wrote: Erg, Lein dep information should be the following of course: Leiningen project.clj [org.clojure/core.match "0.3.0-alpha1"] On Fri, Dec 12, 2014 at 12:54 PM, David Nolen wrote: core.match, an efficient pattern matc

Re: Status of lean runtime?

2014-12-11 Thread Reid McKenzie
On 12/11/14 08:09, Alex Miller wrote: > I think Reid said he was planning to pickup Oxcart over the holidays > again. Oxcart really has different goals than Clojure and I don't > expect it to ever directly feed back into Clojure. I may pick Oxcart back up again over winter break. I'm curious what

Re: [ANN] silc - a tiny entity database for clojure (games)

2014-12-02 Thread Reid McKenzie
Cool project! Did you try using the pldb built into core.logic? I have a similar system built atop pldb backing one of my side projects and I'm very happy with it. Reid On 12/02/2014 04:37 PM, dan.stone16...@gmail.com wrote: I have put together a quick library http://github.com/danstone/silc t

Re: [ANN] Clojure 1.7.0-alpha3 now available

2014-10-28 Thread Reid McKenzie
Phillip, Alan was talking about this on IRC yesterday with me an Alex... I think in general you can't "just" macro this, because hand unrolling is generating the nth duff's device by partially applying the "base" case over N elements from the "head" of varargs. This is pretty straightforward for c

Re: [ANN] Clojure 1.7.0-alpha3 now available

2014-10-27 Thread Reid McKenzie
Oops. Linked an old benchmark version. https://www.refheap.com/92391 Reid On 10/27/2014 03:13 PM, Reid McKenzie wrote: For grins I slapped together this benchmark <https://www.refheap.com/92385>, which tries to compare calls with callsite static arity to application both for fully un

Re: [ANN] Clojure 1.7.0-alpha3 now available

2014-10-27 Thread Reid McKenzie
For grins I slapped together this benchmark , which tries to compare calls with callsite static arity to application both for fully unrolled and partially unrolled functions. The results I see indicate that in both cases the cost of |apply| is almost equal for all

Re: testing platform , midje or specjl ?

2014-10-26 Thread Reid McKenzie
Have another +1 for clojure.test. It’s packaged with Clojure and while it’s not especially shiny I find that it gets the job done most of the time in addition to having the best tooling support. In my latest project, I’ve been enjoying using org.clojure/test.check

Re: Clojure cheatsheet v16 with few updates for Sets, Maps, and Relations sections

2014-08-29 Thread Reid McKenzie
Awesome! Thanks Andy. I'll make a point of getting this in to Grimoire 0.3.6. Reid On 08/29/2014 08:56 AM, Andy Fingerhut wrote: > Newest version available here: > > http://jafingerhut.github.io > > Updates will likely make their way to the Grimoire and Clojure.org > cheatsheet pages in time.

Re: Compilation failure to reject arguments matching formal parameters

2014-08-15 Thread Reid McKenzie
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Comments inline On 08/15/2014 06:47 AM, Dave Tenny wrote: > This is getting old. Any suggestions or plans to fix it? Do I need to use > some other common declaration style for functions? > > ; CIDER 0.5.0 (Clojure 1.6.0, nREPL 0.2.3) > user> (defn

Re: complex numbers in clojure

2014-08-15 Thread Reid McKenzie
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 The best way to build a complex arithmetic package is probably to work atop `clojure.algo.generic`. I've done a pair of libraries (https://github.com/arrdem/imprecise, https://github.com/arrdem/meajure) based around extending algo.generic with custom

Re: Can I compare ::logging from one namespace with ::logging from another?

2014-08-09 Thread Reid McKenzie
I think you missed the point of the last two emails. In tools.analyzer Nicola and I use the keywords :ctx/statement, :ctx/expr, :ctx.invoke/target and some others. The namespace "ctx" is entirely synthetic. It has no representation in terms of a file or actual Clojure ns form. It's just a conceptu

Re: Clojure 1.7 and invokeStatic

2014-08-06 Thread Reid McKenzie
Functions are objects implementing the IFn interface. This interface defines a set of methods named "invoke" which return an object given up to 21 arguments. Once the compiler is done emitting any given function, an IFn object has been created. Def is a general operation which creates a value and

Re: [ANN] Grimoire 0.3.0

2014-08-01 Thread Reid McKenzie
On 08/01/2014 09:03 PM, Sean Corfield wrote: > Ah, I hadn't looked at cross-clj before - that is super nice! Yeah! I'm still very impressed by their coverage of the Clojure ecosystem. > I only asked because clojuredocs.org did have a lot of the old contrib > in there (with some examples etc) and

Re: [ANN] Grimoire 0.3.0

2014-08-01 Thread Reid McKenzie
#x27;m not likely to do it myself. However I'm open to persuasion and PRs. Reid On 08/01/2014 06:47 PM, Sean Corfield wrote: > This is very cool. > > Given the URL structure, have you given any thought to how contrib libraries > might be integrated into this in future? > >

[ANN] Grimoire 0.3.0

2014-08-01 Thread Reid McKenzie
For those of you who didn't notice the ten minutes of 500 pages as I upgraded, I'm delighted to announce the Grimoire's 3rd release! This version would not have been possible without Robert Stuttaford, who was a huge help in porting Grimoire off of the original Jekyll back end to a real Ring serve

Re: Is clojars down?

2014-07-29 Thread Reid McKenzie
AFAIK clojars.org's / has been on the blink since at least about eight hours ago. Other pages are reported to work, but / was returning a 500 internal server error with a blank body. Reid On 07/29/2014 09:23 AM, Yves Parès wrote: > It's a network problem. It might come from the network of my lab o

Re: [ANN] Grimoire: up to date Clojure web docs

2014-07-11 Thread Reid McKenzie
While I appreciate the interest, I think that attempting to "officiate" Grimoire is a bad move. We already have "clojure.org". "clojure.org" is the only official site. Grimoire is not condoned by Rich. Using #"clo?j.*\.org would detract from any future documentation effort Rich and co. may make an

[ANN] Grimoire 0.2.0

2014-07-11 Thread Reid McKenzie
I'm delighted to say that I managed to make some ninja updates before Andyf announced the cheat sheet changes I submitted. Grimoire version 0.2.0 is now live with a boatload of changes and more to come. Grimoire (http://grimoire.arrdem.com) is up to date Clojure examples and documentation built as

Re: [ANN] Clojure cheatsheet variants with links to Grimoire

2014-07-11 Thread Reid McKenzie
/2014 05:39 PM, Andy Fingerhut wrote: > Thanks to some updates from Reid McKenzie (aka arrdem), there are now > Clojure cheatsheet variants published with links to Grimoire pages, in > addition to the ones that have been up for years now that have links > to ClojureDocs pages. > &

Re: [ANN] Grimoire: up to date Clojure web docs

2014-07-08 Thread Reid McKenzie
Two small suggestions, which you have probably thought of: (1) > search (2) a copy of the clojure cheat sheet that points to > grimoire instead. (Maybe Grimoire needs it's own domain?) > > CrossClj is *awesome* as well. I've been wanting something > simila

Re: [ANN] Grimoire: up to date Clojure web docs

2014-07-08 Thread Reid McKenzie
l. I've been wanting something similar for > a looong time. Thanks! > > Mark > > > > On Tue, Jul 8, 2014 at 2:31 PM, Reid McKenzie <mailto:rmckenzi...@gmail.com>> wrote: > > I'm delighted to announce that thanks to the official Clojuredocs

Re: [ANN] Grimoire: up to date Clojure web docs

2014-07-07 Thread Reid McKenzie
If this > rewrite lands soon than it may be worth adding a Motivation section to > the home page to distinguish it from clojuredocs.org. > > On Tuesday, July 1, 2014 7:34:38 PM UTC-4, Reid McKenzie wrote: > > Hey guys, > > If you're like me while using clojure.

Re: [ANN] Grimoire: up to date Clojure web docs

2014-07-07 Thread Reid McKenzie
home page to distinguish it from clojuredocs.org. > > On Tuesday, July 1, 2014 7:34:38 PM UTC-4, Reid McKenzie wrote: > > Hey guys, > > If you're like me while using clojure.repl/doc works for the most > part > there are just times that you need to

[ANN] Grimoire: up to date Clojure web docs

2014-07-01 Thread Reid McKenzie
a link, edit on github and submit a PR". I'd like to give a shout out to César for porting clojure.repl/source into the doc generation script and to Nicola for his random usability criticisms. Reid McKenzie -- You received this message because you are subscribed to the Google Groups "C

Re: Game logic with Clojure

2014-06-23 Thread Reid McKenzie
Caves of Clojure (http://stevelosh.com/blog/2012/07/caves-of-clojure-01/) was an interesting blog post series which addresses some of the issues you're facing. I found that the component entity system CoC is built in was a very nice abstraction for modeling a Magic: The Gathering like game in a pre

Re: Understanding when compilation occurs - for function producing functions

2014-06-22 Thread Reid McKenzie
> Coming from a C++ background I'm not that familiar with functions as > first class values. We sort of do have them in C++ - as functors - ie > a class that has the function invocation operator defined. This class > can have storage as well, which means you can have a functor object > type whic

Re: importing a single function in ns

2014-06-06 Thread Reid McKenzie
(ns foo (:use com.foo.bar :only [baz quxx])) is totally supported by the ns macro. Reid On 06/07/2014 12:53 AM, Glen Rubin wrote: > My namespace currently looks like this: > > > (ns providence.core > (:gen-class) > (:use seesaw.chooser) > (:use seesaw.core) > (:use clojure.java.shell))

Re: Top-down code in namspaces

2014-06-04 Thread Reid McKenzie
Clearly the solution is to use tools.analyzer and write a big def emitter /s Reid On 06/04/2014 10:27 AM, Mars0i wrote: > > > On Wednesday, June 4, 2014 9:42:41 AM UTC-5, Mars0i wrote: > > ... Then I add the new functions to the declarestatement by hand, > or I periodically do something li

Re: Extending a data model

2014-04-14 Thread Reid McKenzie
Hey Andrew, I actually built something very much along these lines a few months ago if you care to cheat off of it: http://github.com/arrdem/toothpick is an assembler generator system that works more or less along these lines. Label support is still a problem I haven't completely solved and I n

Re: [ANN] brute 0.1.1 - A lightweight Entity Component System library for writing games

2014-04-14 Thread Reid McKenzie
Cool project! I just hammered out my own CES in the last few weeks for a private project, I'll be interested to see how they compare and whether there's anything I can add :D Reid On Monday, April 14, 2014 6:32:06 PM UTC-5, Mark Mandel wrote: > > Heya! > > First real Clojure library release, so

Re: Parsing Clojure with instaparse: how to handle special forms?

2014-02-07 Thread Reid McKenzie
Okay. So there's one big thing you're doing wrong here just from reading your grammars: you are complecting the datastructures and valid _tokens_ which make up the clojure language with the _meaing_ associated therewith by the language. If you discard such things as destructuring as "part of th