Re: Literal map keys are checked for duplication before evaluation?

2017-01-04 Thread Carlo Zancanaro
On Thu, Jan 05 2017, Tianxiang Xiong wrote > We can have: > > user=> {(+ 1 2) 1 (+ 2 1) 2} > IllegalArgumentException Duplicate key: 3 > clojure.lang.PersistentArrayMap.createWithCheck > (PersistentArrayMap.java:71) > > > So clearly a check is also made *after* evaluating the key forms. I'm just

Re: Literal map keys are checked for duplication before evaluation?

2017-01-04 Thread Tianxiang Xiong
We can have: user=> {(+ 1 2) 1 (+ 2 1) 2} IllegalArgumentException Duplicate key: 3 clojure.lang.PersistentArrayMap.createWithCheck (PersistentArrayMap.java:71) So clearly a check is also made *after* evaluating the key forms. I'm just not sure why we need to check *before* evaluating the ke

Re: Literal map keys are checked for duplication before evaluation?

2017-01-04 Thread Mark Engelberg
Another workaround: (array-map (java.util.UUID/randomUUID) 1 (java.util.UUID/randomUUID) 2) On Wed, Jan 4, 2017 at 9:16 PM, Timothy Baldridge wrote: > The check is made at read-time, by the time to form gets to the compiler > it's already a hash-map and one of your forms will have been dropped.

Re: Literal map keys are checked for duplication before evaluation?

2017-01-04 Thread Timothy Baldridge
The check is made at read-time, by the time to form gets to the compiler it's already a hash-map and one of your forms will have been dropped. So the decision was made to make the reader check. One way you could solve your problem here is with tagged literals, as the literal would be created, and t

Literal map keys are checked for duplication before evaluation?

2017-01-04 Thread Tianxiang Xiong
Using a Clojure 1.8.0 REPL, I get the following: user=> {(+ 1 2) 1 (+ 1 2) 2} IllegalArgumentException Duplicate key: (+ 1 2) clojure.lang. PersistentArrayMap.createWithCheck (PersistentArrayMap.java:71) It seems that the a check for key equality is made *before* the key is evaluated, when they

Re: [ANN] Nightcoders.net, a cloud IDE for ClojureScript

2017-01-04 Thread Zach Oakes
OK it is back up now. Please let me know if you notice any problems -- in addition to fixing the Safari issue, I migrated to a server with more memory. On Wednesday, January 4, 2017 at 8:52:17 PM UTC-6, Zach Oakes wrote: > > Thanks for the feedback! I fixed the Safari issue and I'm about to take

Re: [ANN] Nightcoders.net, a cloud IDE for ClojureScript

2017-01-04 Thread Zach Oakes
Thanks for the feedback! I fixed the Safari issue and I'm about to take the server down to do another deploy. Hang tight and sorry again to those who are currently on it. On Wednesday, January 4, 2017 at 10:20:20 AM UTC-6, Zach Oakes wrote: > > Cloud IDEs are becoming more common. To quote the r

Re: [ANN] Nightcoders.net, a cloud IDE for ClojureScript

2017-01-04 Thread Paul Gowder
That's really cool! The autosave is sweet. So is the fact that I can get it to work on ios---I was just thinking about buying an ipad pro and figuring out good ways to code on it... this could be a really cool solution for starting something on a real computer, leaving it in the cloud, workin

Re: [ANN] Nightcoders.net, a cloud IDE for ClojureScript

2017-01-04 Thread Luc
Works like a charm from my ipad pro 😁 Luc P. -- 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 uns

Re: [ANN] New Canvas feature for Proto REPL Charts

2017-01-04 Thread Jason Gilman
Yes, I definitely encourage third-party plugins. Proto REPL is an extension of the Atom editor. Atom itself can be extended and has great documentation: https://atom.io/docs Proto REPL has hooks for extensions which are documented here: https://github.com/jasongilman/proto-repl/blob/master/extendi

Re: [ANN] Nightcoders.net, a cloud IDE for ClojureScript

2017-01-04 Thread Erik Assum
It seems like I need to double-click on the buttons (like “Web App” and “Game”) to make them do something. MacOS 10.12.3/Safari 10.0.3 Seems to be a safari issue, since it behaves as it should in Chrome. Erik. > On 4 Jan 2017, at 17:20, Zach Oakes wrote: > > Cloud IDEs are becoming more comm

Re: [ANN] Nightcoders.net, a cloud IDE for ClojureScript

2017-01-04 Thread Zach Oakes
OK I'll look into dealing with that more gracefully. BTW for those who were just on, I just restarted the server, sorry bout that. I needed to improve the confirmation dialog for deleting projects/accounts. Eventually i'll figure out how to deploy like the pros do... On Wednesday, January 4, 2

Re: [ANN] Nightcoders.net, a cloud IDE for ClojureScript

2017-01-04 Thread Alex Miller
Ah, it was Ghostery. On Wednesday, January 4, 2017 at 1:06:13 PM UTC-6, Zach Oakes wrote: > > Hmm! Anyone else get that? Can't reproduce even after clearing cache and > whatnot. > > On Wednesday, January 4, 2017 at 12:59:49 PM UTC-6, Alex Miller wrote: >> >> Didn't load for me... >> >> Uncaught

Re: [ANN] Nightcoders.net, a cloud IDE for ClojureScript

2017-01-04 Thread Zach Oakes
Hmm! Anyone else get that? Can't reproduce even after clearing cache and whatnot. On Wednesday, January 4, 2017 at 12:59:49 PM UTC-6, Alex Miller wrote: > > Didn't load for me... > > Uncaught TypeError: gapi.load is not a function > at nightcoders.js:513 > at nightcoders.js:513 > > Did I

Re: 'encoding-of' for spec

2017-01-04 Thread Alex Miller
On Wednesday, January 4, 2017 at 12:24:38 PM UTC-6, Russell Mull wrote: > > I've been hacking on a (currently partial) implementation of a spec > combinator I'm currently calling 'encoding-of'. It's pretty common to have > some kind of encoded version of a data structure kicking around, in json

Re: [ANN] Nightcoders.net, a cloud IDE for ClojureScript

2017-01-04 Thread Alex Miller
Didn't load for me... Uncaught TypeError: gapi.load is not a function at nightcoders.js:513 at nightcoders.js:513 Did I broke it? On Wednesday, January 4, 2017 at 10:20:20 AM UTC-6, Zach Oakes wrote: > > Cloud IDEs are becoming more common. To quote the rifleman's creed, there > are ma

'encoding-of' for spec

2017-01-04 Thread Russell Mull
I've been hacking on a (currently partial) implementation of a spec combinator I'm currently calling 'encoding-of'. It's pretty common to have some kind of encoded version of a data structure kicking around, in json, xml, or whatever, and it's handy to be able to describe it with spec. That's w

[ANN] Nightcoders.net, a cloud IDE for ClojureScript

2017-01-04 Thread Zach Oakes
Cloud IDEs are becoming more common. To quote the rifleman's creed, there are many others like it, but this one is mine: http://nightcoders.net/ It's basically a hosted version of Nightlight, running the compiler on my server so you can build CLJS projects using nothing but a web browser. I'm

Re: [core.logic] - why doesnt ITake/take* implementation always return a seqable?

2017-01-04 Thread Paulo César Cuneo
Just answering myself found i should bind with choice as it is done in reifyg (defn export [out vs gs] (fn [a] (let [a' (bind a gs) as (take* (bind a' (fn [s] *(choice (walk* s vs)* * empty-f)*)))] (bind a

Re: [ANN] New Canvas feature for Proto REPL Charts

2017-01-04 Thread Aa Dandy
So, proto-repl has plugins but, do you enourage third-party plugins, like Light Table did/does? For example, can I use linters and hinters, LT Rolex, etc in proto-repl? More generally, are the user, default and workspace behaviours exposed for amendment? Regards, -- You received this message b