Re: Graph API

2013-06-19 Thread A
Thought I'd mention a really nice Graph visualization library that I like. It would be great to include this into any new Graph library project. https://github.com/pallix/lacij >From the readme: "Lacij is a graph visualization library written in Clojure. It allows the *dis

Re: clojure, not the go to for data science

2015-04-02 Thread A
Clojure is an Amazing tool for data science. If people are slow to realize this, that is their disadvantage. The premise that "Clojure hasn't developed as a go to for data science" simply doesn't ring true to me at all. There are numerous examples of Clojure use for dat

Re: clojure, not the go to for data science

2015-04-05 Thread A
Caveats... there is a lot to explore, things are continually changing and evolving, I haven't made an exhaustive search, but here is what is quickly google-able... YMMV # Books - Eric Rochester: https://www.packtpub.com/big-data-and-business-intelligence/mastering-clojure-data-analysis

Re: clojure, not the go to for data science

2015-04-05 Thread A
>> Thanks, that is an awesome list of resources. kudos to the respective authors. -A -- 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 membe

Re: clojure, not the go to for data science

2015-04-05 Thread A
Please feel free to create something like http://www.clojure-toolbox.com/ for data science in Clojure, that would be great. On Sunday, April 5, 2015 at 3:33:11 PM UTC-7, Sayth Renshaw wrote: > > Would be good to get that on a wiki for all so we could update and share > as a resourcee.

Re: clojure, not the go to for data science

2015-04-06 Thread A
Thanks for taking the initiative :) Looks good. My two cents is to prefer something instead of the word "goto" though, which could imply an archaic coding semantic. Perhaps "...a growing resource to consolidate links to Clojure Data Science topics"? or perhaps somethin

Re: clojure, not the go to for data science

2015-04-06 Thread A
Can't recall which one, but I believe one of the aforementioned books has a chapter on Weka use with examples. -A On Monday, April 6, 2015 at 12:40:20 PM UTC-7, Goldritter wrote: > > I wonder, has somebody ever tried to write something like a clojure > wrapper

Re: [ANN] Neanderthal, a fast, native matrix and linear algebra library for Clojure released + call for help

2015-06-22 Thread A
Here's another benchmark for comparison: https://code.google.com/p/redsvd/wiki/English -A On Monday, June 22, 2015 at 12:27:57 PM UTC-7, Dragan Djuric wrote: > > core.matrix claims that it is fast on its project page (with which I agree > in some cases). I expected from that

Re: GSoC 2014: org applications now open

2014-02-07 Thread A
A couple ideas put forth: 1. Incanter charts with d3 (http://d3js.org/) ? Perhaps facilitated by Dribnet's Strokes library (https://github.com/dribnet/strokes). 2. Finding ways to integrate Incanter and Clojurescript. Thoughts? -Avram On Monday, February 3, 2014 11:59:24 AM

Re: GSoC 2014: org applications now open

2014-02-13 Thread A
I think this is a great discussion, and there are myriad ways to get there. I haven't settled my own opinions firmly enough to advocate for one implementation over another at this point, but I do think that Incanter could become a killer toolbox (even more than now) with the additon of...

ANN: [R User Conference]

2014-05-28 Thread A
I hope it's allright to mention here that the R User Conference is happening June 30-July 3 in Los Angeles. There are a number of ways Clojure and R can be used together for statistical programming and data analysis. Observing the R community may be insightful for the Clojure community

Re: [ANN] com.stuartsierra/frequencies "0.1.0"

2014-01-26 Thread A
we used )) What do people think about Incanter these days? Is it a forgotten step-child of clojure data science dreams or ready for a renaissance? Cheers, Avram On Saturday, January 25, 2014 9:39:36 AM UTC-8, Stuart Sierra wrote: > > New Clojure librar

StackOverflow TV Opportunity to Promote Clojure

2014-09-03 Thread A. Webb
StackOverflow just announced an experimental project to produce videos in its New York City office. This could be a great opportunity to polish up one of your presentations and promote Clojure to a wide audience. No speaker fees, but reasonable travel costs covered. Post: http

Java like static typing for Clojure?

2016-10-15 Thread A. Levy
Have you heard of Typed Clojure? (http://typedclojure.org) It is an optional, gradual type system for Clojure. Does it offer enough to be useful or are you looking for something different? -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to t

Any plan to add log4j 2 support to tools.logging?

2015-11-19 Thread Didier A.
Hi all, I was wondering if any work is being planned on tools.logging to add log4j 2 support? -- 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 moderate

Similar lisps and emacs reimplementations?

2016-03-19 Thread A. Levy
Can you elaborate a little more on those nightmare scenarios? From my (amateur) reading of the EPL, it looks like the patent clauses apply to contributors to the program. In this case, Clojure. Does developing something in Clojure force you to release it under the EPL? -- You received this

Re: Function from a symbolic expression

2014-03-31 Thread A. Webb
On Monday, March 31, 2014 12:13:25 PM UTC-5, Jony Hudson wrote: > > > (defmacro functionalise > [ex var] > (let [arg (gensym) > body (postwalk-replace {var arg} ex)] > `(fn [~arg] ~body))) > > This works as written, it is just that macros do not evaluate their arguments, so you d

Re: Strange behaviour for proxy when two abstract classes are passed in

2014-04-01 Thread A. Webb
On Monday, March 31, 2014 4:34:17 PM UTC-5, zcaudate wrote: > > I know this is a silly example but I am curious to know what is happening > with the proxy method. > > I have set up two calls to proxy: > > 1. > (def cp > (proxy [java.util.AbstractMap clojure.a

Re: REPL: viewing data structures containing infinite lists

2014-04-01 Thread A. Webb
On Tuesday, April 1, 2014 11:00:37 AM UTC-5, Andreas Liljeqvist wrote: > > Is there any good reason for not providing a default value for > *print-length*? > I think that if you *really* want to print a list containing 100K items, > you would have to set *print-length*. > &g

Re: Basic string modification question

2014-04-02 Thread A. Webb
Using subs (no need for join) is the way I would go, just define (defn replace-at [s n c] (str (subs s 0 n) c (subs s (inc n (replace-at "hello" 1 "a") ;=> "hallo" and carry on. -- You received this message because you are subscribed to the

Re: remove first?

2014-04-02 Thread A. Webb
gt; (remove #(= [1 2] %) {1 2 3 4}) > ([3 4]) > com.example.myapp=> (remove-first #(= [1 2] %) {1 2 3 4}) > UnsupportedOperationException nth not supported on this type: > PersistentArrayMap clojure.lang.RT.nthFrom (RT.java:835) > To fix that, use `seq` on the collection

Re: Fn as value matcher in core.match

2014-04-07 Thread A. Webb
It is always matching the first clause because it is getting translated into a `let` binding. In match, the left-hand side `get` is just a symbol, not the `var` it resolves to, so might as well be `(let [fun assoc] (match fun foo "foo!"))` where `foo` will just be bound to `assoc`.

Re: How do I detect the end of a file without catching an exception?

2014-04-07 Thread A. Webb
; > "Returns forms from src (assumed to be Clojure source) as a lazy > sequence > > of expressions" > > [^java.io.PushbackReader src] > > (when-let [expr (read src)] > > (try > > (cons expr (lazy-seq (expr-seq src))) > >

Re: Lazy sequence - how they work internally

2014-04-07 Thread A. Webb
The point was you aren't using lazy-seq as intended here since you are always creating a singleton sequence. What's going on behind the scenes here is in effect just trampolining thunks. (defn thunked-sum [sum coll] (if-let [[x & more] (seq coll)] (fn [] (thunked-sum

Re: Lazy sequence - how they work internally

2014-04-08 Thread A. Webb
On Tuesday, April 8, 2014 7:57:10 AM UTC-5, sorin cristea wrote: > > > What exactly you mean by '*The point was you aren't using lazy-seq as > intended here since you are always creating a singleton sequence*' ? In > my sum function...I intend to compute s

Re: Name for this pattern: side-effect from swap!

2014-04-08 Thread A. Webb
See https://groups.google.com/d/topic/clojure/2dHvX7bf7nA/discussion, http://stackoverflow.com/a/22409846/1756702, where the old and new state of an atom is returned using the lower-level compare-and-set! operation. On Tuesday, April 8, 2014 10:41:50 AM UTC-5, John Hume wrote: > > I som

Re: Questions regarding Map vs Record and usage

2014-04-09 Thread A. Webb
e behavior as desired. On Wednesday, April 9, 2014 1:51:01 PM UTC-5, Anthony Ortiz wrote: > > I see that there are several ways of instantiating a record : > > > (->Book "Lord of the Rings", "Tolkien") > > (Book. "Lord of the Rings", "Tolkien&

Re: The Cons in iterate's return value

2014-04-17 Thread A. Webb
On Wednesday, April 16, 2014 10:35:14 PM UTC-5, Mars0i wrote: > > > But then should realized? be able to deal with a Cons containing a LazySeq? > > (Is this an issue worthy of JIRA? I've never submitted there, and am not > sure I know enough to do so. Willing to try t

Re: regex

2014-04-18 Thread A. Webb
On Friday, April 18, 2014 8:28:03 AM UTC-5, Thumbnail wrote: > > > I had a couple of insights. First, to allow the dfa to be generated >> programmatically, I changed it from a map to a vector. This means >> that the next state can just be an integer. Second, I decided

Re: Best way to create a namespace at runtime from a web app

2014-04-24 Thread A. Webb
Have you tried the aptly named create-ns ? -- 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

Re: [ANN] Clojure 1.6.0-alpha3

2013-11-22 Thread a...@puredanger.com
Please be aware that we expect to make changes to the API package and class name in the next alpha based on a discussion today so you may want to wait for RC for that! On Nov 22, 2013, at 11:06 PM, wrote: > Thank you. > > I’d like to take this opportunity to thank the Clojure/core

Re: Cannot sen msg to #clojure channel

2010-08-11 Thread Ernesto A.
rv identify > > It's a protection so that nobody else uses limux1972 when you're not > online. > > (you also need to register limux1972, but I don't remember how) > > 2010/8/10 limux > > Why? My nickname in #clojure is limux1972. >> >> -- >

cool compiler-project?

2010-08-18 Thread Sreeraj a
Hi, I am a post-grad student looking for a cool compiler - project to do. I am getting comfortable with clojure and would really like to help Ideas anyone? or, Is there a to-do list where can i start? Cheers Sreeraj -- You received this message because you are subscribed to the Google Groups

Re: cool compiler-project?

2010-08-22 Thread Sreeraj a
What about automatic memoization? Does clojure already implement memoization? is adding auto memoization to the compiler a good idea? -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroup

Re: Clojure 1.3: Integrating clj-stacktrace?

2010-08-25 Thread Sreeraj a
ot some other > core.clj, from looking at line 5. > > On Aug 25, 7:06 am, David Jagoe wrote: > > Ahoy, > > > > On 25 August 2010 15:46, Stuart Halloway > wrote: > > > > > > > > > *Specific* documentation of pain points also welcome. >

Re: cool compiler-project?

2010-09-07 Thread Sreeraj a
Hi, I'm trying to develop a clojure compiler for LLVM. may need a small nudge in the right direction. anyone who can mentor me on this project? Thanks Sreeraj. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group

Re: Concerned about Clojure's license choice.

2008-11-02 Thread a r
very liberal and I am pretty happy with this choice. This is not our decision after all - it's the author who decides what people can do with _his_ code. Still, for me a dual CPL/LGPL license would be nicer. This is purely for practical reasons - Java itself going GPL, reusing (those few) GPL J

macro help

2008-12-26 Thread what-a-guy
I'm attempting what should be a simple transformation using a macro called dlg in the following code: (defn fld [parent lay id text field] '...) ;; dlg macro. For this input: ;; ;; (dlg "test" ;; (field fld-1 "Field number one" (JTextField.)) ;; (field fld-2

macro help

2008-12-26 Thread what-a-guy
I'm attempting what should be a simple macro transformation (dlg below): (defn fld [parent lay id text field] '...) ;; dlg macro. For this input: ;; ;; (dlg "test" ;; (field fld-1 "Field number one" (JTextField.)) ;; (field fld-2 "Field number two" (

macro help

2008-12-26 Thread what-a-guy
I'm getting stuck on what should be a simple macro (dlg below). It produces 2 different symbols (for 'parent#) when I was expecting both to refer to the same symbol. Here's the code: (defn fld [parent lay id text field] '...) ;; dlg macro. For this input: ;; ;; (dlg &qu

macro help

2008-12-26 Thread what-a-guy
I'm attempting what should be a simple transformation using a macro called dlg in the following code: (defn fld [parent lay id text field] '...) ;; dlg macro. For this input: ;; ;; (dlg "test" ;; (field fld-1 "Field number one" (JTextField.)) ;; (field fld-2

variable scope in an event handler

2008-12-27 Thread what-a-guy
Here's some code that works as I expected: dyn.clj (println *value*) test.clj (def *value* 'ok) (defn test-eval [] (load-file "dyn.clj")) (test-eval) => 'ok But when run in an event handler it fails: test.clj (import '(javax.swing JButton JFrame) '(java.aw

JTable howto

2009-02-11 Thread what-a-guy
How would I code the following in clojure? JTable table = new JTable(new MyTableModel()) { ... //Implement table header tool tips. protected JTableHeader createDefaultTableHeader() { return new JTableHeader(columnModel) { public String getToolTipText(MouseEvent e)

Re: JTable howto

2009-02-12 Thread what-a-guy
a.awt BorderLayout)) (defn my-table "cols is a seq of form ((\"Name\" String) (\"Married?\" Boolean)...) row-count-proc is a 0-ary proc which returns the number of data rows. get-value-at-proc is 2-ary proc (row col) which returns value. set-value-at-proc (optional) is a

Re: Simple functional programming lexicon?

2010-03-19 Thread Michael A Wright
You might want to check out: > http://peepcode.com/products/functional-programming-with-clojure -- 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 moder

which are the pros and cons between stuartsierra/component and prismatic/graph?

2015-02-04 Thread Juan A. Ruz
Hi guys! Can anyone give some insight on the features or downsides of choosing component vs graph libs? Or maybe explain the advantages of using defrecords instead of plain fns? thanks in advance! Juan -- You received this message because you are subscribed to the Google Groups "Clojure" gro

Re: Clojure Full Syntactical Reference

2012-12-17 Thread Karim A. Nassar
doc gives the "doc string" built into Clojure. cdoc gives the examples > from ClojureDocs.org for that symbol, as long as you have an Internet > connection. > > Andy > > On Dec 14, 2012, at 3:40 PM, linc...@redhandgaming.net wrote: > > > I'm learning Clojure,

Re: Erlang like environment

2010-04-14 Thread Jose A. Ortega Ruiz
gary ng writes: > Hi, > > I just start to learn about clojure and is wondering if there is any > erlang like environment for clojure ? I don't know whether such an environment already exists, but, if not, one could hack one based on Kilim (http://www.malhar.net/sriram/kilim/)... klijim anyone? :

Re: Installing Clojure in Emacs

2010-04-19 Thread Jose A. Ortega Ruiz
se in the > buffer: "[no match]". Sorry if i'm saying the obvious, but are you hitting RET after 'M-x describe-variable'? Another way to run that command is 'C-h v' (after which you'll be prompted by the name of the variable to describe). hth, jao -- One

Re: Clojure in production

2013-06-12 Thread Jose A. Ortega Ruiz
Hi Plinio, On Mon, Jun 10 2013, Plínio Balduino wrote: > Hi there > > I'm writing a talk about Clojure in the real world and I would like to > know, if possible, which companies are using Clojure for production or > to make internal tools. At BigML, our backend is written a

Re: which are the pros and cons between stuartsierra/component and prismatic/graph?

2015-02-05 Thread Juan A. Ruz @tangrammer
pt to extend defrecords tangrammer/defrecord-wrapper <https://github.com/tangrammer/defrecord-wrapper> , and milesian/aop <https://github.com/milesian/aop> the component integration one El miércoles, 4 de febrero de 2015, 13:46:33 (UTC+1), Juan A. Ruz @tangrammer escribió:

Which could be the best clojure alternative to replace play framework?

2015-04-09 Thread Juan A. Ruz @tangrammer
Hi guys, just looking for possible (and hopefully experienced) directions to replace Play Framework and its popular Akka support that as the doc page states <https://www.playframework.com/documentation/2.0/JavaAkka>: "Akka provides a better platform to build correct concurrent a

wondering the reasons to choose defrecord vs reify in stuartsierra/component

2015-04-29 Thread Juan A. Ruz @tangrammer
Hi guys, I'm just wondering the pros/contras that justify to choose defrecord vs reify as component fn constructor. in the component README we can read "To create a component, define a Clojure record that implements the Lifecycle protocol." Yes I know that "defrecord

Re: separation of concerns w/o encapsulation

2015-05-13 Thread Juan A. Ruz @tangrammer
urring over time, leading to the big ball of mud: a > very fragile code base where everything depends on everything else. > > E.g. if you model your application with a plain data structure which you > pass around to different modules, each concerned with a small part of that >

Re: [ANN] Edneditor.com

2016-06-24 Thread 'Adrian A.' via Clojure
> > Very rudimentary at this point - so a lot of TODOs. But have a look, let > me know your thoughts. Hopefully it can help you out. > > Seeing the name of the project, my first thought was: maybe finally a web based component/editor like https://github.com/josdejong/jsonedit

Re: Frustrations so far

2016-07-23 Thread 'Adrian A.' via Clojure
The point is that an 'Integer' > (abstraction) has no sense of 'emptiness' or 'fullness'. > > IMHO that might be true for a statically typed language, but in the case of a dynamic language like Clojure it makes perfect sense, and most users expect

Re: Lym - written by clojurescript and react native is on apple store

2016-08-28 Thread 'Adrian A.' via Clojure
> also support 1-on-1 video chat Could you please detail how was this feature implemented? 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 from new members are mode

Re: slackpocalypse? next steps?

2017-05-29 Thread 'Adrian A.' via Clojure
> We’re almost certainly not going to find a *replacement* for Slack (or any other communications medium) Have you tried Mattermost? - https://about.mattermost.com/ - https://github.com/mattermost/platform regards. -- You received this message because you are subscribed to the Goo

Re: Flow control in Clojure

2015-12-09 Thread Juan A. Ruz @tangrammer
1) decompose functions into smaller functions, regardless of these helper > functions being of no use anywhere else. > 2) define a bunch of helper functions in a top-level let-expression - > again to avoid having functions which are too heavily indented? Cheers! El martes, 8 de

[ANN] DEEP-IMPACT-AG/flowgic

2016-02-02 Thread Juan A. Ruz @tangrammer
Hi guys, here sharing an (alpha) approach to write logic flows in a declarative way https://github.com/DEEP-IMPACT-AG/flowgic One of the final purposes of this utility is to visualise the intended/written logic as you can see here https://cloud.githubusercontent.com/assets/731829

Re: dependency problem

2016-05-13 Thread Juan A. Ruz @tangrammer
codec "1.9"] [twitter-api "0.7.8"]] El viernes, 13 de mayo de 2016, 10:27:34 (UTC+2), Alan Forrester escribió: > > I have been trying to use the Twitter API library by Adam Wynne: > > https://github.com/adamwynne/twitter-api > > and it appears to hav

Re: dependency problem

2016-05-13 Thread Juan A. Ruz @tangrammer
:dependencies [[org.clojure/clojure "1.7.0"] [commons-codec "1.9"] [twitter-api "0.7.8" :exclusions [commons-codec]]] Hope it works for you! Juan El viernes, 13 de mayo de 2016, 12:41:43 (UTC+2), Juan A. Ruz @

clojure-jack-in vs. slime-connect

2011-08-17 Thread Jose A. Ortega Ruiz
i was wondering: is the stand-alone slime package deprecated or lagging respect to the one that gets loaded by clojure-jack-in? Or are both kept in sync, so that i'm not missing any new functionality or fixes by using the slime-connect way? Thanks, jao -- The folly of mistaking a paradox for a di

Re: on lisp and scheme macros

2011-12-05 Thread Jose A. Ortega Ruiz
On Sat, Dec 03 2011, Stuart Sierra wrote: > I think that Common Lisp macros are, strictly speaking, more powerful > than Scheme macros, but I don't have a citation. That's only true for syntax-rules macros. syntax-case macros, which most schemes provide and are required by R6R

Re: on lisp and scheme macros

2011-12-06 Thread Jose A. Ortega Ruiz
Hi Tassilo, On Tue, Dec 06 2011, Tassilo Horn wrote: > "Jose A. Ortega Ruiz" writes: > > Hi Jose, > >>> I think that Common Lisp macros are, strictly speaking, more powerful >>> than Scheme macros, but I don't have a citation. >> >> That

playing with metadata

2008-10-24 Thread Jose A. Ortega Ruiz
Hi, In order to learn and experiment with clojure, i'm implementing a (for now, toy) build system. The idea is to replace makefiles or ant build files or your-favourite-make-replacement files by specifications written in a clojure-based embedded DSL (same thing as, for example, Rake or

Re: playing with metadata

2008-10-24 Thread Jose A. Ortega Ruiz
Hi Stuart and Rich, Stuart Halloway <[EMAIL PROTECTED]> writes: > Hi Jose, > > The key determinant of metadata in Clojure is whether the data is > orthogonal to equality. Would two tasks with identical behavior but > different staleness predicates be equal? I