Re: Got a Clojure library?
Name: Roland Sadowski (fyuryu on IRC). Library name: Clojure+Processing Library home page URL: http://github.com/rosado/clj-processing/tree/master Category: visualization, graphics, wrapper License: Common Public License Version 1.0 Dependencies: a recent version of Processing (processing.org) Description: A wrapper for the Processing (processig.org) visualization library. Library name: Cloak Library home page URL: http://github.com/rosado/cloak/tree Category: automation tool, build tool License: Common Public License Version 1.0 Dependencies: collection of my utility functions from libs4clj (http:// github.com/rosado/libs4clj/tree/master), you can also use it with Lancet (therefore use ant tasks etc) Description: Cloak is a simplistic automation tool written in Clojure. It's heavily inspired by ruby rake. - Roland --~--~-~--~~~---~--~~ 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 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 Users Group - Denmark
Hi, I'm currently in Copenhagen so I'm definitely interested. -Roland --~--~-~--~~~---~--~~ 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 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 -~--~~~~--~~--~--~---
gen-struct: a Clojure macro for generating classes with mutable state
Hi, I modified the gen-struct macro a bit and got it to generate simple, mutable and immutable structures. You can customize only one aspect of those classes: their fields. Here's an example: (gen-struct :name my.test.struct :mutable-fields [[float x] [float y]] :final-fields [[int timeout] [static int MAX_TIMEOUT :is 1000] [java.io.File input]]) gen-struct automatically generates a constructor which lets you initialize all the final, non-static fields. In the above example, single constructor accepting an `int` value and a `File` object would be generated (you pass the arguments in order in which they were declared in the macro). gen-struct classes need to be compiled, just like with gen-class. This is an ugly duckling, since it doesn’t allow for inheritance (not planning to add it right now), probably not everyone will be satisfied with no possibility of overriding equals method, and static final fields can only be of primitive type. At least it doesn’t let you mix state and behavior in one entity. My main motivation for creating it was that some of my experiments in clj-processing needed a lot of mutation. Here's the source: http://github.com/rosado/gen-struct/tree/clean Roland --~--~-~--~~~---~--~~ 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 for game programming?
In general, staying on the purely functional side will most likely kill your performance. You will need some mutation (I'd like to be proven otherwise, though). And not mutation via refs and so on, but mutation in the Java sense. So you'll have to create some Java classes for your game objects It's possible to generate those classes from Clojure via gen-struct (http://bit.ly/mHzkX), which is a modification of genclass.clj. -Roland On Aug 30, 6:01 am, Elliott Slaughter wrote: > Hi, > > I'm visiting from the Common Lisp game-dev crowd and wanted to try out > Clojure for writing games. > > I saw some JOGL examples posted in this group, in addition to the > cloggle library which wraps some JOGL functionality. Cloggle is pretty > thin right now and uses glFunctionNames as they are, so I've added > some patches to convert glFunctionNames to Lispier function-names, and > tried to Lispify the interface in general [1]. > > I think I'd be fairly comfortable writing a graphics engine with my > patched version of cloggle. What I'm not so sure about is writing the > game simulation model. > > All game simulation models I've seen used graphs of mutable objects; > I'm not entirely sure how to move to a more functional model. One the > one hand, reallocating the game world on every frame seems excessive > (even if Java's GC is fast), and on the other hand putting refs > everywhere a value could potentially change seems equally excessive > (and probably detrimental to performance). > > I just saw zippers on the other libraries page, but haven't had the > time to read it and don't know if it meets my needs or not. > > If anyone has suggestions on simulating interactions between trees of > objects (especially on the Clojure way to do it), I'd appreciate it. > Comments on my cloggle patches also welcome. > > [1]http://github.com/slaguth/cloggle/tree/master --~--~-~--~~~---~--~~ 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: Are you supposed to turn ClojureCLR into DLLs?
Yes, you can compile the code to a DLL using th compile function, similarly to how it's done on the JVM. You have to set two env. variables, though (just like one has to set the classpath for the JVM): clojure.compile.path and clojure.load.path -Roland On Jun 3, 8:49 am, Peter Hultgren wrote: > Hi, > > I'm new to ClojureCLR and the DLR, so I'm trying to grasp the basic concepts > of it. > > If I want to call Clojure code from C#, is it possible to compile the > Clojure code to a DLL and then reference it from my C# project, or am I > always supposed to load the script using methods? > > // Peter Hultgren -- 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: Who's using Clojure?
Citigroup is using Clojure. In serious projects, not as perl replacement on some developer's machine. I'm not at liberty to share more details. -- 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: 2D graphics options with Clojure?
Processing has PDF exporting capabilities via one of the standard libraries that ship with it: http://processing.org/reference/libraries/pdf/index.html I haven't used it myself, but I remember seeing nice stuff rendered with it. -Roland -- 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 Conj extracurricular activities spreadsheet
Please add me to the following: ClojureScipt core.logic Clojure tooling ClojureCLR Literate Programming D3 and ClojureScript Thanks, Roland Sadowski -- 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
Processing wrapper
Hi all, I've written a wrapper for Processing.org. It covers most of the functions, some have slightly changed name. You need to have processing's core.jar in the CLASSPATH to use it. There's an example script with an amazing graphics demo. It works as a standalone script but it's more fun via editor+repl. One thing I couldn't get working is OpenGL, I've added all the additional jars and native libs to the CLASSPATH etc, but it still exploded. If anyone manages to get it working (or already did it), please, post some info here. Roland Sadowski --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~--~~~~--~~--~--~---
Re: Processing wrapper
Sorry, forgot the link: http://bit.ly/3ZT3ZG I wanted to put it on github, but windows/ssh/git don't want to cooperate. Roland --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~--~~~~--~~--~--~---
Re: Processing wrapper
It's on github now (worked from linux...) http://github.com/rosado/clj-processing Roland --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~--~~~~--~~--~--~---
Re: offtopic - where are you come from? (poll)
I'm from Żory, Poland. Roland --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~--~~~~--~~--~--~---
Re: Processing wrapper
Thanks, fixed. -- Roland On Nov 2, 4:49 am, cranebird <[EMAIL PROTECTED]> wrote: > Hi, > > Thank you for your good wrapper for processing. I think it makes > simplify to use PApplet class in clojure. > I found 'stroke-weight in processing.clj may be wrong - I think it > should call strokeWeight instead of strokeJoin. > > Best regards, > > On Sep 9, 8:28 am, fyuryu <[EMAIL PROTECTED]> wrote: > > > It's on github now (worked from linux...) > > >http://github.com/rosado/clj-processing > > > Roland --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~--~~~~--~~--~--~---
Re: lancet: Clojure controlling Ant
Driving ant from Clojure would be cool. I like the syntax of rake (but I don't use ruby) and started working on something similar. I also wanted to look at ant's internals to reuse some of its code (probably). Here's what I'm working towards (taken from a presentation about rake): (task :build [:generate-html :copy-images]) (task :generate-html [:create-direcories] (sh "someFile.exe --switch params ")) (task :copy-images [:create-direcories] (cp "pics/rake.gif" "html/images/rake.gif") (cp "pics/x.jpg" "html/images/x.jpg")) (task :create-direcories (mkdir "html") (mkdir "html/images")) Rake scripts look pretty simple and that is my goal, but I think it's possible to make ant simpler by getting the syntax right. -- Roland --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~--~~~~--~~--~--~---