Re: Complex swap!

2016-02-02 Thread Jochen
Hi Steve… thanks for all the pointers. Seems that someone is already on it... :-) Ciao …Jochen -- 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 modera

Re: Suggestions for open source contributions?

2016-02-02 Thread Mikera
If you are interested in data science, help with core.matrix and the associated libraries is always appreciated, and we are very contributor-friendly in the numerical Clojure community. On Monday, 1 February 2016 18:51:37 UTC+8, Steven Deobald wrote: > > Hey folks! > > Today is the first day nil

Re: Power function

2016-02-02 Thread Mikera
There is a `pow` function in core.matrix, that computes powers over whole arrays at the same time. Tests / patches to improve this always welcome. On Tuesday, 3 June 2008 16:55:15 UTC+8, Jon wrote: > > As I could not find a ** function in boot.clj, I wrote this one: > > (defn ** > "nth

Re: Power function

2016-02-02 Thread Jon
Thanks, all of you! I had totally forgotten about this topic. After all, it's almost 8 years since I posted my question to this group. ;-) tirsdag 2. februar 2016 09.24.34 UTC+1 skrev Mikera følgende: > > There is a `pow` function in core.matrix, that computes powers over whole > arrays at the s

Re: Suggestions for open source contributions?

2016-02-02 Thread Gregg Reynolds
On Tue, Feb 2, 2016 at 2:22 AM, Mikera wrote: > If you are interested in data science, help with core.matrix and the > associated libraries is always appreciated, and we are very > contributor-friendly in the numerical Clojure community. > Speaking of which, the topic of Clojure came up on the

Re: How is the emphasis of “data over code” different than the XML advocacy of the early 2000s?

2016-02-02 Thread Mikera
I share the same unease. I haven't quite fully been able to articulate all the reasons, but here are the things that concern me most: 1) Completing the API for data access with the representation This is my biggest issue. Good practice IMHO is to keep APIs abstracted from underlying implementat

Re: How is the emphasis of “data over code” different than the XML advocacy of the early 2000s?

2016-02-02 Thread Colin Yates
I think the message is 'data doesn't have to be code' not 'code should be expressed in data' which is significantly different. XML went wrong because people tried to write code in XML. Nobody (I think) is saying explicitly that we should write code, logic etc. as data only that there is no need to

Re: How is the emphasis of “data over code” different than the XML advocacy of the early 2000s?

2016-02-02 Thread Colin Yates
I see the same issues/feel the same pain, but I attribute it much more to dynamic typing than data. Changing the API is always going to be expensive but without typing we pretty much to do it without tool support. Even in Java and the magic of IDEs there is still pain - changing the return type of

[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/10277888

The empty string can become a symbol, but it can't be resolved

2016-02-02 Thread SanjayL
Ran into this weird case while writing some test code: user=> (symbol "") user=> (symbol? (symbol "")) true user=> (ns-resolve *ns* (symbol "")) StringIndexOutOfBoundsException String index out of range: 0 java.lang.String.charAt (String.java:658) I'm guessing that the ghost symbol should reso

Re: [ldnclj] Re: Suggestions for open source contributions?

2016-02-02 Thread Chris Howe-Jones
Another open source library that has some real momentum behind it at the moment is baid-chat https://github.com/braidchat/meta/wiki . It's the Clojure Communities OSS alternative to Slack. Why is it needed? Lots of reasons that are elaborated in the moti

Re: [ldnclj] Re: Suggestions for open source contributions?

2016-02-02 Thread Bozhidar Batsov
If you're into tooling - there's always plenty of work to be done on cider-nrepl (https://github.com/clojure-emacs/cider-nrepl) :-) On 2 February 2016 at 10:28, Chris Howe-Jones wrote: > Another open source library that has some real momentum behind it at the > moment is baid-chat https://github

Re: Attempting to call unbound fn

2016-02-02 Thread Gary Verhaegen
My first step would be to run lein deps :tree On the project where the error appears, and look for unexpected versions of dependencies. On Monday, 1 February 2016, Pedro Santos wrote: > Hello, > > I'm referencing a fn on another lib/namespace. Is this one: > > https://github.com/clanhr/clanhr-

[ANN] boot-criterium 0.2.0 - Tasks that run your benchmarks!

2016-02-02 Thread platonovadim
Hello all, we're pleased to announce boot-criterium - a simple way to benchmark code using Criterium. The only prerequisites are JVM and Boot , the glorious build tool. You can even call it from the command line! bo

Re: How is the emphasis of “data over code” different than the XML advocacy of the early 2000s?

2016-02-02 Thread Laws
> I don’t know much about why the industry seems to have rejected XML as “bad” Off-topic, but I think 2 issues dominated 1.) Unnecessary complexity in the standards: http://harmful.cat-v.org/software/xml/soap/simple 2.) draconian error-checking. I assume the move to JSON was to get away from

Re: [ldnclj] Re: Suggestions for open source contributions?

2016-02-02 Thread Jason Felice
We have a lot of focus on being new-Clojurian and new-programmer friendly for Avi, including being able to spend a couple hours a week remote-pairing. I think this is a good project if the person is familiar with (or especially fond of) Vim. https://github.com/maitria/avi -Jason On Tue, Feb 2,

Re: How is the emphasis of “data over code” different than the XML advocacy of the early 2000s?

2016-02-02 Thread Frank Castellucci
Josh To assume there is/was a problem because someone said so will waste your time. Through all the religious zealotry and opposing opinions, my comment would be: "Eschew commentary. View each technology option as a tool in your tool-belt, and expand it as time goes on. When the right problem

Re: Counting nodes in two seperate subtrees

2016-02-02 Thread Frank Castellucci
On SO: http://stackoverflow.com/questions/35136560/counting-nodes-in-two-different-subtrees-in-clojure On Monday, February 1, 2016 at 1:16:31 PM UTC-5, xCaM wrote: > > Hi > > Im trying to write the functions for this probem > > https://uva.onlinejudge.org/external/116/11615.pdf > > as i'm new

Re: How is the emphasis of “data over code” different than the XML advocacy of the early 2000s?

2016-02-02 Thread Gregg Reynolds
On Mon, Feb 1, 2016 at 4:02 PM, Josh Tilles wrote: > As I’m watching Michael Drogalis’s Clojure/Conj 2015 presentation “Onyx: > Distributed Computing for Clojure” > , I'm distracted by a > nagging worry that we —as a community— are somehow falling in

Re: Counting nodes in two seperate subtrees

2016-02-02 Thread Dmitry Lipovoi
This solution will be quite slow for large N (which is height of the tree). Even more, you don't have to build and/or traverse a tree to solve this problem at all. Hint: number of nodes in full binary tree of height k is 2^{k+1} - 1. On Tue, Feb 2, 2016 at 8:40 PM, Frank Castellucci wrote: > >

Re: How is the emphasis of “data over code” different than the XML advocacy of the early 2000s?

2016-02-02 Thread Alan Thompson
I do think the whole "code is data" thing is a bit overstated. The earliest computers used paper tape for data records: At Bletchley Park, the "data" (ciphertext to be broken) was encoded onto the paper tape in the photo. The "code" was hardwired into the design of the machine & its electronics,

Re: How is the emphasis of “data over code” different than the XML advocacy of the early 2000s?

2016-02-02 Thread kovas boguta
XML is data, but its data that thwarts easy manipulation from a programming language. It doesn't cleanly map onto computational concepts. Quick: how many ways can you represent key-value pairs in XML? Of course, its also a disaster from an efficiency point of view, since there is basically only 1

Re: How is the emphasis of “data over code” different than the XML advocacy of the early 2000s?

2016-02-02 Thread Herwig Hochleitner
2016-02-02 20:41 GMT+01:00 kovas boguta : > XML is data, but its data that thwarts easy manipulation from a > programming language. It doesn't cleanly map onto computational concepts. > How so? I mean, rolling key-value access and positional access into a single data-structure, php-style, isn't t

Re: The empty string can become a symbol, but it can't be resolved

2016-02-02 Thread Herwig Hochleitner
While there is no reader syntax for the empty symbol, I agree that the StringIndexOutOfBoundsException is wonky and should be fixed. Though some might view it as a consequence of clojure's GIGO philosophy, I don't concur with such arguments, because the separation of read and eval is there for a re

[ANN] walmartlabs/active-status 0.1.2

2016-02-02 Thread Howard Lewis Ship
Library for allowing a command line application to report status of multiple asynchronous jobs using an update-in-place status board implemented using terminal capabilities. Jobs push updates into the status board via core.async channels. Handy for really long running commands. https://github.co

Re: How is the emphasis of “data over code” different than the XML advocacy of the early 2000s?

2016-02-02 Thread Gary Schiltz
Joining the "dump on XML" bandwagon, I believe that adoption of RDF and OWL a decade ago was greatly hindered by the W3C's decision to embrace XML as the serialization mechanism. I suspect I wasn't the only semantic web hacker to adopt the much simpler N3 and turtle notations for human consumpt

Re: How is the emphasis of “data over code” different than the XML advocacy of the early 2000s?

2016-02-02 Thread Mark Engelberg
On Tue, Feb 2, 2016 at 2:05 AM, Mikera wrote: > I share the same unease. I haven't quite fully been able to articulate all > the reasons, but here are the things that concern me most: > > 1) Completing the API for data access with the representation > 2) Refactoring challenges > 3) Performance >

Re: How is the emphasis of “data over code” different than the XML advocacy of the early 2000s?

2016-02-02 Thread kovas boguta
On Tue, Feb 2, 2016 at 3:45 PM, Herwig Hochleitner wrote: > > basically attributes, and child elements > In general yes, but there are endless specific ways to do this. Do you represent a kv-pair as a single element? Do you have and as elements? Or do you use the name of the key as the name of

Re: How is the emphasis of “data over code” different than the XML advocacy of the early 2000s?

2016-02-02 Thread Herwig Hochleitner
2016-02-02 23:34 GMT+01:00 kovas boguta : > > In general yes, but there are endless specific ways to do this. Do you > represent a kv-pair as a single element? Do you have and as > elements? Or do you use the name of the key as the name of the element? And > then multiply that times the opportun

Re: [ANN] walmartlabs/active-status 0.1.2

2016-02-02 Thread Leon Grapenthin
That seems like a cool thing to have. Thank you. On Tuesday, February 2, 2016 at 10:31:10 PM UTC+1, Howard M. Lewis Ship wrote: > > Library for allowing a command line application to report status of > multiple asynchronous jobs using an update-in-place status board > implemented using termina

Re: How is the emphasis of “data over code” different than the XML advocacy of the early 2000s?

2016-02-02 Thread kovas boguta
On Tue, Feb 2, 2016 at 6:15 PM, Herwig Hochleitner wrote: > > When dealing with ground tags generically (like data.xml does), i.e. the > mapped-to structures add no information over the ground tags, I'd say it > would be still pretty easy to create a reader, which uses optimized > structures for c

Re: What's the best option similar to Vert.x, Reactor, Nodejs for use with Clojure?

2016-02-02 Thread Zach Tellman
This is incidental to the topic of the thread, but to address why Manifold exists when there's already core.async, there's a write-up of the rationale linked in the readme: http://aleph.io/manifold/rationale.html. On Saturday, January 23, 2016 at 6:50:34 AM UTC-5, qsys wrote: > > Depends on what

Re: [ldnclj] Re: Suggestions for open source contributions?

2016-02-02 Thread Steven Deobald
Wow, folks. This is a fantastic list. It is really helpful to know not only a project's contribution needs but also the maintainer's appetite for working with newer/younger contributors. Our mentoring process will proceed for another week or two. In the meantime, we'd love to see more suggestions.