Re: Strange exception: Cannot cast to compile stub??

2016-05-09 Thread Kevin Downey
If I recall correctly, looking at the code at around line 483, I think I have seen that error arise when using (set! (.fieldName this-reference) value) inside defrecord and deftype bodies. if you use (set! fieldName value) syntax you might be fine. On 05/08/2016 07:21 PM, JvJ wrote: > I'm implemen

Re: Strange exception: Cannot cast to compile stub??

2016-05-09 Thread Kevin Downey
There is a jira issue http://dev.clojure.org/jira/browse/CLJ-1226 and it looks like it is marked as fixed in 1.8 On 05/09/2016 01:10 AM, Kevin Downey wrote: > If I recall correctly, looking at the code at around line 483, I think I > have seen that error arise when using (set! (.fieldName this-ref

20% of job board proceeds to go to ClojureBridge

2016-05-09 Thread Daniel Higginbotham
Hey y'all, just wanted to share that starting May 16th I'll be donating 20% of jobs.braveclojure.com proceeds to ClojureBridge :) More details: https://jobs.braveclojure.com/blog/posts/bridge-donations/ Thanks, Daniel -- You received this message because you are subscribed to the Google Groups

Serialising/deserialising mixed Clojure and Java datastructures

2016-05-09 Thread 'Simon Brooke' via Clojure
I'm working on some complex analysis where it takes about twelve hours to construct the model to be analysed. Once it's constructed I'm doing various interactive things to explore it, but I can't currently persist it in a form in which it can be read back in, so that when the REPL session ends i

Re: Serialising/deserialising mixed Clojure and Java datastructures

2016-05-09 Thread Alex Miller
Clojure is designed with enough extensibility to modify the printer and reader to cover this case. You can define a custom print strategy for these types by extending the print-dup multimethod. If you print it as a tagged literal, you can also define a custom reader that can read it back as the

Strange classpath / ClassNotFoundException with Swing and JavaFX

2016-05-09 Thread Jason Zwolak
I don't want to cross post, but I wanted to see if anyone on this list can answer this tough StackOverflow question: http://stackoverflow.com/questions/37119814/swing-javafx-and-clojure-arent-playing-nice-with-the-classpath It's a strange ClassNotFoundException that requires a specific order of

Re: Serialising/deserialising mixed Clojure and Java datastructures

2016-05-09 Thread Ralf Schmitt
"'Simon Brooke' via Clojure" writes: > I'm working on some complex analysis where it takes about twelve hours to > construct the model to be analysed. Once it's constructed I'm doing various > interactive things to explore it, but I can't currently persist it in a > form in which it can be rea

Re: Strange exception: Cannot cast to compile stub??

2016-05-09 Thread JvJ
Changing the set! syntax fixed the issue. Thanks! There's no way I could have figured that out on my own. On Monday, 9 May 2016 01:12:36 UTC-7, red...@gmail.com wrote: > > There is a jira issue http://dev.clojure.org/jira/browse/CLJ-1226 and it > looks like it is marked as fixed in 1.8 > > On

Addressing Matthias Felleisen's concerns?

2016-05-09 Thread Didier
At Clojurewest 2016, Matthias Felleisen gave a great keynote about the pragmatism of soundness for maintening large code bases. He mentioned that adding type gradually was useful, but only when the border between typed land and untyped land is guarded. He mentioned how Racket does that. He also

Re: Transducers improve performance more than expected

2016-05-09 Thread JvJ
In a similar vein, do you think that eductions are generally a better idea than lazy sequences/for comprehensions? On Sunday, 8 May 2016 22:24:15 UTC-7, Herwig Hochleitner wrote: > > My theory has been, that transducer stacks inline much better, hence allow > for more optimizations by the jit. >

Re: Addressing Matthias Felleisen's concerns?

2016-05-09 Thread Raoul Duke
(Did he mention Wadler? Probably. http://lambda-the-ultimate.org/node/2538) I have it from friends who have used TR "in anger" that it is not really a win. My own experience with other things, e.g. the typed stuff in the lands of JavaScript and TypedLua, is in line with that, unfortunately. http:/

Re: Addressing Matthias Felleisen's concerns?

2016-05-09 Thread Josh Tilles
On Monday, May 9, 2016 at 5:36:53 PM UTC-4, Didier wrote: > > At Clojurewest 2016, Matthias Felleisen gave a great keynote about the > pragmatism of soundness for maintening large code bases. He mentioned that > adding type gradually was useful, but only when the border between typed > land and

Re: Addressing Matthias Felleisen's concerns?

2016-05-09 Thread Ambrose Bonnaire-Sergeant
Josh is correct. I'm currently working on merging this work now that my courses are over. Thanks, Ambrose On Mon, May 9, 2016 at 6:32 PM, Josh Tilles wrote: > On Monday, May 9, 2016 at 5:36:53 PM UTC-4, Didier wrote: >> >> At Clojurewest 2016, Matthias Felleisen gave a great keynote about the >

Re: Transducers improve performance more than expected

2016-05-09 Thread Alex Miller
eductions are non-caching (will re-perform their work each time they are used), so most of the time I would say lazy sequences are preferable. On Monday, May 9, 2016 at 4:54:48 PM UTC-5, JvJ wrote: > > In a similar vein, do you think that eductions are generally a better idea > than lazy sequenc

[ANN] pulley.cps 0.2.2

2016-05-09 Thread Nathan Davis
I'm please to announce the release of version 0.2.2 of pulley.cps -- a macro compiler for transforming idiomatic Clojure code into continuation-passing style, and runtime library to provide runtime support. This release is a bugfix release th

Is there a simple way to insert files as bytea using clojure.java.jdbc into postgres?

2016-05-09 Thread 鹿沼生
Currently I am trying to insert a file into a postgre sql table using the clojure.java.jdbc library. When I try to execute the statement, I get this message. 1. Unhandled org.postgresql.util.PSQLException Can't infer the SQL type to use for an instance of java.io.FileInputStream. Use setObj