I got bored and set up a simple Clojure project to fork if they want on
Runnable.com
http://runnable.com/U46bKu4Y8pZgeAW9/clojure-%2B-leiningen-example
For some reason, the editor currently can't open .clj files, but that's
easy enough to work around with a text editor in the terminal.
(Bug:
http
Looks really nice. Code has tests, API docs are hosted, there's an
introductory tutorial...
For those who wants to know what sports activities data look like:
https://github.com/dzacarias/sweatkit/tree/master/test-resources/tcx
On Wed, Jun 4, 2014 at 1:54 AM, Daniel Zacarias wrote:
> Hello e
On Tue, Jun 3, 2014 at 10:43 PM, Glen Rubin wrote:
> my clojure-fu and java-fu are both pretty weak as I am still rather
> green. I guess I will put a hold on this for now until I am more advanced.
>
I hope you won't get discouraged. At the very least clojure is a language
fun to learn and work
>
> (load "foo") is legal Clojure; if a tool can't handle it, that's either a
> bug or a deliberate limitation in the tool.
This is not true. Cursive, for example, indexes Clojure projects in order
to perform its magic. In IntelliJ, index data for a file is only allowed to
depend on the contents
>
> You may want to look at Docjure https://github.com/mjul/docjure
It parses .xlsx files it may be able to parse .odt files. It uses the
Apache POI Java library to parse.
Jeff
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this grou
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
El martes, 3 de junio de 2014 20:58:20 UTC-4, Denis Fuenzalida escribió:
>
> Hi Bastien,
>
> ODT files from OpenOffice/LibreOffice are just Zip
Sorry to hear of the shutdown news... but this also means that your talents
are now available to work on something else. :-)
Good luck!
Alan
On Tuesday, June 3, 2014 4:22:17 AM UTC-7, Florian Over wrote:
>
> Hey,
> you know how hard it is to find good clojure developers?
> This is your chance
https://github.com/aengelberg/clj-generators
My all-time favorite feature of Python is "generators." It allows you to
write lazy sequences imperatively.
def infinite_range():
x = 1
while True:
yield x
x += 1
for i in infinite_range():
if (i > 5):
break
els
Hi Bastien,
ODT files from OpenOffice/LibreOffice are just Zip files which contain a
bunch of xml files and folders for the images or media which you've
inserted into a document. The text itself is contained in a file called
"content.xml" inside of it.
There's a plain Java parser for ODT files
Recommended: "Programming Clojure", in which Stuart Halloway & Aaron Bedra
discuss these forms of recursion.
--
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
Will take a look at the bigml/sampling library...
On Tuesday, June 3, 2014 7:52:06 PM UTC-4, Jose M. Perez Sanchez wrote:
>
>
> Thank you very much. I'm using the Colt random number generator directly.
> I've managed to reduce computing time by orders of magnitude using type
> hints and java ar
Thank you very much. I'm using the Colt random number generator directly.
I've managed to reduce computing time by orders of magnitude using type
hints and java arrays in some critical parts. I haven't had the time to
write a report on this for the list, since have been busy with other
project
Hi all,
I'm trying to get the content of an ODT file as plain text.
I've found Pantomime, but don't understand how to use it?
Can anyone put me on the right tracks with a minimal working
example?
Thanks in advance!
--
Bastien
--
You received this message because you are subscribed to the G
On Jun 3, 2014, at 9:17 AM, Dave Tenny wrote:
> The clojure site says 1.6.0 is supported with java 6 and higher.
Clojure is tested against several Java versions (including Oracle JDK 1.8):
http://build.clojure.org/job/clojure-test-matrix/
> I just wanted to double check whether people h
We run builds on Clojure itself for Java 6, 7, and 8. A number of people
have used Clojure 1.6 with Java 8 and there have been no reported issues.
The one issue I know of in the code is that the AsmReflector under
clojure.java.reflect (which is not the default reflector, it has to be
specified
This ticket seems to be at least somewhat related to your questions:
http://dev.clojure.org/jira/browse/CLJ-1420
Andy
On Tue, Jun 3, 2014 at 11:32 AM, Mars0i wrote:
> t appears that the random number generator for rand used can't be
> reseeded, so there is no way to precisely repeat an ex
Have you considered the similarity between loop-recur and sequence
operations?
IE, tail-recursion turns the call stack into a sequence of states. The
nice trick you can play in clojure is to reify this sequence as a lazy
sequence.
(take 5 ((fn this-fn [last] (cons (inc last) (lazy-seq (this-fn (
loop/recur is explicit tail recursion, and therefore will only work if the
"recur" is in the tail position, i.e. the last form evaluated.
For example, this function is tail recursive:
(defn sum [coll result]
(if (seq coll)
(sum (rest coll) (+ result (first coll)))
0))
While this functi
I'm trying to “internalize” loop/recur as being a functional construct.
I'm sure I'm not alone in this: I initially struggled with it, with my view
unduely influenced by its implementation, especially when multiple loop
heads are present. (It could be viewed as vulgar but necessary imperative
o
The canvas example shows two ways of doing this:
https://github.com/daveray/seesaw/blob/develop/test/seesaw/test/examples/canvas.clj
paint1 uses the .drawString method directly. paint2 uses string-shape for
the same effect.
Hope this helps,
Dave
On Tue, Jun 3, 2014 at 11:56 AM, Christopher
Hi. In seesaw, how do you draw text to a graphics 2d object? I see in
seesaw.graphics how to draw circles and lines and such, but want to
draw a line of text. (I'm drawing on a canvas.)
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this g
Hello everyone,
I've recently published the first official release for sweatkit, a
Clojure(Script) library to work with sports activities data. Here's the
link: https://github.com/dzacarias/sweatkit
In a nutshell, sweatkit's goal is to provide a set of:
- Composable abstractions and functions t
On Tuesday, June 3, 2014 5:07:30 PM UTC+3, Stefan Kamphausen wrote:
>
> Hi,
>
> On Tuesday, June 3, 2014 4:02:45 PM UTC+2, sorin cristea wrote:
>>
>> Hi all,
>>
>>I don't know if this question was already asked by someone here but
>> can you tell me(explain) or guide me to a properly docume
t appears that the random number generator for rand used can't be reseeded,
so there is no way to precisely repeat an experiment involving randomness,
except by redefining rand. Also, there is no way to specify that rand in
different threads should use different RNGs (a strategy discussed in th
Does not work on my iPad, I forget to lock the display every time.
Damn it...
Luc P.
> I just turn the monitor upside-down ;-).
>
>
> On Tue, Jun 3, 2014 at 1:50 PM, Luc Prefontaine > wrote:
>
> > Yeah, it's certainly hard, just tried it,
> > blood pressure increases in the head
> > and my
On Monday, June 2, 2014 3:32:59 PM UTC-5, Lee wrote:
>
> I've generally liked Clojure's pervasive laziness. It's cute and it
> sometimes permits lovely, elegant approaches to particular programming
> problems.
>
After worrying about some bad potential problems with mutation of data
structures
I just turn the monitor upside-down ;-).
On Tue, Jun 3, 2014 at 1:50 PM, Luc Prefontaine wrote:
> Yeah, it's certainly hard, just tried it,
> blood pressure increases in the head
> and my eyes were bulging out of their
> sockets.
>
> A bit easier using these chairs
> that allow you to flip upsi
Yeah, it's certainly hard, just tried it,
blood pressure increases in the head
and my eyes were bulging out of their
sockets.
A bit easier using these chairs
that allow you to flip upside
down, less strain on the neck and
no need to keep up your
balance every second or so.
My apology to the rea
Jose,
This is an old thread, and whatever problems you might be dealing with now,
they're probably not the same ones as when the thread was active. However,
I think that if parallel code uses the built-in Clojure random number
functions, there is probably a bottleneck in access to the RNG. Wi
On Mon 2 Jun 2014 at 10:38:23PM -0400, Lee Spector wrote:
> PS would a call to vec do the same thing as "into []" here?
IIRC vec and into [] are equivalent unless the source collection
implements IEditableCollection, in which case transients are used for a
significant performance boost.
gun
Thanks Alex. That's great! My fear of a “dependency yak shave” is unfounded.
I noticed the following (once) in my server log file, but have been unable to
trace it down not see any ill effects and presumed it could be caused by mixing
versions. I'll report if I find anything specific.
#
--
Yo
The "Parallel Programming with Lisp for Performance" talk was
given at the European lisp conference.
http://medias.ircam.fr/xe5f73b
At around 13:00 he mentions STM and comments that it works but
is not good for performance.
At around 14:00 he mentions "livelock" where STM process 1 does
a rollbac
On Tue, Jun 3, 2014 at 8:32 AM, Gregg Reynolds wrote:
>
>
>
> On Sun, Jun 1, 2014 at 9:36 AM, Glen Mailer wrote:
>
>> Hi everyone, I'm looking to get some opinions on code style.
>>
> ...
> 4. Put your helper funcs ("defn-" stuff) in helpers.clj, without a call
> to ns at the top, then (load "
Thanks all, good to know.
On Tuesday, June 3, 2014 12:17:52 PM UTC-4, Dave Tenny wrote:
>
> The clojure site says 1.6.0 is supported with java 6 and higher.
>
> I just wanted to double check whether people have been using it with Java
> 8 and whether it's believed to be stable when used with Java
I'm also using Java 8 and I didn't have any problem so far.
On Tue, Jun 3, 2014 at 1:20 PM, Rafal Lewczuk wrote:
>
> Java8+Clojure seems to work for me (not [yet] in production though).
>
>
> On 03.06.2014 18:17, Dave Tenny wrote:
>>
>> The clojure site says 1.6.0 is supported with java 6 and hig
You can use "lein deps :tree" to detect what different libraries depend on.
Specifying an explicit Clojure dependency in your own project should
override anything used by downstream dependencies. "lein ancient" is also
useful in finding out of date dependencies.
I am not aware of any binary inc
Java8+Clojure seems to work for me (not [yet] in production though).
On 03.06.2014 18:17, Dave Tenny wrote:
The clojure site says 1.6.0 is supported with java 6 and higher.
I just wanted to double check whether people have been using it with Java 8
and whether it's believed to be stable when u
I've used Java 8 for testing on a large codebase with Clojure 1.5.1, works
fine.
On Tue, Jun 3, 2014 at 12:17 PM, Dave Tenny wrote:
> The clojure site says 1.6.0 is supported with java 6 and higher.
>
> I just wanted to double check whether people have been using it with Java
> 8 and whether it
The clojure site says 1.6.0 is supported with java 6 and higher.
I just wanted to double check whether people have been using it with Java 8
and whether it's believed to be stable when used with Java 8 before I tell
people I work with that they can use it with Java 8.
Thumbs up for java 8 and c
On Tue, Jun 3, 2014 at 9:51 AM, Phillip Lord
wrote:
> Gregg Reynolds writes:
>
> > 4. Put your helper funcs ("defn-" stuff) in helpers.clj, without a call
> to
> > ns at the top, then (load "helpers") at the top of the file that uses
> them.
> > You still get the effect you're looking for, wit
Further more if you use Encrypted Cookie store Or Remote Session Store to
manage your state,
your http service will become more lightweight and can be easily expanded
horizontally, e.g. you can add more computers to host nginx-clojure to run
your http service and let one computer with nginx or LV
The multiprocess from nginx is quite different with some old server
implementations. Within nginx one process can handle thousands of
connections at the same time. But some old server implementations are one
process per request.
If your http service is stateless, multiprocess or single process is
Thanks a lot Timothy! Unfortunately, I don't control the remote end,
otherwise I would indeed use request ID's and core.async as you suggest.
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.co
It takes a while (a couple months) to get used to reading things
upside-down, but I wouldn't want to go back. 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 make
" every write must be followed by a read before another write is performed."
I won't assume for the moment that this is exactly what you need. If it is,
disregard my reply.
Another option is to simply use an agent to send data, and register
callbacks in an atom. Each sent message gets an ID (auto
Gregg Reynolds writes:
> 4. Put your helper funcs ("defn-" stuff) in helpers.clj, without a call to
> ns at the top, then (load "helpers") at the top of the file that uses them.
> You still get the effect you're looking for, with a one line "preface"
> that tells the reader where to look for mo
That's indeed what I needed! 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 moderated - please be patient with your
first post.
To unsubscrib
my clojure-fu and java-fu are both pretty weak as I am still rather green.
I guess I will put a hold on this for now until I am more advanced.
On Monday, June 2, 2014 10:42:35 PM UTC-7, Atamert Ölçgen wrote:
>
>
>
> On Tue, Jun 3, 2014 at 5:14 AM, Glen Rubin > wrote:
>
>> I am interested in
Hi,
On Tuesday, June 3, 2014 4:02:45 PM UTC+2, sorin cristea wrote:
>
> Hi all,
>
>I don't know if this question was already asked by someone here but can
> you tell me(explain) or guide me to a properly documentation about how is
> internal implemented PersistenVector and PersistentHashMap
Another way of looking at Clojure code is not a "top down abstraction
first" view, but as the building of a system from smaller parts. The best
example of this is clojure/core.clj . Sure it's bootstrap code so it can be
a bit verbose at times, but you start with nothing and end up with a
complete s
Hi all,
I don't know if this question was already asked by someone here but can
you tell me(explain) or guide me to a properly documentation about how is
internal implemented PersistenVector and PersistentHashMap , how they
behave to an insert , remove, update; this question is came from
p
Hi all,
I don't know if this question was already asked by someone here but can
you tell me(explain) or guide me to a properly documentation about how is
internal implemented PersistenVector and PersistentHashMap , how they
behave to an insert , remove, update; this question is came from
On Mon, Jun 2, 2014 at 4:36 PM, wrote:
> All,
>If this is the right Clojure group for a newbie, I would like to ask
> for the best online resources to begin with. I am new to programming,
> having recently switched from a non technical field.
> I have started looking at http://www.braveclojur
On Sun, Jun 1, 2014 at 9:36 AM, 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 terms of lo
Welcome!!
On Tue, Jun 3, 2014 at 2:33 AM, Linus Ericsson wrote:
> Also check out Kyle Kingsbury's Clojure from the ground up:
> http://aphyr.com/posts/301-clojure-from-the-ground-up-welcome
>
> A lot of things in Clojure gets much easier when one understands a bit of
> java. Not how to write a
Thanks Stephen!
On Mon, Jun 2, 2014 at 5:50 PM, Stephen Gilardi wrote:
>
> On Jun 2, 2014, at 4:53 PM, Erlis Vidal wrote:
>
> Hi guys,
>
> Quick question about exercise 47, http://www.4clojure.com/problem/47
>
> Here you could find the following
>
> *(not (contains? '(1 2 4) __)*
>
> If I try
Hey,
you know how hard it is to find good clojure developers?
This is your chance to hire a battle-proven team. :)
Our startup shutdown the core product right and our whole clojure team is
available from July.
We would love to work together in this team in the future.
Relocation is not really an op
On Monday, 2 June 2014 18:42:32 UTC+1, douglas smith wrote:
> A killer app for me and I think MANY others like me would be something
> very similar to a Kovas' 'Session' 'pretty like Light Table' and beefy
> like IPythons Notebooks.
>
Hope you'll excuse a shameless plug, but have you seen
I'm making use of core.async, which specifies 1.6.
Does leiningen help with ensuring any libraries I'm using are also
compatible with 1.6?
I'm concerned that I may have another dependency (perhaps transitive) that
is incompatible, perhaps simply by being AOT compiled with 1.5.1.
--
You receiv
Sean Corfield writes:
> On Jun 1, 2014, at 11:53 PM, u1204 wrote:
>> Instead of calling load to read the file, call your tangle function.
>
> Whilst that might work from the REPL, it's not going to work with normal
> Clojure tooling and it would mean you couldn't just :require files written
> tha
Maybe reduce-fsm could be useful?
https://github.com/cdorrat/reduce-fsm
It creates a simple state finite state machine that can be applied on any
sequence.
/Linus
2014-06-03 11:04 GMT+02:00 Ulrich Küttler :
> Hi,
>
> what is the preferred way to find sub-seqs in a seq? I am trying to convert
Hi,
what is the preferred way to find sub-seqs in a seq? I am trying to convert
[:a :b :c :d :a :b :c :d :a :b :c]
into
((:a) (:b :c) (:a :d) (:b :c) (:a))
using the sub-seq (:b :c) instead of positions.
partition, partition-by and the like all look at one element at a time.
What I need is a
62 matches
Mail list logo