component dependency cleanup problem

2017-01-18 Thread Jochen
(alter-var-root #'my-system component/stop-system) (my-compute (:mycomputecomp my-system) 16) my-compute should (as data map is nil'ed on stop) crash but doesn't. Calling (alter-var-root #'my-system component/stop-system) again fixes it and my-compute crashes as expected.

Re: component dependency cleanup problem

2017-01-18 Thread Jochen
Hi Jose… thank you for the hint, indeed this fixes it. Ciao …Jochen P. S. However, just for completeness, I still am a bit uncertain this is perfect behavior as (dissoc this :mydatacomp) fiddles with the dependencies which I understood should be managed by component. So, when I call

Re: component dependency cleanup problem

2017-01-19 Thread Jochen
verse function. Ciao …Jochen -- 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 unsubs

clojure.data.xml with newline / return in attribute values

2017-11-09 Thread Jochen
lace "&#" "&#") (xml/parse-str))) ;;=> #clojure.data.xml.Element{:tag :foo, :attrs {:bar "Baz\r\nquux"}, :content ()} Looking into the emit code, it seems like this is a Java XMLStreamWriter issue?! Any idea how to fix this in a clean way?

Re: clojure.data.xml with newline / return in attribute values

2017-11-09 Thread Jochen
ot;Baz\r\nquux"})) (xml/parse-str))) ;; => #xml/element{:tag :foo, :attrs {:bar "Baz quux"}} Ciao …Jochen Am Donnerstag, 9. November 2017 11:56:18 UTC+1 schrieb Joost: > > Hi Jochen > > Since newlines and crs are allowed in attribute values, you don't ne

Re: clojure.data.xml with newline / return in attribute values

2017-11-09 Thread Jochen
d example was to replace the &# in the output string with &#, which works, but of course does not scale to large xml files and might have side effects. I hope there must be an official way to configure the parser or something. I cannot do something about the attribute content as it comes from

Re: clojure.data.xml with newline / return in attribute values

2017-11-09 Thread Jochen
e link, this indeed looks official :-). Ciao …Jochen Am Donnerstag, 9. November 2017 12:32:06 UTC+1 schrieb Peter Hull: > > On Thursday, 9 November 2017 11:21:36 UTC, Jochen wrote: >> >> hmmm, that is unfortunately not the reality. In fact any newlines/returns >> in att

Complex swap!

2016-02-01 Thread Jochen
e this: (swap! my-atom (comp second (partial split-with #(<= % 2 => (3 4) @my-atom => (3 4) Now, is there some even easier way to achieve this or is this the best approach? Ciao …Jochen -- You received this message because you are subscribed to the Google Groups "Clojure&qu

Re: Complex swap!

2016-02-02 Thread Jochen
Hi Steve… thanks for all the pointers. Seems that someone is already on it... :-) Ciao …Jochen -- 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 m

Re: expectations 2.0 has been released

2014-03-13 Thread Jochen
on (sample_test.clj:4) >> Ran 1 tests containing 1 assertions in 55 msecs >> 0 failures, 1 errors. , but (expect AssertionError (assert false)) still works. Ciao ...Jochen Am Mittwoch, 12. März 2014 02:28:37 UTC+1 schrieb Jay Fields: > > expectations is a minimilist

Re: expectations 2.0 has been released

2014-03-13 Thread Jochen
but should signal 1 error (expect AssertionError (from-each [a ["1" 2]] (assert (string? a ;; still all pass but should signal 1 error (expect AssertionError (from-each [a ["1" "2"]] (assert (string? a)))) ;; shows both errors Ciao ...Jochen Am Mittwoch, 12. Mär

Re: expectations 2.0 has been released

2014-03-17 Thread Jochen
Hi Jay yep, with 2.0.7, everything works just fine now. BTW: I still consider this a very quick response time wich is highly appreciated. Ported all my (thousands of) tests over with no more issues. Ciao ...Jochen -- You received this message because you are subscribed to the Google

Double/Float NaN and Infinity not properly transferred through prn/read

2011-11-03 Thread Jochen
of the above)? At least in my REPL-Tests this seems works fine, e.g. (read-string "#=(java.lang.Double/valueOf \"Infinity\")") => Infinity (class (read-string "#=(java.lang.Double/valueOf \"Infinity\")")) => java.lang.Double ...Jochen -- You receive

bit manipulation and java arrays

2010-11-05 Thread Jochen
eas what I can do here? Ciao ...Jochen -- 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.

Re: bit manipulation and java arrays

2010-11-05 Thread Jochen
. unchecked-int) for this case?!? Ciao ...Jochen > It sounds as if you use 1.3-alpha-something. The problem is that aset- > int is a function. So your int gets boxed again to a Long. Just use > aset. It's also a function but is usually inlined, so you pass > primitive directly. >

Re: bit manipulation and java arrays

2010-11-05 Thread Jochen
Hi... > user=> (aset (make-array Integer/TYPE 1) 0 (int (- 0x8000))) > -2147483648 >user=> (aset (make-array Integer/TYPE 1) 0 (.intValue 0x8000)) >-2147483648 cool, that (both) works! I often forget that in clojure I can drop back to Java any time. Thanks a lot

Re: [ANN] Clojure 1.6

2014-03-25 Thread Jochen Schmitt
our update policy I would not provide an update to the stable branches of Fedora Linux. Best Regards: Jochen Schmitt -- 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 fro

Re: iOS and Windows RT support?

2013-01-22 Thread Jochen Schmitt
not Java or .NET environment. Best Regards: Jochen Schmitt -- 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

Re: Clojure 1.5.0 RC 1

2012-12-23 Thread Jochen Schmitt
e to Fedora Rawhide. Best Regards: Jochen Schmitt -- 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 fi

Re: Clojure 1.5.0 RC 1

2012-12-23 Thread Jochen Schmitt
r message you> give below, because ant > by itself does not pull in the necessary dependencies. This is not a acceptable solution because this will downloading files from the internet. On the build server you will get error messages which was cause my the attemp to make a internet connect

Re: Clojure 1.5.0 RC 1

2012-12-23 Thread Jochen Schmitt
nto the official Clojure soruce pacakge. In the meanwhile, I have found a way to suppres the test step in the ant script. Best Regards: Jochen Schmitt -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clo

Re: issues to build clojure-1.3.0-RC0 with JDK-1.7

2011-09-23 Thread Jochen Schmitt
Am 23.09.11 16:41, schrieb Stuart Halloway: Hi Jochen, thanks for this report. It looks like the annotations tests are failing due to changes from JDK 1.6 to 1.7. They were brittle tests to begin with and should probably be removed or replaced. This also revealed to me that our JDK test