Re: Pesky java interop bug with 0xFFFFFFF error in BuferredReader

2021-12-27 Thread Hank Lenzi
This is embarassing. ;-) 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 unsubscribe

Re: Pesky java interop bug with 0xFFFFFFF error in BuferredReader

2021-12-27 Thread Hank Lenzi
sb (StringBuilder.)] (if (not (= x -1)) (.toString sb) (recur (.append sb (char x)) (.read bfr)) #'user/pt%% user> (pt%% ribs) "" Which makes no sense to me... -- Hank -- You received this message because you are subscribed to the Google Groups

Re: Pesky java interop bug with 0xFFFFFFF error in BuferredReader

2021-12-27 Thread Hank Lenzi
(if (not (= x -1)) (.toString sb1) (recur (.read bfr) (.append sb (char x))) #'user/pt34 user> (pt34 ribs) "" I still get no beef (err, ribs). Doesn't print anything either. Weird. Just weird. -- Hank -- You received this message because you ar

Re: What is this notation? "-a"

2021-12-27 Thread Hank Lenzi
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 unsubscribe from this group, send email

Re: Pesky java interop bug with 0xFFFFFFF error in BuferredReader

2021-12-26 Thread Hank Lenzi
gt; (pt8 ribs) Execution error (IllegalArgumentException) at java.lang.Character/toChars (Character.java:8572). Not a valid Unicode code point: 0x The file used is sufficiently small so that we can walk the bytes using jshell: jshell> FileReader afr = new FileReader("/home/hank/sourc

Re: Pesky java interop bug with 0xFFFFFFF error in BuferredReader

2021-12-26 Thread Hank Lenzi
2021-12-25, 21:11:46 UTC-3, LaurentJ wrote: "Hi, Your loop/recur usage is wrong, your error may be because your loop has no halting condition." Hi Laurent -- I actually took inspiration from one of the sources you posted: (import '(javax.sound.sampled AudioSystem AudioFormat$Encoding)) (let

Re: Pesky java interop bug with 0xFFFFFFF error in BuferredReader

2021-12-26 Thread Hank Lenzi
Thanks, Harold. You see, that was an exercise in Java interop - I know about slurp, but I was trying to understand what was going on there. -- Hank -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email

Re: Pesky java interop bug with 0xFFFFFFF error in BuferredReader

2021-12-25 Thread Hank Lenzi
ter/toChars (.read bfr (recur val)) ; when finished... (.toString ct))) Harder then it seemed at first sight... -- Hank -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this grou

What is this notation? "-a"

2021-12-25 Thread Hank Lenzi
Hello -- Sometimes I see a notation that uses a prefix "-", as in: user> (def -a (atom [])) #'user/-a Is there a special meaning/convention regarding this use of a hyphen prefix? TIA -- Hank -- You received this message because you are subscribed to the Google Groups "Cloju

Pesky java interop bug with 0xFFFFFFF error in BuferredReader

2021-12-25 Thread Hank Lenzi
00220: 6167 6e69 6e67 6172 2065 6c6c 6572 2069 agningar eller i 0230: 2066 c3b6 7273 c3a4 6b72 696e 6773 6272 f..rs..kringsbr 0240: 616e 7363 6865 6e0a anschen. Any ideas? TIA -- Hank -- You received this message because you are subscribed to the Google Groups

Re: ANN: Pulsar 0.2.0 Released

2013-09-28 Thread Hank
UTC+10, Hank wrote: Hi Ron, Different concern from the above so another post. :) Do you think Pulsar can help make Oz-style dataflow concurrencyhttp://en.wikipedia.org/wiki/Oz_(programming_language)#Dataflow_variables_and_declarative_concurrencya reality on the JVM? As discussed

Re: ANN: Pulsar 0.2.0 Released

2013-09-27 Thread Hank
Pulsar need to instrument system classes/the runtime library to do its thing? Cheers -- hank On Saturday, July 20, 2013 1:49:55 AM UTC+10, pron wrote: Featuring: distributed actors, supervisors, fiber-blocking IO, and an implementation of core.async. Read the announcement herehttp

Re: ANN: Pulsar 0.2.0 Released

2013-09-27 Thread Hank
that a lack of lightweight threads on the JVM doesn't make this feasible just yet. Cheers -- hank On Saturday, July 20, 2013 1:49:55 AM UTC+10, pron wrote: Featuring: distributed actors, supervisors, fiber-blocking IO, and an implementation of core.async. Read the announcement herehttp

Re: [ANN] Javelin, spreadsheet-like FRP for ClojureScript

2013-04-22 Thread Hank
Hi Alan, Only saw your answer now, somehow Google groups didn't notify me. Thanks for clarifying. -- hank -- -- 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

Re: [ANN] Javelin, spreadsheet-like FRP for ClojureScript

2013-03-24 Thread Hank
enough to produce something that scales in complexity and performance while having plenty real-world scenarios to test their schemes against at their disposal. Cheers -- hank On Wednesday, February 20, 2013 6:33:56 PM UTC+11, Alan Dipert wrote: Hi all, We recently released a ClojureScript library

Re: exception in 'map' mutates result to nil -- bug?

2012-12-03 Thread Hank
I opened a bug report, let's see what the pros have to say on this: http://dev.clojure.org/jira/browse/CLJ-1119 -- 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

Re: exception in 'map' mutates result to nil -- bug?

2012-12-03 Thread Hank
be more generic. Christophe On Mon, Dec 3, 2012 at 10:37 AM, Hank ha...@123mail.org wrote: I opened a bug report, let's see what the pros have to say on this: http://dev.clojure.org/jira/browse/CLJ-1119 -- You received this message because you are subscribed

exception in 'map' mutates result to nil -- bug?

2012-12-02 Thread Hank
(NO_SOURCE_FILE:1) = lazy Exception user/fn--733 (NO_SOURCE_FILE:1) Same exception over and over again as it should be. I stared at the implementations of 'map' and lazy-seq/LazySeq for some hours but I really can't see it. Cheers -- hank -- You received this message because you

Re: exception in 'map' mutates result to nil -- bug?

2012-12-02 Thread Hank
://clojure.org/lazy), this is related to the undocumented :once keyword on function calls. Maybe that interferes with macros? Or maybe I'm barking up the wrong tree. -- hank On Monday, 3 December 2012 00:58:08 UTC+11, Hank wrote: I'm mapping a function that throws an exception over

Re: exception in 'map' mutates result to nil -- bug?

2012-12-02 Thread Hank
I am not aware of any clojure book that alerts you to that. Also, maybe the implementation of map function should catch your exception internally and produce a null, and return a sequence of nulls? -Julian On Sunday, December 2, 2012 5:58:08 AM UTC-8, Hank wrote: I'm mapping a function

explicit progression-of-time constructs? (wikipedia)

2012-11-18 Thread Hank
According to Wikipedia, Clojure provides explicit progression-of-time constructs: http://en.wikipedia.org/wiki/Clojure Anyone any clue which constructs are meant by that? The term doesn't even resolve on Google outside the Clojure context. -- You received this message because you are

Re: datomic has been announced

2012-03-05 Thread Hank
facts, don't change data in place idea by keeping revisions of the data structures. All in all very exciting to see this confluence of ideas. -- hank On Tuesday, 6 March 2012 05:46:12 UTC+11, kovasb wrote: Since not everyone reads twitter or hacker news, http://datomic.com/ has been updated

Re: producing Blub code and vv.

2011-10-03 Thread Hank
Thanks for writing, I think this here sums it up nicely: Maybe all of this is possible. After all an human can do it manually. I have a background in machine learning/artificial intelligence ... and yes I can see those things come in handy here. But I see it as more a research topic than

producing Blub code and vv.

2011-09-29 Thread Hank
much along those lines other than isolated problems being tackled -- the question here rather being: What's the furthest the the envelope can be pushed in terms of co- opting the Blub world? Hank -- You received this message because you are subscribed to the Google Groups Clojure group. To post

Re: producing Blub code and vv.

2011-09-29 Thread Hank
Mauve has more RAM? :) On Sep 29, 9:46 pm, David Nolen dnolen.li...@gmail.com wrote: ClojureScript? David -- 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

Re: Using Clojure to Generate Java Source?

2011-09-29 Thread Hank
There isn't an easy solution right now but I think it's worth the effort producing something there. You might want to join the discussion over here: http://groups.google.com/group/clojure/t/5da63583815b6102 -- You received this message because you are subscribed to the Google Groups Clojure

Re: producing Blub code and vv.

2011-09-29 Thread Hank
On Sep 30, 8:35 am, Nicolas bousque...@gmail.com wrote: Clojure has native interoperability with JVM CLR. Right, this is machine interop. What about people interop? How can a Clojure programmer interoperate with a Ruby programmer? Can I chuck some Clojure code into Google translate

Re: producing Blub code and vv.

2011-09-29 Thread Hank
On Sep 29, 9:11 am, Hank h...@123mail.org wrote: Mauve has more RAM? :) On Sep 29, 9:46 pm, David Nolen dnolen.li...@gmail.com wrote: ClojureScript? David -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email

Re: producing Blub code and vv.

2011-09-29 Thread Hank
Just replying to my own post here: Something like Linj (https://github.com/xach/linj / http://www.doiserbia.nb.rs/img/doi/1820-0214/2008/1820-02140802019L.pdf) and the corresponding Jnil go into the right direction. -- You received this message because you are subscribed to the Google Groups

Re: producing Blub code and vv.

2011-09-29 Thread Hank
Thanks, but from what I can see, they enable machine interop, not people interop. Instead of cross-platform, can you do cross-community? On Sep 30, 10:00 am, Raoul Duke rao...@gmail.com wrote: Hank, it ain't Clojure so this might be irrelevant to you, but some interesting cross-platform

Re: producing Blub code and vv.

2011-09-29 Thread Hank
I think the major obstacle is likely to be the difference in idioms. Any substantial idiomatic piece of Clojure is going to be almost impossible to automatically translate to _idiomatic_ code in another high-level language that uses different idioms. That could very well turn out to be the

Re: producing Blub code and vv.

2011-09-29 Thread Hank
Addendum: Just as an example, for this here ... Would it even be idiomatic Java to always have classes full of only static methods? ... the Java-ists have an idiom (design pattern) called singleton. They're not static methods but once-instance classes. -- You received this message because

Re: producing Blub code and vv.

2011-09-29 Thread Hank
On Sep 30, 2:58 pm, Sean Corfield seancorfi...@gmail.com wrote: On Thu, Sep 29, 2011 at 11:24 PM, Hank h...@123mail.org wrote: Would it even be idiomatic Java to always have classes full of only static methods? ... the Java-ists have an idiom (design pattern) called singleton. They're

Re: The API docs are gone!

2009-06-27 Thread hank williams
are scared of what might happen, you are free to use a language with more secure documentation pages. Seesh. Hank On Sat, Jun 27, 2009 at 7:55 PM, Four of Seventeenfsevent...@gmail.com wrote: On Jun 27, 6:32 pm, J. McConnell jdo...@gmail.com wrote: On Jun 27, 2009, at 12:28 PM, Four of Seventeen

Re: Oracle and Clojure

2009-04-20 Thread hank williams
On Mon, Apr 20, 2009 at 9:13 AM, Sean Devlin francoisdev...@gmail.com wrote: Okay, I'm willing to bet this crowd has already seen this: http://www.sun.com/third-party/global/oracle/index.jsp Any thoughts on how this affects Clojure? No effect. -- blog: whydoeseverythingsuck.com

Re: Clojure + Terracotta = Yeah, Baby!

2009-02-28 Thread hank williams
Writing a TIM is definitely the way to go, It's a place to hide the glue until both Terracotta and Clojure catches up with each other. uhhh what is a TIM? Thanks Hank -- blog: whydoeseverythingsuck.com --~--~-~--~~~---~--~~ You received

building a class or jar file from clojure

2009-02-09 Thread hank williams
How does one make a standard clojure based class file or jar file without embedding clojure source files. Hank -- blog: whydoeseverythingsuck.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Clojure group

Re: Distributed Clojure

2009-01-30 Thread hank williams
On Thu, Jan 29, 2009 at 7:28 PM, Greg Harman ghar...@gmail.com wrote: Hank: I have looked at TC in the past, and took another look today at your suggestion. Terracotta certainly seems to have promise feature-wise, but I have to admit it's a heavier solution than I had been thinking

Re: Distributed Clojure

2009-01-29 Thread hank williams
As has been discussed on this list before, it seems to me the basis for this should be terracotta, which handles much (most?) of the heavy lifiting required for this kind of task. Have you looked at it? On Thu, Jan 29, 2009 at 9:15 AM, Greg Harman ghar...@gmail.com wrote: One of Clojure's big

Re: Multi-CPU on Mac Not Exploited?

2009-01-27 Thread hank williams
? Hank On Tue, Jan 27, 2009 at 3:20 PM, dreish dresweng...@dreish.org wrote: java -server is not the default on Macs. It makes a huge difference for Clojure. % java -jar clojure.jar Clojure user= (time (reduce #(+ %1 %2 (if (odd? %1) -1 0)) (range 1000))) Elapsed time: 11793.18 msecs