Re: LurePet - Digital Art Project Written in Clojure - Beauty Contest For Virtual Life (shamelessly advertising)

2011-12-23 Thread Joseph Jones
Do you have a link to the running project?

On Dec 23, 2011, at 3:23 PM, Sergey Didenko wrote:

> Hi, finally I can show you some quite complex project that I made in Clojure.
> 
> The Idea:
> 
> Every lurepet (big picture) that you see on the site has some "genes"
> and is drawn according to them.
> 
> After the best lurepets are selected they can be bred to make children
> looking like their parents. This is going to be repeated to create
> more and more beautiful lurepets.
> 
> And of course the reason to vote is to save the future humanity that
> is attacked by evil robots which has the only flaw - insane obsession
> with lurepets :)
> 
> Implementation:
> 
> The drawing logic which is 99% of all the logic, is written in
> Clojure. I'm very glad that I chose it, because I can not imagine
> beeing so productive in developing and maintaining (!) complex domain
> logic in a more verbose language like Java.
> 
> The web part currently is a set of static files: html, js and images.
> Cloudflare is used to CDN the static except the index.html. I hope
> that will help if there is a massive spike in traffic. The votes are
> processed from nginx logs in offline mode.
> 
> If you like the project - please upvote this thread on Hacker News -
> http://news.ycombinator.com/item?id=3387597
> 
> -- 
> 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: [ANN] emacs-clojure-vagrant: a sane development virtual environment

2011-07-26 Thread Joseph Jones
Update: I just got back from vacation and have done a fresh git clone, et
all (including updating VB to 4.1.0). I still get the same issue: No error,
but a "hang" at Installed Jark (I say hang because the terminal shell is
stuck running the vagrant script where I would assume it would have returned
once the VM was successfully running).

I opened a new terminal window and ran the clojure_emacs.sh script manually.
Unlike last time, this seems to have worked but requied a logout and back in
to get jark running and emacs to connect. From there things seems ok.

However, vagrant halt didn't do anything (but hang the shell) and I was
forced to shutdown manually from inside the vm (sudo shutdown  now). I did a
vagrant up again and it is setting up a brand new VM for me. Not sure what
it did with the old VM or why it insists on creating a new one.

If this run doesn't work then I will send all the output to a file and send
that to you so you can see if anything seems amiss.

Thanx,
joe

P.S. The current git repo requires at least VB 4.1.0, but the actual image
it downloads throws a warning up about the VB Extensions not matching. The
VM still has 4.0.6 extensions installed on it.

On Sat, Jul 9, 2011 at 10:16 AM, Stan Dyck  wrote:

> Another thing to try is this:
>
> 1. Bring up the vm with a vagrant up
> 2. Log in with vagrant ssh
> 3. Run the /vagrant/clojure_emacs.sh script directly on the vm
>
> That might not work either, but at least you'll get some feedback about
> what fails from the script output. I'm curious about why it's failing so let
> me know if you find out.
>
> StanD.
>
>
> On 07/08/2011 10:47 PM, Joseph Jones wrote:
>
>> Still no love. Same thing, only this time there wasn't even an empty
>> .emacs.d folder.
>>
>> On Fri, Jul 8, 2011 at 10:51 AM, Joseph Jones 
>> > darkdescendant@gmail.**com >> wrote:
>>
>>When I tried bringing it down and back up, it restarted the whole
>> process over from scratch. Basically, vagrant halt
>>seems to cause the entire VM to disappear as if vagrant destroy was
>> called. :-(
>>
>>I'll try to re-get from git and see if it works better now.
>>
>>
>>On Fri, Jul 8, 2011 at 9:30 AM, Stan Dyck > stan.d...@gmail.com>> wrote:
>>
>>There was a minor bug in the provisioning script that prevented the
>> .emacs.d directory from being populated but
>>a fix has been pushed for that.
>>
>>That being said, I also had the hang issue. I did the same as you;
>> I did a vagrant ssh from a new terminal
>>window and everything worked. Also, after bringing down the virtual
>> server and bringing it up again, the problem
>>has not recurred. I haven't had the time to figure out why it hung
>> in the first place though.
>>
>>StanD.
>>
>>
>>On 07/08/2011 08:37 AM, Joseph Jones wrote:
>>
>>I'm having a problem on Max OS X 10.6.8 where vagrant hangs
>> setting up the VM right after installing jark.
>>It seems to
>>just stop doing anything. I initially thought that that meant
>> it was completed  but opening a new terminal
>>window and
>>doing vagrant ssh brought me to a VM that had nothing setup. No
>> Jark running (in fact no Jark on the path),
>>no swank,
>>and emacs knew nothing about slime in any way.
>>
>>I checked out the .emacs.d folder and there was nothing in it
>> so obviously whatever step was supposed to put
>>something
>>there never ran.
>>
>>Any ideas on what the issue could be?
>>
>>Thanx,
>>joe
>>
>>
>>On Sun, Jun 26, 2011 at 9:50 PM, Justin Lilly <
>> jus...@justinlilly.com <mailto:jus...@justinlilly.com**>
>><mailto:jus...@justinlilly.com <mailto:jus...@justinlilly.com*
>> *>__>> wrote:
>>
>>I've put together a simple development environment for
>> those looking
>>for a stable place to work on clojure code. The idea was
>> dual purpose:
>>a consistent environment for which to try out multiple code
>> bases and
>>something that is familiar to me when working on a foreign
>> operating
>>system.
>>
>>The included vagrant file will setup an Ubuntu 11.04
>> virtual machine
>>with clojure and clojure-contrib 1.2, emacs 24 (with
>> emacs-starter-k

Re: [ANN] emacs-clojure-vagrant: a sane development virtual environment

2011-07-08 Thread Joseph Jones
Still no love. Same thing, only this time there wasn't even an empty
.emacs.d folder.

On Fri, Jul 8, 2011 at 10:51 AM, Joseph Jones wrote:

> When I tried bringing it down and back up, it restarted the whole process
> over from scratch. Basically, vagrant halt seems to cause the entire VM to
> disappear as if vagrant destroy was called. :-(
>
> I'll try to re-get from git and see if it works better now.
>
>
> On Fri, Jul 8, 2011 at 9:30 AM, Stan Dyck  wrote:
>
>> There was a minor bug in the provisioning script that prevented the
>> .emacs.d directory from being populated but a fix has been pushed for that.
>>
>> That being said, I also had the hang issue. I did the same as you; I did a
>> vagrant ssh from a new terminal window and everything worked. Also, after
>> bringing down the virtual server and bringing it up again, the problem has
>> not recurred. I haven't had the time to figure out why it hung in the first
>> place though.
>>
>> StanD.
>>
>>
>> On 07/08/2011 08:37 AM, Joseph Jones wrote:
>>
>>> I'm having a problem on Max OS X 10.6.8 where vagrant hangs setting up
>>> the VM right after installing jark. It seems to
>>> just stop doing anything. I initially thought that that meant it was
>>> completed  but opening a new terminal window and
>>> doing vagrant ssh brought me to a VM that had nothing setup. No Jark
>>> running (in fact no Jark on the path), no swank,
>>> and emacs knew nothing about slime in any way.
>>>
>>> I checked out the .emacs.d folder and there was nothing in it so
>>> obviously whatever step was supposed to put something
>>> there never ran.
>>>
>>> Any ideas on what the issue could be?
>>>
>>> Thanx,
>>> joe
>>>
>>>
>>> On Sun, Jun 26, 2011 at 9:50 PM, Justin Lilly 
>>> >> jus...@justinlilly.com**>> wrote:
>>>
>>>I've put together a simple development environment for those looking
>>>for a stable place to work on clojure code. The idea was dual purpose:
>>>a consistent environment for which to try out multiple code bases and
>>>something that is familiar to me when working on a foreign operating
>>>system.
>>>
>>>The included vagrant file will setup an Ubuntu 11.04 virtual machine
>>>with clojure and clojure-contrib 1.2, emacs 24 (with emacs-starter-kit
>>>2 and all relevant clojure modes), tmux (similar to GNU screen),
>>>Leiningen and Jark.
>>>
>>>Special thanks to Phil Hagelberg for his help getting things setup.
>>>
>>>Please check out the github project hosted by the Seajure user group
>>>at 
>>> https://github.com/Seajure/**emacs-clojure-vagrant<https://github.com/Seajure/emacs-clojure-vagrant>.
>>>  Your forks and
>>>contributions are appreciated.
>>>
>>>Thanks,
>>>  -justin
>>>
>>>--
>>>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>> 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+unsubscribe@**googlegroups.com>> clojure%2Bunsubscribe@**googlegroups.com
>>> >
>>>
>>>For more options, visit this group at
>>>
>>> http://groups.google.com/**group/clojure?hl=en<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+unsubscribe@**googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/**group/clojure?hl=en<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+unsubscribe@**googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/**group/clojure?hl=en<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: [ANN] emacs-clojure-vagrant: a sane development virtual environment

2011-07-08 Thread Joseph Jones
When I tried bringing it down and back up, it restarted the whole process
over from scratch. Basically, vagrant halt seems to cause the entire VM to
disappear as if vagrant destroy was called. :-(

I'll try to re-get from git and see if it works better now.

On Fri, Jul 8, 2011 at 9:30 AM, Stan Dyck  wrote:

> There was a minor bug in the provisioning script that prevented the
> .emacs.d directory from being populated but a fix has been pushed for that.
>
> That being said, I also had the hang issue. I did the same as you; I did a
> vagrant ssh from a new terminal window and everything worked. Also, after
> bringing down the virtual server and bringing it up again, the problem has
> not recurred. I haven't had the time to figure out why it hung in the first
> place though.
>
> StanD.
>
>
> On 07/08/2011 08:37 AM, Joseph Jones wrote:
>
>> I'm having a problem on Max OS X 10.6.8 where vagrant hangs setting up the
>> VM right after installing jark. It seems to
>> just stop doing anything. I initially thought that that meant it was
>> completed  but opening a new terminal window and
>> doing vagrant ssh brought me to a VM that had nothing setup. No Jark
>> running (in fact no Jark on the path), no swank,
>> and emacs knew nothing about slime in any way.
>>
>> I checked out the .emacs.d folder and there was nothing in it so obviously
>> whatever step was supposed to put something
>> there never ran.
>>
>> Any ideas on what the issue could be?
>>
>> Thanx,
>> joe
>>
>>
>> On Sun, Jun 26, 2011 at 9:50 PM, Justin Lilly > jus...@justinlilly.com**>> wrote:
>>
>>I've put together a simple development environment for those looking
>>for a stable place to work on clojure code. The idea was dual purpose:
>>a consistent environment for which to try out multiple code bases and
>>something that is familiar to me when working on a foreign operating
>>system.
>>
>>The included vagrant file will setup an Ubuntu 11.04 virtual machine
>>with clojure and clojure-contrib 1.2, emacs 24 (with emacs-starter-kit
>>2 and all relevant clojure modes), tmux (similar to GNU screen),
>>Leiningen and Jark.
>>
>>Special thanks to Phil Hagelberg for his help getting things setup.
>>
>>Please check out the github project hosted by the Seajure user group
>>at 
>> https://github.com/Seajure/**emacs-clojure-vagrant<https://github.com/Seajure/emacs-clojure-vagrant>.
>>  Your forks and
>>contributions are appreciated.
>>
>>Thanks,
>>  -justin
>>
>>--
>>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 > 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+unsubscribe@**googlegroups.com> clojure%2Bunsubscribe@**googlegroups.com
>> >
>>
>>For more options, visit this group at
>>
>> http://groups.google.com/**group/clojure?hl=en<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+unsubscribe@**googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/**group/clojure?hl=en<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+unsubscribe@**googlegroups.com
> For more options, visit this group at
> http://groups.google.com/**group/clojure?hl=en<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: [ANN] emacs-clojure-vagrant: a sane development virtual environment

2011-07-08 Thread Joseph Jones
I'm having a problem on Max OS X 10.6.8 where vagrant hangs setting up the
VM right after installing jark. It seems to just stop doing anything. I
initially thought that that meant it was completed  but opening a new
terminal window and doing vagrant ssh brought me to a VM that had nothing
setup. No Jark running (in fact no Jark on the path), no swank, and emacs
knew nothing about slime in any way.

I checked out the .emacs.d folder and there was nothing in it so obviously
whatever step was supposed to put something there never ran.

Any ideas on what the issue could be?

Thanx,
joe


On Sun, Jun 26, 2011 at 9:50 PM, Justin Lilly wrote:

> I've put together a simple development environment for those looking
> for a stable place to work on clojure code. The idea was dual purpose:
> a consistent environment for which to try out multiple code bases and
> something that is familiar to me when working on a foreign operating
> system.
>
> The included vagrant file will setup an Ubuntu 11.04 virtual machine
> with clojure and clojure-contrib 1.2, emacs 24 (with emacs-starter-kit
> 2 and all relevant clojure modes), tmux (similar to GNU screen),
> Leiningen and Jark.
>
> Special thanks to Phil Hagelberg for his help getting things setup.
>
> Please check out the github project hosted by the Seajure user group
> at https://github.com/Seajure/emacs-clojure-vagrant . Your forks and
> contributions are appreciated.
>
> Thanks,
>  -justin
>
> --
> 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: Namespaces and filenames

2009-01-06 Thread Joseph Jones

Heh... Given my problem was with namespaces and file names, looking  
under "libs" would never have occurred to me. To me, libs would be jar  
files or something else similar to that. This might be an indication  
that the namespace doc page should point to the lib page with a  
clarification about this.

Thanx for the info.
joe

On Jan 6, 2009, at 12:49 AM, Meikel Brandmeyer wrote:

> Hi,
>
> Am 06.01.2009 um 04:48 schrieb Joseph Jones:
>
>> I created a little file with it's own namespace and the tried to use
>> items form that file in another file. I used :use to import that
>> namespace into the second file but was having a devil of a time
>> getting it to work. It took me a while to riddle out that the file
>> seems to HAVE to be named the same as the namespace! In my case, if  
>> my
>> namespace is called foo-bar, than the file have to be named  
>> foo_bar.clj.
>>
>> I don't see anywhere in the web site where this is called out so I am
>> wondering if a) I am doing something very wrong or b) the docs on the
>> web site need to be clarified in this regard?
>
> http://clojure.org/libs
>
> Complete with example for a namespace and the file has to
> be named as well as all modifications like -/_ mangling.
>
> Furthermore searching the google group for namespace
> and use will give you tons of examples
>
> Sincerely
> Meikel
>


--~--~-~--~~~---~--~~
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: How do I debug a macro?

2009-01-05 Thread Joseph Jones

Well, after a lot of staring, it seems the issue was that I wasn't  
array splicing one of my args so a list was being passed where a  
function was expected.

Is there any way to clean this up so that the error message is a  
little more direct?

On Jan 5, 2009, at 10:05 PM, Joseph Jones wrote:

> I have a macro I am trying to debug but I can't get it to expand. I  
> get the following:
>
> java.lang.IncompatibleClassChangeError (NO_SOURCE_FILE:1)
>  [Thrown class clojure.lang.Compiler$CompilerException]
>
> The backtrace is useless here as just gives me a lot of internal  
> clojure/java calls, none of which I can expand or in any way  
> directly relate to my macro to figure out the cause.
>
> Macroexpand seems to work and give me a proper expansion but I can't  
> see what the deelio is with the code tha is the problem.
>
> Thanx,
> joe
>


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



How do I debug a macro?

2009-01-05 Thread Joseph Jones

I have a macro I am trying to debug but I can't get it to expand. I  
get the following:

java.lang.IncompatibleClassChangeError (NO_SOURCE_FILE:1)
   [Thrown class clojure.lang.Compiler$CompilerException]

The backtrace is useless here as just gives me a lot of internal  
clojure/java calls, none of which I can expand or in any way directly  
relate to my macro to figure out the cause.

Macroexpand seems to work and give me a proper expansion but I can't  
see what the deelio is with the code tha is the problem.

Thanx,
joe


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



Namespaces and filenames

2009-01-05 Thread Joseph Jones

I created a little file with it's own namespace and the tried to use  
items form that file in another file. I used :use to import that  
namespace into the second file but was having a devil of a time  
getting it to work. It took me a while to riddle out that the file  
seems to HAVE to be named the same as the namespace! In my case, if my  
namespace is called foo-bar, than the file have to be named foo_bar.clj.

I don't see anywhere in the web site where this is called out so I am  
wondering if a) I am doing something very wrong or b) the docs on the  
web site need to be clarified in this regard?

Thanx,
joe


--~--~-~--~~~---~--~~
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: making code readable

2008-12-31 Thread Joseph Jones


On Dec 31, 2008, at 1:29 PM, Luc Prefontaine wrote:

> In the mid 80's I and others in a Fortran dev. team created a super  
> javadoc. This beast was spitting out a FULL
> document in the editor used by office people.
>
> You would write comments in the code that were extracted and you  
> would get a readable well formatted
> document after running the tool. Without the comments, the document  
> looked ... empty and ugly.
> Missing items were as obvious as a nose in a face.
>
> Easier for code reviewer to control that, no need to read the code,  
> read the document. If it does not make sense
> then go back to the coder.
>
> Coders had to add decent comments since the conventions were not  
> only based on what you extract from the code
> (like javadoc) but also what is expected in comments so the document  
> text content gets filled with decent content.
> When you force the coder to enter comments to fil a chapter  
> introduction, well he/she has no choice.
>
> Of course it looks like if creating code is twice as complex but in  
> fact you saved time when you need a system to be
> described very precisely. It also insured that comments were  
> meaningful and in synch. with the code.
>


That sounds a LOT like Knuth's Literate Programming. Was there  
influence from that or was this wholly based non your own?

joe


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