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 Mud
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 wrote:
>>
>> I want to programmatically cre
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
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
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
> nREPL users, contr
cros 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`.?
> Ala
;s quite the hack, imo.
>
> 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 > wrote:
>
>> I am interested to know if people/you use
#x27;t convey
>> properly (AFAIK), so if you using bindings on one var, the changes won't be
>> seen in the other var. Remember: import-vars doesn't actually import
>> anything, it simply creates a new var in the current namespace and links
>> the two via a two-way
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 b
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 t
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 post
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
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 Clas
Thanks Stuart and Dave.
On Sep 14, 10:30 am, Stuart Sierra
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
--
You received this
I have a clojure program with which I would like all stdout and stderr
to be written to a file.
Of course there is Unix IO redirection but I am starting my program
from within another clojure program using "(.exec (Runtime/getRuntime)
clj-program-command env)" and that doesn't support IO redirecti
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 det
What about (use 'clojure.test.user) ?
On Jul 6, 6:37 pm, Pedro Teixeira 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 classname: R]
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,
t;
> 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 in Clojure for a Java
Cool. Signed up.
On Jul 4, 10:47 am, Arie van Wingerden 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 week.
>
>
rolled 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 Mud
Cool. Signed up.
Mudge
On Jul 4, 10:47 am, Arie van Wingerden 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 week
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 wrote:
> I am writing a 3rd party module in Clojure for a Java Web Start
> application written i
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: java.lang.Class
24 matches
Mail list logo