Hi all,
Can anybody tell me whether wkhtmltopdf or flying-saucer deal with
pagination properly? I've been templating TeX to get properly laid out
tables broken over multiple pages. But of course I'd much rather just
generate the PDFs from the HTML that I am already maintaining.
Thanks,
David
A few years back I copied a small rewrite system from Scheme to Clojure
while watching the SICP video lectures. It's a nice use case for a rewrite
system. You can enter a mathematical function and the system will rewrite
the function to its derivative.
Perhaps this code plus the videos will
Hello
I am a beginner when it comes to writing macros, so there may be an easy
way to do this.
I have a number of 'state machines' which have this sort of appearance:
(defn startFSM [eventQ]
(let [state (atom :1)
going (atom true)
timerId (atom -1)
startTimer (fn []
On Sat, Apr 21, 2012 at 11:27 AM, timc timgcl...@gmail.com wrote:
Hello
I am a beginner when it comes to writing macros, so there may be an easy way
to do this.
I have a number of 'state machines' which have this sort of appearance:
(defn startFSM [eventQ]
(let [state (atom :1)
I would like to write an offline webapp for iphone using clojurescript and
sqlite. Do you know some project/tutorial to take a look?
--
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
Hey,
I use the expectations testing framework a fair amount at work, so
created an emacs minor mode for running the tests ala
clojure-test-mode. It is based on clojure-test-mode so has many of the
same keybindings:
https://github.com/gar3thjon3s/expectations-mode/tree/0.0.2
I had to update
There is also a non-idiomatic way - transform your code to use a
native Java data structure like ArrayList or primitive array.
You may want it for the speed or if the mutable algorithm is more
readable. Anyway isolation of the mutable code is always a good
advice.
(defn new-game []
(let
Another non-standard solution you could try is to use the state monad from
the monad library.
On Apr 21, 2012 3:22 PM, Sergey Didenko sergey.dide...@gmail.com wrote:
There is also a non-idiomatic way - transform your code to use a
native Java data structure like ArrayList or primitive array.
On Sat, Apr 21, 2012 at 6:20 AM, David Jagoe davidja...@gmail.com wrote:
Can anybody tell me whether wkhtmltopdf or flying-saucer deal with
pagination properly? I've been templating TeX to get properly laid out
tables broken over multiple pages. But of course I'd much rather just
generate the
Excellent! Any idea how this implementation would compare performance
wise to the java implementation if imported to Clojure?
On Apr 20, 8:36 pm, Michał Marczyk michal.marc...@gmail.com wrote:
It's pure ClojureScript. Hopefully a step towards CinC, yes. :-)
Sincerely,
Michał
On 20 April
Looks interesting.
Personally I always thought clojure's handling of function arity is a
bit strange. I don't understand why calling a function like this
(defn testfn [one two] ...)
(test-fn 1)
is not at least a compiler warning, possibly with a switch for the
compiler for strict checking. I
With some minor alterations it should be just as fast as the Java
implementation.
David
On Fri, Apr 20, 2012 at 7:35 PM, Casper Clausen casp...@gmail.com wrote:
Excellent! Any idea how this implementation would compare performance
wise to the java implementation if imported to Clojure?
On
On Fri Apr 20 02:46 2012, Ambrose Bonnaire-Sergeant wrote:
I've been doing some thinking about the treatment of nil in a
statically typed version of Clojure.
It occurs to me that nil is significantly different to Java's null
reference, which is almost a Bottom type.
Java's null is a
user= (defn a [x y] x)
#'user/a
user= (a 1)
java.lang.IllegalArgumentException: Wrong number of args passed to: user$a
(NO_SOURCE_FILE:0)
user= (a 1 2)
1
user= (a 1 2 3)
java.lang.IllegalArgumentException: Wrong number of args passed to: user$a
(NO_SOURCE_FILE:0)
user=
user= (defn b [x
The ClojureScript compiler doesn't seem to do those kinds of checks, but
the Clojure compiler does.
On 21 April 2012 09:18, Casper Clausen casp...@gmail.com wrote:
Looks interesting.
Personally I always thought clojure's handling of function arity is a
bit strange. I don't understand why
I assumed he was talking about Clojure on the JVM...
We came to a point where specifying the implementation is a requirement
when posting on this list to prevent confusion :)))
Luc
The ClojureScript compiler doesn't seem to do those kinds of checks, but
the Clojure compiler does.
On 21
On 21 April 2012 12:20, David Jagoe davidja...@gmail.com wrote:
Hi all,
Can anybody tell me whether wkhtmltopdf or flying-saucer deal with
pagination properly? I've been templating TeX to get properly laid out
tables broken over multiple pages. But of course I'd much rather just
generate the
He did say, compile-time error. These errors are at run-time - that
is, the following is just as obviously bad, but generates no warning
until bar is called:
(defn foo [x] 1)
(defn bar [y] (foo y 1)) ;; compiles fine
(bar 5) ;; throws runtime exception
On Apr 21, 5:14 pm, Softaddicts
On 20 April 2012 01:43, Alan Malloy a...@malloys.org wrote:
On Apr 19, 4:06 pm, James Reeves jree...@weavejester.com wrote:
On 19 April 2012 19:46, Ambrose Bonnaire-Sergeant
abonnaireserge...@gmail.com wrote:
I've been doing some thinking about the treatment of nil in a
statically typed
19 matches
Mail list logo