Q: How to parse stream of text (from java.io.Reader) via instaparse with minimal input consuption

2015-01-14 Thread David Pidcock
I didn't know Instaparse supported readers. Is there no way to read from the stream into a string until the terminal character for your grammar is found and parse that ? I assume you have no control over the source data? -- You received this message because you are subscribed to the Google

Re: DSL in RTL (Right to Left) languages.

2015-01-14 Thread Sam Raker
I think there's something to be said for non-English programming languages, primarily for the reasons the OP suggested--toy/beginner languages to get more people coding. Languages are judged for readability and similar metrics, with (standard) English as the yardstick. Code in English because

Re: [ANN] Clojure 1.7.0-alpha5 now available

2015-01-14 Thread Andy Fingerhut
Nicola, who is patient enough to remind me of things we have talked about already before. Now I recall running across this weirdness in the Manifold library before, since it caused Eastwood to fail when run on Manifold. Created a Clojure ticket to record anything discovered about this issue, or

AOT Compilation Error on Clojure 1.7.0-alpha5

2015-01-14 Thread Sam Ritchie
Hey all, I'm trying to bump my project to the latest alpha (5), and my AOT compilation test now throws this error when compiling a file that requires Prismatic's schema: Caused by: java.lang.ClassCastException: schema.utils.SimpleVCell cannot be cast to schema.utils.PSimpleCell Here's the

[ANN] Clojure/West 2015 Call for Presentations

2015-01-14 Thread Alex Miller
Hello Clojure fans! We will be returning to Portland (same theater as 2013) for Clojure/West this year on April 20-22nd and workshops on the weekend prior. We currently plan to have tickets on sale Monday - see http://twitter.com/clojurewest and http://clojurewest.org for more info and last

remote nrepl/gorilla + port forwarding

2015-01-14 Thread Sam Raker
I've got a computer with a bunch of clojure code on it, sitting at home on my home network. I've configured my router to forward port 5 on that computer to port 5 on the router itself, so that, at least in theory, ROUTER_IP:5 should be forwarded to THAT_COMPUTER:5, if that makes

Re: Q: How to parse stream of text (from java.io.Reader) via instaparse with minimal input consuption

2015-01-14 Thread Sam Raker
How structured/delimited is the other part? Could you write your parser in such a way as to parse what you want and then return the rest as a single chunk you could then pass to something else? On Tuesday, January 6, 2015 at 11:50:26 AM UTC-5, henrik42 wrote: Hi all, I want to parse a

Re: AOT Compilation Error on Clojure 1.7.0-alpha5

2015-01-14 Thread Sean Corfield
Do you perhaps have both AOT and JIT versions of that namespace loaded? See the thread that this post is part of: https://groups.google.com/d/msg/clojure/jj87-4yVlWI/UpsYOPZ3FicJ https://groups.google.com/d/msg/clojure/jj87-4yVlWI/UpsYOPZ3FicJ Following Nicola’s suggestion, I built a version

ANN: konserve 0.2.3

2015-01-14 Thread Christian Weilbach
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello! I'd like to announce a new version of konserve, https://github.com/ghubber/konserve The filestore can be considered beta now, I have put some effort into flushing all streams and synchronising file-descriptors as is expected for atomicity

[ANN] freactive.core - generalized reactive atom, cursor and expression library

2015-01-14 Thread Aaron Craelius
I have separated the code for reactive atoms, cursors and expressions from freactive (https://github.com/aaronc/freactive) into a separate freactive.core library: https://github.com/aaronc/freactive.core. The code for these data structures has evolved significantly since I released freactive,

[ANN] fx-clj - Clojure library for JavaFX that supports reactive programming

2015-01-14 Thread Aaron Craelius
Finally, an official release of fx-clj, my Clojure library for JavaFX: https://github.com/aaronc/fx-clj. I've been using it for quite a number of months now and most of the core functionality is pretty stable. This library works with my freactive.core ( https://github.com/aaronc/freactive.core)

Re: [ANN] Clojure 1.7.0-alpha5 now available

2015-01-14 Thread Andy Fingerhut
I can reproduce this. I have also determined that the change in behavior is due to the patch applied for ticket CLJ-1544 [1] [2]. There doesn't appear to be an actual dependency cycle in the manifold lib, but I've only looked at this for a few mins. Andy [1]

Re: [ANN] Clojure 1.7.0-alpha5 now available

2015-01-14 Thread Nicola Mometto
There actually is a dependency cycle in manifold, it's just not in the ns macro: manifold.stream.graph depends on manifold.graph here: https://github.com/ztellman/manifold/blob/master/src/manifold/stream/graph.clj#L5 maniphold.stream depends on manifold.stream.graph here:

Re: [ANN] Clojure 1.7.0-alpha5 now available

2015-01-14 Thread Janne Lemmetti
I noticed that with alpha5, I can no longer build an uberjar with {:aot :all} if I depend on [gloss 0.2.4]: $ lein uberjar Compiling alpha5-test.core java.lang.Exception: Cyclic load dependency: [ /manifold/stream ]-/manifold/stream/graph-[ /manifold/stream

Re: modifying a single item in a list: is a map the right choice?

2015-01-14 Thread Josh Stratton
That's cool, but I may be reading this from a file like json, applying the change, and writing it back. Changing it to a sorted list would take linear time anyway, right? And I'd just be writing it back out immediately. Still this seems like a very clean solution. I'll have to read up on how

Re: modifying a single item in a list: is a map the right choice?

2015-01-14 Thread Fluid Dynamics
On Thursday, January 15, 2015 at 1:24:14 AM UTC-5, strattonbrazil wrote: Noob clojure question. I have a list of items and I want to append a subitem to one of them. They're currently unkeyed because I care about the order and it seemed more intuitive that way. (def items [{ :id 1

Re: modifying a single item in a list: is a map the right choice?

2015-01-14 Thread Fluid Dynamics
On Thursday, January 15, 2015 at 1:44:12 AM UTC-5, strattonbrazil wrote: That's cool, but I may be reading this from a file like json, applying the change, and writing it back. Changing it to a sorted list would take linear time anyway, right? And I'd just be writing it back out

modifying a single item in a list: is a map the right choice?

2015-01-14 Thread Josh Stratton
Noob clojure question. I have a list of items and I want to append a subitem to one of them. They're currently unkeyed because I care about the order and it seemed more intuitive that way. (def items [{ :id 1 :subitems [] } { :id 2 :subitems [] }]) So let's say I want a new list where the

Re: [ANN] Clojure 1.7.0-alpha5 now available

2015-01-14 Thread Colin Fleming
I discovered this problem with Cursive too. Stephen Gilardi had a great analysis when I asked about it here: https://groups.google.com/d/topic/clojure/wrVFuCjf0_Y/discussion. tl;dr - Clojure only produces an error on dependency cycles when the dependencies appear in the ns form, or at least did

Re: DSL in RTL (Right to Left) languages.

2015-01-14 Thread Jesse Alama
On Wednesday, January 14, 2015 at 2:42:57 PM UTC+1, clojur...@gmail.com wrote: Thanks Jan, Good idea! It is just a hobby project for now... I am thinking of a language for kids (8+) . Would be interesting to see how kids react to programming in a more familiar language. Some similar

Re: DSL in RTL (Right to Left) languages.

2015-01-14 Thread Dennis Haupt
i encountered a german progamming language once. it was terrible. everybody should stick to english when it comes ot programming - you have to do it anyway, and there is no reason not to go ahead and learn a language since that is what brains are built for 2015-01-14 17:11 GMT+01:00 Jesse Alama

Re: ANN: Om 0.8.0-rc1

2015-01-14 Thread Sam Ritchie
I'm getting the same thing. Did you guys resolve this? Kristofer Svärd mailto:kristofer.sv...@gmail.com January 2, 2015 at 10:55 AM Do I still need to specify an externs file when compiling with advanced optimization? I found that from Om 0.8.0-beta4 specifying both :optimizations :advanced

Re: ANN: Om 0.8.0-rc1

2015-01-14 Thread Sam Ritchie
Looks like we don't need to manually specify externs: https://github.com/swannodette/om/commit/343ec3fefc038850f9ddc4c20463213fd09d1368 Sam Ritchie mailto:sritchi...@gmail.com January 14, 2015 at 10:31 AM I'm getting the same thing. Did you guys resolve this? Kristofer Svärd

Re: DSL in RTL (Right to Left) languages.

2015-01-14 Thread clojure . user
Thanks Jan, Good idea! It is just a hobby project for now... I am thinking of a language for kids (8+) . Would be interesting to see how kids react to programming in a more familiar language. Thanks On Wednesday, January 14, 2015 at 1:09:28 PM UTC+5:30, Jan-Paul Bultmann wrote: I would

How to generate debug info (source file name) in protocol classes?

2015-01-14 Thread fabiot
Hi all, through javap -v I can find Clojure-generated debug information in datatype classfiles but not in protocol ones. I'm especially interested in the name of the source file. Does a way currently exist to get this information for protocols? Thanks - Fabio -- You received this message