Linux Journal July "Intro to Clojure on the Web"

2013-07-01 Thread greg r
by Reuven Lerner. 10 pages. Compojure is next. http://www.linuxjournal.com/content/july-2013-issue-linux-journal-networking Regards, Greg -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups

Re: alternative syntax for Clojure? Haskell?

2014-04-05 Thread greg r
I can't answer your question from my own experience, but there does seem to be a way to develop your own language on the JVM: https://www.eclipse.org/Xtext/index.html You could create a "DSL" to your precise specifications. Regards, Greg -- You received this message because you are subscribe

Re: Emacs - error with `nrepl-jack-in'

2014-04-18 Thread greg r
You should consider going to CIDER: https://github.com/clojure-emacs/cider The command is 'cider-jack-in'. Here's a page with a lot of install info: http://clojure-doc.org/articles/tutorials/emacs.html There are many web pages out there with obsolete information on Clojure and emacs. The abov

Re: Help about using clojure in org mode in Emacs with CIDER

2014-01-23 Thread greg r
We had a discussion about this in the cider-emacs group: https://groups.google.com/forum/#!topic/cider-emacs/xj-HYTAA-D0 Bastien's page on using Overtone with Clojure in org code blocks is very informative with regards to setting it all up: http://bzg.fr/emacs-org-babel-overtone-intro.html Not

Re: Help about using clojure in org mode in Emacs with CIDER

2014-01-27 Thread greg r
I compared a computer set up with the latest of everything (org/emacs/CIDER) and compared to an older computer still using nrepl-jack-in and older versions of everything else. The behavior is definitely different with the newer system, and can be seen with a very simple case: Code block: #+be

Re: Help about using clojure in org mode in Emacs with CIDER

2014-01-28 Thread greg r
Hi Bastien, yes I will post a report at the mailing list today. Regards, Greg On Tuesday, January 28, 2014 12:55:20 AM UTC-5, Bastien Guerry wrote: > > Hi Greg, > > greg r > writes: > > > I compared a computer set up with the latest of everything (org/emacs > &

Re: Help about using clojure in org mode in Emacs with CIDER

2014-02-02 Thread greg r
The worg documentation for the Clojure language has been updated: http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-clojure.html The installation instructions should result in a current Clojure/CIDER/clojure-mode/Leiningen system. Regards, Greg -- You received this message because you

Re: How to read a txt file?

2013-02-01 Thread greg r
slurp works well, however, it reads the file in as a single string. The result may not be readily useable depending on what you are doing. I read in text files using clojure.java.io functions plus the core function line-seq. What you get is a sequence whose elements are the individual lines

Re: Clojure 1.5 print-table, org-mode babel, and org-mode HTML gen

2013-03-02 Thread greg r
Try adding :results value raw to your options. Here is what the org manual says: The results are interpreted as raw Org mode code and are inserted directly into the buffer. If the results look like a table they will be aligned as such by Org mode. org is a fantastic environment for playing wi

Re: Clojure 1.5 print-table, org-mode babel, and org-mode HTML gen

2013-03-03 Thread greg r
Here's a little project I worked on: https://github.com/Greg-R/incanterchartcustom I'm just now learning git, so I hope the files are intact in the repository. I cloned to another machine and they appear to be OK. The Incanter chart PDF document shows what is possible with

Re: Clojure 1.5 print-table, org-mode babel, and org-mode HTML gen

2013-03-05 Thread greg r
I think I was wrong about the extra elisp code required for nrepl to evaluate babel Clojure code blocks. This was from last year: https://groups.google.com/forum/?fromgroups=#!searchin/nrepl-el/babel/nrepl-el/txLYH9tH6AU/hj0NkyF8YZ8J I checked my .emacs file and the extra code for clojure babel

Re: Accessing JSON Array data in Clojure

2013-05-07 Thread greg r
You might want to check out "Clojure Data Analysis Handbook" by Eric Rochester. There is an example using org.clojure/data.json and Incanter to read JSON format into an Incanter dataset. You might find other recipes in the book useful as well: http://www.packtpub.com/clojure-data-analysis-coo

Re: Idiomatic usage of partial

2012-05-17 Thread greg r
The reader notation is limited to the arity of the number of arguments provided. partial allows variable arity. Check out pages 67-68 of "Clojure Programming". Regards, Greg On Wednesday, May 16, 2012 1:57:40 PM UTC-4, Murtaza Husain wrote: > > Hi, > > What is the idiomatic use of partial. I un

Re: using "lein repl" as the Emacs Inferior Lisp REPL as opposed to a custom script that does "java -jar clojure-1.4.0.jar"

2012-08-26 Thread greg r
Hello, I am also using Leiningen in Ubuntu, and I feel your pain. One thing I would suggest is to remove anything related to your tool chain which was installed by Ubuntu. (except maybe emacs 24.x). You clearly have Clojure installed via the usual Ubuntu Software Center or related mechanism. Unin

Re: Found bug in contains? used with vectors.

2012-09-03 Thread greg r
You could try the function some. => (some #{3} [1 2 3]) 3 => (some #{3} [1 2 5]) nil This uses a set as a predicate function. Greg On Monday, September 3, 2012 7:03:07 AM UTC-4, Goldritter wrote: > > I use Clojure 1.4.0 and wanted to use 'contains?' on a vector and get > following results: > >

Re: slime-ritz help needed on clean emacs 24.2.1 new setup

2012-09-20 Thread greg r
How about trying: nrepl-jack-in This is working good here, at least from within a leiningen project. Regards, Greg On Saturday, September 15, 2012 2:39:36 AM UTC-4, sal wrote: > > Hi Everyone, > Trying to setup emacs 24.2 on mac osx clean setup, nothing else. > > clojure-mode 20120808..

Re: Clojure : a good start for non-programmers?

2012-09-26 Thread greg r
I would go with the book "Simply Scheme, Introducing Computer Science" by Harvey and Wright. Install the Racket system on your computer, and have at it. http://racket-lang.org/ Once you come up to speed on Scheme, you will have no trouble with core Clojure. But if you venture in the the Java i

Re: Using functions from Java packages

2012-12-17 Thread greg r
Another possibility is the macro memfn. From the documentation: http://clojure.github.com/clojure/clojure.core-api.html#clojure.core/memfn Regards, Greg -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@go

Re: Using functions from Java packages

2012-12-17 Thread greg r
Another possibility is the macro memfn. From the documentation: http://clojure.github.com/clojure/clojure.core-api.html#clojure.core/memfn Regards, Greg -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@go