Don't understand inline vs extend-type implementation of defprotocol across namespaces

2014-07-31 Thread Flea Wong
i'm a clojure newbie and am pretty thoroughly confused by defprotocol, inline implementation and extend-type i have the following two small files: crecords.tproc & crecrods.trec listed below: *A) crecords.tproc:* (ns crecords.tproc) (defprotocol Fruit (subtotal [this])) (defrecord Oran

Re: clojurescript introduction

2014-07-31 Thread Denis Fuenzalida
Probably you'll want something like https://github.com/swannodette/lt-cljs-tutorial which is oriented to Light-Table users and https://github.com/magomimmo/modern-cljs/tree/master/cljs-tutorial which covers other editors and IDEs. >From there, it's likely you'll want to check how to edit the D

Re: Clojure / Core.Async Dependency Issues

2014-07-31 Thread Sean Corfield
I've seen several people report this problem when using vinyasa and I've run into this once myself (I don't remember what caused it, but it was some other plugin that pulled in an old core.cache version). Sean On Jul 31, 2014, at 11:11 AM, Timothy Washington wrote: > Ok, I knocked this one off

Re: java interoperability: No such namespace error

2014-07-31 Thread Timur
Yes that was it thank you! On Thursday, July 31, 2014 10:07:14 PM UTC+2, Sam Ritchie wrote: > > I think you need a space before the final LogManager, not just a period: > > (ns de.uni-stuttgart.iaas.ipsm.base-resource-service.core > (:import [org.apache.logging.log4j LogManager]) > > The vector'

Re: java interoperability: No such namespace error

2014-07-31 Thread Sam Ritchie
I think you need a space before the final LogManager, not just a period: (ns de.uni-stuttgart.iaas.ipsm.base-resource-service.core (:import [org.apache.logging.log4j LogManager]) The vector's just for style, a list works just as well. Timur July 31, 2014 at 1:4

Re: Clojure / Core.Async Dependency Issues

2014-07-31 Thread Sam Ritchie
I've seen that too. Here's the line from my project.clj: ;; This is required to get around this strange bug with ;; core.memoize: ;; https://github.com/Kodowa/Light-Table-Playground/issues/794 [org.clojure/core.memoize "0.5.6"] Timothy Washington

java interoperability: No such namespace error

2014-07-31 Thread Timur
Hi, (ns de.uni-stuttgart.iaas.ipsm.base-resource-service.core (:import (org.apache.logging.log4j.LogManager))) (println (LogManager/getLogger)) The above simple code throws the following exception and I could not resolve the issue: CompilerException java.lang.RuntimeException: No such names

Re: Clojure / Core.Async Dependency Issues

2014-07-31 Thread Timothy Baldridge
I've seen this error before, but I would like to mention that I think some odd interplay between lein, some plugin and core.async is causing this. Like you I was able to get this error to go away by removing a plugin from my .profile file. Not sure what causes this, but core.async doesn't use core.

Re: Clojure / Core.Async Dependency Issues

2014-07-31 Thread Timothy Washington
Ok, I knocked this one off. It was a leiningen import in my *~/.lein/profiles.clj* (used by vinyasa). So turning that off fixed the problem. I'll have to get more surgical in my exclusions, But hopefully this helps someone in future. :dependencies [[nrepl-inspect "0.4.1"] [ritz/

Clojure / Core.Async Dependency Issues

2014-07-31 Thread Timothy Washington
I'm trying the latest *clojure* and *core.async* releases on a fresh project (lein new thing). (defproject thing "0.1.0-SNAPSHOT" :description "FIXME: write description" ... :dependencies [*[org.clojure/clojure "1.6.0"]* *[org.clojure/core.async "0.1.303.0-886421-alph

Re: clojurescript introduction

2014-07-31 Thread blake
>>is there something similar to http://clojurescriptone.com/ that actually works? unfortunately one is failing on 3rd command from tutorial which is 'lein bootstrap'.<< What's kind of funny about that is that on the first page of the Wiki, it says; lein bootstrap'bootstrap' is not a task. See 'le

Re: clojurescript introduction

2014-07-31 Thread Gary Verhaegen
Haven't tried them myself (yet), but there has been a lot of great feedback on this list about these: https://github.com/magomimmo/modern-cljs Keep in mind, however, that clojurescript is a rapidly moving target and these tutorials are somewhat old now. On Thursday, 31 July 2014, David Powell wr

Re: Future termination

2014-07-31 Thread Andy Fingerhut
Serzh: Could you give a few details about the software machine where you saw it not terminate, even after an hour? I may try collecting some info like this to add to the Clojure ticket. In particular, the outputs of the following commands. java -version uname -a lsb_release -d time java -jar cl

CLJS Function clobbering js function of same name

2014-07-31 Thread Sam Ritchie
Hey guys, I ran into this last night when trying to port some ancient JS in our project over to cljs. I was defining an om component called "users-typeahead", and in the (did-mount ...) implementation calling a bare javascript function called js/users_typeahead. At the repl, the latter worked

QuickStart example in ClojureScript not working.

2014-07-31 Thread Matthías Páll Gissurarson
After installing clojurescript as explained in the quickstart, copying: (ns nodehello (:require [cljs.nodejs :as nodejs])) (defn -main [& args] (println (apply str (map [\ "world" "hello"] [2 0 1] (nodejs/enable-util-print!)(set! *main-cli-fn* -main) into nodehello.cljs and saving an

Re: Future termination

2014-07-31 Thread Serzh Nechyporchuk
On my Ubuntu 14.04 laptop process doesn't terminates at all. I was waiting about an hour. Also this issue affects code which uses datomic.api, which, I think, uses futures too. Середа, 30 липня 2014 р. 22:50:11 UTC+3 користувач Andy Fingerhut написав: > > Never is an awfully long time :-) If yo

Re: clojurescript introduction

2014-07-31 Thread David Powell
For the absolute basics, you could try: http://swannodette.github.io/2013/10/27/the-essence-of-clojurescript/ On Thu, Jul 31, 2014 at 11:27 AM, Paweł Rozynek wrote: > hi > > is there something similar to http://clojurescriptone.com/ that actually > works? unfortunately one is failing on 3rd comma

clojurescript introduction

2014-07-31 Thread Paweł Rozynek
hi is there something similar to http://clojurescriptone.com/ that actually works? unfortunately one is failing on 3rd command from tutorial which is 'lein bootstrap'. id appreciate some good learning materials suggestions for clojurescript. regards PR -- You received this message because you

Re: Redefined 'count' produces no warning

2014-07-31 Thread Colin Fleming
Right, actually I think a better heuristic would be: "warn on any function invocation where the function being invoked is a local binding with a name shadowing clojure.core". Whenever I use these names in local bindings, they're practically never functions so invoking them is pretty much always a b

Re: Help Getting Sente to Work

2014-07-31 Thread Daniel Kersten
Hi Timothy, I just wanted to note that you can control the port Austin uses through environment variables. I do this so I can port forward, for example. This probably won't help you though, as httpkit and the browser repl can't run on the same port. On 30 Jul 2014 16:24, "Timothy Washington" wrot