Re: [ANN] Quil 2.4.0 and improved live editor

2016-03-24 Thread Dragan Djuric
Thank you for keeping this fantastic library alive :)

On Thursday, March 24, 2016 at 9:03:42 PM UTC+1, Nikita Beloglazov wrote:
>
> Happy to announce Quil 2.4.0 release.
>
> Quil is a Clojure/ClojureScript library for creating interactive drawings 
> and animations.
>
> The release available on clojars: https://clojars.org/quil. List of 
> changes:
>
>- Updated cheatsheet 
>
> . 
>Thanks to @SevereOverfl0w .
>- Added support for some new processing functions: pixel-density, 
>display-density, clip, no-clip, key-modifiers.
>- Fixes: #170 , #179 
>.
>- Upgraded to ProcessingJS 1.4.16 and Processing 3.0.2.
>- Drop support of Clojure 1.6.0.
>- Migrated from cljx to cljc and various refactorings to make Quil 
>compile with self-hosted cljs.
>
> Documentation on http://quil.info has been updated as well.
>
> *Live editor*
>
> Editor  on quil.info was revamped and 
> migrated to self-hosted ClojureScript! That means that now you can evaluate 
> code ~instantly in browser and even reevaluate parts of code. Editor 
> provides following features:
>
>
>- full client-side compilation including macros from quil.core;
>- partial evaluation: use Ctrl+Enter to evaluate selected code or form 
>under cursor
>- warning and error messages;
>- easy sketch sharing via URL;
>
> Feedback and bug reports are welcome! Feel free to reply to this thread or 
> file a bug in Quil repo . 
>
>
> Happy hacking!
>
> Nikita
>

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
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 email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: clojure.math.combinatorics/combinations throws exception on n=1

2016-03-24 Thread Alex Miller
I think this could be corrected by calling seq on the incoming coll (on the 
last line of the definition) and that would be in line with the rest of the 
seq functions in "seq"-ing their arg.

This is kind of a degenerate case of course - sets are always distinct so 
(distinct ) should be the same result as (seq ), but it will be 
slower because it's doing lots of unnecessary work. I suppose it's possible 
distinct is not supporting sets intentionally for this reason but don't 
know.


On Thursday, March 24, 2016 at 1:21:56 PM UTC-5, puzzler wrote:
>
> Looking at the source for distinct, the reason it fails is because it 
> tries to destructure the set as a seq, and sets can't be destructured in 
> this way.
>
> A lot of people think that (let [[f & r] coll] ...) is the same as (let [f 
> (first coll), r (rest coll)]...), but they are not the same, because first 
> and rest implicitly call seq, but destructuring does not.
>
> Perhaps this is an oversight in the clojure.core/distinct source.  It's 
> certainly an easy enough change (just change the destructuring line, or 
> call seq on coll, or do something polymorphic for the case of sets) and 
> then it would support sets as well.  I couldn't speak to that.
>
>

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
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 email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Interest in a Full Featured Clojure Blog Engine

2016-03-24 Thread unst...@gmail.com
I ran across this today: Perun 

On Thursday, 18 July 2013 08:24:06 UTC-6, frye wrote:
>
> Hello, 
>
> I'm thinking of how to build a composable blogging engine in Clojure. 
> There have been a few attempts at this, with cow-blog 
>  and my-blog 
> . But these seem to be 
> abandoned, and not heavily used. Vijay Kiran, last year, even wrote a 
> series of blog posts (see here 
> )
>  
> about building a blog engine. As far as a list of posts goes, the data 
> structure for each record was simple: 
>
>- title
>- content
>- status
>- created-date
>- published-date
>- author 
>
>
> I think this is the most basic thing you could do, to get running. But I'm 
> thinking of approaching the feature set of Wordpress 
> . So I'm thinking of the 
> Data Structure(s) of features like: 
>
>- Web UI component; wyswyg editor, themes  
>- Server component; embeddable in Compojure or Pedestal 
>- Database component; 
>- raw data structures, txt, rtf, images, audio, videos, documents 
>   - adapters for Datomic, SQL(Postgres, etc), NoSQL (Mongo, etc)
>   - tags / categories for content 
>- Authentication & Authorization; OpenID 
>- Workflow component; preview, collaboration & editor review  
>- Commenting component; default or an external comments service, like 
>disqus  or discourse 
>- Administration Console
>- Plug-in support  
>- Import / Export 
>- Multi-lang / Internationalization 
>
>
> I know that I currently wish I had a Clojure weblog engine that I could 
> stick into a site I'm building. If there's already something available, 
> I'll obviously just use that. But otherwise, is this something that would 
> be interesting to people? 
>
>
> Thanks 
>
> Tim Washington 
> Interruptsoftware.ca / Bkeeping.com 
> 416.843.9060 
>
>

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
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 email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ANN] Quil 2.4.0 and improved live editor

2016-03-24 Thread Nikita Beloglazov
Happy to announce Quil 2.4.0 release.

Quil is a Clojure/ClojureScript library for creating interactive drawings
and animations.

The release available on clojars: https://clojars.org/quil. List of changes:

   - Updated cheatsheet
   .
   Thanks to @SevereOverfl0w .
   - Added support for some new processing functions: pixel-density,
   display-density, clip, no-clip, key-modifiers.
   - Fixes: #170 , #179
   .
   - Upgraded to ProcessingJS 1.4.16 and Processing 3.0.2.
   - Drop support of Clojure 1.6.0.
   - Migrated from cljx to cljc and various refactorings to make Quil
   compile with self-hosted cljs.

Documentation on http://quil.info has been updated as well.

*Live editor*

Editor  on quil.info was revamped and
migrated to self-hosted ClojureScript! That means that now you can evaluate
code ~instantly in browser and even reevaluate parts of code. Editor
provides following features:


   - full client-side compilation including macros from quil.core;
   - partial evaluation: use Ctrl+Enter to evaluate selected code or form
   under cursor
   - warning and error messages;
   - easy sketch sharing via URL;

Feedback and bug reports are welcome! Feel free to reply to this thread or
file a bug in Quil repo .


Happy hacking!

Nikita

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
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 email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: clojure.math.combinatorics/combinations throws exception on n=1

2016-03-24 Thread Mark Engelberg
Looking at the source for distinct, the reason it fails is because it tries
to destructure the set as a seq, and sets can't be destructured in this way.

A lot of people think that (let [[f & r] coll] ...) is the same as (let [f
(first coll), r (rest coll)]...), but they are not the same, because first
and rest implicitly call seq, but destructuring does not.

Perhaps this is an oversight in the clojure.core/distinct source.  It's
certainly an easy enough change (just change the destructuring line, or
call seq on coll, or do something polymorphic for the case of sets) and
then it would support sets as well.  I couldn't speak to that.

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
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 email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ANN] schema-generators 0.1.0 (now with ClojureScript!)

2016-03-24 Thread Jason Wolfe
We've released schema-generators 0.1.0, which includes ClojureScript 
support via cljc:

https://github.com/plumatic/schema-generators

This library allows you to generate test data from most plumatic/schemas 
out of the box, as well as automatically "complete" partial datums -- which 
can both be very useful in different testing scenarios.  Please note the 
the corresponding functionality is now deprecated in the main schema 
project.

Big thanks to Milton Reder and others who helped with this release!   And 
on this note, *schema, plumbing, and our other libraries are now a 
completely volunteer effort, with no commercial support*.  Any help the 
community can provide in triaging issues, fixing bugs, etc would be much 
appreciated -- especially on the ClojureScript side of things.  If you're 
interested in helping out, please let me know and I'm happy to provide 
suggestions for how to get started.  

Have fun, and please let us know your feedback!  

-Jason

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
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 email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Protocols in another namespace, retract-type possible ?

2016-03-24 Thread Niels van Klaveren
In a project using clojure.java.jmx, I was extending it's Destract protocol 
object->data function  to transform more of the JMX data structures 
returned from calls or metadata queries into plain clojure data structures. 
When I was done with the individual data structures, it should have been 
possible to do a (walk/prewalk jmx/objects->data (jmx/operations 
"java.lang:type=Threading")).

However, in the Destract protocol there's an implementation of the 
objects->data function for the type clojure.lang.Associative that would 
mean maps would be processed incorrectly. I could add an implementation for 
clojure.lang.IPersistentMap in my namespace, but since 
clojure.lang.Associative is also an interface for maps this would not work, 
and I ended up having to fork clojure.java.jmx because of it. If there 
would be  a way to retract a protocol for a type within another namespace I 
wouldn't have had to. Is there such a way, or would it even be feasible to 
implement something like it?

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
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 email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: clojure.math.combinatorics/combinations throws exception on n=1

2016-03-24 Thread Erik Assum
Interesting that set doesn't implement distinct. It should be a pretty straight 
forward implementation. 

Erik. 
-- 
i farta

> Den 24. mar. 2016 kl. 00.53 skrev Mark Engelberg :
> 
> The input should be a sequence not a set, so call seq on the input before 
> passing it to this function.
> 
> Sorry if that was unclear from the docs.  (For some inputs, it is more 
> forgiving, but when you call combinations with n=1, it calls distinct on the 
> set, and clojure.core's implementation of distinct doesn't work on sets).
> 
>> On Wed, Mar 23, 2016 at 3:45 PM, Matthias Grabmair 
>>  wrote:
>> I am just using the math combinatorics library and spent some time debugging 
>> until I found out that combinations does not accept n=1. Is this intentional?
>> 
>>  
>> => (clojure.math.combinatorics/combinations #{1 2 3 4} 1)
>>  
>> UnsupportedOperationException nth not supported on this type: 
>> PersistentHashSet  clojure.lang.RT.nthFrom (RT.java:933)
>> 
>> expected: ((1)(2)(3)(4))
>> -- 
>> 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 unsubscribe from this group, send email to
>> clojure+unsubscr...@googlegroups.com
>> 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 
>> email to clojure+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
> 
> -- 
> 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 unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> 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 
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
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 email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.