Re: How to Programmatically Create Unqualified Keywords?

2018-03-21 Thread Nick Mudge
this case. > > ::something-empty is really a reader syntax for :user/something-empty btw > (where user is your current namespace), so it's not even possible to > "create" a keyword like ::something-empty. > > On Wednesday, March 21, 2018 at 8:15:43 AM UTC-5, Nick Mudge wr

Re: How to Programmatically Create Unqualified Keywords?

2018-03-21 Thread Nick Mudge
ax for :user/something-empty btw > (where user is your current namespace), so it's not even possible to > "create" a keyword like ::something-empty. > > On Wednesday, March 21, 2018 at 8:15:43 AM UTC-5, Nick Mudge wrote: >> >> I want to programmatically create so

How to Programmatically Create Unqualified Keywords?

2018-03-21 Thread Nick Mudge
I want to programmatically create some keywords without namespaces? Or are we not supposed to do that? I can't use the "keyword" function because that only creates keywords with a namespace. For example doing this: (keyword (str "something" "-empty")) Creates this: ::something-empty But I

Dynamically Reify Interfaces

2017-11-07 Thread Nick Mudge
I need to dynamically reify some java interfaces based on data from a map. One way I can see to do this is to generate the reify code with a function using syntax quotes, quotes and unquote and unquote splice. And then evaluate it using eval. I hesitate using eval, but is eval the right tool

Re: Migrating nREPL out of Clojure Contrib

2017-11-07 Thread Nick Mudge
I am new to the clojure community. What does it mean to "reboot" the project? On Friday, July 21, 2017 at 5:15:49 AM UTC-7, Herwig Hochleitner wrote: > > 2017-07-18 14:48 GMT+02:00 Chas Emerick >: > > I would like to hear here (no more private mails, please! :-) from any

Re: Who Uses import-vars?

2017-11-07 Thread Nick Mudge
ns/macros in a single namespace > `tupelo.impl`, but then expose an API in "user-visible" namespaces like: > >- tupelo.core >- tupelo.char >- tupelo.test >- etc > > Perhaps I've been doing it wrong and should switch to `import-vars`.? > Alan > &g

Re: Who Uses import-vars?

2017-11-07 Thread Nick Mudge
; So I have to agree with Potemkin's tagline on github: it's an idea that's > "almost good". > > Timothy > > On Tue, Nov 7, 2017 at 11:13 AM, Nick Mudge <ni...@perfectabstractions.com > > wrote: > >> I am interested to know if people/you use import-vars to decoupl

Re: Who Uses import-vars?

2017-11-07 Thread Nick Mudge
It's quite the hack, imo. >> > > Huh. Good to know. Will have to ponder ... > > d > > >> So I have to agree with Potemkin's tagline on github: it's an idea that's >> "almost good". >> >> Timothy >> >> On Tue, Nov 7, 2017 at 11

Who Uses import-vars?

2017-11-07 Thread Nick Mudge
I am interested to know if people/you use import-vars to decouple the structure of code from its API. import-vars is from the potemkin library: https://github.com/ztellman/potemkin If you don't use import-vars how do you structure your code and provide an API? -- You received this message

Curious About Interfaces In IFn.java

2017-11-02 Thread Nick Mudge
I noticed the interface definitions in IFn.java that start out like this: static public interface L{long invokePrim();} static public interface D{double invokePrim();} static public interface OL{long invokePrim(Object arg0);} static public interface OD{double invokePrim(Object arg0);} Obviously

Don't Laugh - How to Get the Name of an Anonymous Function

2017-10-23 Thread Nick Mudge
Let's say I have this anonymous function: (fn cool [] (println "hi")) How can I extract the name from it? Obviously the name of the function is stored with the function. How can I get to it? -- You received this message because you are subscribed to the Google Groups "Clojure" group. To

SourceDebugExtension Class Attribute in clojure-1.8.0.jar

2017-10-12 Thread Nick Mudge
Recently I needed to run pack200 on the clojure-1.8.0.jar When I did this I got an error that SourceDebugExtension is an unknown class attribute. I got around this problem by removing all the SourceDebugExtension class attributes from clojure-1.8.0.jar. Here are my questions: What is clojure

Re: Clojure in OSGi and *use-context-classloader*

2012-11-16 Thread Nick Mudge
Hi there, Thanks for your post. I had the same problem and your solution is what I need. To answer your question, USE_CONTEXT_CLASSLOADER still returns true in the following method (which is also in RT.java) because it is being bound to true when making a DynamicClassLoader: static public

Re: Binding *out*

2011-09-15 Thread Nick Mudge
Thanks Stuart and Dave. On Sep 14, 10:30 am, Stuart Sierra the.stuart.sie...@gmail.com wrote: Hi Nick, *out* and *err* are already dynamic, which is what allows `binding` to work. You can the  root binding of any Var (even non-dynamic Vars) with `def` or `alter-var-root`. -Stuart Sierra

First Clojure Conj Rich Hickey Talk Not About Hammock

2011-07-17 Thread Nick Mudge
I heard that Rich Hickey gave another talk about Clojure at the first Clojure Conj besides the Hammock one. In it he talked about dynamic vars. Does anyone know if this was videoed or if there are any notes about this? I am interested in knowing more about dynamic vars. Does anyone know of any

Re: inconsistent behaviour when resolving java classes

2010-07-07 Thread Nick Mudge
What about (use 'clojure.test.user) ? On Jul 6, 6:37 pm, Pedro Teixeira pedr...@gmail.com wrote: Hi, The following seems like it was not intended, please let me know if it is intended. user (use 'clojure.test) user (testing (defrecord R []) (new R) ) [exception: Unable to resolve

Re: How Do I Tell Clojure Which Classloader to Use?

2010-07-06 Thread Nick Mudge
any java web start experience, so I'm afraid I can't   provide any further advice.  Anyone else here that does? - Chas On Jul 4, 2010, at 6:53 AM, Nick Mudge wrote: I am writing a 3rd party module in Clojure for a Java Web Start application written in Java. I am using Clojure 1.1. I

Getting Clojure into the workplace, how do you do it?

2010-07-06 Thread Nick Mudge
One of the things I like about Clojure is it is a way to get lisp and functional programming into workaday programming work; into the many places and businesses that use Java. I'd be very interested to hear stories or experiences of getting Clojure into the workplace and how it was done. That is,

Re: How Do I Tell Clojure Which Classloader to Use?

2010-07-05 Thread Nick Mudge
Also I should note that all my clojure code is compiled to classes and the classes are jarred and sent to the Java Web Start program along with clojure.jar. On Jul 4, 3:53 am, Nick Mudge mud...@gmail.com wrote: I am writing a 3rd party module in Clojure for a Java Web Start application written

Re: Online Clojure for beginners course starting july 19th

2010-07-05 Thread Nick Mudge
Cool. Signed up. Mudge On Jul 4, 10:47 am, Arie van Wingerden xapw...@gmail.com wrote: Hi, at Rubylearning.org a course on Clojure will be taught soon. See the details here ...    http://rubylearning.com/blog/2010/07/04/new-course-clojure-for-beginn... The course starts july 19th and lasts

Re: How Do I Tell Clojure Which Classloader to Use?

2010-07-05 Thread Nick Mudge
is controlled by the value of   *use-context-classloader*, which is true by default. I don't have any java web start experience, so I'm afraid I can't   provide any further advice.  Anyone else here that does? - Chas On Jul 4, 2010, at 6:53 AM, Nick Mudge wrote: I am writing a 3rd party module

Re: Online Clojure for beginners course starting july 19th

2010-07-05 Thread Nick Mudge
Cool. Signed up. On Jul 4, 10:47 am, Arie van Wingerden xapw...@gmail.com wrote: Hi, at Rubylearning.org a course on Clojure will be taught soon. See the details here ...    http://rubylearning.com/blog/2010/07/04/new-course-clojure-for-beginn... The course starts july 19th and lasts for a

How Do I Tell Clojure Which Classloader to Use?

2010-07-04 Thread Nick Mudge
I am writing a 3rd party module in Clojure for a Java Web Start application written in Java. I am using Clojure 1.1. I think that my clojure program and clojure.jar are on the classpath and are being loaded because when clojure.jar is not seen on the class path this error results: