clj-nativedep version 0.2.0 released

2015-12-21 Thread Ralph Ritoch
ritoch/clj-nativedep Clojars/Leiningen dependency: [clj-nativedep "0.2.0"] Best Regards, Ralph Ritoch -- 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

Clojure OSGI (Java 9?) support library ready for review

2015-07-06 Thread Ralph Ritoch
Clojars. Both a hello world bundle and a hello world user bundle which imports from hello world have been tested and appear to be fully functional. Feel free to use and extend this code at will as I'm releasing it under the MIT license. Best Regards, Ralph Ritoch -- You received this

Lein-SableCC 1.0.0 is released

2015-01-01 Thread Ralph Ritoch
This is the first release of the lein-sablecc leiningen plugin. This project is on github at https://github.com/rritoch/lein-sablecc It has been released to clojars at https://clojars.org/lein-sablecc Description: This plugin integrates the SableCC Compiler Compiler with a leiningen project. T

Re: For review: Clojure Namespace Isolation

2014-12-08 Thread Ralph Ritoch
One important piece of information about this feature is that it doesn't manipulate classloaders. This feature was designed to be used with OSGi or applications that handle their own classloading issues. In a typical application when entering a namespace isolation you may also need to bind a

Re: For review: Clojure Namespace Isolation

2014-12-08 Thread Ralph Ritoch
of a dependency will require the conflicting dependencies, but some will. It wouldn't be easy, or automatic, but it would become possible. Best Regards, Ralph Ritoch On Monday, December 8, 2014 9:23:12 PM UTC+8, Ralph Ritoch wrote: > > Gary, > >What your stating is possib

Re: For review: Clojure Namespace Isolation

2014-12-08 Thread Ralph Ritoch
references of those namespaces from the two environments. This was not an intended feature, but it is a feature that can be accessed. Best Regards, Ralph Ritoch On Monday, December 8, 2014 8:39:29 PM UTC+8, Gary Verhaegen wrote: > > Naive question: does that solve the dependency

Re: For review: Clojure Namespace Isolation

2014-12-08 Thread Ralph Ritoch
Thank you. I have signed the contributor agreement and applied to join clojure-dev (request pending). On Monday, December 8, 2014 3:38:15 AM UTC+8, Alan Forrester wrote: > > On 7 December 2014 at 19:27, Fluid Dynamics > wrote: > > On Sunday, December 7, 2014 11:12:37 AM UTC-5, Bozhidar Batsov w

For review: Clojure Namespace Isolation

2014-12-06 Thread Ralph Ritoch
namespace and all of it's dependent namespaces are copied into the newly created container. Once inside a new container, changes can be made without any risk of namespace conflicts with other parts of the system. I would like to submit these features for addition to Clojure. Best Regards,

Re: [ANN] Clojure 1.4 Released

2012-04-18 Thread Ralph Moritz
clojure.org needs to be updated with a release announcement for 1.4. On Wednesday, April 18, 2012 4:05:15 AM UTC+2, Alan Dipert wrote: > > We are pleased to announce the release of Clojure 1.4: > > http://clojure.org/downloads > > For maven/leiningen users, your settings are now: > > :dependen

Re: Explanation of with-resource

2011-11-21 Thread Ralph Moritz
Brilliant, thanks Meikel! Quite a complex macro, that. -- 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 po

Proposal: libraries should have type hints

2011-11-21 Thread Ralph
I want to propose that Clojure libraries should be fully "type-hinted" -- that is, they should be compiled with the "*warn-on-reflection*" option turned on and type hints place wherever possible. I understand the argument against type-hinting end-user code until a performance problem is demonstrat

Explanation of with-resource

2011-11-21 Thread Ralph Moritz
y the let. So how would one modify with-resource to call close-fn with multiple variables? Regards, Ralph -- 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 fr

Re: Guidelines for contributing?

2011-09-01 Thread Ralph Moritz
Thanks, If I'd read that page carefully & done a search in JIRA I would've seen that CLJS-24 already addresses this. Doh! On Sep 1, 4:26 pm, Luc Prefontaine wrote: > Look at this: > > http://clojure.org/contributing > > Luc P. > > On Thu, 1 Sep 2011 04:53:20

Guidelines for contributing?

2011-09-01 Thread Ralph Moritz
guidelines would be welcome. Regards, Ralph -- 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. T

ClojureCLR NotImplementedException

2011-08-02 Thread Ralph Moritz
-experiments.core) (defn details [] (let [hash (System.Collections.Hashtable.)] (doto hash (. Add "Name" "Ralph") (. Add "Age" 27)) hash)) (gen-class :name "ClrExperiments.Employee" :methods [[details [] Sy

Re: #= reader macro

2011-06-21 Thread Ralph
I realized that I got the anaphora idiom wrong after I posted. I changed it in my test code. Thanks. On Jun 20, 6:31 am, Jonathan Fischer Friberg wrote: > You should use ~' for anaphora. > > If for example `~this is used, 'this' is going to be unquoted, and the > content of "this" will be backqu

#= reader macro

2011-06-19 Thread Ralph
I just "discovered" the "#=" reader macro from a post on Stackoverflow and it solves a problem. How likely is this reader macro to become an official (documented) part of the language? How about deprecated or changed behavior? I am trying to use Stuart Sierra's "do-template" inside a "defprotocol"

Idiomatic way to document defn's

2011-05-13 Thread Ralph
What is the idiomatic way to document defn's? In particular, should we use "@param", "@returns", etc. to document parameters, return values, etc. It might be good to have some standard way to specify expected parameter types (other that type hints), especially for a dynamically typed language.

Lazy Programming

2010-12-15 Thread Ralph
I'm not sure what all the hype is about lazy programming. I've been a lazy programmer for more than 30 years. :-) -- 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 m

Doc string removed from clojure.xml/emit

2010-12-14 Thread Ralph
Any reason why the doc string has been removed from clojure.xml/emit (and emit-element)? Are these functions deprecated? -- 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

Message to Rich Hickey: Post Hammock-driven development slides

2010-12-05 Thread Ralph
Rich- Could you post the slides from your "Hammock-driven development" talk? Most excellent! Awesome in fact :-). 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

Re: Clojure vs F# performance

2010-11-23 Thread Ralph
Maybe Microsoft has tuned the CLR for those particular benchmarks (think "IE9" - not that anyone is accusing them of anything :-)). On Nov 22, 6:01 pm, Isaac Gouy wrote: > On Nov 22, 12:54 pm, Ralph wrote: > > > That is almost certainly true, since the Microsoft have proba

Re: Clojure vs F# performance

2010-11-22 Thread Ralph
That is almost certainly true, since the Microsoft have probably done extensive optimization on the CLR. On Nov 22, 1:18 pm, Mark Engelberg wrote: > I doubt that F# Mono benchmarks are representative of F#'s performance on > Windows. -- You received this message because you are subscribed to th

Clojure vs F# performance

2010-11-22 Thread Ralph
On the Programming Languages Comparison Site (http:// shootout.alioth.debian.org/u64/benchmark.php? test=all&lang=clojure&lang2=fsharp), if you run the Clojure vs. F# comparison, Clojure scores about the same in speed as F# (but does use more memory). At first this surprised me, since Clojure is d

Re: Setting Clojure “constants” at runtime (cros sposted to Stackoverflow)

2010-10-25 Thread Ralph
(delay (... read the JAR ...)) > >     (defn get-version [] (force version)) > > -S > > On Oct 22, 11:56 am, Ralph wrote: > > > > > I have a Clojure program that I build as a JAR file using Maven. > > Embedded in the JAR Manifest is a build-version number, inc

Re: Setting Clojure “constants” at runtime (cros sposted to Stackoverflow)

2010-10-23 Thread Ralph
                         (.getCodeSource) >                                  (.getLocation)) >                   "!/META-INF/MANIFEST.MF") >     (URL.) >     (.openStream) >     (Manifest.) >     (.. getMainAttributes) >     (.getValue "Build-number"))) > > (def *version* (get-version)) > > On

Re: Setting Clojure “constants” at runtime (cros sposted to Stackoverflow)

2010-10-22 Thread Ralph
t > calling it via a set-version function? > > - James > > On 22 October 2010 16:56, Ralph wrote: > > > > > I have a Clojure program that I build as a JAR file using Maven. > > Embedded in the JAR Manifest is a build-version number, including the > > build

Setting Clojure “constants” at runtime (crosspos ted to Stackoverflow)

2010-10-22 Thread Ralph
I have a Clojure program that I build as a JAR file using Maven. Embedded in the JAR Manifest is a build-version number, including the build timestamp. I can easily read this at runtime from the JAR Manifest using the following code: (defn set-version "Set the version variable to the build numb

RFE: modify description of "assoc"

2010-10-14 Thread Ralph
First, how do I submit a request for enhancement? Second, the documentation for "assoc" in clojure.core should probably include "(assoc vector index val)" and "(assoc vector index val & ivs)" in the usage line. -- You received this message because you are subscribed to the Google Groups "Clojure

Wrapping lines in the REPL

2010-05-16 Thread Ralph
I am using La Clojure (IntelliJ) for editing my programs. Is there any way (pseudo-variable, perhaps) to get the REPL to wrap lines after a specified number of characters? If I print a sequence containing a large number of items, I have to scroll right to see the whole thing. Thanks, Ralph

Re: Reading the manifest file

2010-05-03 Thread Ralph
Yes, but I don't believe that it guarantees that you will get the manifest for the enclosing JAR file if you have more than one. On May 3, 10:28 am, Nurullah Akkaya wrote: > (let [url (ClassLoader/getSystemResource "META-INF/MANIFEST.MF") >       manifest (java.util.jar.Manifest. (.openStream url

Reading the manifest file

2010-05-03 Thread Ralph
Crossposted to StackoverFlow. How can a Clojure program find its own MANIFEST.MF (assuming it is packaged in a JAR file). I am trying to do this from my "-main" function, but I can't find a class to use in the following code: (.getValue (.. (java.util.jar.Manifest. (.openStre

Re: finding sequential items from a sequence

2010-04-27 Thread Ralph
I must clarify my question: I need the longest INITIAL sequence where the items are sequential. One solution offered by "cgrand" at stackoverflow is (defn longest-initial-sequence [[x :as s]] (take-while identity (map #(#{%1} %2) s (iterate inc x On Apr 27, 2:59 pm, CuppoJava wrote: > Her

finding sequential items from a sequence

2010-04-27 Thread Ralph
Crossposted to stackoverflow. In a Clojure program, I have a sequence of numbers: (2 3 4 6 8 1) I want to find the longest sub-sequence where the items are sequential: (2 3 4) I am assuming that it will involve (take-while ...) or (reduce ...). Any ideas? -- You received this message becaus