Re: [ANN] Intro tutorial

2013-12-29 Thread Ronan BARZIC
Am I the only one to have problem scrolling through the page or trying to go up and down after clicking on the scroll bar ? I've tried with Firefox and Chrome and it is very frustating Otherwise, nice work - I'm waiting for the next chapters Ronan On Saturday, December 28, 2013 11:30:17 PM

Re: [ANN] Intro tutorial

2013-12-29 Thread Karsten Schmidt
Hey, thanks & yes, there seems to be an issue with their syntax highlighter taking quite a while to process the dozens of code blocks on that page. Just give it a few seconds until the page has finished loading before you start scrolling... Will check with the site owners what can be done. On 29 D

Re: [ANN] Intro tutorial

2013-12-29 Thread Zeynel
I like it very much. Is there a pdf version? On Saturday, December 28, 2013 6:30:17 PM UTC-4, Karsten Schmidt wrote: > > Dear all, > > just wanted to briefly announce a new Clojure introduction tutorial > series with its first part (15k+ words) just been published: > > > http://www.creativeappl

How to debug this trace involving Korma

2013-12-29 Thread Zeynel
The first lines of the trace says: Failure to execute query with SQL: SELECT "GUESTBOOK" .* FROM "GUESTBOOK" :: [] JdbcSQLException: Message: Table "GUESTBOOK" not found; SQL statement SELECT "GUESTBOOK".* FROM "GUESTBOOK" ... I see that there is a "create-guestbook-table" in schema.clj (defn

Re: [ANN] Intro tutorial

2013-12-29 Thread Karsten Schmidt
No PDF version, but in the coming weeks we will put up a Git repo with the original markdown sources & examples, you can build a PDF from those. For now, couldn't you just print that page to a PDF file, no? On 29 December 2013 11:42, Zeynel wrote: > I like it very much. Is there a pdf version? >

Re: [ANN] Intro tutorial

2013-12-29 Thread Zeynel
Oh, yes, true. I will print to PDF. On Sunday, December 29, 2013 8:07:44 AM UTC-4, Karsten Schmidt wrote: > > No PDF version, but in the coming weeks we will put up a Git repo with > the original markdown sources & examples, you can build a PDF from > those. For now, couldn't you just print that

Re: Akka-like framework in Clojure ?

2013-12-29 Thread Joshua Ballanco
On Saturday, December 28, 2013 at 6:05, kovas boguta wrote: > The bottom line is that the definitive clojure distributed computing > solution is yet to be invented, but there are a number of things out > there including the aforementioned. > > 1. clojure wrappers for Akka, for instance > > http

[ANN] jvm.tools.analyzer 0.6.0 - *Breaking changes*

2013-12-29 Thread Ambrose Bonnaire-Sergeant
Hi, [org.clojure/jvm.tools.analyzer"0.6.0"] To avoid any problems with the new analyzer contrib libraries, the namespaces in jvm.tools.analyzer have been renamed. See the CHANGELOG

protocols and overloading

2013-12-29 Thread Massimiliano Tomassoli
What's the difference between protocols and simple overloading? For instance, in C++ I could use structs for Clojure's datatypes and simple overloading for protocols. -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send ema

Re: protocols and overloading

2013-12-29 Thread Cedric Greevey
On Sun, Dec 29, 2013 at 12:27 PM, Massimiliano Tomassoli wrote: > What's the difference between protocols and simple overloading? > Dynamic dispatch. Overloading uses just the static type for dispatch, so this Java code: aBase = new Base(); aDerived = new Derived(); aBase2 = aDerived; something

Re: bug in clojure.zip when calling next on empty list node?

2013-12-29 Thread Lee Spector
I realize that many people are on holiday, but I'm hoping to get some clarity about how to proceed with respect to this issue in the near future. Can anyone tell if I'm right that this is a bug in clojure.zip? If so, then is the right thing to do to post an issue on JIRA? I've re-included the

Re: protocols and overloading

2013-12-29 Thread Massimiliano Tomassoli
On Sunday, December 29, 2013 7:05:28 PM UTC+1, Cedric Greevey wrote: > > On Sun, Dec 29, 2013 at 12:27 PM, Massimiliano Tomassoli < > kiuh...@gmail.com > wrote: > >> What's the difference between protocols and simple overloading? >> > > Dynamic dispatch. Overloading uses just the static type for di

Re: What non-deprecated Clojure Web libraries to use?

2013-12-29 Thread Zeynel
I know this an old thread but here the author says that he deprecated Enclojure https://groups.google.com/d/msg/enclojure/TNngOAAoIyE/9cKOk_zEquEJ Is this still true? On Sunday, October 27, 2013 7:51:39 PM UTC-3, James Reeves wrote: > > Compojure isn't deprecated. What made you think it was? > >

Re: protocols and overloading

2013-12-29 Thread Timothy Baldridge
Not mentioned in Cedric's post are two other important things: Protocols can be extended to existing types. For example: (defprotocol IType (type-as-string [x])) (extend-protocol IType String (type-as-string [x] "string") Integer (type-as-string [x] "integer")) => (type-as-string 42)

Re: protocols and overloading

2013-12-29 Thread Mark Engelberg
The expression problem is about what kinds of additions and extensions you can easily make *without modifying or recompiling the existing codebase.* -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googl

Why is "add-watch" still in alpha?

2013-12-29 Thread larry google groups
add-watch was alpha in Clojure 1.2: http://clojuredocs.org/clojure_core/1.2.0/clojure.core/add-watch it is still alpha now, in Clojure 1.5: http://clojure.github.io/clojure/clojure.core-api.html#clojure.core/add-watch I am curious what the plan is for add-watch? I was just reading this: h

Re: is there a tutorial about working at the REPL?

2013-12-29 Thread larry google groups
> If it can't find the file, > `clojure.java.io/resource` returns nil; and (slurp > nil) throws an IllegalArgumentException, which doesn't seem to be the error > you're getting. Thanks for that. But the app has no problem reading the schema.edn file when I

Re: Why is "add-watch" still in alpha?

2013-12-29 Thread Cedric Greevey
On Sun, Dec 29, 2013 at 4:24 PM, larry google groups < lawrencecloj...@gmail.com> wrote: > And here is where the greatest disappointment arrives: neither > future > nor promise in

Re: is there a tutorial about working at the REPL?

2013-12-29 Thread Jay Fields
make the app work with 'lein run' and it'll work in the repl as well. On Sun, Dec 29, 2013 at 4:30 PM, larry google groups wrote: >> If it can't find the file, `clojure.java.io/resource` returns nil; and >> (slurp >> nil) throws an IllegalArgumentException, which doesn't seem to be the >> error >

Re: Why is "add-watch" still in alpha?

2013-12-29 Thread Cedric Greevey
Actually, one simple way to use core.async to asynchronously watch a future or a promise, or *any* other blocking-derefable thingy, for delivery, is just to throw a (thread (do-something-with @thingy)) in your code somewhere. The thread will block until the thingy is ready, and then do whatever. Me

Re: protocols and overloading

2013-12-29 Thread Cedric Greevey
On Sun, Dec 29, 2013 at 4:11 PM, Timothy Baldridge wrote: > Not mentioned in Cedric's post are two other important things: > > Protocols can be extended to existing types. > These are important for the Expression Problem, but not for the OP's query as originally stated, which simply asked for the

Re: How to debug this trace involving Korma

2013-12-29 Thread Sean Corfield
Reading that tutorial, it looks like it expects you to call (create-tables) manually via the REPL. On Sun, Dec 29, 2013 at 3:47 AM, Zeynel wrote: > The first lines of the trace says: > > Failure to execute query with SQL: > > SELECT "GUESTBOOK" .* FROM "GUESTBOOK" :: [] > JdbcSQLException: > Mess

Re: protocols and overloading

2013-12-29 Thread Sean Corfield
That must have been a long time ago? That problem was solved well before I left the C++ committee in '99 and gcc was normally pretty good at tracking the emerging standard at the time... But, yes, the template compilation model and it's impact on linking modules that specialized the same template

Re: protocols and overloading

2013-12-29 Thread Cedric Greevey
Yeah, it was sometime in the 90s. The only workaround I could think of was maybe to create a single compilation unit for template use, and there derive a trivial subclass of each used template specialization, then use that subclass elsewhere in lieu of the template. Needless to say, not a solution

Re: Why is "add-watch" still in alpha?

2013-12-29 Thread Juha Syrjälä
Hi, According to this thread https://groups.google.com/forum/#!topic/clojure/zM6cbhuBNxY add-watch is no longer marked alpha in Clojure 1.6-alpha3 On Sunday, December 29, 2013 11:24:07 PM UTC+2, larry google groups wrote: > > add-watch was alpha in Clojure 1.2: > > http://clojuredocs.org/clojur

Re: How to debug this trace involving Korma

2013-12-29 Thread Zeynel
Yes, I was having problems with the emacs repl http://stackoverflow.com/questions/20828985/compilerexception-java-lang-runtimeexception-unable-to-resolve-symbol-cloju after I created the tables I did not get the error. On Sunday, December 29, 2013 6:43:59 PM UTC-4, Sean Corfield wrote: > > Rea

Re: is there a tutorial about working at the REPL?

2013-12-29 Thread gaz jones
There are at least some keyboard shortcuts you should be familiar with for loading / compiling namespaces. Look a the "Using the REPL" section of this: http://clojure-doc.org/articles/tutorials/emacs.html On Sat, Dec 28, 2013 at 7:38 PM, larry google groups < lawrencecloj...@gmail.com> wrote: >