Re: Clojurescript Error: Undefined nameToPath for goog.ui

2013-04-16 Thread Răzvan Rotaru
I found the cause after looking at google closure more closely. The following is wrong: goog.require('goog.ui'); It must be: goog.require('goog.ui.Button'); So the correct clojurescript code is: (ns test (:import goog.ui.Button)) (.render (new Button "Hello!") (goog.dom/getElement "b1"))

Re: Type hinting generated functions

2013-04-16 Thread dannyg
Thanks Allan ill try it tonight -- -- 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 unsubscribe

Surprising behaviour related to records, protocols and AOT

2013-04-16 Thread Ragnar Dahlén
Hi, Today I encountered a, to me, slightly surprising behaviour seemingly related clojure records. The setup is as follows: 1. One namespace defines a record type: (ns defrecordissue.arecord) (defrecord ARecord []) 2. Another namespace defines a protocol, and extends it to the recor

Re: Namespaces, APIs, protocols and records

2013-04-16 Thread Simon Katz
Thanks for the suggestion to look at the ClojureWerkz libraries. I took a quick look at the user documentation for three of them (Monger, Welle and Quartzite), and in all cases they showed examples of client code requiring multiple namespaces. On Monday, 15 April 2013 16:45:47 UTC+1, travis va

Re: Namespace loading with defrecord and attempting to call unbound fn

2013-04-16 Thread Pierre Allix
Thank you the patch works. I though it would have made sense to just create a record directly from Java since they can implement Java interfaces. On Monday, April 15, 2013 7:57:28 PM UTC+2, Meikel Brandmeyer (kotarak) wrote: > > Hi Pierre, > > does this patch work? > > 8<--8<--8< > diff

Re: Namespaces, APIs, protocols and records

2013-04-16 Thread Simon Katz
Thanks for the pointer to tools.namespace — it looks really useful. And if I follow the advice there to "always create new instances of records after a refresh", it will simplify my decision on how to organise namespaces — there's no longer a need to

Re: Namespace loading with defrecord and attempting to call unbound fn

2013-04-16 Thread Meikel Brandmeyer (kotarak)
Hi, Am Dienstag, 16. April 2013 11:32:38 UTC+2 schrieb Pierre Allix: > > Thank you the patch works. > > I though it would have made sense to just create a record directly from > Java since they can implement Java interfaces. > > As a rule of thumb, I go with the non-AOT behaviour of Clojure. In t

Re: Full stack Clojure web/REST framework - is there any mileage in it?

2013-04-16 Thread edward
I'm a bit curious. My immediate reaction was to ask what you use instead of Spring (none?), Hibernate (datomic?) and what did you use to provide the plumbing for web apps (assuming you needed it and didn't just write it all from scratch). My second thought was then what is the difference betwee

Re: ANN: Kern 0.7.0 text parsing lib has fixes, better performance

2013-04-16 Thread Luca Antiga
Great, I just updated clj-toml to 0.7.0 and all tests pass. Thanks Armando Luca On Monday, April 15, 2013 6:38:40 PM UTC+2, Armando Blancas wrote: > > This is a much needed clean up and perf boost release. > > https://github.com/blancas/kern > > Function (parse-file) won't choke with big files,

Re: [GSOC 2013] Program analysis suite, based on Rich Hickey's Codeq

2013-04-16 Thread Navgeet Agrawal
Hi all, thanks for these suggestions and sorry for the late reply. I have been looking into jvm.tools.analyze for the past few days and it looks as a better choice to build a comprehensive analyzer. Of course the biggest problem in using it is it likes to expand all macros fully, which is bad for c

Why is the compiler more strict on one of my machines?

2013-04-16 Thread larry google groups
I have a Mac at work and I have a Mac at home. At work, while working on my project, I decided to delete my file "validation.clj". There was still a reference to it in the ns declaration in import_data.clj, but I did not know that. I ran "lein uberjar" and everything compiled. I did not use any fun

Re: Why is the compiler more strict on one of my machines?

2013-04-16 Thread Jim foo.bar
It sounds to me that you forgot to run 'lein clean' at work, leaving certain classfiles present in 'target'. This would explain why you got your uberjar at work but not at home (presumably .class files are being ignored by git) Jim On 16/04/13 13:59, larry google groups wrote: I have a Mac

Re: Why is the compiler more strict on one of my machines?

2013-04-16 Thread larry google groups
Thank you! I think you are right. On Apr 16, 9:05 am, "Jim foo.bar" wrote: > It sounds to me that you forgot to run 'lein clean' at work, leaving > certain classfiles present in 'target'. This would explain why you got > your uberjar at work but not at home (presumably .class files are being > ig

(pprint template) gives me an exception

2013-04-16 Thread larry google groups
On the first pprint expression in this function, I get an exception: (defn add-main-image-for-this-item-and-return-as-new-template [template item] (println " start of add-main-image-for-this-item-and-return-as-new- template") (println (pp/pprint template)) (println "add-main-image-for-this-it

Re: (pprint template) gives me an exception

2013-04-16 Thread larry google groups
The function before the previously mentioned function is this: (defn add-public-text-to-top-banner-and-return-as-new-template [template item] (println "entering add-public-text-to-top-banner-and-return-as-new- template") (println (pp/pprint template)) (enlive/transform template [:#content :>

Re: (pprint template) gives me an exception

2013-04-16 Thread larry google groups
Oh, I see. I had just changed :admin-text to hold a keyword instead of text. I should have seen that sooner. But I am still confused why a keyword would cause pprint to throw an exception. And why at that point in the code, and not sooner? On Apr 16, 10:05 am, larry google groups wrote: > The

Re: [GSoC 2013] CinC

2013-04-16 Thread Aaron Cohen
As a mentor, what should I be doing at this point? I've been contacted by a couple of interested students so far, checking to see if I'm still interested in mentoring this (I am!) I'm just not sure what my current next step should be. --Aaron On Tue, Apr 9, 2013 at 8:54 PM, Daniel Solano Gómez

Re: ANN: Kern 0.7.0 text parsing lib has fixes, better performance

2013-04-16 Thread Armando Blancas
On Tuesday, April 16, 2013 4:06:51 AM UTC-7, Luca Antiga wrote: > > Great, I just updated clj-toml to 0.7.0 and all tests pass. > Thanks Armando > Very cool, Luca. I'll be looking for other ways to boost performance while keeping the purely functional design. -- -- You received this message be

invokedynamic instructions in Clojure

2013-04-16 Thread Ghadi Shayban
I've added a very minimal usage of invokedynamic to the compiler. Basically the smallest delta without having to change internals of ObjExpr or break ABI compatibility. This is minimal and raw. There are many many usages of indy that will really help the Clojure runtime, this ain't one of th

ANN: Morph 0.3.0, monads+functors lib gets perf boost

2013-04-16 Thread Armando Blancas
In this release the lib gets rid of reflective calls by adding type hints. https://github.com/blancas/morph I don't have any benchmarks, but in Ben's tree-numbering Morph's timing goes from ~13,700 msecs down to ~350. https://github.com/bwo/monads/wiki/Tree-numbering-benchmark Morph tries hard

Free book on Clojure (in German)

2013-04-16 Thread Dominikus
If you speak German, I have a free book on Clojure ("Funktionale Programmierung in Clojure") for you: http://denkspuren.blogspot.de/2013/04/freies-clojure-buch-funktionale.html Dominikus -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post t

[ANN] Linode compromise possibly affecting Clojars

2013-04-16 Thread Phil Hagelberg
Today Linode announced that their database was attacked[1]. Clojars is hosted on Linode, and while we have no evidence that the attackers used their access to break into the VPS instance which hosts Clojars, we can't rule out the possibility. Other VPS instances[2] have been broken into. Apparent

Re: Free book on Clojure (in German)

2013-04-16 Thread Michael Klishin
2013/4/16 Dominikus > If you speak German, I have a free book on Clojure ("Funktionale > Programmierung in Clojure") for you: > > http://denkspuren.blogspot.de/2013/04/freies-clojure-buch-funktionale.html > Feel free to submit a pull request that adds it to http://clojure-doc.org/articles/ecosys

Re: [GSOC 2013] Program analysis suite, based on Rich Hickey's Codeq

2013-04-16 Thread Rich Morin
On Apr 16, 2013, at 04:54, Navgeet Agrawal wrote: > Hi all, thanks for these suggestions and sorry for the late reply. No problem; I'm happy that we didn't scare you away (:-). > I have been looking into jvm.tools.analyze for the past few days and it > looks as a better choice to build a comprehe

Re: [ANN] Linode compromise possibly affecting Clojars

2013-04-16 Thread Rostislav Svoboda
Whata an [ANN] !!! Please change the subject to [linode-compromise "1.0.0"] :) -- -- 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

Re: [ANN] Linode compromise possibly affecting Clojars

2013-04-16 Thread Phil Hagelberg
Phil Hagelberg writes: > If you run a private proxying internal repository for your company, you > can help us verify checksums. I'll be posting a follow-up soon with some > code you can use to calculate and publish checksums so we can > investigate discrepancies. Update: Hugo Duncan pointed out

Warning: *retry-limit* not declared dynamic and thus is not dynamically rebindable

2013-04-16 Thread ljcppunix
Dear all, When I installed leiningen and clojure, I run command "lein repl", then prompt some message like such --- C:\lein>lein repl Warning: *default-javac-options* not declared dynamic and thus is not dynamicall y rebindable, but its name suggests otherwise. Please either indicate ^:dy

Re: invokedynamic instructions in Clojure

2013-04-16 Thread Brandon Bloom
Do you have any measurements, results, or conclusions to report? On Tuesday, April 16, 2013 12:12:15 PM UTC-4, Ghadi Shayban wrote: > > I've added a very minimal usage of invokedynamic to the compiler. > Basically the smallest delta without having to change internals of ObjExpr > or break ABI c

[ANN] phaser-1.1.2 - A Clojure DSL for the LMAX Disruptor 3.0.1

2013-04-16 Thread Trevor Bernard
I'd like to officially announce the immediate availability of Phaser, a Clojure DSL for the LMAX Disruptor 3.0.1. https://github.com/userevents/phaser Pull requests welcome! -Trev -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this

Re: (pprint template) gives me an exception

2013-04-16 Thread Tassilo Horn
larry google groups writes: > (println (pp/pprint template)) Aside from the original problem: pprint already prints to *out* and only returns nil, so the code above first prints template, and then the println will also print the nil returned from pprint. Bye, Tassilo -- -- You received thi