Re: CCW bug [SEVERE]

2014-10-28 Thread Fluid Dynamics
On Tuesday, October 28, 2014 8:50:11 PM UTC-4, Alan Moore wrote: > > >> CCW's local history seems more than adequate for my needs in that area, >> combined with occasional HDD backups. >> > > This is a great idea - I was going to suggest it myself. I sometimes make > backup copies of small proj

Re: extending custom data types to clojure core abstractions

2014-10-28 Thread Brian Craft
Looks like it's based on the vector-of feature. I've seen this described elsewhere as a "compact" data structure, but it doesn't seem very compact. Maybe I'm using it wrong? (apply vector-of :byte (into [] (.getBytes "foo"))) [102 111 111] Looks like this works. Applying to the same test file:

Re: [ANN] Curmudjeon: React rendering on the JVM

2014-10-28 Thread Brian Kirkbride
I'd also like to thank August Lilleaas[1] for writing the blog post that encouraged this approach! [1] http://augustl.com/blog/2014/jdk8_react_rendering_on_server/ -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to

Re: tools.analyzer.jvm clojure.lang.Var$Unbound cannot be cast to clojure.lang.DynamicClassLoader

2014-10-28 Thread Nick Zbinden
Thank you. This is great. I was using not using 0.6.2, I was using 0.6.0. Am Montag, 27. Oktober 2014 16:00:34 UTC+1 schrieb Nick Zbinden: > > Hallo, > > Im trying to use tools.analyzer to analyse some clojure code and compile > it. I have used '(ana/analyze+eval form)' and it has worked nice

Demoralising experience trying to install on Win 7

2014-10-28 Thread Hi-tech Robert
Hi, I had ran into similar problems as yours before. I solved them by removing Leiningen from my computer completely and using the Nightcode IDE (https://nightcode.info) instead as it has an integrated Leiningen. The best thing about Nightcode is that it has integrated templates which can make

Re: CCW bug [SEVERE]

2014-10-28 Thread Alan Moore
> > > CCW's local history seems more than adequate for my needs in that area, > combined with occasional HDD backups. > This is a great idea - I was going to suggest it myself. I sometimes make backup copies of small project directories such as yours just using cp -r myproject myproject.bak -

Re: Demoralising experience trying to install on Win 7

2014-10-28 Thread Mike
You guys are so funny...for a real challenge try to get any clojure-clr environment up and useable on Win anything. Nightcode is close, but there are still some interesting things you have to do. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To p

Re: CCW bug [SEVERE]

2014-10-28 Thread Sam Raker
I version everything. I don't version something because it's huge, or important, or shared, or even worth sharing. I version because Git is an important and widely-used tool, and because it's better than regular saving. You've already downloaded and learned at least one programming language, yo

Re: Testing and infrastructure management for large Clojure app - how are you doing it?

2014-10-28 Thread David Mitchell
Hi Colin Thanks for your reply. My post is almost exclusively technology oriented because I think the technology is what's killing us! We've got what you'd probably call "BDD lite" working, in that we've got a mutant form of agile process running whereby we work in 2 week sprints, but there's

Re: extending custom data types to clojure core abstractions

2014-10-28 Thread Andy Fingerhut
I am not certain whether Paul's intention was a lower memory footprint than Java's strings, but I can't think of a strong reason to use his library other than that. Would you be willing to file an issue on Github with your findings to see if he thinks there is a problem there? Also, his code itse

Re: extending custom data types to clojure core abstractions

2014-10-28 Thread Brian Craft
Hm, I just tested it with a 160M file, split into 2 million strings. The memory footprint was substantially worse than String. With String I get about a 3.2X increase in memory footprint for this file, but with pjstadig.utf8 I get about 5X. Also, it's slower by orders of magnitude. On Tuesday,

Re: CCW bug [SEVERE]

2014-10-28 Thread Fluid Dynamics
On Tuesday, October 28, 2014 5:22:03 PM UTC-4, Dylan Butman wrote: > > This still sounds like a case of "I haven't learned how to use git yet, > and although that means I can't possibly understand how it might improve my > workflow, I don't want to take the time to learn a fundamental piece of >

Re: CCW bug [SEVERE]

2014-10-28 Thread Fluid Dynamics
On Tuesday, October 28, 2014 5:19:00 PM UTC-4, raould wrote: > > > I remain wholly unconvinced that it's worth the hassle for a project > this > > small. > > personally i find your points persuasive; i hate going through that > stuff when i just wanted to finish a feature or whatever. still, >

Re: CCW bug [SEVERE]

2014-10-28 Thread Andy Fingerhut
I think root of the advice you are getting is "keep backups of important files". If you don't keep backups of important files, you are asking for trouble, even if every piece of software on your computer has no bugs. Andy On Tue, Oct 28, 2014 at 2:14 PM, Fluid Dynamics wrote: > On Tuesday, Oct

Re: CCW bug [SEVERE]

2014-10-28 Thread Dan Cross
Can we please stop feeding the troll? Thanks. -- 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 u

Re: CCW bug [SEVERE]

2014-10-28 Thread Dylan Butman
This still sounds like a case of "I haven't learned how to use git yet, and although that means I can't possibly understand how it might improve my workflow, I don't want to take the time to learn a fundamental piece of software that's used by the vast majority of the programming community." O

Re: CCW bug [SEVERE]

2014-10-28 Thread Raoul Duke
> I remain wholly unconvinced that it's worth the hassle for a project this > small. personally i find your points persuasive; i hate going through that stuff when i just wanted to finish a feature or whatever. still, losing your code would suck a lot, and not having history can be a frustrating t

Re: CCW bug [SEVERE]

2014-10-28 Thread Fluid Dynamics
On Tuesday, October 28, 2014 5:01:47 PM UTC-4, Charlie Griefer wrote: > > > On Oct 28, 2014, at 1:28 PM, Fluid Dynamics > wrote: > > Meanwhile, I think some people still have not grasped the scale of what > I'm doing, namely how small it is. Small, experimental, limited to one > person, and so f

Re: CCW bug [SEVERE]

2014-10-28 Thread Charlie Griefer
> On Oct 28, 2014, at 1:28 PM, Fluid Dynamics wrote: > > Meanwhile, I think some people still have not grasped the scale of what I'm > doing, namely how small it is. Small, experimental, limited to one person, > and so forth. Version control, I repeat, would be MASSIVE overkill under the > ci

[ANN] Curmudjeon: React rendering on the JVM

2014-10-28 Thread Brian Kirkbride
Hi all, I just released a library we're working on at OPP to increase sharing of code between server- and client-side Clojure(Script) applications that use Facebook's React. The goal is to allow rendering of HTML via React without the need to deploy on node/ClojureScript server-side. We do this

Re: CCW bug [SEVERE]

2014-10-28 Thread Luc Prefontaine
Ka-plonk :) > Do the names Ken Wesson or Cedric Greevey mean anything to you? Just > checking. > > On Tue, Oct 28, 2014 at 1:28 PM, Fluid Dynamics wrote: > > > On Tuesday, October 28, 2014 12:19:29 PM UTC-4, Marcus Blankenship wrote: > >> > >> Agreed. I've been amazed at how kind this group h

Re: [ANN] Clojure 1.7.0-alpha3 now available

2014-10-28 Thread Alex Miller
We will definitely be rolling this particular aspect of CLJ-1330 back in the next release. Alex On Tuesday, October 28, 2014 10:44:51 AM UTC-5, Sam Ritchie wrote: > > Yeah, I'm getting this too with a file named "wparankings.clj". I haven't > investigated which function is causing this, but thi

Re: CCW bug [SEVERE]

2014-10-28 Thread Colin Yates
I think you are missing the point of the "backlash" (my word). Nobody is arguing that the functionality (e.g. crash) you are seeing isn't troublesome. A few people tried to mitigate that by suggesting workarounds *whilst still accepting the functionality isn't sufficient*. I haven't read a sing

Re: CCW bug [SEVERE]

2014-10-28 Thread Dave Ray
Do the names Ken Wesson or Cedric Greevey mean anything to you? Just checking. On Tue, Oct 28, 2014 at 1:28 PM, Fluid Dynamics wrote: > On Tuesday, October 28, 2014 12:19:29 PM UTC-4, Marcus Blankenship wrote: >> >> Agreed. I've been amazed at how kind this group has been, despite your >> attit

Re: CCW bug [SEVERE]

2014-10-28 Thread Marcus Blankenship
What I grasp is that you had a problem with free, open source software which has the version number of 0.29.0, and you were upset because that it crashed in a way which could have damaged your project. Then others tried to offer solutions, which you felt were ridiculous (based on your analogies

Re: CCW bug [SEVERE]

2014-10-28 Thread J Irving
*plonk* On Tue, Oct 28, 2014 at 4:28 PM, Fluid Dynamics wrote: > On Tuesday, October 28, 2014 12:19:29 PM UTC-4, Marcus Blankenship wrote: >> >> Agreed. I've been amazed at how kind this group has been, despite your >> attitude of disrespect toward them. >> >> On Tue, Oct 28, 2014 at 9:09 AM, D

Re: CCW bug [SEVERE]

2014-10-28 Thread Fluid Dynamics
On Tuesday, October 28, 2014 12:19:29 PM UTC-4, Marcus Blankenship wrote: > > Agreed. I've been amazed at how kind this group has been, despite your > attitude of disrespect toward them. > > On Tue, Oct 28, 2014 at 9:09 AM, Dylan Butman > wrote: > >> From your attitude and lack of respect for

Re: Deterministic Randomness in Functional Clojure

2014-10-28 Thread James Reeves
Hi Isaac It sounds to me that your source of pseudo-randomness is an inherent part of your world state, as without it you're unable to calculate the next state. You mention the problem of having to thread your PRNG through your functions, but I think the problem is broader than that. For instance

Re: extending custom data types to clojure core abstractions

2014-10-28 Thread Andy Fingerhut
Sorry, no feedback on your attempt, but a note that you may want to check out Paul Stadig's utf8 library to see if it serves your purpose. I believe it should store text that fits within the ASCII subset into 1 byte of memory per character, only using 2, 3, or 4 bytes for other Unicode characters,

extending custom data types to clojure core abstractions

2014-10-28 Thread Brian Craft
Following up on the thread about the massive overhead of String, I tried writing a string collection type that stores strings as bytes, converting to String on-demand. It seems to work. Memory footprint and performance are good for the application. The hard part was trying to track down the cor

Deterministic Randomness in Functional Clojure

2014-10-28 Thread Isaac Karth
I've been working on some projects (roguelikes, story-generators) that often have a reason to have a random outcome for things like procedurally generating a map. Ideally, they would be deterministically psuduorandom, so that I can generate the same results from the same seed. The part I'm havi

Re: testing platform , midje or specjl ?

2014-10-28 Thread Colin Yates
I don't off the top of my head but http://clojuredocs.org/clojure.test and https://clojure.github.io/clojure/clojure.test-api.html should be enough. I seem to remember one of the clojure books included a chapter on them. I am sure someone else on this group will offer a better resource. On 28 Oc

Re: testing platform , midje or specjl ?

2014-10-28 Thread Roelof Wobben
Hello Colin, Do you know any good tutorials about learning clojure.test. ? Roelof Op dinsdag 28 oktober 2014 10:16:19 UTC+1 schreef Colin Yates: > Hi Roelof, > > I have used midje for a few years now and it is excellent. It was the > first one I picked up. > > However, I would recommend cloj

Re: Clojure In HTML

2014-10-28 Thread Francis Avila
There is nothing *exactly* like this for clojurescript. The problem is clojurescript compiler is implemented in Clojure and thus requires a JVM to compile the code. Brython's compiler is implemented in js so it can run in the browser. There was a cljs-in-cljs (self-hosted clojurescript) compile

Re: [ANN] Clojure 1.7.0-alpha3 now available

2014-10-28 Thread Phillip Lord
Reid McKenzie writes: > For the special case of a "reduction" over varargs as in #'clojure.core/+ > or #'clojure.core// where you're just generating Duff's I think the macro > should be pretty straightforward but it won't be general at all. I tend to agree with the lack of generality -- from a l

Re: CCW bug [SEVERE]

2014-10-28 Thread Marcus Blankenship
Agreed. I've been amazed at how kind this group has been, despite your attitude of disrespect toward them. On Tue, Oct 28, 2014 at 9:09 AM, Dylan Butman wrote: > From your attitude and lack of respect for the very knowledgeable, > experienced, and respectful people here trying to help improve a

Clojure In HTML

2014-10-28 Thread Asim Jalis
Is it possible to embed Clojure in HTML using the approach used in Brython for Python? https://news.ycombinator.com/item?id=4923530 Here is the correct link to the site: http://www.brython.info/ The idea is to embed Python code in the HTML and then have an interpreter that translates it to JavaS

Re: CCW bug [SEVERE]

2014-10-28 Thread Dylan Butman
>From your attitude and lack of respect for the very knowledgeable, experienced, and respectful people here trying to help improve and understand the short comings in your current workflow, I'd say you might be walking to work in the near future. Parking's free that way. On Monday, October 27,

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-28 Thread Phillip Lord
Ah, if only some one had implemented one. I guess there is no reason NOT to implement this? It's still only a single class, and single object per function? The class is going to be longer, because method bodies like... public Object invoke(Object arg1, Object arg2) { return throwArity(2

Re: [ANN] Clojure 1.7.0-alpha3 now available

2014-10-28 Thread Sam Ritchie
Yeah, I'm getting this too with a file named "wparankings.clj". I haven't investigated which function is causing this, but this is definitely troubling. Stefan Kamphausen October 28, 2014 at 8:34 AM Hi, have there been any changes how fns with a name and recursion a

Re: [ANN] Clojure 1.7.0-alpha3 now available

2014-10-28 Thread Fluid Dynamics
On Sunday, October 26, 2014 11:43:23 PM UTC-4, Alex Miller wrote: > > ### 1.4 update - like update-in for first level > > `update` is a new function that is like update-in specifically for > first-level keys: > > (update m k f args...) > > Example use: > > user> (update {:a 1} :a inc) > {:

Re: [ANN] Clojure 1.7.0-alpha3 now available

2014-10-28 Thread Stefan Kamphausen
Hi, have there been any changes how fns with a name and recursion are compiled? One of my projects has a function which does not compile with 1.7.0-alpha3 anymore, but did fine with 1.6.0. I tried to create a minimal example at https://github.com/ska2342/nested-fn-breaks-clojure-17 (I know t

Re: [ANN] Clojure 1.7.0-alpha3 now available

2014-10-28 Thread Andy Fingerhut
http://dev.clojure.org/jira/browse/CLJ-731 ? On Tue, Oct 28, 2014 at 2:39 AM, Phillip Lord wrote: > Reid McKenzie writes: > > This suggests that |apply| is immensely expensive in general, > > and that such arity unrolling even for trivial functions would be a good > > thing. Albeit hard to buil

Re: unexpected behavior catching exceptions within a go block

2014-10-28 Thread Chris Perkins
On Monday, October 27, 2014 9:25:30 PM UTC-6, Wei Hsu wrote: > > This gist illustrates a problem I'm having where the channel is closed > after running into an exception, even if I put a try/catch block around the > block that generates the exception: > > https://gist.github.com/yayitswei/d80d51e

Re: Deployment choices WAR or lein or java -jar for web apps?

2014-10-28 Thread David Powell
Oh I also embed the jre in the installer, so everything is completely standalone (see < http://www.oracle.com/technetwork/java/javase/jdk-8-readme-2095712.html#redistribution >) On Tue, Oct 28, 2014 at 10:52 AM, Colin Yates wrote: > Thanks for the pointer to innosetup. > > On 28 October 2014 09

Re: Deployment choices WAR or lein or java -jar for web apps?

2014-10-28 Thread Colin Yates
Thanks for the pointer to innosetup. On 28 October 2014 09:39, David Powell wrote: > I use uberjar + procrun + innosetup. It works great. Starts and stops > fairly quickly. And you don't need to worry that something somewhere is > misconfigured in the Tomcat. > For dev, I just use "lein run" +

Re: Deployment choices WAR or lein or java -jar for web apps?

2014-10-28 Thread Colin Yates
aah, nirvana. On Tuesday, 28 October 2014 09:47:42 UTC, Mikera wrote: > > Ah that one is easy - while I develop and do some testing on Windows I > always deploy on Linux :-) > > I've not used it, but procrun looks like a reasonable choice if you are > constrained to deploying on Windows. > > On

Re: Deployment choices WAR or lein or java -jar for web apps?

2014-10-28 Thread Mikera
Ah that one is easy - while I develop and do some testing on Windows I always deploy on Linux :-) I've not used it, but procrun looks like a reasonable choice if you are constrained to deploying on Windows. On Tuesday, 28 October 2014 17:40:49 UTC+8, Colin Yates wrote: > > Hi Mikera, > > How do

Re: Deployment choices WAR or lein or java -jar for web apps?

2014-10-28 Thread Colin Yates
Hi Mikera, How do you cope with reboots - procrun I guess? On Tuesday, 28 October 2014 09:30:42 UTC, Mikera wrote: > > To keep things simple I have found it easy to use "lein uberjar" and "java > -jar myapp.jar". This removes the need for a separate container / app > server and it is probably t

Re: [ANN] Clojure 1.7.0-alpha3 now available

2014-10-28 Thread Phillip Lord
Reid McKenzie writes: > This suggests that |apply| is immensely expensive in general, > and that such arity unrolling even for trivial functions would be a good > thing. Albeit hard to build. Wonder whether it is macroable. Something like (def new-function (with-arities [20] [args]

Re: Deployment choices WAR or lein or java -jar for web apps?

2014-10-28 Thread David Powell
I use uberjar + procrun + innosetup. It works great. Starts and stops fairly quickly. And you don't need to worry that something somewhere is misconfigured in the Tomcat. For dev, I just use "lein run" + nrepl. On Tue, Oct 28, 2014 at 9:30 AM, Mikera wrote: > To keep things simple I have foun

Re: Deployment choices WAR or lein or java -jar for web apps?

2014-10-28 Thread Mikera
To keep things simple I have found it easy to use "lein uberjar" and "java -jar myapp.jar". This removes the need for a separate container / app server and it is probably the easiest choice when you are running an embedded server such as http-kit. Configuration is virtually zero, and this has t

Deployment choices WAR or lein or java -jar for web apps?

2014-10-28 Thread Colin Yates
Hi all, How do you delight the world with your beautiful works of art once you have finished lovingly crafting them from the joy that is Clojure? I have a legacy in J2EE so I use ring uberwar and deploy to a servlet container (Tomcat as it is the most seamless on Windows), but I notice more an

Re: testing platform , midje or specjl ?

2014-10-28 Thread Colin Yates
Hi Roelof, I have used midje for a few years now and it is excellent. It was the first one I picked up. However, I would recommend clojure.test *whilst learning* for a few reasons: - it is sufficient - it is opinionated and therefore keeps you on the straight and narrow - it is (probably) the be

Re: Testing and infrastructure management for large Clojure app - how are you doing it?

2014-10-28 Thread Colin Yates
Hi David, Your post is very technology orientated (which is fine!). Have you looked into BDD type specifications? I am talking specifically the process described in http://specificationbyexample.com/. If you haven't, I strongly recommend you do as the win in this situation is they separate the

Re: Clojure and concurrency

2014-10-28 Thread Gary Verhaegen
Transactions in Clojure are "optimistic": the runtime assumes that everything will work out, and if not, it retries. Basically, when a transaction starts, the runtime makes a copy of the current value of all refs involved in the transaction (these are assumed to be immutable values, so copies are

Re: testing platform , midje or specjl ?

2014-10-28 Thread Aleš Roubíček
Every library is good for different kinds of testing. If you like BDD style go with Speclj, if you want to do acceptance testing with table like data go with Midje. If you preffer test after go with expectations or clojure.test. Test.Check is good addition to test toolbelt for everyone. On Sund