On 21/01/13 01:24, AtKaaZ wrote:
yes, your code works if you don't use the "^:const", but why doesn't
it work with ^:const when you just use the return of mapv (something
with reify?)?
Well, I just came home and tried a couple of things out...It appears
that my code *doesn't* work if I don't use the ^:const tag regardless of
whther I've got boxed/unboxed values. It appears to be working (at least
it compiles) but as soon as I do something related to reducers i get
this from the JVM:
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f8f3d079b1b, pid=5643, tid=140252974098176
#
# JRE version: 7.0_06-b24
# Java VM: Java HotSpot(TM) 64-Bit Server VM (23.2-b09 mixed mode
linux-amd64 compressed oops)
# Problematic frame:
# v ~BufferBlob::vtable chunks
#
# Failed to write core dump. Core dumps have been disabled. To enable
core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /home/sorted/clooJWorkspace/Clondie24/hs_err_pid5643.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.sun.com/bugreport/crash.jsp
This seems utterly alien and weird to me!!! I've never ever had that
before! I don't know what it means and of course I don't even know where
to look...My only option is to keep ^:const...
Jim
ps: now the project has an entry point for chess....just 'git clone' and
then 'lein2 run'....start a new game and ask for a hint after a couple
of moves (you move by clicking twice - one to select a piece and one to
its new position)
--
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