clj-blueprints

2012-02-24 Thread Eduardo Julian
I'd like to present you with an small library for working with
Blueprints-enabled graph databases in Clojure:
https://github.com/eduardoejp/clj-blueprints

Have fun!

-- 
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


Clojure binding for OrientDB

2011-08-01 Thread Eduardo Julian
I have been working on this library for a little while and I would
like to present it to you:
https://github.com/eduardoejp/clj-orient

I hope this can be of help for the Clojure and OrientDB communities.

-- 
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 stupid jvm question

2011-06-24 Thread Eduardo Julian
You might want to check this out:
https://github.com/tinkerpop/tinkubator/tree/master/mutant

-- 
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


clj-ripple

2011-05-11 Thread Eduardo Julian
I made a little library called clj-ripple for the easy embedding of
Ripple code (for navigating the Semantic Web) inside Clojure programs.

It works by translating Clojure sexps to Ripple code strings through a
macro and then executes and returns the resulting stacks as lazy
sequences.

The git repo can be found here: https://github.com/eduardoejp/clj-ripple

To include it in your projects, add this to your leiningen deps: [clj-
ripple "0.1.0-SNAPSHOT"]

For more info about the Ripple scripting language, please visit the
following links:
* http://ripple.fortytwo.net/
* http://ripple.googlecode.com/svn/trunk/docs/screencast/index.html
* https://github.com/joshsh/ripple/wiki

Happy crawling!

-- 
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: VerifyError trouble

2011-01-28 Thread Eduardo Julian
I think I have the same error as in this post:
http://groups.google.com/group/clojure/browse_thread/thread/8257e4ec8a652b23/e94df8077ecb1ac4

-- 
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


VerifyError trouble

2011-01-28 Thread Eduardo Julian
Hi guys.

I was working on a macro for easily defining mutable classes without
having to previously define a protocol for the methods in them (the
macro takes care of that for you) and providing basic get-set
operations.

However, I have trouble when defining classes, cause I get the
following error:
java.lang.VerifyError: (class: x/y/Z, method:  signature: ()V)
Incompatible argument to function

You can check out the code here: https://gist.github.com/800813

I'm using Clojure 1.2 on this one.

Am I doing something wrong or is this a bug in Clojure?

I think the problem comes when I add the metadata to the variables in
the class.

BTW: The switch macro that appears there is my version of 'case' and
it works mostly the same.

-- 
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


Why is DISsoc being DIScriminated?

2011-01-13 Thread Eduardo Julian
I noticed that although you can use assoc with sequences and vectors
to modify them, you could not use dissoc to eliminate elements from
them. Why is this so?

-- 
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: Entity component system

2011-01-09 Thread Eduardo Julian
Interesting. I'm also into game development with Clojure. I'd like to
see the project open--sourced and, if possible, participate.

-- 
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


OrientDB

2010-11-30 Thread Eduardo Julian
Hey guys,

I know it's not directly related to Clojure, but I'm in a start-up
with some friends and I'll be working on a website that would
seriously benefit from graph DBs. I've checked out Neo4J (and found it
quite nice), but OrientDB also seems really cool and it sports a more
flexible license (plus it seems to be better when it comes to
scalability).

However, there ain't much info about it outside the company's website.

Has anyone of you ever used it? If so, what has been your experience
with it?

P.S: In case I choose to use it, you can count on me open-sourcing a
Clojure lib for it, :P

-- 
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: Understanding clojure bindings

2010-11-27 Thread Eduardo Julian
You might wanna check out the post I recently made and the answer by
Ken Wesson: 
http://groups.google.com/group/clojure/browse_thread/thread/9b042a2ddb8017aa
It's basically the same thing.

-- 
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


Can clojure.contrib.fnmap.PersistentFnMap have metadata

2010-11-27 Thread Eduardo Julian
I was trying to use the fnmap API at clojure.contrib for some things
and I needed to add metadata to the function maps but I got this
exception:
java.lang.ClassCastException: clojure.contrib.fnmap.PersistentFnMap
cannot be cast to clojure.lang.IObj

Stuart, can you make PersistentFnMa extend IObject or is it not
possible for some reason?

-- 
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: Symbol evaluation error in let

2010-11-27 Thread Eduardo Julian
Woah. That's as weird as you can get.

Thanks, man.

-- 
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


Symbol evaluation error in let

2010-11-27 Thread Eduardo Julian
user=> (let [a 'b] (str a))
"b"
user=> (let [b 5 a 'b] (eval a))
java.lang.Exception: Unable to resolve symbol: b in this context
(repl-1:7)
user=> (let [a 'b b 5] (eval a))
java.lang.Exception: Unable to resolve symbol: b in this context
(repl-1:9)

user=> (def b 5)
#'user/b
user=> (def a 'b)
#'user/a
user=> a
b
userr=> (eval a)
5

How come this problem happens inside the let but not with def?

-- 
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


Problem: Multimethod Dispatch Function

2010-04-14 Thread Eduardo Julian
I'm working on an object system called Fenrir, and one of the
functions in my library, called new-obj, is used to make instances of
classes:

(defmulti new-obj #(:_fenrir_class-name %))
(defmethod new-obj ::fObject [fclass & kvals]
(with-meta (apply struct-map (conj kvals (:_fenrir_struct fclass)))
{:_fenrir_class (:_fenrir_class-name fclass)}))

In fObject, the class which all other classes extend, I have
implemented the basic mechanisms for setting slots in struct-objects.
However, when I call the multimethod with something like this:

(new-obj fGameObject :location 'a-loc :sprite 'a-sprite)

I get this error:

1:14 yggdrasil.fenrir.core=> java.lang.IllegalArgumentException: Wrong
number of args passed to: core$fn (repl-1:13)

That sort of thing has also happened to me with other multimethods I'm
working on.

Could anybody help me?

-- 
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

To unsubscribe, reply using "remove me" as the subject.