Re: [ANN] Ring Jetty servlet adapter

2017-11-19 Thread Michael Blume
I was just about to start figuring out how to do this, for pretty much exactly the same reason (the Hystrix metrics stream). Thanks for this, I'm looking forward to trying it out. On Thu, Nov 16, 2017 at 5:23 AM Jiacai Liu wrote: > Fork of official jetty adapter >

Re: [ANN] Clojure 1.9.0-RC2

2017-11-27 Thread Michael Glaesemann
> On 2017-11-27, at 16:17, Alex Miller wrote: > > I should also mention that I've re-built the Clojure doc automation process > and the Clojure docs have refreshed for the first time in a long while. Thanks, Alex! Michael Glaesemann grzm seespotcode net -- You rece

Call for Participation: BOB 2018 (February 23, Berlin)

2017-12-05 Thread Michael Sperber
Note that BOB immediately precedes :clojureD - there are cross-registration discounts! BOB 2018 Conference “What happens if we simply use what’s best?” February 23, 2018,

Simulations in Clojure/Clojurescript

2018-01-10 Thread Michael Nardell
Greetings :: I am new to Clojure and have not really gotten my feet wet with Clojurescript yet. The advice I always give someone when leaning programming or a new language is to pick a project that they are interested in and dive in. For me, that project would be creating educational simulation

Re: Simulations in Clojure/Clojurescript

2018-01-10 Thread Michael Nardell
On Wednesday, January 10, 2018 at 4:56:24 PM UTC-8, Christopher Small wrote: You may be right about an object-oriented approach being the most natural > here. But, I'd encourage you to keep an open mind. Clojure has this > particular way of encouraging you to and rewarding you for describing you

Re: Simulations in Clojure/Clojurescript

2018-01-12 Thread Michael Nardell
Bobby :: Thanks for the recommended reading, I am finding it useful for pointing me in a new direction in my thinking. Also, finding Chapter 9 in *The Joy of Clojure, *where it discusses Records and Protocols, helpful guidance. In particular, it seems like I could start by using 'plain-old' ma

2nd Call for Participation: BOB 2018 (February 23, Berlin)

2018-01-16 Thread Michael Sperber
Note that BOB offers cross-registration discounts with :clojureD, which will be on the very next day - also in Berlin! == BOB 2018 Conference “What happens if we simply use what’s best?”

Re: Simulations in Clojure/Clojurescript

2018-01-27 Thread Michael Nardell
Tiago ::Thanks, for your input. Worth more considerably more than $00.02 for me right now. Since the last week or so, I have been diving into ClojureScript. In particular I am loving exploring D3.js, with an interactive, live coding experience. I am not sure if I should admit this in public.. b

Re: Simulations in Clojure/Clojurescript

2018-01-28 Thread Michael Nardell
On Saturday, January 27, 2018 at 6:11:59 PM UTC-8, John Newman wrote: > > You might want to look into Chris Granger's work on component entity > systems in clojurescript: > http://www.chris-granger.com/2012/12/11/anatomy-of-a-knockout/ > Right! Thanks for reminding me about that. I think I watch

Re: [ANN] Programming Clojure, 3rd edition

2018-02-21 Thread Michael Glaesemann
m > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an >

Re: [ANN] Nginx-Clojure v0.4.2

2015-09-02 Thread Michael McLellan
Awesome! Sente support was one of the reasons I didn't try it out on my latest project. On Tuesday, September 1, 2015 at 2:20:32 AM UTC-4, Xfeep wrote: > > 0.4.2 (2015-08-31) > >1. New Feature: Support Sente (issue #87 >, see

Re: Filter predicates and side-effects

2015-09-02 Thread Michael Blume
Don't call filter for side effects, don't rely on when side effects will or will not happen, but yeah, your filter predicate can have side effects. On Wed, Sep 2, 2015 at 9:13 AM James Elliott wrote: > Indeed, that would make sense for filter, but since filterv immediately > puts them all into a

Leiningen template in private maven repo

2015-09-11 Thread Michael Willis
dependencies from Artifactory. Is there some other configuration required to use leiningen templates from an internal repo? Thanks, Michael -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegr

Re: Leiningen template in private maven repo

2015-09-11 Thread Michael Willis
I figured it out - leiningen looks for template in the default repos, and anything configured under {:user {:plugin-repositories ...}} On Friday, September 11, 2015 at 11:38:24 AM UTC-5, Michael Willis wrote: > > I'm trying to write a leiningen template for company internal u

Re: Question about equality in HashMaps

2015-09-11 Thread Michael Blume
I wonder why instaREPL prints a as {"a" 3, "r" 1, "u" 1} On Fri, Sep 11, 2015 at 3:42 PM Alex Miller wrote: > a uses characters (\a \b \c) > b uses strings ("a" "b" "c") > > Those are not equal... > > Try: > (def b {\a 3 \r 1 \u 1}) > > > On Friday, September 11, 2015 at 5:37:32 PM UTC-5, Erlis

Re: Clojure/Pedestal vs Go

2015-09-15 Thread Michael Gardner
On Sep 15, 2015, at 20:45, Mikera wrote: > > 7. The open source library ecosystem on the JVM is awesome. There's nothing > like it for any other language. I like your other points, but in my experience this one is (arguably) no longer true. I've often found the JVM library ecosystem to be lack

Unexpected behavior for symbols or keywords used in the operator position

2015-09-15 Thread Michael O'Keefe
d something (feel free to point me in the right direction). Is it just a "quirk" or is it useful in some way? Intended behavior or bug? Cheers, Michael O'Keefe -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to t

Re: Unexpected behavior for symbols or keywords used in the operator position

2015-09-15 Thread Michael O'Keefe
> means that you can just use :keyword instead of #(get % :keyword) in > cases where you provide a function as an argument (for example: (map > :type objects)). > > On 16 September 2015 at 14:20, Michael O'Keefe > wrote: > >> Hello All: >> >> Noticed the foll

Call for Contributions: BOB 2016 - Berlin, Feb 19, 2016

2015-09-18 Thread Michael Sperber
or presenters, but travel expenses will not be covered. Program Committee - (more information here: http://bobkonf.de/2016/programmkomitee.html) - Matthias Fischmann, zerobuzz UG - Matthias Neubauer, SICK AG - Nicole Rauch, Softwareentwicklung und Entwicklungscoaching - Michael Sperber, A

ANN Langohr 3.4.0 is released

2015-09-28 Thread Michael Klishin
Langohr [1] is a small but complete Clojure client for RabbitMQ. Release notes: http://blog.clojurewerkz.org/blog/2015/09/29/langohr-3-dot-4-0-is-released/ 1. http://clojurerabbitmq.info -- MK http://github.com/michaelklishin http://twitter.com/michaelklishin -- You received this message bec

ANN Neocons 3.1.0 is released

2015-09-28 Thread Michael Klishin
Neocons [1] is a feature rich, idiomatic Clojure client for Neo4J Server. Release notes: http://blog.clojurewerkz.org/blog/2015/09/22/neocons-3-dot-1-0-is-released/ 1. http://clojureneo4j.info -- MK http://github.com/michaelklishin http://twitter.com/michaelklishin -- You received this messag

Re: macro help

2015-09-30 Thread Michael Blume
#foo gensyms don't survive across a 'break' in quoting you can do `(let [foo# bar] (other stuff (foo# ...))) but you can not do `(let [foo# bar] ~(for [i s] `(foo# ...))) or anything like that. The workaround is to create a gensym explicitly using (gensym), let that, and splic

Re: 4clojure count problem

2015-10-03 Thread Michael Blume
Reduce can take either two or three arguments; when it takes two arguments, it makes some assumptions about the argument that was left out. You're using reduce with two arguments, so you might want to rethink those assumptions. On Sat, Oct 3, 2015 at 2:19 PM Roelof Wobben wrote: > Hello, > > I h

Re: [ANN] Yesql 0.5.1 Released.

2015-10-09 Thread Michael Blume
The simple answer is https://clojure.github.io/clojure/javadoc/clojure/java/api/package-summary.html But since Yesql works by producing Clojure vars in a namespace, doing *everything* from Java sounds painful -- you'd probably want to sneak in like one Clojure file with a bunch of defquery stateme

Re: Why can't I override equals & hashCode in defrecord?

2015-10-11 Thread Michael Sperber
Alex Miller writes: > Records are (intentionally) map-like structures that are compared with > value equality, just like maps. This will not change. Did you read the original post? That's exactly what I'm trying to do. (Our tentative answer is to implement our own record-definition form.) -

Re: Why can't I override equals & hashCode in defrecord?

2015-10-12 Thread Michael Sperber
Alex Miller writes: > I'm trying to say - Clojure does not and will not support this on records > (for good reasons) and deftype is the tool to use if you want custom > equality semantics. I understand, that's fine. Now, my original post asked about programmers' ability to replicate defreco

Re: Calling object members with symbols

2015-10-18 Thread Michael Blume
Nope, still won't work. (let [s 'toString] (invoke 1 s)) java.lang.IllegalArgumentException: No matching field found: s for class java.lang.Long On Sun, Oct 18, 2015 at 5:51 PM dennis zhuang wrote: > You may have to use macro: > > user=> (defmacro invoke [obj sym] `(. ~obj ~sym)) > #'user/in

Re: State Change Listener in Clojure on a Database

2015-10-21 Thread Michael Ball
I've had this working a few months ago using http://impossibl.github.io/pgjdbc-ng/. Here's the clojure used. https://gist.github.com/mikeball/ba04dd5479f51c00205f I don't have time to test this now, but it should get you started. On Monday, October 19, 2015 at 8:06:01 AM UTC-7, Adri

Second Call for Contributions: BOB 2016 - Berlin, Feb 19, 2016 (Deadline Oct 30)

2015-10-22 Thread Michael Sperber
g their sessions, as well as a review of the talk slides. Program Committee - (more information here: http://bobkonf.de/2016/programmkomitee.html) - Matthias Fischmann, zerobuzz UG - Matthias Neubauer, SICK AG - Nicole Rauch, Softwareentwicklung und Entwicklungscoaching - Mich

Onyx Cheat Sheet

2015-10-26 Thread Michael Drogalis
any suggestions about how to make it better. Cheers! -- Michael -- 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

Re: how to speedup lein uberjar?

2015-11-01 Thread Michael Blume
I think Matching Socks has definitely got the right answer -- anything that prevents your code from being AOT-compiled is going to give you a huge speedup. On Sun, Nov 1, 2015 at 10:11 PM Sunil S Nandihalli < sunil.nandiha...@gmail.com> wrote: > Hi Asim, > I needed to run lein uberjar to submit

I am using jvm-breakglass and getting a NoClassDefFoundError

2015-11-09 Thread Michael Zazzali
Hi, Hopefully someone here has some experience with the jvm-breakglass. I am trying to use the jvm-breakglass library with a java web application and it's not able to find the core clojure libraries when i connect. macbook:server$ lein repl :connect localhost:5 Connecting to nREPL at loc

Re: [ANN] Clojure 1.8.0-RC1 is now available

2015-11-10 Thread Michael Drogalis
Upgrading Clojure to 1.8.0-RC1 passed Onyx's full test suite. Thumbs up on our end. On Tuesday, November 10, 2015 at 9:30:47 AM UTC-8, Alex Miller wrote: > > Clojure 1.8.0-RC1 is now available. *This build is a "release candidate"!* > We would appreciate any and all testing you can do on your ow

Re: Style, Efficiency, and updating nested structure

2015-11-11 Thread Michael Gardner
- Worrying about the performance of a small, pure function like this is almost certainly premature optimization. - Avoid concurrency constructs like atoms if you don't need them. - Have you considered using group-by? > On Nov 11, 2015, at 13:25, Dave Tenny wrote: > > A colleague and I are deb

[ANN] Onyx 0.8.0: Automatic State Management

2015-11-12 Thread Michael Drogalis
We're pleased to release Onyx version 0.8.0, which brings with it primitives for automatic state management, failure recovery, windowed computations, and triggers. Onyx is a scalable, distributed, fault tolerant, high performance data processing platform for handling batch and streaming workloa

Re: [ANN] Clojure 1.8.0-RC1 is now available

2015-11-12 Thread Michael Blume
Sorry, I'm confused now -- is the appropriate place to give a return type hint for a function the arg list and not the function name? I've always seen the function name hinted. On Thu, Nov 12, 2015 at 11:20 AM Nicola Mometto wrote: > Also just like the CLJ-1846 issue, this bit of code was valid

Re: Locking non-local variable inside macro

2015-11-15 Thread Michael Blume
The problem here is that you are splicing in obj when there is no need to. You actually want your generated code to refer to obj. So just (defmacro mac1 [& body] `(locking obj ~@body)) is fine. dennis' solution will work too, but it will work almost accidentally? All blank maps evaluate to the s

Re: Largest Clojure codebases?

2015-11-16 Thread Michael Willis
For what it's worth, here's the way that I always count lines of code, should work on any unix-like system: find -name "*.clj" | wc -l On Sunday, November 15, 2015 at 5:23:01 PM UTC-6, Colin Yates wrote: > > Exactly this. I couldn’t find a reliable way of counting LOC but my > (Clojure/ClojureS

[ANN] Simulant 0.1.8

2015-11-16 Thread Michael Nygard
Simulant 0.1.8 is now available. This is a maintenance release that incorporates some bug fixes and updates Clojure and Datomic dependencies Try it via - Leiningen: [com.datomic/simulant "0.1.8"] Changes since 0.1.7: - PR 24 Allow overriding

Re: best practice with forked libraries

2015-11-18 Thread Michael Blume
If you have an internal maven repo, you can publish artifacts to it with updated version string and with group/artifact unchanged. On Wed, Nov 18, 2015 at 7:19 AM Herwig Hochleitner wrote: > 2015-11-18 15:48 GMT+01:00 Max Gonzih : > >> I think lein deps :tree should be enough to spot issues like

ANN metrics-clojure 2.6.0 is released

2015-11-30 Thread Michael Klishin
metrics-clojure is a Clojure interface to the DropWizard Metrics library. Release notes: https://github.com/sjl/metrics-clojure/blob/master/ChangeLog.md#changes-between-250-and-260 -- MK http://github.com/michaelklishin http://twitter.com/michaelklishin -- You received this message because you

Re: [ANN] Clojure 1.8.0-RC3

2015-12-09 Thread Michael Blume
No issues here. On Tue, Dec 8, 2015 at 5:39 PM James Elliott wrote: > I’ve been working with it for a few days and have seen no issues yet. > > > On Wednesday, December 2, 2015 at 10:03:31 AM UTC-6, Alex Miller wrote: > >> Clojure 1.8.0-RC3 is now available. *This build is a "release >> candidat

Call for Participation: BOB 2016 (February 19, Berlin)

2015-12-20 Thread Michael Sperber
BOB 2016 Conference "What happens if we simply use what's best?" February 19, 2016 Berlin http://bobkonf.de/2016/ Program

ANN Langohr 3.4.2 is released

2015-12-20 Thread Michael Klishin
Langohr [1] is a minimalistic feature complete Clojure client for RabbitMQ. Release notes: http://blog.clojurewerkz.org/blog/2015/12/20/langohr-3-dot-4-2-is-released/ 1. http://clojurerabbitmq.info -- MK http://github.com/michaelklishin http://twitter.com/michaelklishin -- You received this m

ANN Pantomime 2.8.0 is released

2015-12-20 Thread Michael Klishin
Pantomime [1] is a Clojure interface to Apache Tika. Release notes: http://blog.clojurewerkz.org/blog/2015/12/20/pantomime-2-dot-8-0-is-released/ 1. http://github.com/michaelklishin/pantomime -- MK http://github.com/michaelklishin http://twitter.com/michaelklishin -- You received this message

ANN Elastisch 2.2.0-rc1 is released

2015-12-20 Thread Michael Klishin
Elastisch [1] is a minimalistic Clojure client for ElasticSearch that supports both HTTP and native transports. Release notes: http://blog.clojurewerkz.org/blog/2015/12/20/elastisch-2-dot-2-0-rc1-is-released/ 1. http://clojureelasticsearch.info -- MK http://github.com/michaelklishin http://twit

[ANN] Foundation 0.1.0 - postgresql data access

2015-12-27 Thread Michael Ball
Foundation is a data access library focused on full support of postgres features and ease of use. Presently it supports common datatypes, execution of multiple statements, template queries with dynamic sections, a lightweight dsl for insert/update/deletes, and more. https://github.com/mikeball

Re: Reducing the pain of a clojars outage

2016-01-01 Thread Michael Gardner
> On Jan 1, 2016, at 21:31, Toby Crawley wrote: > > But if we had a regular >process that crawled all of the mirrors and the canonical repo to >verify that the checksums every artifact are identical, this could >actually improve security, since we could detect if any checksum >ha

Re: Reducing the pain of a clojars outage

2016-01-02 Thread Michael Gardner
> On Jan 2, 2016, at 10:27, Toby Crawley wrote: > > On Sat, Jan 2, 2016 at 12:47 AM, Michael Gardner wrote: >> >> I would caution against this approach. An attacker could easily target >> specific organizations, serving compromised artifacts only to particula

ANN Elastisch 2.2.0 is released

2016-01-03 Thread Michael Klishin
Elastisch [1] is a minimalistic feature complete Clojure client for ElasticSearch. Release notes: http://blog.clojurewerkz.org/blog/2016/01/04/elastisch-2-dot-2-0-is-released/ 1. http://clojureelasticsearch.info/ -- MK http://github.com/michaelklishin http://twitter.com/michaelklishin -- You

ANN Monger 3.0.2 is released

2016-01-11 Thread Michael Klishin
Monger [1] is a Clojure MongoDB driver for a more civilized age. Release notes: http://blog.clojurewerkz.org/blog/2016/01/11/monger-3-dot-0-2-is-released/ 1. http://clojuremongodb.info -- MK http://github.com/michaelklishin http://twitter.com/michaelklishin -- You received this message becaus

ANN Elastisch 2.2.1 is released

2016-01-11 Thread Michael Klishin
Elastisch [1] is a minimalistic feature complete Clojure client for ElasticSearch. Release notes: http://blog.clojurewerkz.org/blog/2016/01/12/elastisch-2-dot-2-1-is-released/ 1. http://clojureelasticsearch.info -- MK http://github.com/michaelklishin http://twitter.com/michaelklishin -- You r

ANN Langohr 3.5.0 is released

2016-01-14 Thread Michael Klishin
Langohr [1] is a small Clojure client for RabbitMQ. Release notes: http://blog.clojurewerkz.org/blog/2016/01/14/langohr-3-dot-5-0-is-released/ 1. http://clojurerabbitmq.info -- MK http://github.com/michaelklishin http://twitter.com/michaelklishin -- You received this message because you are s

Re: [ANN] New clojure.org!

2016-01-14 Thread Michael Cohen
Awesome! Every time - every single time - I've ever pulled up the api docs in a browser, for a split second I feel a tinge of embarrassment to be part of a community that has a language this good but a docs site that *#@&$#!& bad. The new site is a quantum leap forward. Everyone involved take

[ANN] Onyx 0.8.4: machine-aware optimization

2016-01-18 Thread Michael Drogalis
Onyx is a high performance, fault tolerant, distributed data processing platform for Clojure. It uses a data driven API to transparently handle batch and streaming workloads over a variety of storage mediums. I'm happy announce release 0.8.4, which includes our next generation scheduling compon

Re: [ANN] Brute 0.4.0 - A lightweight Entity Component System library for writing games

2016-01-26 Thread Michael Willis
Nice! I'm curious if you have thought of any way to index the entities by component values. For example, let's say your game has thousands of entities, and you want to write a system that does something with all entities in proximity of a given location, or maybe it does something to all enti

Re: Java API type hint question

2016-01-26 Thread Michael Willis
What's not practical about quoting? I thought it was considered more idiomatic than doing (list ...) On Sunday, January 17, 2016 at 2:48:29 PM UTC-6, Ritchie Cai wrote: > > Hi all, > > I'm trying to create a Java ArrayList object from a Clojure collection to > pass to another Java API. I get re

Utterly lost dealing with ClojureScript / Closure dependencies

2016-02-09 Thread Michael Sperber
I'm trying to properly deal with dependencies on a cljsjs package (React, in this case). So I have this in project.clj: :dependencies [[org.clojure/clojure "1.7.0"] [org.clojure/clojurescript "1.7.228" :scope "provided"] [cljsjs/react-with-addons "0.13.3-0"]]

Does Leiningen read Env Vars such as JAVA_OPTS?

2016-02-09 Thread Michael Drago
Hi guys. I'm trying to figure out where the JVM gets the java parameters (such as -Xms and -Xmx) when starting apps via "lein run" and when using the repl. The only successful way I have been able to set the memory is via the project.clj's :jvm-opts. Can we do this with an environment variable

[ANN] Ticket - an encrypted ticket/cookie library

2016-02-10 Thread Michael Ball
Ticket helps create and read encrypted tickets/cookies with expiration dates packaged inside. Feedback and security reviews are welcomed. https://github.com/mikeball/ticket Mike -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group,

Re: [ANN] Ticket - an encrypted ticket/cookie library

2016-02-11 Thread Michael Ball
ately chosen encryption and signing algorithms for the common web-app case. On Thursday, February 11, 2016 at 1:36:53 AM UTC-8, Andrey Antukh wrote: > > Hi Michael! > > Firstly: nice work! > > Do you know about JWE? It does just the same thing but in a > standarized/i

Re: [ANN] Ticket - an encrypted ticket/cookie library

2016-02-11 Thread Michael Ball
ckingdistributed.com/2014/05/21/my-first-macaroon/ > > Ghadi > > On Thursday, February 11, 2016 at 1:29:56 PM UTC-5, Michael Ball wrote: >> >> Thanks! Yes I looked at JWE, but it just seemed a bit heavy for the need >> to only store a simple identifier. Interoperabil

Re: [ANN] Graclj 0.1.0 -- New Gradle Plugin for Clojure

2016-02-15 Thread Michael Willis
In the event that you're looking for a logo, consider an artistic icon based on this: https://en.wikipedia.org/wiki/Common_grackle On Sunday, February 14, 2016 at 8:11:00 PM UTC-6, Andrew Oberstar wrote: > > I just released the first version of Graclj, which is a new Gradle plugin > for Clojure.

Call for Papers and Demos: Functional Art, Music, Modelling and Design

2016-02-18 Thread Michael Sperber
4th ACM SIGPLAN International Workshop on Functional Art, Music, Modelling and Design Co-located with ICFP Nara, Japan, 24 September, 2016 http://functional-art.org/2016/ =

Re: Clojure as first language

2016-02-21 Thread Michael Sperber
Terje Dahl writes: > I believe that the simplicity of Clojure's syntax in combination with its > clean functional nature and prefix notation makes it ideal as a "first > language" for anyone who wants to start programming - including, and > perhaps especially kids. There's a lot of research

[ANN] Doubling down on Onyx

2016-02-24 Thread Michael Drogalis
the blog post <http://www.onyxplatform.org/jekyll/update/2016/02/24/Doubling-Down-on-Onyx.html> for specifics, but I wanted to drop a message here to say how excited I am to push Clojure forward as a distributed systems/data analysis front runner. -- Michael -- You received this message be

Jepsen testing Onyx

2016-03-15 Thread Michael Drogalis
Hi everyone, We're happy to share that we've been busy Jepsen testing Onyx over the last few months. We've written a blog post to share the results with how we did it, what we found, and how we fixed problematic areas: Blog post: http://www.onyxplatform.org/jekyll/update/2016/03/15/Onyx-Straps-

[ANN] Engraver: a tool for managing Onyx clusters

2016-03-21 Thread Michael Drogalis
ost: http://www.onyxplatform.org/jekyll/update/2016/03/21/Engraver-A-Tool-for-Managing-Onyx-Clusters.html Cheers, -- Michael Drogalis -- 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

Re: Running Clojure apps using less memory.

2016-03-28 Thread Michael Willis
that helps, Michael Willis On Monday, March 28, 2016 at 7:11:49 AM UTC-5, Jason Basanese wrote: > > Hello all! I'm new to this forum. My name Is Jason Basanese and I am a > relatively new clojurist. > > I recently began hosting my first small full stack Clojure web app. While

Re: Cross platform date/time libarary

2016-04-06 Thread Michael Blume
Within your library you could probably use cljc to import one or the other, though. On Mon, Apr 4, 2016 at 9:04 AM Sean Corfield wrote: > On 4/3/16, 11:41 PM, "JvJ" kfjwhee...@gmail.com> wrote: > > OK. As long as a single import in a cljc will suffice. > > Nope. The Clojure time libraries all

Subject: Functional Art, Music, Modelling and Design 2016: 2nd Call For Papers

2016-04-19 Thread Michael Sperber
4th ACM SIGPLAN International Workshop on Functional Art, Music, Modelling and Design http://functional-art.org/2016/ Co-located with ICFP Nara, Japan, 24 September, 2016 Call for Papers and Demos The ACM SIGPLAN International Workshop on Functional Art, Music, Modelling and Design (FARM) gathe

^:const changes data type

2016-04-19 Thread Michael Stalker
Adding ^:const to a var seems to change the data type sometimes: user> (def ^:const time1 (java.sql.Timestamp. 1) #'user/time1 user> (def time2 (java.sql.Timestamp. 1) #'user/time2 user> (type time1) java.util.Date user> (type time2) java.sql.Timestamp The upshot is that while (=

Re: Are strings vectors? Should 'get' docstring be changed?

2016-04-21 Thread Michael Gardner
On Apr 21, 2016, at 10:04, James Reeves wrote: > > Clojure seems to avoid having functions that have variable performance > depending on the data structure they're applied to. But not always! (e.g. count) -- You received this message because you are subscribed to the Google Groups "Clojure" g

Re: Porting Clojure to Native Platforms

2016-04-25 Thread Michael Ball
Not JVM based but I've been wondering about ClojureCLR on top of the new CoreCLR might be a potential path for native. There's a native compiler in the works (a brief mention a couple weeks ago in the standup https://youtu.be/cfxuJsZIK4A?t=1h13m32s). I have to say with the MIT license, tail ca

Re: Lazy evaluation of arguments

2016-04-26 Thread Michael Griffiths
I'm not sure I fully understand your proposal, but when I really need lazy evaluation (which is pretty rare) I reach for `delay` and `force`. On Tuesday, 26 April 2016 16:41:08 UTC+1, Olek wrote: > > Hi! > > In short: > > I have noticed that in most cases I use macros only for lazy arguments > e

Re: Schemas for DSLs on top of Clojure

2016-04-29 Thread Michael Willis
The convention that I've seen among the Clojure community is to represent these kinds of things as data structures, and define your contraints using something like https://github.com/plumatic/schema On Friday, April 29, 2016 at 1:10:29 PM UTC-5, Olek wrote: > > Hi! > > Clojure data structures ca

[ANN] Onyx 0.9.6: Static Analysis and Elm-grade Error Messages

2016-05-06 Thread Michael Drogalis
I'm happy to announce the release of Onyx version 0.9.6. This release of Onyx ships our new static analyzer module, which is in turn bundled with a renderer to deliver significantly better error messages than we were able to show in previous releases. Read about it in our blog post below! Blog

Re: apply madness

2016-05-12 Thread Michael Gardner
There's no need to avoid `apply` altogether, IMO. You could do something like this: (let [raw (list :a 1 :b 2 :c 3)] (into {:raw raw} (filter (comp even? second) (apply hash-map raw BTW, `list` is pretty uncommon. Usually you'd just use a vector literal. And this is

Re: understanding a clojuredocs merge example

2016-05-12 Thread Michael Willis
As long as we're cutting out unnecessary code, this is also equivalent: (defn baz [options] (merge {:opt1 "default-1" :opt2 "default-2"} options)) (baz {:opt1 "custom-1" :opt3 "custom-3"});;=> {:opt3 "custom-3" :opt1 "custom-1 :opt2 "default-2"} On Thursday, May 12, 2016 at 4:03:04 AM UTC-5

AOT uberjar building broken - anyone know a workaround?

2016-05-13 Thread Michael Sperber
We have a fairly large Clojure application which we're deploying as an uberjar. We'd like to deploy AOT, but are running into this: http://dev.clojure.org/jira/browse/CLJ-1544 Unless I misread, it means that AOT compilation is essentially broken. The workaround suggest there is to only AOT the

Re: I knew that primitives were better, but this is ridiculous

2016-05-13 Thread Michael Willis
I'm also really interested in the topic of indexing a CES game engine. At one point I was trying to build a game, and mine was designed with components being maps of entity-id -> value. I found that it worked really well to quickly do things like running a function for all entities that have

Access user created Java package from Clojure

2016-05-16 Thread Michael Rice
s it for compilation? Michael -- Home phrasebook pirate_phrases Greetings.class Farewells.class PirateConversation.class PirateConversation.java: import pirate_phrases.*; public class PirateConversation { public static void main(String[] args) {

Re: Avoiding nested ifs...

2016-05-26 Thread Michael Ball
I use a little short circuited threading macro to deal with this. Here's a gist with the macro named short-> and how I would write out your first 2 validation steps. https://gist.github.com/mikeball/10cc64fe97c119671918fb2d1d8b4118 The new spec stuff looks really interesting, haven't had a ch

Final CFP: 4th ACM SIGPLAN International Workshop on Functional Art, Music, Modelling and Design

2016-06-05 Thread Michael Sperber
4th ACM SIGPLAN International Workshop on Functional Art, Music, Modelling and Design http://functional-art.org/2016/ Co-located with ICFP Nara, Japan, 24 September, 2016 Key Dates: Submission deadline - June 24 Author Notification - 15 July Camera Ready- 31 July Workshop- Se

ANN Ogre 3.0.0.0-beta1 and future plans for Ogre

2016-06-15 Thread Michael Klishin
Ogre [1] is a Clojure dialect of Gremlin, a DSL for querying and otherwise working with Apache TinkerPop [2] graphs. Over the last 6 months or so Ogre maintainers have moved it to target TinkerPop 3.x. Since TinkerPop itself has changed quite a bit and is now an Apache incubator project, Ogre API

ANN metrics-clojure 2.7.0 is released

2016-06-15 Thread Michael Klishin
metrics-clojure [1] is a Clojure interface to the Metrics library [2], originally by Steve Losh [3]. Release notes: http://blog.clojurewerkz.org/blog/2016/06/02/metrics-clojure-2-dot-7-0-is-released/ If you're new to metrics and not sure why collecting them is a good idea, take a moment to watch

Re: ClojureScript Quick Start - Error: Could not find or load main class clojure.main

2016-07-07 Thread Michael Wood
Perhaps try on the Clojurescript mailing list. https://groups.google.com/group/clojurescript On 05 Jul 2016 4:15 PM, "gilmoretj" wrote: > I suspect there is a MS Windows-specific configuration step missing from > the Quick Start guide ( > https://github.com/clojure/clojurescript/wiki/Quick-Start

Rationale for `keys` not supporting vectors?

2016-07-08 Thread Michael Gardner
I've looked around, but couldn't find any discussion on the topic. Is it purely an implementation thing, or a design choice? (Yes, I realize you can just do (range (count v)).) -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, s

Re: Thoughts on clojure.spec

2016-07-10 Thread Michael Gardner
It might be possible to leverage something like American Fuzzy Lop[1] for better random input generation. I've never used AFL myself, but I know SQLite (one of the best-tested libraries I know of) has had good success with it[2], and it does work on Java. [1] http://lcamtuf.coredump.cx/afl/ [2]

Prohibition of *1, *2, etc. with Clojure's assoc-in function

2016-07-23 Thread Michael Rice
Why the prohibition? Michael -- 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 unsubs

Re: using the same middleware (wrap-multipart-params) with different parameters in one app [ring] [compojure]

2016-08-15 Thread Michael Drago
I ran into this SAME issue today. Did you ever find a solution? Even looking into ring's code it seems like it always takes the :store fn first and if one isn't defined it takes the default-store. https://github.com/ring-clojure/ring/blob/1.5.0/ring-core/src/ring/middleware/multipart_params.clj#

Re: case bug

2018-07-24 Thread Michael Gardner
As its docstring states, the `case` macro doesn't evaluate its test-constants. It only works on compile-time constants (e.g. literal strings/numbers), to allow O(1) matching. You want `condp` instead. -- You received this message because you are subscribed to the Google Groups "Clojure" group.

Keyword namespacing best practices

2018-09-30 Thread Michael Gardner
I'm looking for some feedback on keyword namespacing. Say you're writing an API to be used by external clients that works something like this: (fetch url :timeout 10) => {:status 200, :body "..."} Would you namespace the :status and :body keywords in the response? What about the :timeout kwarg

Re: Keyword namespacing best practices

2018-09-30 Thread Michael Gardner
> On Sep 30, 2018, at 18:54, Eric Lavigne wrote: > > I would not use keyword namespaces in this situation. Users of the "fetch" > function will likely type :timeout, :status, and :body when using this > function. Keyword namespaces would just force users to type longer names for > these. Th

Re: Keyword namespacing best practices

2018-10-01 Thread Michael Gardner
> On Sep 30, 2018, at 23:41, Alan Thompson wrote: > > It is easy to overdo it when trying to predict future needs. I always (now) > do the minimal solution, with the expectation that it *may* evolve in the > future. Normally I'd agree: YAGNI is great for functionality that can be added with

Call for Contributions: BOB 2019 - Berlin, Mar 22, 2019

2018-10-15 Thread Michael Sperber
18 - Notification: December 7, 2018 - Program: December 21, 2018 Program Committee - (more information here: http://bobkonf.de/2019/en/programmkomitee.html) - Matthias Fischmann, zerobuzz UG - Matthias Neubauer, SICK AG - Nicole Rauch, Softwareentwicklung und Entwicklungscoach

2nd Call for Contributions: BOB 2019 [Deadline Nov 23]

2018-11-16 Thread Michael Sperber
ication: December 7, 2018 - Program: December 21, 2018 Program Committee - (more information here: http://bobkonf.de/2019/en/programmkomitee.html) - Matthias Fischmann, zerobuzz UG - Matthias Neubauer, SICK AG - Nicole Rauch, Softwareentwicklung und Entwicklungscoaching - Michael

Re: [ANN] com.cognitect.aws/api-0.8.155

2018-12-12 Thread Michael Glaesemann
> On 2018–12–12, at 19:07, David Chelimsky wrote: > > com.cognitect.aws/api-0.8.155 is now available. Rock on! Michael Glaesemann grzm seespotcode net -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this g

Re: [ANN] Clojure 1.10 has been released!

2018-12-17 Thread Michael Glaesemann
days 😊 > > And, yeah, this was the first release of Clojure itself that I got a patch > into… and it was just a backport of a patch from the ASM Java code, so it > wasn’t really even my contribution! Thanks, Sean :) Michael Glaesemann grzm seespotcode net -- You received this me

Call for Participation: BOB 2019 (March 22, Berlin)

2018-12-21 Thread Michael Sperber
Several Clojure-related talks at BOB! BOB 2019 Conference “What happens if we simply use what’s best?” March 22, 2019

<    2   3   4   5   6   7   8   9   10   11   >