Re: source of functions
On Wed, Jun 20, 2012 at 5:16 PM, Phil Hagelberg p...@hagelb.org wrote: On Wed, Jun 20, 2012 at 8:13 AM, Rogier Peters rogier.pet...@gmail.com wrote: With all the higher-order functions in the new reducers, I was wondering if it is possible to print a generated function, like using (source f). You need serializable-fn for that: https://github.com/technomancy/serializable-fn -Phil Thanks! I'll give it a try -- 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: [ANN] clojure.java.jdbc 0.2.3 available on Maven Central
Actually, jsql looks very much like clojureql\korma. Honetly, I wish see better support for clojureql rather than new similar DSLs coming up. четверг, 21 июня 2012 г., 11:36:24 UTC+6 пользователь Sean Corfield написал: Just two changes in this release: * as-str now treats a.b as two identifiers separated by . so quoting produces [a].[b] instead of [a.b] This was a bug that I'm kind of surprised no one had tripped over yet. I fell over it as soon as I tried to build a DSL on top of the library. * Add :connection-uri option [JDBC-34](http://dev.clojure.org/jira/browse/JDBC-34) This was added in response to an observation by Chas Emerick about the lack of any way to create a connection directly from a raw connection URL and the DriverManager. The next big release will add a new, more functional API (query, execute!, insert!, update!, delete! etc). The jury is still out on a simple DSL for common SQL operations. You can see a hint of where I'm going in this repo: https://github.com/seancorfield/jsql Clarification (based on some off-list comments I've received): I have no intention of trying to shoehorn something like Korma or ClojureQL into java.jdbc. Any DSL that gets added will be simple and only intended to deal with common cases - and with an easy way to drop down to SQL itself. The main thrust is to get an API i place that doesn't rely on dynamic variables. -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ World Singles, LLC. -- http://worldsingles.com/ Perfection is the enemy of the good. -- Gustave Flaubert, French realist novelist (1821-1880) -- 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 tutorial for how to setup your clojure development environment for: Emacs, Leiningen and Linux.
On 21/06/12 03:58, John Gabriele wrote: Sometimes you need to spend time with an editor + repl to see the value in something more sophisticated. Also, I suppose sometimes you end up sticking with the editor + repl anyway.:) exactlypersonally I'm sticking to editor + embedded repl until light-table comes out! 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
Re: How to go about finding a Clojure job
Colin, I love Clojure language and have done small personal projects. Actually, I like all types of functional languages, had a lot of experience on xquery and related technologies, schema and lisp. May I learn what you are doing? Erol Akarsu On Monday, June 18, 2012 9:27:53 AM UTC-4, Colin Steele wrote: Or send me yours. We're a full-on clojure shop in Charlottesville, VA. On Saturday, June 16, 2012 10:49:00 AM UTC-4, tbc++ wrote: I'm about to begin the process of looking for a new job, and would like to find one that focuses on Clojure. Can anyone suggest some good ways to go about this? It seems like posting my resume on this mailing list would be a bit off-topic. As far as location goes, I'm looking in the Denver, CO area, but am also open to 100% telecommute. Thanks, Timothy Baldridge -- 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 tutorial for how to setup your clojure development environment for: Emacs, Leiningen and Linux.
I created a guide from my recent experience with Clojure + Leiningen2 + Emacs (on Linux and Mac OSX) that hopefully makes it very easy for developers to get a productive environment. http://clojure.jr0cket.co.uk/perfect-environment I would be willing to contribute any or all of this if its useful to the official docs on Confluence. I will have a look at what is required to contribute to dev.clojure.org. Thanks | About http://john.jr0cket.co.uk/ | Blog http://blog.jr0cket.co.uk/ | @JR0cket http://http//twitter.com/#%21/JR0cket | Google+http://gplus.to/JR0cket| LinkedIn http://uk.linkedin.com/in/jr0cket | On 13 June 2012 20:33, fenton fenton.trav...@gmail.com wrote: https://github.com/ftravers/PublicDocumentation/blob/master/clojure-development-setup.md An index to other clojure tutorials: https://github.com/ftravers/PublicDocumentation/blob/master/clojure-index.md -- 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
aot compilation of clojure source code...
Hey guys I was just wondering If we aot compile a namespace in clojure will it be harder to decompile than the Java equivalent? Recently, the concept of securing code came up where I work and was asked what Clojure does for that...Now, from what I've noticed libraries tend to be shipped with regular source-code rather than AOT compiled. what happens though if one wants to protect his code? java classes are very easy to decompile even if names have been obfuscated...Will the same thing happen in clojure? Presumably yes cos it is JVM bytecode at the end of the day... 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
Re: [ANN] clojure.java.jdbc 0.2.3 available on Maven Central
On Thu, Jun 21, 2012 at 12:33 AM, Vinzent ru.vinz...@gmail.com wrote: Actually, jsql looks very much like clojureql\korma. jsql has completely different goals to ClojureQL/Korma and is mostly a convenience for generating the sort of SQL that the update!, insert! and delete! methods need under the hood (c.j.jdbc has to generate that SQL anyway - might as well make the methods public). The select/where/order-by has evolved out of our common usage at World Singles where we have get-by-id and find-by-keys and similar CRUD functions. jsql is deliberately very close to the metal of SQL and is not intended to be composable etc. Folks wanting a full-blown DSL should indeed use Korma (or ClojureQL). Honetly, I wish see better support for clojureql rather than new similar DSLs coming up. Lau hasn't updated ClojureQL for a while - if you want better support, perhaps you should approach him and contribute to that project? -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ World Singles, LLC. -- http://worldsingles.com/ Perfection is the enemy of the good. -- Gustave Flaubert, French realist novelist (1821-1880) -- 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
Complex network algorithms
Is there a central repository for graph/complex network algorithms? Specifically I'm interested in algorithms intended for larger graphs like centrality measures, clustering coefficients, etc... -- 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: aot compilation of clojure source code...
jim.foobar jimpil1...@gmail.com writes: If we aot compile a namespace in clojure will it be harder to decompile than the Java equivalent? Recently, the concept of securing code came up where I work and was asked what Clojure does for that...Now, from what I've noticed libraries tend to be shipped with regular source-code rather than AOT compiled. what happens though if one wants to protect his code? java classes are very easy to decompile even if names have been obfuscated...Will the same thing happen in clojure? If you ship code to someone, they are going to be able to learn how it works if they want. There are things you can do to make it more difficult to varying degrees, but nothing can make it impossible. It's basically the same problem as making unbreakable DRM. -Phil -- 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
Update to downloads page?
Hi, It appears to me that, at the top of http://clojure.org/downloads , it should say, Though, for typical use, install [Leiningen](http://leiningen.org/index.html) and have it take care of getting Clojure for you. Would it be possible to change this? I've sent in my CA, but don't know if Rich got it yet. Thanks, ---John -- 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: Standard alias for partial?
something like %() becomes possible with reader literals in clojure 1.4 Not sure if it is a good idea though also, top level literals are reserved On Tue, Jun 19, 2012 at 8:56 PM, Jay Fields j...@jayfields.com wrote: I'd actually like to see %(...) become (partial ...), as I think people associate % with anonymous functions. Which is why I chose (% ...), as it's close to what I wish we had. I get your point though, and I don't disagree. But, this does keep coming up, so I think a shorter syntax for partial would be nice, whether it's %(), #() or whatever. Cheers, Jay On Tue, Jun 19, 2012 at 2:52 PM, Timothy Baldridge tbaldri...@gmail.com wrote: uh, it's going to do what you expect... user= (def % partial) #'user/% user= (map #(inc %) [1 2 3]) (2 3 4) My point was that you have overloaded the meaning of the % symbol. If someone says what does % mean in clojure. You can say it's shorthand for the first argument in the shorthand version of the anonymous function definition., now you have to say well it depends on the scope Please, don't ever take reader macros and re-define them out of scope to mean something else. It just confuses people and makes the code harder to read. Timothy -- 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 -- 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 -- 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: reloading protocols causes problems
On Tuesday, June 19, 2012 5:53:41 PM UTC+1, David Nolen wrote: Looking forward to an Overtone API over WebAudio ( http://chromium.googlecode.com/svn/trunk/samples/audio/index.html) :) David This has been discussed briefly, but it would be a serious undertaking to develop something approximating the functionality of the SuperCollider synthesis engine we currently use. That said, our instruments are just functions, so it might be feasible to use a lot of the music making capabilities of Overtone on top of a fresh synthesis layer done using WebAudio... Someday maybe. -Jeff -- 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: [ANN] clojure.java.jdbc 0.2.3 available on Maven Central
On Thu, Jun 21, 2012 at 9:33 AM, Sean Corfield seancorfi...@gmail.com wrote: On Thu, Jun 21, 2012 at 12:33 AM, Vinzent ru.vinz...@gmail.com wrote: Actually, jsql looks very much like clojureql\korma. jsql has completely different goals to ClojureQL/Korma and is mostly a convenience for generating the sort of SQL that the update!, insert! and delete! methods need under the hood (c.j.jdbc has to generate that SQL anyway - might as well make the methods public). The select/where/order-by has evolved out of our common usage at World Singles where we have get-by-id and find-by-keys and similar CRUD functions. jsql is deliberately very close to the metal of SQL and is not intended to be composable etc. Folks wanting a full-blown DSL should indeed use Korma (or ClojureQL). Honetly, I wish see better support for clojureql rather than new similar DSLs coming up. Lau hasn't updated ClojureQL for a while - if you want better support, perhaps you should approach him and contribute to that project? -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ World Singles, LLC. -- http://worldsingles.com/ Perfection is the enemy of the good. -- Gustave Flaubert, French realist novelist (1821-1880) -- 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 given java.jdbc's position as the sort of lower level glue all these libraries are built on, maybe better then including a DSL in java.jdbc would be including an AST (some data representation of sql) and a compiler for same. you can argue that well code is data so the dsl is an exposed data representation of sql, none of the dsls are low level enough to be targeted by any of the others. -- And what is good, Phaedrus, And what is not good— Need we ask anyone to tell us these things? -- 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: reloading protocols causes problems
Sure, but if the protocol hasn't changed, does a new type need to be generated? Maybe this is too much to ask, but I would imagine that the compiler could inspect the current protocol of the same name and compare it with the newly evaluated one, and then only generate a new type when necessary. I don't know how this machinery works currently so this could be a naive or incorrect way of thinking about it, but if possible it would really improve protocols for use in dynamic development. -Jeff On Tuesday, June 19, 2012 3:49:13 PM UTC+1, Phil Hagelberg wrote: Protocols necessarily make some unfortunate dynamicity trade-offs in the name of self-hosting. If you value interactive development over execution efficiency perhaps they are not the right choice. -Phil -- 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: aot compilation of clojure source code...
Yes ok I do get that...but wouldn't you agree that is slightly easier for plain Java than it is for clojure? Especially for someone that has no idea how the clojure compiler works...for example if you decompile a clojrue ns it just seems plain wrong!!! x = null; y= null; //do something with x and y This is just plain confusing for a a java person isn't it? Jim On 21/06/12 18:44, Phil Hagelberg wrote: jim.foobarjimpil1...@gmail.com writes: If we aot compile a namespace in clojure will it be harder to decompile than the Java equivalent? Recently, the concept of securing code came up where I work and was asked what Clojure does for that...Now, from what I've noticed libraries tend to be shipped with regular source-code rather than AOT compiled. what happens though if one wants to protect his code? java classes are very easy to decompile even if names have been obfuscated...Will the same thing happen in clojure? If you ship code to someone, they are going to be able to learn how it works if they want. There are things you can do to make it more difficult to varying degrees, but nothing can make it impossible. It's basically the same problem as making unbreakable DRM. -Phil -- 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: Update to downloads page?
Or perhaps something like this: Although it is possible to download Clojure directly here link, for a more complete package management system please see Leiningen. But yes, I agree, we need a big fat notice that says don't download directly unless you know what you're doing. Timothy On Thu, Jun 21, 2012 at 1:11 PM, John Gabriele jmg3...@gmail.com wrote: Hi, It appears to me that, at the top of http://clojure.org/downloads , it should say, Though, for typical use, install [Leiningen](http://leiningen.org/index.html) and have it take care of getting Clojure for you. Would it be possible to change this? I've sent in my CA, but don't know if Rich got it yet. Thanks, ---John -- 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 -- “One of the main causes of the fall of the Roman Empire was that–lacking zero–they had no way to indicate successful termination of their C programs.” (Robert Firth) -- 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
ann: Updated Brief Beginner's Guide to cover Lein 2 prev6 and OpenJDK 7
Updated Brief Beginner's Guide to cover Leiningen 2.0.0-preview6 and OpenJDK 7: http://www.unexpected-vortices.com/clojure/brief-beginners-guide/ ---John -- 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: aot compilation of clojure source code...
Jim - FooBar(); jimpil1...@gmail.com writes: Yes ok I do get that...but wouldn't you agree that is slightly easier for plain Java than it is for clojure? Especially for someone that has no idea how the clojure compiler works...for example if you decompile a clojrue ns it just seems plain wrong!!! x = null; y= null; //do something with x and y This is just plain confusing for a a java person isn't it? Sure, it always depends on how much someone wants to figure it out. If they're determined I'm sure they can figure out how locals-clearing works. Reconstructing something approximating the original Clojure source from bytecode is probably very hard, but learning how the program works is not necessarily. -Phil -- 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: aot compilation of clojure source code...
On Thursday, June 21, 2012 2:36:21 PM UTC-7, Phil Hagelberg wrote: Jim - FooBar(); jimpil1...@gmail.com writes: Yes ok I do get that...but wouldn't you agree that is slightly easier for plain Java than it is for clojure? Especially for someone that has no idea how the clojure compiler works...for example if you decompile a clojrue ns it just seems plain wrong!!! x = null; y= null; //do something with x and y This is just plain confusing for a a java person isn't it? Sure, it always depends on how much someone wants to figure it out. If they're determined I'm sure they can figure out how locals-clearing works. Reconstructing something approximating the original Clojure source from bytecode is probably very hard, but learning how the program works is not necessarily. It's really not that hard - for any given function, reconstructing what it does from the bytecode is mostly a matter of tedium, not of genius. Closures are a little more complicated because you have to figure out what context they fit into, but it's not terribly difficult because the Clojure compiler is pretty regular about how it does things. -- 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: Standard alias for partial?
On Tue, Jun 19, 2012 at 8:25 PM, JvJ kfjwhee...@gmail.com wrote: This is not really a big deal, but I was wondering if there was a shorter alias for partial in the standard library. It seems like one of those things that should require a single-character operator. Interesting, I am also interested in finding an idiomatic way of aliasing comp and partial. Francois Devlin in his Full Disclojure pocast ( http://vimeo.com/channels/fulldisclojure/8665159) is using: (def comp) (def p partial) Can't be simpler, but of course you can't use p as a variable anymore. brainstorming Couldn't we use single non-ASCII characters character for example Greek letters, ...? APL anyone ?, no ? :) /brainstorming Denis I usually do something like this : (def $ partial) I wonder if something like that could be integrated into the library... -- 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 -- 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