Re: Cannot access a public static volatile field

2013-03-16 Thread Marko Topolnik
On Sunday, March 17, 2013 6:02:07 AM UTC+1, vemv wrote: > Ahhh I tracked it down - the class was not public. I thought .java files > had to define at least (and at most) *one* public class/enum/interface. > > How much sense can it make to define a private class in its own file? :( > It makes per

Re: Generate static methods at runtime?

2013-03-16 Thread Marko Topolnik
> gen-class can emit static methods, but one cannot leverage its > functionality at runtime. > But since compile-time is also a kind of runtime in Clojure, shouldnt't you be able to dynamically create an appropriate .clj file with the ns form and main- form, and have it compiled? -- -- Yo

Re: Cannot access a public static volatile field

2013-03-16 Thread vemv
Ahhh I tracked it down - the class was not public. I thought .java files had to define at least (and at most) *one* public class/enum/interface. How much sense can it make to define a private class in its own file? :( On Sunday, March 17, 2013 5:54:58 AM UTC+1, vemv wrote: > > The relevant Java

Cannot access a public static volatile field

2013-03-16 Thread vemv
The relevant Java code: // its class extends Thread // assigned a value in static initializer public static volatile ClassLoader classLoader = null; What happens when I try access it from Clojure: user=> vemv.NGSession/classLoader IllegalAccessException Class clojure.lang.Reflector can not acc

FYI - Light Rail notes for Portland (fix)

2013-03-16 Thread Rich Morin
The cost of a taxi from Portland Intl. Airport (PDX) to the Clojure/West hotel (Courtyard by Marriott) is listed (by the hotel) as about $35 one way. To save money, you can take the (TriMet) light rail: * Walk to the Portland Intl. MAX station (Red Line). * Take MAX to the Gateway/NE 99th Av

FYI - Light Rail notes for Portland (oops)

2013-03-16 Thread Rich Morin
It seems my directions were for a different Marriott. Currently looking to see if there is transit to the conference hotel (Courtyard Marriott City Center). -r -- http://www.cfcl.com/rdmRich Morin http://www.cfcl.com/rdm/resume r...@cfcl.com http://www.cfcl.com/rdm/weblog +1

FYI - Light Rail notes for Portland

2013-03-16 Thread Rich Morin
The cost of a taxi from Portland Intl. Airport (PDX) to the Clojure/West hotel (Courtyard by Marriott) is listed (by the hotel) as about $35 one way. To save money, you can take the (TriMet) light rail: * Walk to the Portland Intl. MAX station (Red Line). * Take MAX to the Convention Center

Re: Imported Java lib can't find classes compiled on the fly

2013-03-16 Thread vemv
Most definitely :) But that something is hard/confusing should'nt be enough reason to give up. On Sunday, March 17, 2013 4:11:34 AM UTC+1, James Xu wrote: > > Then things will get complicated and ugly. > > 原始邮件 > *发件人:* Víctor M. Valenzuela> > *收件人:* clojure> > *发送时间:* 2013年3月17日(周日) 11:05 > *

Re: Imported Java lib can't find classes compiled on the fly

2013-03-16 Thread xumingming64398966
Then things will get complicated and ugly. 原始邮件 发件人: Víctor M. Valenzuela收件人: clojure发送时间: 2013年3月17日(周日) 11:05主题: Re: Imported Java lib can't find classes compiled on the flyMy guess is it was set via Thread.currentThread().setContextClassLoa

Re: Imported Java lib can't find classes compiled on the fly

2013-03-16 Thread Víctor M . Valenzuela
My guess is it was set via Thread.currentThread().setContextClassLoader()...? On Sun, Mar 17, 2013 at 3:07 AM, Víctor M. Valenzuela wrote: > Yeah I was working in that direction now! > > Anyway, how come (Class/forName) can work if used from the repl? My > understanding is that the classloader p

Re: Imported Java lib can't find classes compiled on the fly

2013-03-16 Thread Víctor M . Valenzuela
Yeah I was working in that direction now! Anyway, how come (Class/forName) can work if used from the repl? My understanding is that the classloader provided by Class is different from DynamicClassLoader. On Sun, Mar 17, 2013 at 3:01 AM, Michael Klishin < michael.s.klis...@gmail.com> wrote: > > 2

Re: Imported Java lib can't find classes compiled on the fly

2013-03-16 Thread Michael Klishin
2013/3/17 vemv > I guess that somehow the Java library uses a different classloader or > something like that? Any possible solution? Clojure itself uses a separate classloader: a clojure.lang.DynamicClassLoader instance. If you can use an instance of that classloader, you should be fine. -- M

Imported Java lib can't find classes compiled on the fly

2013-03-16 Thread vemv
Related with my immediately previous question (generate static methods at runtime), but not the same. There's a Java lib which I import and run from a Clojure repl. In that repl, if I perform e.g. (defrecord Foo []), then

Re: Generate static methods at runtime?

2013-03-16 Thread Víctor M . Valenzuela
Interop, what else :) the lib is called Nailgun, several Clojure projects use it. You feed its Java server with classes that have a static main() method, and then C clients can call those main() methods via sockets. The point is to avoid JVM startup time. An example: https://gist.github.com/vemv/

Re: Generate static methods at runtime?

2013-03-16 Thread James Reeves
Out of curiosity, why would you want to? On 16 March 2013 23:49, vemv wrote: > All class-generating Clojure constructs that one can use at runtime such > as proxy, reify, or defrecord, seem to generate instance methods only. > > gen-class can emit static methods, but one cannot leverage its > f

Generate static methods at runtime?

2013-03-16 Thread vemv
All class-generating Clojure constructs that one can use at runtime such as proxy, reify, or defrecord, seem to generate instance methods only. gen-class can emit static methods, but one cannot leverage its functionality at runtime. Any way to accomplish this? -- -- You received this message

Re: core.logic : Fact assertion as a relational operator

2013-03-16 Thread JvJ
Is there some documentation on core.logic's implementation that I could use for something like this? On Saturday, 16 March 2013 17:53:49 UTC-4, JvJ wrote: > > Maybe I'll try to write something in, if I can swing it. > > Basically, with assert, you can incorporate database modifications as part >

Re: core.logic : Fact assertion as a relational operator

2013-03-16 Thread JvJ
Maybe I'll try to write something in, if I can swing it. Basically, with assert, you can incorporate database modifications as part of a query. Here is an example: 1 ?- assert(person(dNolen)). true. 2 ?- person(X), assert(coolguy(X)). X = dNolen. 3 ?- coolguy(X). X = dNolen. On Saturday, 16

Ogre, a Clojure library for querying graphs

2013-03-16 Thread Zack Maril
Gremlin is a java library that lets you query graphs (real mathematical graph theory graphs): https://github.com/tinkerpop/gremlin/wiki Ogre is a library that wraps Gremlin up all pretty like: https://github.com/zmaril/ogre OgreDocs is a website that documents just how pretty Ogre is: http://

Re: core.logic : Fact assertion as a relational operator

2013-03-16 Thread David Nolen
Doesn't exist and I'm not that familiar with assert. Patch welcome of course. On Sat, Mar 16, 2013 at 5:24 PM, JvJ wrote: > I realize that it is possible to enter facts into the core.logic database > with the facts function. However, I'm looking for something more like the > Prolog assert; a r

core.logic : Fact assertion as a relational operator

2013-03-16 Thread JvJ
I realize that it is possible to enter facts into the core.logic database with the facts function. However, I'm looking for something more like the Prolog assert; a relational operator with a side effect of adding facts to the db. Is there anything like that? -- -- You received this message

even more minimal clojurescript string-transforming web app example?

2013-03-16 Thread Lee Spector
Searching the web for minimal clojurescript web app examples I see a number of interesting things but nothing quite as minimal as what I'm hoping for. Suppose I have a Clojure/Clojurescript function "reply" that takes a single string argument and returns a string result. For the simplest case l

Re: Google Summer of Code 2013

2013-03-16 Thread Daniel Solano Gómez
On Sat Mar 16 19:57 2013, Víctor M. Valenzuela wrote: > Hello Daniel, > > my bad, the application period indeed starts on Monday. Sorry for the noise. > > Can I propose (complete) ideas if I've not found a mentor for them yet? Certainly. Your best bet is to bring up your project ideas on the re

Re: Clojure over the Summer

2013-03-16 Thread Daniel Solano Gómez
Hello, Pranav, I am glad you're interested in Clojure and GSoC. The level of expertise required for each project can vary a lot. You don't need to be a Clojure expert, but you should be comfortable enough with the language to be productive once GSoC officially starts in June. Most project ideas

Re: Google Summer of Code 2013

2013-03-16 Thread Víctor M . Valenzuela
Hello Daniel, my bad, the application period indeed starts on Monday. Sorry for the noise. Can I propose (complete) ideas if I've not found a mentor for them yet? Thank you - Vicotor On Sat, Mar 16, 2013 at 7:46 PM, Daniel Solano Gómez wrote: > Hello, Victor, > > I think the application period

ANN Neocons 1.1 is released

2013-03-16 Thread Michael Klishin
Neocons [1] is an idiomatic Clojure client for the Neo4J Server REST API. 1.1 includes several minor features and bug fixes. Release notes: http://blog.clojurewerkz.org/blog/2013/03/16/neocons-1-dot-1-0-is-released/ There are also some thoughts on the future of the library that I'd like to share:

Re: Google Summer of Code 2013

2013-03-16 Thread Daniel Solano Gómez
Hello, Victor, I think the application period started on Monday. Nonetheless, I am planning on starting the application as soon as it opens. I'll do what David did last year and post the application questions on the Clojure community wiki. I am planning on officially kicking off Clojure's GSoC

Re: Google Summer of Code 2013 Ideas

2013-03-16 Thread Víctor M . Valenzuela
Well, try contacting cemerick himself :) Same for any project you'd like to contribute to, authors/commiters should be the safest bet when looking for a mentor. On Sat, Mar 16, 2013 at 6:13 PM, Chris Bui < hesbornaliarhelldieal...@gmail.com> wrote: > I'd love to work on cemerick's Friend library

Re: Google Summer of Code 2013 Ideas

2013-03-16 Thread Chris Bui
I'd love to work on cemerick's Friend library if somebody would be willing to mentor me on it. It's a library that I'd be using a lot personally. On Saturday, March 16, 2013 11:21:25 AM UTC-5, vemv wrote: > > Given that you like webdev, you may be interested in improving cemerick's > Friend libr

Clojure over the Summer

2013-03-16 Thread Pranav Ravichandran
Hey Clojurers (-ites?), Being a Python/JS hacker primarily, I started reading about/learning Clojure a couple of weeks back. I've been dabbling in it since then, like writing a basic HTML generator with contrib.prxml, and some basic server stuff. I'm completely sold on the language and the phil

Re: Google Summer of Code 2013 Ideas

2013-03-16 Thread vemv
Given that you like webdev, you may be interested in improving cemerick's Friend library. There are a bunch of interesting features yet to be implemented! On Saturday, March 16, 2013 6:00:44 AM UTC+1, Chris Bui wrote: > > Hi everybody, I'm a student looking to apply for GSOC 2013. I'm trying to

New Version of vsClojure for Visual Studio 2012 uploaded to Gallery

2013-03-16 Thread Devin Garner
You can search for it on http://visualstudiogallery.msdn.microsoft.com/ or directly inside visual studio 2012. I'd like to update the 2010 version as well if anyone is able to contact Jon (jmis) The new features are: ClojureCLR 1.5.0 runtime (beta). Templates for console apps and ASP.NET MVC c

Re: Google Summer of Code 2013 Ideas

2013-03-16 Thread vemv
Starting from today organisations can send their applications, so you may be running out of time for posting ideas! I just pointed out this at the main thread https://groups.google.com/forum/?fromgroups=#!topic/clojure/vDiha4tYC_s On Saturday, March 16, 2013 6:00:44 AM UTC+1, Chris Bui wrote: >

Re: Google Summer of Code 2013

2013-03-16 Thread vemv
Daniel, Starting from today and until March 29 organisations can send their applications. Which date will you pick? Thanks, Victor On Thursday, February 14, 2013 7:03:58 PM UTC+1, Daniel Solano Gómez wrote: > > Hello, all, > > It's official: Google Summer of Code 2013 is on. > > Last year, Cl

Re: Is it possible to set breakpoint using nrepl-ritz?

2013-03-16 Thread Warren Lynn
> Could you create an issue for this. > > > Just did that. Even with "M-x nrepl-ritz-break-on-exception" (and adding an (throw ...) in the code), it still does not work for me. Just hangs. Also after "M-x nrepl-ritz-break-on-exception", my "ac-nrepl" does not work anymore, Whenever auto co

Re: Is it possible to set breakpoint using nrepl-ritz?

2013-03-16 Thread Hugo Duncan
Warren Lynn writes: >> It is using the latest development code (C-c C-x C-b on the line to >> break at). A release should be out containing this in the next few >> days. >> >> Hugo >> > > I was eager to use the line debugging commands but had no success. After > "M-x nrepl-ritz-jack-in", I

Google Summer of Code 2013 Ideas

2013-03-16 Thread Chris Bui
Hi everybody, I'm a student looking to apply for GSOC 2013. I'm trying to develop some ideas for projects for my proposal. I'm a little new to Clojure and haven't been formally trained in CS yet so I'm mainly looking for ideas that are between easy and medium difficulty. Also, I'm primarily a w