Re: Interesting challenge

2011-01-01 Thread Mark Engelberg
On Thu, Dec 30, 2010 at 9:03 AM, David Nolen wrote: > From the Qi mailing list: > http://groups.google.com/group/qilang/browse_thread/thread/e4a2f534fad5032a > "I contend that this kind of problem cannot be solved (efficiently) in any > pure functional programming language. You may disagree" > :D

Re: Interesting challenge

2011-01-01 Thread Michael Wood
On 1 January 2011 13:53, Mark Engelberg wrote: > On Thu, Dec 30, 2010 at 9:03 AM, David Nolen wrote: >> From the Qi mailing list: >> http://groups.google.com/group/qilang/browse_thread/thread/e4a2f534fad5032a >> "I contend that this kind of problem cannot be solved (efficiently) in any >> pure fu

Re: Interesting challenge

2011-01-01 Thread Ken Wesson
On Sat, Jan 1, 2011 at 10:53 AM, Michael Wood wrote: > I'm not sure how best to test that they are unique wrt. isomorphism. (= (* 8 (count squares-seq)) (count (distinct (flatten (map generate-isomorphs squares-seq), of course. :) -- You received this message because you are subscribed

Re: ANN: Gloss, a byte-format DSL

2011-01-01 Thread pepijn (aka fliebel)
Hey, I am trying Gloss for reading NBT [1] files. First thing I did like is that it seems to make things real easy. First thing I did not like is the weak separation between types like :byte and extra data like :foo. I think I'm nearly done with the NBT reader [2], but I ran into a problem. What

Re: Interesting challenge

2011-01-01 Thread Matjaz Gregoric
According to my tests your squares both satisfy the conditions and are isomorphically unique. - Matjaz On Sat, Jan 1, 2011 at 12:53 PM, Mark Engelberg wrote: > On Thu, Dec 30, 2010 at 9:03 AM, David Nolen > wrote: > > From the Qi mailing list: > > > http://groups.google.com/group/qilang/browse_

Re: Interesting challenge

2011-01-01 Thread Mark Engelberg
Thanks everyone! I'll go post my findings to the Qilang google group. I'll try to moderate the smugness I'm feeling right now :) -- 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

Re: ANN: Gloss, a byte-format DSL

2011-01-01 Thread Zach Tellman
The header->body function in (header ...) must return a codec, so you need to call compile-frame on the vector you're generating. Since you don't want to call compile-frame every time you decode a frame, you can memoize the function. A version that does both can be found at https://gist.github.co

a loop gives boxing warning when it shouldn't

2011-01-01 Thread Albert Cardona
Hi all, I'd apreciate help on figuring out why a loop gets number boxing warnings, when it shouldn't: http://clojure.pastebin.com/9uLZqGhy I'm using clojure from: commit f30995c86056959abca53d0ca35dcb9cfa73e6e6 Author: Stuart Halloway Date: Fri Dec 17 15:17:20 2010 -0500 Thanks. Albert --

Re: Compiling dynamically created namespaces, without on-disk source code?

2011-01-01 Thread Robert McIntyre
the `(binding [*compile-files* true] ...)` trick does not seem to work for me. Still looking for something that does. What do you mean by "the bytecode is no longer accessible" ? Wouldn't it have to be in there somewhere in order to use the definition? thank you, --Robert McIntyre On Thu, Dec

can I force the JIT to be called immediately for certain pieces of code after it starts executing with out waiting for the JVM realize it is necessary....

2011-01-01 Thread Sunil S Nandihalli
Hello Everybody, can I force the JIT to be called immediately for certain pieces of code after it starts executing with out waiting for the JVM realize it is necessary? I would not mind jitting the whole code .. Actually I don't mind waiting a few extra seconds at the start since actual run-ti

Re: can I force the JIT to be called immediately for certain pieces of code after it starts executing with out waiting for the JVM realize it is necessary....

2011-01-01 Thread Brian Goslinga
On Jan 1, 8:29 pm, Sunil S Nandihalli wrote: > Hello Everybody, >  can I force the JIT to be called immediately for certain pieces of code > after it starts executing with out waiting for the JVM realize it is > necessary? I would not mind jitting the whole code .. Actually I don't > mind wait

Re: can I force the JIT to be called immediately for certain pieces of code after it starts executing with out waiting for the JVM realize it is necessary....

2011-01-01 Thread Daniel Gagnon
> > > Even if the JVM put the code through the compiler right away, the > resulting code wouldn't be very good because it will have not had time > to profile code to apply the more powerful optimizations. It would be > throwing all of that code away once it has had time to profile the > code, so an