On Jun 4, 2014, at 3:31 AM, Michael Klishin mklis...@gopivotal.com wrote:
Feel free to contribute this feature:
https://github.com/michaelklishin/langohr/issues/47
I'll have the new guy do it when he starts in August.
Let us go then, TMI,
When their profiles are spread out against
On 4 June 2014 at 18:21:51, Brian Marick (br...@getset.com) wrote:
I'll have the new guy do it when he starts in August.
Hopefully it'll be done by then ;)
--
MK
Software Engineer, Pivotal/RabbitMQ
--
You received this message because you are subscribed to the Google Groups
Once you notice that you usually need a fast solution. The easiest solution
is to just pass around an instance of java.util.Random which you create
with the desired seed. Another options is to have a constructor function
returning a rand function.
(defn prng [seed]
(let [rnd
Hi Jeffrey,
'Jeffrey Cummings' via Clojure clojure@googlegroups.com writes:
You may want to look at Docjure https://github.com/mjul/docjure
It parses .xlsx files it may be able to parse .odt files.
Thanks, but I don't see anything in docjure about parsing .odt files.
Or am I missing
Hi Denis,
Denis Fuenzalida denis.fuenzal...@gmail.com writes:
I've created a small gist which shows how to use the ODFDOM API which
is much simpler to use:
https://gist.github.com/dfuenzalida/a1e9755e9b2e7f638620
Thanks a lot for this! I tested it and I can get the human readable
text from
Hi
Pantomime right now doesn't support the text extraction, but you can take
the https://github.com/alexott/clj-tika (outdate although) - it uses the
Apache Tika for text extraction
On Wed, Jun 4, 2014 at 1:27 AM, Bastien bastiengue...@gmail.com wrote:
Hi all,
I'm trying to get the content
Hi,folks,
Simbase v0.1.0-beta1 just release! We had fix many bugs,and the system are
very stable for almost half a year in our cases。
In the docs, we add simple scenario for your references
Setup
bmk b2048 t1 t2 t3 ... t2047 t2048
vmk b2048 article
vmk b2048 userprofile
rmk userprofile
Gary Trakhman gary.trakh...@gmail.com writes:
Knowing with certainty that some called method is defined above in the
compilation strategy simplifies code-reading and comprehension by
minimizing where you have to look, and it also makes it easier to move
stuff around with a text editor than
Gregg Reynolds d...@mobileink.com writes:
This is not side-effect free (sorry for pun). I did this for my code,
and now slamhound doesn't work on it. Other tools too? I don't know.
https://github.com/technomancy/slamhound/issues/61
(load foo) is legal Clojure; if a tool can't handle it,
I am working with “sequence like” trees - by which I mean that they’re very
broad (typically the root node will have several thousand children) and shallow
(no more than 2 levels deep). I’m often dealing with a degenerate tree that’s
really just a sequence (all the nodes in the tree are
Hi Alex,
Alex Ott alex...@gmail.com writes:
Pantomime right now doesn't support the text extraction, but you can
take the https://github.com/alexott/clj-tika (outdate although) - it
uses the Apache Tika for text extraction
thanks -- I stumbled upon clj-tika but didn't understand how to use
Hi i am trying to pretty a clojure code :
my emacs version is 24.3.1
my org file is :
#+BEGIN_SRC clojure
(defn foo [x]
(reverse (let [A (reduce
(fn [x y]
(if (= (:L x) y)
(assoc x :T (conj (:T x) y))
(assoc (assoc
Hey Florian -
I'm a developer over at CircleCI and we're definitely interested in seeing
if there might be a fit here. Would someone one your team mind shooting me
an e-mail at j...@circleci.com? I read everything that goes into that
address so I can promise you won't be lost in any
Hi all,
do you know how is store a 'value' in a PersistentVector or in a
PersistentHashMap ?
Thanks
Sorin.
--
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
lein try clj-tika 1.2.0
user= (use 'tika)
user= (def res (parse
https://www.oasis-open.org/committees/download.php/25054/07-08-22-MetaData-Examples.odt
))
#'user/res
res - the map consisting of:
- :text - extracted text
- all other fields - metadata from document
On Wed, Jun 4, 2014 at
The recent release of Swift made me revisit Clojure on LLVM. This post from
2010 https://groups.google.com/d/msg/clojure/KrwtTsdYZ8I/Qf8PSMeoZCUJ
suggests it's a very difficult task.
Swift would make this job easier? As with ClojureScript, generate Swift
code / provide interop and Clojurian's
Hi Alex,
Alex Ott alex...@gmail.com writes:
res - the map consisting of:
- :text - extracted text
- all other fields - metadata from document
Works like a charm, thanks a bunch!
--
Bastien
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To
In general, I've found that zippers make complicated edits super-easy,
while a recursive phrasing of the same algorithm - if it exists and isn't
super complicated to write - performs better and gives more control over
structural sharing. I might prove out an algorithm with zippers, but when
the
On Wednesday, June 4, 2014 4:32:00 PM UTC+3, François Rey wrote:
On 04/06/14 14:59, sorin cristea wrote:
do you know how is store a 'value' in a PersistentVector or in a
PersistentHashMap ?
Hi Sorin,
Your question is difficult to understand without more context.
Are you trying to
I'm starting to feel like a broken record, but here we go.
Some things to think about:
1) Why do you want this? The JVM GC and JIT are some of the fastest (if not
the fastest) on the planet, so performance will never be a good reason to
do this.
2) Do you want something like eval? As far as I
If you've read those sites, then read the source. It's not that hard to
understand once you understand that Vectors are trees:
https://github.com/clojure/clojure/blob/master/src/jvm/clojure/lang/PersistentVector.java
On Wed, Jun 4, 2014 at 7:46 AM, sorin cristea srncris...@gmail.com wrote:
On Sunday, June 1, 2014 9:36:55 AM UTC-5, Glen Mailer wrote:
Hi everyone, I'm looking to get some opinions on code style.
Specifically, I like to write my code in a top-down.
What I mean by that is that within a file the highest-level functions sit
at the top, and are implemented in
I have been experimenting writing an iOS app using ClojureScript embedded in
JavaScriptCore, where the ClojureScript essentially implements the logic of my
view controllers which drive native UI.
So far, this approach seems like a reasonable one to “writing iOS apps using
Clojure.”
You
@Timothy, you mention speed a lot, but I'm not sure where in the OP it
mentioned wanting to do this for speed at all. I think the intention is to
be able to Clojure on a different platform, is all.
On Wed, Jun 4, 2014 at 4:58 PM, Mike Fikes mikefi...@me.com wrote:
I have been experimenting
On Wednesday, June 4, 2014 9:42:41 AM UTC-5, Mars0i wrote:
... Then I add the new functions to the declare statement by hand, or I
periodically do something like:
grep defn mysourcefile.clj mysourcefile.clj
(Be careful to use two s!)
and then I edit the junk at the end of the file into
I'm having trouble using local jars in my project. I've built the jars and
installed them with localrepo.
wei:clj-opencv wei$ lein localrepo install opencv-249.jar opencv/opencv
2.4.9
wei:clj-opencv wei$ lein localrepo install opencv-native-249.jar
opencv/opencv-native 2.4.9
The jars show up
Clearly the solution is to use tools.analyzer and write a big def emitter
/s
Reid
On 06/04/2014 10:27 AM, Mars0i wrote:
On Wednesday, June 4, 2014 9:42:41 AM UTC-5, Mars0i wrote:
... Then I add the new functions to the declarestatement by hand,
or I periodically do something like:
What new features does this syntax provide over the existing infinite
sequence generators?
- lazy-seq
- iterate
- repeat
- repeatedly
- range
I realize you provided a simple example for clarity, but perhaps you could
illustrate something more complex that couldn't be done with the above
I actually have an open issue for Cursive to do this automatically: #200
https://github.com/cursiveclojure/cursive/issues/200. I'm starting to
think a namespace sorter that automatically manages the declares might not
be such a crazy idea.
On 5 June 2014 03:37, Reid McKenzie
A little known fact is that the guts of the go macro are quite flexible. We
use this in the test framework:
https://github.com/clojure/core.async/blob/master/src/test/clojure/clojure/core/async/ioc_macros_test.clj#L17
I also spent some time once and created a yield like macro:
Then integrate the whole lot into the Clojure compiler pipeline so that
it just works in the first place.
Reid McKenzie rmckenzi...@gmail.com writes:
Clearly the solution is to use tools.analyzer and write a big def emitter
/s
Reid
On 06/04/2014 10:27 AM, Mars0i wrote:
On Wednesday,
I maintain that the average human
being looking at sed commands
would rather end up standing on his
head for a significant amount of
time to avoid it :)))
BTWY, I have been scripting under u*x
for a few decades by now.
I resort to it when nothing and I
mean nothing (think about Daffy Duck's
Hi everyone, I'm looking to get some opinions on code style.
Specifically, I like to write my code in a top-down.
What I mean by that is that within a file the highest-level functions sit
at the top, and are implemented in terms of lower-level functions further
down.
You could write a
On Jun 2, 2014, at 7:14 PM, Gary Johnson gwjoh...@uvm.edu wrote:
Hey Lee,
I would second Jozef's suggestion that you look into using the reducers
library when you need non-lazy sequence operations. [etc]
On Jun 2, 2014, at 10:38 PM, Lee Spector lspec...@hampshire.edu wrote:
Gary:
Hey Lee,
(vec ...) is NOT the same as (into [] ...) in this case.
Whenever you use a reducing function, like r/map, r/filter, r/mapcat, and
so on, you are not, in fact, performing any computations on the collection
to which you apply it. These functions simply wrap the collection with a
I wasn't really pointing at performance with my post. More about native app
development, for OSX we have Clojure on the JVM which is fine. I don't see
Apple allowing Java on iOS anytime though.
Thanks for the replies so far, this was purely food for thought.
On Wednesday, 4 June 2014 16:11:56
On Jun 4, 2014, at 12:59 PM, Gary Johnson gwjoh...@uvm.edu wrote:
Hey Lee,
(vec ...) is NOT the same as (into [] ...) in this case.
[etc]
Thanks Gary -- very clear and helpful.
-Lee
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to
Hey Lee, answers below. Also make sure to read my other post at 12:59pm
today regarding the behavior of vec vs. into for reducible collections.
On Wednesday, June 4, 2014 12:51:45 PM UTC-4, Lee wrote:
Some quick notes and a question from my first look into this:
- I watched a Rich Hickey
Although your original complaint was about clojure seqs being lazy. It
should be noted that reducers are also lazy down to the point of a fold or
reduce, so I'm not sure what you're really getting there. It wouldn't be
hard at all to write map, filter, remove, etc. in terms of list operations.
I wouldn't pass judgement on Swift too soon. Eval works just fine in the
REPL and it appears the language supports hot code loads out of the box.
Swift also has real support for final fields via 'let'. I personally think
a ClojureSwift could be quite interesting :)
On Wednesday, June 4, 2014,
Does Swift have any static types to harvest? :)
On Thu, Jun 5, 2014 at 1:50 AM, David Nolen dnolen.li...@gmail.com wrote:
I wouldn't pass judgement on Swift too soon. Eval works just fine in the
REPL and it appears the language supports hot code loads out of the box.
Swift also has real
On Tuesday, June 3, 2014 12:46:55 PM UTC-5, Mars0i wrote:
(def ones (doall (repeat 1000 1)))
(bench (def _ (doall (map rand ones ; 189 microseconds average time
(bench (def _ (doall (pmap rand ones ; 948 microseconds average time
For the record, I worried later that rand was too
On Tuesday, June 3, 2014 4:56:26 PM UTC-5, Andy Fingerhut wrote:
This ticket seems to be at least somewhat related to your questions:
http://dev.clojure.org/jira/browse/CLJ-1420
Andy
Yes, thanks for finding that, Andy. It looks like it would address the
problem about accessing an RNG
On Wednesday, June 4, 2014 2:55:20 AM UTC-5, Gunnar Völkel wrote:
Once you notice that you usually need a fast solution.
Yes!
The easiest solution is to just pass around an instance of
java.util.Random which you create with the desired seed. Another options is
to have a constructor
Data.generative already has this function and many more, I realized.
/Linus
On Wednesday, June 4, 2014, Mars0i marsh...@logical.net wrote:
On Wednesday, June 4, 2014 2:55:20 AM UTC-5, Gunnar Völkel wrote:
Once you notice that you usually need a fast solution.
Yes!
The easiest
Sorry, of course i meant the clojure.data.generators library
https://github.com/clojure/data.generators
esp. the *rnd* that can be bound around many of the functions in the
library.
/Linus
On Wednesday, June 4, 2014, Linus Ericsson oscarlinuserics...@gmail.com
wrote:
Data.generative already
On Jun 4, 2014, at 1:20 PM, Gary Johnson gwjoh...@uvm.edu wrote:
- If I operate on a vector with a sequence of r/map and r/filter operations
and finally with into [] to get back a vector, then I think that fold will
be called within the call to into, and that parallelism should happen
On Jun 4, 2014, at 1:29 PM, Timothy Baldridge tbaldri...@gmail.com wrote:
Although your original complaint was about clojure seqs being lazy. It should
be noted that reducers are also lazy down to the point of a fold or reduce,
so I'm not sure what you're really getting there. It wouldn't
I opened a core.clj file in my Emacs Live and, to make sure everything
is working, pressed Ctrl-c Ctrl-l to make sure it's loaded. I also used
cider-jack-in to get a repl connection. For practice I entered this:
(map #(+ % 5) [1 2 3 4 5])
... then moved to the end of the s-expression and
Maybe you evaluated the inner vector instead of the outer expression? Might
depend whether your cursor is on or after the last paren.
On Wednesday, June 4, 2014 6:32:18 PM UTC-5, g vim wrote:
I opened a core.clj file in my Emacs Live and, to make sure everything
is working, pressed Ctrl-c
Your cursor was probably on the closing paren at the end - you eval'd the
previous expression, which was the vector.
Check out the key bindings here:
https://github.com/clojure-emacs/cider#cider-mode
If your cursor is anywhere on that expression, you probably want C-c C-c.
On Wed, Jun 4,
Are there any books yet that prescribe best practices for Clojure, à la
Meyers or Bloch?
--
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 -
《The joy of clojure》 ?
2014-06-05 9:30 GMT+08:00 Mike Fikes mikefi...@me.com:
Are there any books yet that prescribe best practices for Clojure, à la
Meyers or Bloch?
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send
Jony, Hey thanks
Just finish watching and reading about Gorilla-Repl (will be digging
deeper) and WOW really clean and simple UI -Nice.
Much Much easier to install than IPython notebook was and its Clojure!
Couldn't follow much of your coding as I said I am just starting out.
I like the
On Tuesday, June 3, 2014 8:41:33 AM UTC-5, Gregg Reynolds wrote:
I know you've asked for online resources, but I can't resist a plug for The
Little Schemer http://mitpress.mit.edu/books/little-schemer. It's
short, very clear, starts at the very beginning, and you don't even need a
clojure.core provides a minimal set of functions for random effects: rand,
rand-int, and rand-nth, currently with no simple ability to base these on a
resettable random number generator or on different RNGs in different
threads. (But see this ticket http://dev.clojure.org/jira/browse/CLJ-1420
56 matches
Mail list logo