Re: Suggestion needed for namespace management in modular clojure app
On Sun, Oct 9, 2011 at 8:48 AM, Stephen Compall stephen.comp...@gmail.com wrote: On Fri, 2011-10-07 at 19:07 +0530, Vivek Khurana wrote: I would prefer to have a modules directory where each module will create a sub directory and all files in the module sub directory expose a single namespace. So it sounds like you intend for module writers to be writing Clojure, but want to replace the standard way namespaces are done in Clojure (i.e. ns form at top of file). Not just clojure. Solution for clojure only code is simple. The application is a framework, which will expose some API and modules consuming the API, can be written in any JVM language. It is known that all modules will run from same instance of JVM. The issue is that I should be able to distinguish between the modules written by core team and modules written by others and cannot figure out the correct way to manage namespaces in this situation. When ever I try to use AOT I get errors. You should avoid AOT for this; indeed, perhaps modules shouldn't even go in the src/ directory, assuming you are using Leiningen or something with similar structure. Yes I am using Leiningen. Do you suggest I should host the modules out side the src ? Wont that create a classpath havoc ? Secondly, in case the modules are outside src, how will they compile ? Do I need to make any changes to Leingen configuration ? Also, is there a better way to manage namespaces in modular applications. I do not want the developers of modules to struggle with managing files and namespaces. If you wish to replace the standard Clojure conventions for managing files and namespaces, as codified by `require' and its ilk, these items will help you on your adventure: clojure.core/*ns* A clojure.lang.Namespace object representing the current namespace. clojure.core/load ([ paths]) Loads Clojure code from resources in classpath. snip clojure.core/load-file ([name]) Sequentially read and evaluate the set of forms contained in the file. You could bind `*ns*' to a namespace you construct yourself while loading the files that make up a module, in a guaranteed order of course. It might be difficult to guarantee the order when number of modules increase... regards Vivek -- The hidden harmony is better than the obvious!! -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Suggestion needed for namespace management in modular clojure app
Hi! I am working on a clojure app which needs to be modular. The module need to be pluggable. While I have figure out the pluggable part, I am facing issues with managing namespaces. I would prefer to have a modules directory where each module will create a sub directory and all files in the module sub directory expose a single namespace. The problem is even with AOT compile I am not able to achieve this. What I need is if the path of module subdirectory is xyz/modules/accounts teh namespace should be xyz.modules.accounts . How do I achieve this ? When ever I try to use AOT I get errors. Also, is there a better way to manage namespaces in modular applications. I do not want the developers of modules to struggle with managing files and namespaces. regards Vivek -- The hidden harmony is better than the obvious!! -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
error on compile
Hi! When I try to compile a class from repl I am getting following error user= (compile 'xyz.modules.accounts.accounts) java.lang.ClassNotFoundException: clojure.contrib.json.Read_JSON_From (json.clj:167) I have tried searching the docs but I cant find clojure.contrib.json.Read_JSON_From anywhere . Is it some dependancy that I am missing ? I am using clojure 1.2.0 and clojure.contrib 1.2.0 . regards Vivek -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: The Last Programming Language
On Wed, Jul 20, 2011 at 7:52 PM, daly d...@axiom-developer.org wrote: snip A justification of homoiconicisty is that programs == data. A clever soul named Von Neumann made the observation that machines were controlled by external commands (i.e. programs) to operate on things (i.e. data). His insight was to unify the problem and treat programs as data resulting in the invention of the stored program computer. If you completely separate something like a loader (program) from its data (the binary program) then there is no way to treat the program-you-load as the-program-to-run. Today we teach students to write programs to manipulate data so we have returned to the pre- Von Neumann mindset. It is considered the height of bad form to execute data. In fact, some bright spot added SELinux with the default policy that you could not execute code from the heap! You are spot on with this. We have built a whole army of programmers who would manipulate data instead of transforming data. Sooner or later this practice results in bloated code. regards Vivek -- The hidden harmony is better than the obvious!! -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: following Rich's talk at NYC Clojure this Wednesday
On Mon, Jul 18, 2011 at 9:28 PM, Stuart Halloway stuart.hallo...@gmail.com wrote: Several people have asked about access to Rich's upcoming talk this Wednesday night [1]. In order to make information available for those who are not present in NYC, we are planning to do the following: Please post the timing along with timezone info :) regards Vivek -- The hidden harmony is better than the obvious!! -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Anyone on Google+ yet?
On Thu, Jul 14, 2011 at 10:42 PM, Claudia Doppioslash claudia.doppiosl...@gmail.com wrote: My Clojure circle is all set up but empty. My g+ is: http://gplus.to/gattoclaudia Please add link to your profile below. gplus.to/vivekk regards Vivek -- The hidden harmony is better than the obvious!! -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Vagrant setup [was Re: Please stand firm against Steve Yegge's yes language push]
On Fri, Jul 8, 2011 at 10:28 PM, Lee Spector lspec...@hampshire.edu wrote: On Jul 8, 2011, at 12:38 PM, Vivek Khurana wrote: That is still not as easy as python. Running VM is a bigger overhead... There are different kinds of overhead. If the installation and setup of the VM is simple and bullet proof then this is acceptable overhead for me. Tell a newbie that they need to run a VM in order to try clojure... I dont think many will be interested in doing this. regards Vivek -- The hidden harmony is better than the obvious!! -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Recommendation for Clojure Enterprise Development toolkit
On Sat, Jul 9, 2011 at 1:59 PM, MarkH markhanif...@gmail.com wrote: As a tech lead or architect you should be fired for even suggesting to use Clojure as an enterprise greenfield. Industry and academia is moving towards advanced type systems. Nobody in industry seriously considers Clojure for enterprise systems. Exactly the same way no one in the industry seriously considered PHP, python, ruby and even JAVA in first few years of the language development... regards Vivek -- The hidden harmony is better than the obvious!! -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Recommendation for Clojure Enterprise Development toolkit
On Sun, Jul 10, 2011 at 9:06 AM, Luc Prefontaine lprefonta...@softaddicts.ca wrote: Maybe we should create something better than SAP :) Not exactly better than SAP, but I am working on a business management framework based on clojure. regards Vivek -- The hidden harmony is better than the obvious!! -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Please stand firm against Steve Yegge's yes language push
On Fri, Jul 8, 2011 at 9:47 PM, Phil Hagelberg p...@hagelb.org wrote: Have you tried the Vagrant approach? It's a one-button Emacs/Clojure/Leiningen hacking VM setup[1]: https://github.com/Seajure/emacs-clojure-vagrant -Phil [1] - provided you have virtualbox. That is still not as easy as python. Running VM is a bigger overhead... regards Vivek -- The hidden harmony is better than the obvious!! -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Russ olsen's Clojure Book
On Thu, Jun 30, 2011 at 12:10 PM, Sean Corfield seancorfi...@gmail.com wrote: On Wed, Jun 29, 2011 at 9:07 PM, Vivek Khurana hiddenharm...@gmail.com wrote: Many of the design patterns as presented by Gang of Four and Martin Fowler are strictly OO based are suitable for only for OO based languages. I don't agree - I think many of those patterns can be applied in a non-OO world but the implementation will look a bit different... I did not say all of them... regards Vivek -- The hidden harmony is better than the obvious!! -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Russ olsen's Clojure Book
On Thu, Jun 30, 2011 at 8:39 AM, flebber flebber.c...@gmail.com wrote: Just wanted to put a shout out to Russ Olsen to see what would be needed to get a Russ Olsen book on clojure to happen. I am reading design principles in Ruby and its a great read, I feel I am learning much moe than just Ruby which is why I am reading it. Do you mean Design Patterns in Ruby by Russ Olsen ? I woould absolutely love to read how Russ would apply these design principles to Clojure a more functional language. His books are all 5 star reads(amazon ratings) and would greatly enjoy being able to read a Russ Olsen clojure book. Many of the design patterns as presented by Gang of Four and Martin Fowler are strictly OO based are suitable for only for OO based languages. regards Vivek -- The hidden harmony is better than the obvious!! -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Callback functions
Hi! I am building an application with menu callbacks. Based on the url request the application has to call a function. The function name and namespace is available as strings from database. The issue I am facing is, when I try to call the function using ns-resolve, I get an error saying No namesapce found . This is how I am calling the required callback ((ns-resolve (symbol ns-name) (symbol callback))) where ns-name is the name of the namespace containing the function and callback is the actual function to be called. How do I fix the namespace not found error ? regards Vivek -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Callback functions
On Mon, May 23, 2011 at 1:06 PM, Meikel Brandmeyer m...@kotka.de wrote: Hi, works for me. Did you call (require (symbol ns-name)) before the resolve call? Thanks I was using (:use) which was not working. regards Vivek -- The hidden harmony is better than the obvious!! -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Clojure ideas repository / todo list
On Sun, May 15, 2011 at 2:47 AM, Islon Scherer islonsche...@gmail.com wrote: Is there anyplace people post ideas of libraries/frameworks/functions that would be nice to be implemented in clojure? Sometimes I want to help the community but I don't know what to do (an idea), what's already done (yeah, I know one can search github or ask here but you can't be 100% sure it's not already implemented). Maybe a wiki or something like that would do the job. Why not post them to mailing list ? regards Vivek -- The hidden harmony is better than the obvious!! -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Good choices for a NoSQL database with Clojure?
On Sat, Mar 26, 2011 at 10:26 PM, Base basselh...@gmail.com wrote: hi All - Any recommendations on a NoSQL database to use with clojure? I am experimenting if it will fit my project better than a SQL db and have no real experience with them. Strong clojure support is obviously important for this. The only one I know of is MongoDb... Thoughts?? What problem are you trying to solve ? I am using mongodb with clojure with no issues.. regards Vivek -- The hidden harmony is better than the obvious!! -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Monad Lessons
On Thu, Mar 10, 2011 at 12:45 AM, jim jim.d...@gmail.com wrote: I gave a talk at CodePaLOUsa on monads and got some favorable feedback. So I thought I'd offer to do a live training session on monads using pretty much the same material, but at a shared REPL rather than with slides. How it would work is I would start a Skype conference for 5 to 10 people. We would also all log in to a tmux session where I would show the examples and their results. So, my question is how many would be interested in such a session? This would be a basic introduction to monads. Future session could be about more advanced monad topics, if there was a demand for that. Recording the session and distributing them will be more scalable... regards vivek Jim -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- The hidden harmony is better than the obvious!! -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
A question on distributed computing
Hi! I am currently developing an application where I need to enforce certain policy on clojure code. My requirement is that code+data can be sent to a remote node and based on certain access control and config, one should be able to control whether the remote node is allowed to execute code or has read only access to the data. The permission to execute the code can be fine grained such as the remote node can only edit specific section(s) of the record while it ca read all the section. A common example of this can be health data. One can send patient record to a remote node and remote node is allowed to add new rows to specific sections or edit certain sections. Any one who has worked on a similar problem ? I am stuck for not been able to find a way to enforce the policy on the code+record sent to remote node using clojure. regards Vivek -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: A question on distributed computing
On Nov 2, 8:56 pm, Ken Wesson kwess...@gmail.com wrote: That seems impossible assuming you don't trust the software running on the other node. It is not impossible. There are projects by Cornell .University, jiff[1] and fabric[2] which have achieved the same. Jiff is modification of java and fabric is based on jiff.Both languages run inside JVM. So I was wondering if it is possible to add some kind of access control policy on clojure code, via an extension or as language feature ? regards Vivek -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Talk at QCon SP
On Sep 14, 3:49 am, Pedro Teixeira pedr...@gmail.com wrote: Last night, I had the chance to talk about some of the technologies I've put together in a recent project. In particular, it's about mixing clojure + cqrs + event sourcing + cep. I made slides available athttp://tinyurl.com/pedroqcon-- and I'll soon publish a sample demo on github. Is the video of your presentation available ? regards Vivek -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Interest in Google Summer of Code 2010?
On Feb 13, 8:19 pm, defn dev...@gmail.com wrote: Hello all, Is there any interest in GSoC 2010 for Clojure? I moved to clojure recently. I had been GSoC mentor twice and i have the t-shirt to prove it ;-) I am willing to be a co-mentor in case clojure is accepted in GSoC. I cant take up full mentor role as I am myself new to the language, just 3 months old in clojure world. regards Vivek -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Interest in Google Summer of Code 2010?
On Feb 13, 8:19 pm, defn dev...@gmail.com wrote: Hello all, Is there any interest in GSoC 2010 for Clojure? I posted a reply yesterday but for some reasons it has not appeared yet. So posting again. I had moved to Clojure recently. I had been GSoC mentor twice and I have the t-shirt to prove it ;-) . If clojure is accepted in GSoC, I will be happy to co-mentor some student. I cant be full blown mentor as I am only 4 months old in clojure world. regards Vivek -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Interest in Google Summer of Code 2010?
On Feb 14, 11:27 am, Vivek Khurana hiddenharm...@gmail.com wrote: I had moved to Clojure recently. I had been GSoC mentor twice and I have the t-shirt to prove it ;-) . If clojure is accepted in GSoC, I will be happy to co-mentor some student. I cant be full blown mentor as I am only 4 months old in clojure world. Thanks to Arun for pointing to the error and me gaining an extra hour in 12 hours. its 3 months not 4 months :) regards Vivek -- 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 from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en