Re: [ANN] cljs-start 0.0.7 now support source-map

2013-12-18 Thread James Henderson
Hi all, On Tuesday, 17 December 2013 16:35:24 UTC, Magomimmo wrote: In my mind I think about something like a pair composed by of a lein template and a lein plugin.  The template should serve to create new mixed clj/cljs projects and the plugin should serve to easily manage the

Re: instaparse (1.2.4) perfomance issue a long string to parse

2013-12-18 Thread daniel . kirsten87
I am so sorry. I see it only now. The symbols and | in the slimmed grammar are interchanged. -- -- 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

howto use reify in defmacro

2013-12-18 Thread Xiangtao Zhou
hi all, I want to use reify in macro, but the namespace is the problem. the following code shows what have done. is there a way to make it right? (defmacro def-site-entity [ent body] `(let [e# (create-e)] (def ~ent (reify clojure.lang.ILookup (valAt [key not-found]

Re: instaparse (1.2.4) perfomance issue a long string to parse

2013-12-18 Thread Markus Bader
Hi, I am Markus, also working on this project. Thanks for your reply. The errors on the grammar resulted from the reducing of the original one - just to give a minimal example. The original one featured the issues you mentioned in addition to other logial operators like nand, xor, equivalent,

howto use reify in defmacro

2013-12-18 Thread Xiangtao Zhou
hi all, I want to use reify in macro, but the namespace is the problem. the following code shows what have done. is there a way to make it right? (defmacro def-site-entity [ent body] `(let [e# (create-e)] (def ~ent (reify clojure.lang.ILookup (valAt [key not-found]

Re: howto use reify in defmacro

2013-12-18 Thread Tassilo Horn
Xiangtao Zhou tao...@gmail.com writes: Hi! I want to use reify in macro, but the namespace is the problem. the following code shows what have done. is there a way to make it right? Probably this will work: (defmacro def-site-entity [ent body] `(let [e# (create-e)] (def ~ent (reify

Re: howto use reify in defmacro

2013-12-18 Thread Jim - FooBar();
as an aside, if you're writing def-like macros, I'd encourage you to look at 'clojure.tools.macro/name-with-attributes' Jim On 18/12/13 12:14, Tassilo Horn wrote: Xiangtao Zhou tao...@gmail.com writes: Hi! I want to use reify in macro, but the namespace is the problem. the following code

Re: howto use reify in defmacro

2013-12-18 Thread Joe (Zhou Xiangtao)
hi Tassilo, that's great, thanks. I current use a function wrap reify, it's simple. (defn make-reify [entity] ...) (defmacro def-site-entity `(let [e# (create-e)] (def ~ent (make-reify e# Joe On Wed, Dec 18, 2013 at 8:14 PM, Tassilo Horn t...@gnu.org wrote: Xiangtao Zhou

Re: instaparse (1.2.4) perfomance issue a long string to parse

2013-12-18 Thread daniel . kirsten87
Thanks for the faster slimmed grammar. For our grammar we need hierarchy for operator precedence in the final version. e. g.: c1c2|c3c4 = (c1c2)|(c3c4) So we have to nest the and in the or e. g.: and = unary ('' unary)* or = and('|' and)* As soon as we implement the hierarchy in the grammar,

Re: howto use reify in defmacro

2013-12-18 Thread Tassilo Horn
Joe (Zhou Xiangtao) tao...@gmail.com writes: that's great, thanks. I current use a function wrap reify, it's simple. (defn make-reify [entity] ...) (defmacro def-site-entity `(let [e# (create-e)] (def ~ent (make-reify e# That's even better. ;-) Bye, Tassilo -- -- You received

require library from inside the REPL

2013-12-18 Thread Nicholas Wieland
https://gist.github.com/ngw/f8ef003532c8d712dd9b I'm having troubles using the create function from inside the REPL. I think I should require it directly without defining a ns, right? user= (:require [theshire.models.element :as model]) CompilerException java.lang.ClassNotFoundException:

Re: require library from inside the REPL

2013-12-18 Thread Thomas Heller
The (:require ...) form is specific to the (ns) macro, in the REPL you'd invoke the require function directly. (require '[theshire.models.element :as model]) HTH, /thomas On Wednesday, December 18, 2013 3:14:14 PM UTC+1, Nicholas Wieland wrote:

Re: require library from inside the REPL

2013-12-18 Thread Nicholas Wieland
Damn, you are right :) Still, it's no good, and I don't understand why... user= (require '[theshire.models.element :as model]) Exception lib names inside prefix lists must not contain periods clojure.core/load-lib (core.clj:5359) ngw On Wed, Dec 18, 2013 at 3:21 PM, Thomas Heller

Re: require library from inside the REPL

2013-12-18 Thread Tim Visher
You have a `'` in your ns macro that shouldn't be there. You're ns form should be: ``` (ns theshire.models.element (:require [clojurewerkz.welle.core :as wc] [clojurewerkz.welle.buckets :as wb] [clojurewerkz.welle.kv :as kv] [ring.util.codec :refer

Implementation options for auto-complete and symbol resolution while coding

2013-12-18 Thread juan.facorro
Hi Clojurers, I'm building a tool for Clojure and I've been hitting the same bump for quite some time now, namely auto-completion and finding the definition of a symbol. After doing some research I've found that some tools rely on a running REPL to figure out where a symbol might be coming

Re: [ANN] Clojure IDE for OS X

2013-12-18 Thread edward
Well I tried it, two immediate issues after opening an existing project: - tried to open a file for some reason the only method is 'jump to file'? Is that right? - doing so caused a crash to desktop both times I tried. On Sunday, December 15, 2013 11:21:08 PM UTC, Nikki Degutis wrote: It's

Re: Implementation options for auto-complete and symbol resolution while coding

2013-12-18 Thread John Wiseman
Just for background, Steve Yegge's grok project seems relevant. It is a cross-language static analysis system intended to be useable on a large scale. (And is intended to be open sourced, when it's done.) http://www.youtube.com/watch?v=KTJs-0EInW8 On Wed, Dec 18, 2013 at 8:27 AM, juan.facorro

Re: [ANN] Clojure IDE for OS X

2013-12-18 Thread edward
Oh and: no way to create a new file in a project? -- -- 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

Re: Othello from PAIP in Clojure

2013-12-18 Thread edward
Hey, thanks for the response. 'any-legall-move?' is used to determine if the player has any legal moves, if not then it's the other player's turn; if neither has any legal moves then the game is over. So when it is called the 'desired move' is unknown. Similarly 'legal-moves' is used before

[ANN] Hoplon: web applications in Clojure and ClojureScript

2013-12-18 Thread Micha Niskin
Documentation is here: http://hoplon.io We continue to add documentation all the time. Serverside stuff not yet documented yet. Feedback welcomed! -- Micha Niskin and Alan Dipert -- -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this

Re: [ANN] Hoplon: web applications in Clojure and ClojureScript

2013-12-18 Thread Clinton Dreisbach
So excited to see this officially released! Hoplon is some cool shit. -- Clinton On Wed, Dec 18, 2013 at 3:05 PM, Micha Niskin micha.nis...@gmail.comwrote: Documentation is here: http://hoplon.io We continue to add documentation all the time. Serverside stuff not yet documented yet.

Re: How do I serve clojure pages with nginx

2013-12-18 Thread Zeynel
On Tuesday, December 17, 2013 9:02:19 AM UTC-4, David Della Costa wrote: ...I would probably simply push out an uberjar with lein which I would run with Java via an init script--for example, if using Ubuntu: http://upstart.ubuntu.com/cookbook/#run-a-java-application I want to try

Re: [ANN] Hoplon: web applications in Clojure and ClojureScript

2013-12-18 Thread Ray Willig
I'm an early adopter who's been using Hoplon for a while. Here'shttp://www.vbnetwork.com/tspdemo a demo of software for solving the traveling salesman problem that uses the full hoplon suite. On Wednesday, December 18, 2013 3:05:01 PM UTC-5, Micha Niskin wrote: Documentation is here:

Re: [ANN] Hoplon: web applications in Clojure and ClojureScript

2013-12-18 Thread James Reeves
It looks interesting, but it really needs an overview of the syntax. The purpose of the examples is clear, but the mechanism is a mystery. - James On 18 December 2013 20:05, Micha Niskin micha.nis...@gmail.com wrote: Documentation is here: http://hoplon.io We continue to add documentation

Re: [ANN] Hoplon: web applications in Clojure and ClojureScript

2013-12-18 Thread Micha Niskin
There is a section in the Getting Started page, titled Sexp Markup Syntax that attempts to explain the syntax. What needs to be improved there? On Wednesday, December 18, 2013 3:56:02 PM UTC-5, James Reeves wrote: It looks interesting, but it really needs an overview of the syntax. The

Re: [ANN] Hoplon: web applications in Clojure and ClojureScript

2013-12-18 Thread Ray Willig
Hi, I've notice a bunch of activity on my demo and I appreciate the interest. I apologize for the lack of documentation on specifically how to use it; it's in the works. I've noticed that several users are attempting to use the multiple vehicle feature which solves the capacitated vehicle

Re: How do I serve clojure pages with nginx

2013-12-18 Thread Curtis Gagliardi
I build an uberjar of a web server that uses jetty with compojure and run it on port 3000, then I have nginx configured to proxy it like so: https://gist.github.com/cgag/8031034 -- -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this

Re: How do I serve clojure pages with nginx

2013-12-18 Thread Curtis Gagliardi
I don't know how to configure an init script, but I just run the command `java -jar mywebserver.jar` in a tmux session manually and then detach. For how to setup an uberjar to run a web server, there's a nice tutorial on clojure-doc. You just need to make sure you have your :main class

Re: How do I serve clojure pages with nginx

2013-12-18 Thread Zeynel
I am following your tutorial, but I am stuck with Jetty configuration. My installation does not seem to have a /contexts directory. Where is it? On Tuesday, December 17, 2013 9:02:19 AM UTC-4, David Della Costa wrote: I have not done this specifically with Nginx but I suspect you probably

Re: [ANN] Hoplon: web applications in Clojure and ClojureScript

2013-12-18 Thread James Reeves
I wasn't expecting an overview of the syntax to be under Getting Started. The documentation there makes things clearer, but I still have a few questions: 1. What differentiates the top-level page definition from DOM objects returned from functions? Is the compiler just looking for the last

Re: [ANN] Hoplon: web applications in Clojure and ClojureScript

2013-12-18 Thread Micha Niskin
Ah, yes. There are some gaps in the docs that need to be fixed. To answer your questions: 1. The main thing that Hoplon does is unify the DOM and the dynamic environment (the JS environment). This makes it possible to refer to things from the dynamic environment in your markup.

Re: [ANN] Hoplon: web applications in Clojure and ClojureScript

2013-12-18 Thread Cedric Greevey
On Wed, Dec 18, 2013 at 10:45 PM, Micha Niskin micha.nis...@gmail.comwrote: The difference between a cell and an atom with watchers attached is that cells guarantee consistency. That is to say that the evaluation mechanism ensures that a formula cell is never updated until all of the cells it

Who is doing something worthwhile in Clojure?

2013-12-18 Thread Rich Morin
I found Doug Selph's talk at Clojure/conj to be quite inspiring, in that he is clearly (IMHO) doing something that is of great potential value to humanity. I used to have similar feelings about The Climate Corporation, but their recent acquisition by Monsanto troubles me. This makes me wonder

Re: [ANN] Hoplon: web applications in Clojure and ClojureScript

2013-12-18 Thread Micha Niskin
If formula cells have circular dependencies then you have an infinite loop at runtime. It's not really a problem when making real applications, though, at least for me. The spreadsheet model simplifies things enough that there really aren't any surprises; it's very clear what's happening in the