Re: [ANN] clojure-py 0.1.0 Clojure on Python

2012-03-12 Thread Daniel Gagnon
On Thu, Mar 8, 2012 at 10:53 AM, Timothy Baldridge tbaldri...@gmail.comwrote:

  What's the plan for ratios and characters?  I assume they're still on
  the TODO list?  (Maybe Issue 17 covers the ratios?)

 Yeah, I need to run a few more tests, but I'm thinking of somehow
 layering libgmp ontop of Python in order to implement ratios.


Why wouldn't Python fractions work as ratios?

-- 
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: Compilable clojure program, but unreadable?

2012-03-12 Thread Meikel Brandmeyer (kotarak)
Hi,

so it is not as consistent as it could be.

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
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: Can Clojure be as readable as Python or Ruby ?

2012-03-12 Thread Andrzej
On Sun, Mar 11, 2012 at 2:56 AM, Softaddicts
lprefonta...@softaddicts.ca wrote:
 About item 1:

 The first Lisp I used was runing on a DEC-10 with 256k 36 bits words of 
 physical
 memory (magnetic-core memory).
 It had a structural editor. We would change nodes, add/remove child nodes, ...

Interesting. I thought it was only a planned feature, which has never
got implemented.

 I still wonder how it could fare compared to the text base approach we are 
 used
 to these days. Maybe this is worth an attempt with the current processing 
 power
 we have at hand and graphic aids that did not exists et the time.

I think it could work rather well in an education-oriented environment
or in DSLs. I don't think it would be interesting enough to flip
mainstream software engineers on its side, unless it had an Apple
badge on it. ;-)

I'd rather like to see it working in practice - LISP is all about
about using and manipulating ASTs, yet s-expressions are somewhat
masking this feature (at least to newcomers, which tend to think of
the LISP syntax as of a string of characters with some parentheses
added to it).

 Item 2:

 From what I recall, there were no such confusion in a structural editor. The 
 confusion
 could still be removed by using proper syntax highlights even in a text base
 editor.

For a graphical/structural representation you'd likely need some sort
of meta-data for annotating the source code (e.g. for layout and
formatting). These data could then also be used for differentiating
between procedure applications and list literals, even if their
underlying structures were still the same.

 In any case, you would not want to change the underlying representation
 otherwise code that processes code would not work anymore or would become
 more complex to write.

Certainly not in an existing language, unless both representations
were perfectly compatible, which is unlikely.

As for the macros - that's a valid point. They would have to be
redesigned to match against (apply proc ...) forms. I don't think
that would have to be any more difficult than it is now, though. A new
language would likely come with its own macro framework.

Andrzej

-- 
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-py 0.1.0 Clojure on Python

2012-03-12 Thread Timothy Baldridge

 Why wouldn't Python fractions work as ratios?

Actually Python fractions would work perfectly. And the decimal class
in Python should be included as well.

Thanks for pointing these libraries out to me!

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


Re: clojure.io

2012-03-12 Thread Jeff Heon
Whats more, the VM I/O abstraction is already hiding details of its
underlying platforms.

Having another I/O abstraction across multiple VMs sounds like the
Fantom Programming Language approach which pushes a unique API across
different VM implementations.

AFAIK the Clojure approach is more about accessing more low-level
parts of the implementing VM with interop typical to the platform.

That being said I would not trade slurp/spit for direct java.io
access, for example.

I'm afraid I'm expressing myself awkwardly.

On Mar 9, 9:42 am, Stuart Sierra the.stuart.sie...@gmail.com wrote:
 Possible to do I/O without any interop ever being called? No.

 Possible to define a standard I/O abstraction that hides the details of the
 underlying VM? Yes. But difficult. I/O is a leaky abstraction at the best
 of times.
 -S

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


3d modeling tools

2012-03-12 Thread Lee Spector

I'm starting a new project involving 3d modeling and I'd like info on 
availability of related clojure tools -- and I'd also like to pitch a related 
tool-building project for anyone who might be interested in working on such a 
thing.

First, I see from github that penumbra is not under active development. Is 
there a more active project or recommended approach for 3d graphics in clojure?

How about for physics (especially physics engines that can make use of large 
numbers of cores)?

How about (especially) something that integrates 3D graphics, a simulation loop 
architecture, and features like fast neighbor/collision detection?

What I'd really love more than anything else would be a version of Jon Klein's 
breve system (http://www.spiderland.org/breve), or a tool with many of the 
same features, that makes it really simple to write simulations in clojure. 
Breve allows coding in its own language (steve) and in python... but it's not 
being actively developed. I'm not suggesting a project that actually uses 
breve's code base (although it's open source and that would be possible -- 
also, Jon was my student and developed breve in part under my 
funding/direction, and while he has since moved on to other things he's still 
reachable and helpful) but rather something independent that provides similar 
functionality in the clojure world.

What functionality do I mean? Well, breve provides lots of goodies including 
trivial installation, a nice GUI for coding and running simulations, painless 
and pretty 3d graphics, physics, a simulation loop and event handling 
architecture, fast collision detection, etc. But I could see great value in 
tools that handled only certain subsets of this. 

For example I could definitely see forgetting about the coding GUI since that's 
a whole can of worms being dealt with elsewhere in the community, and also a 
lot of simulation projects don't need physics. So something that provided just 
the 3d graphics and a nice way to set up common simulation loops (for example, 
making it easy and concise to code up the swarm demo in breve) would be great.

I'd love pointers to any tools that anyone thinks are relevant, and assuming 
that there's not already a wonderful integrated tool that I don't know about 
I'd be happy to correspond/collaborate with anyone who wants to develop one.

Thanks,

 -Lee

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


proper clojure hammocks/alternatives

2012-03-12 Thread Gary Trakhman
Seriously considering some kind of apparatus to facilitate 
hammock-driven-development in the office.  Has anyone implemented a hammock 
in their workspace?

How about one of those giant bean bag chairs?  Surely there are clojure 
developers that have done research on this already.

Considering:
http://www.amazon.com/Strathwood-Portable-Folding-Chocolate-Champagne/dp/B001BSOSDA/ref=sr_1_2?ie=UTF8qid=1331568484sr=8-2
 
http://www.fombag.com/Giant_Fompillow_Pillow_Pillowsack.html 

Do you all have any suggestions?

-- 
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: Pretty print defn

2012-03-12 Thread Cedric Greevey
On Thu, Mar 8, 2012 at 1:47 PM, Jeff Weiss jeffrey.m.we...@gmail.com wrote:
 A serializable.fn/defn would be really nice to have, I am not sure how
 difficult it would be to write, without having tried it.

In theory, not very difficult. Something like

(defmacro defn [name  everything-else]
  `(clojure.core/defn
 ~(with-meta name {:source `(defn ~name ~@everything-else)})
 ~@everything-else))

(which gets clojure.core/defn to do all of the heavy lifting) should
work if putting the metadata on the Var suffices.

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


Screencast - Using SLIMV

2012-03-12 Thread Sean Devlin
In the episode I show how to use vim, SLIMV, and Clojure together.

https://vimeo.com/38372260

Hope it helps all my fellow vim users :)

Sean

-- 
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 escape a space in a keyword?

2012-03-12 Thread Cedric Greevey
On Tue, Mar 6, 2012 at 3:25 PM, Timothy Baldridge tbaldri...@gmail.com wrote:
 Symbols begin with a non-numeric character and can contain alphanumeric
 characters and *, +, !, -, _, and ? ... Keywords are like symbols ...

 But this is the documentation for the reader...not necessarily for
 symbols/keywords.

 My argument is that clojure in no way validates the input to (symbol)
 or (keyword) so why should we call this a bug? IMO, it's the same
 problem with using Atoms and Refs with pr-str. If an Atom doesn't
 round-trip through pr-str and the reader, is it somehow invalid? No,
 it just means you shouldn't use it in cases where you need it to
 round-trip. The same applies to keywords with unicode characters, or
 symbols with spaces.

That's an apples-to-oranges comparison. Atoms and Refs are identities.
Nobody expects identities to round-trip and keep their semantics. On
the other hand, Keywords and Symbols are values. Everybody expects
values to round-trip and keep their semantics, so when that fails to
happen in some instance it violates least surprise.

-- 
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-py 0.1.0 Clojure on Python

2012-03-12 Thread Daniel Gagnon

 Actually Python fractions would work perfectly. And the decimal class
 in Python should be included as well.

 Thanks for pointing these libraries out to me!

 Timothy




No problem. I really like how symbiotic with Python you are making this.

-- 
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-py 0.1.0 Clojure on Python

2012-03-12 Thread Daniel Gagnon
On Wed, Mar 7, 2012 at 10:42 PM, Timothy Baldridge tbaldri...@gmail.comwrote:

 The Clojure-Py team is happy to announce the release of Clojure-Py 0.1.0.

 https://github.com/halgari/clojure-py

 Clojure-Py is an implementation of Clojure running atop the Python VM.
 As it currently stands, we have translated over 235 functions from
 clojure.core. This is not a clojure interpreter in python; the
 Clojure-Py compiler compiles clojure code directly to python code.
 Clojure-py functions are python functions. Clojure-py types are python
 types, Clojure-py name spaces are python modules


I'm seeing a RPython test in the examples. Can Clojure-Py emit RPython code
from my Clojure code? If so, that'd be really great we could go Clojure -
RPython - C - Native

I guess it probably isn't since I imagine that laziness uses generators
which aren't well supported under RPython but if it did use make RPython
code, it'd be really awesome.

-- 
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: Which emacs packages?

2012-03-12 Thread Sergey Didenko
* RainbowDelimiters
* desktop-save-mode
* ergoemacs-mode (modified)
* bm for bookmarks
* color-theme with modified color-theme-tomorrow
* anything

Not a plugin, but I found this setting useful: (setq
recenter-positions '(0.2 0.4 0.6 0.8 bottom top))

-- 
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-py 0.1.0 Clojure on Python

2012-03-12 Thread Timothy Baldridge
 I'm seeing a RPython test in the examples. Can Clojure-Py emit RPython code
 from my Clojure code? If so, that'd be really great we could go Clojure -
 RPython - C - Native

 I guess it probably isn't since I imagine that laziness uses generators
 which aren't well supported under RPython but if it did use make RPython
 code, it'd be really awesome.

Well that's the one part where Clojure and Python diverge. Clojure-py
does not use Python's generators. This is because Python's generators
are mutable. So that actually wont' be a problem.

What is a problem though, is the way Clojure-py currently accesses
vars. Consider the following:

(+ 1 2)

In Clojure-py we'd compile this as

LOAD_CONST #user/+
LOAD_ATTR deref
CALL_FUNCTION 0
LOAD_CONST 1
LOAD_CONST 2
CALL_FUNCTION 2

It's this first line that causes the RPython translator to blow up.
Calling LOAD_CONST and supplying a complex type like VAR is more than
it can handle. Now it just so happens this is completely acceptable in
normal Python code, so that's where the issue is.

My plan is to abstract this a bit. I plan on providing global vars
that allow the user to specify how the current code is bound. For
instance, if #user/+ is a static var, there's no reason to deref it
every single time, since it will never change. However, dynamic vars
need to be deref'ed, and RPython vars need to use pure LOAD_GLOBAL,
LOAD_ATTR calls. The plan then is to provide the Clojure-py backend
with a simple (deref this var) object that will allow the compiler to
on-the-fly decide how certain pieces of code are called.

It just so happens that once this is implemented, it will also allow
us to serialize clojure code using CPickle. This should allow us to
drop the startup times of Clojure-py down into the 1sec range.

And actually, being able to run Clojure code on RPython is a personal
goal for me. It's probably one of the biggest motivations for me to
actually start this project. So as I find time, I do plan on exploring
this, and building up a good macro/function library to allow users to
experiment with RPython a bit more easily.

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


Re: How to escape a space in a keyword?

2012-03-12 Thread Armando Blancas


 If invalid input will not throw an error
 immediately, then it DOES need to be documented that invalid input
 will result in undefined output.

 ~Justin

Documented by whom? By you and FrankS? Maybe the push back is for lotta 
suggestin' but little doin'.

-- 
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: Which emacs packages?

2012-03-12 Thread Scott Jaderholm
- Auto-complete  Ac-slime http://www.youtube.com/watch?v=kH0gOE7rj7g and
http://www.youtube.com/watch?v=dio__Qylp-s
- yasnippets
- clojure-refactoring
- align-cljlet http://www.youtube.com/watch?v=m_5Dldykckg
- define-function http://www.youtube.com/watch?v=D2s_d9gvNVI

Scott


On Thu, Mar 8, 2012 at 9:10 AM, AndyK andy.kri...@gmail.com wrote:

 Curious about which emacs packages folks use for increased Clojure
 productivity (beyond the obvious, like slime/swank-clojure)...

 --
 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: Which emacs packages?

2012-03-12 Thread Sean Devlin
vim :-p

On Thursday, March 8, 2012 12:10:15 PM UTC-5, AndyK wrote:

 Curious about which emacs packages folks use for increased Clojure 
 productivity (beyond the obvious, like slime/swank-clojure)...

-- 
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: Which emacs packages?

2012-03-12 Thread Herwig Hochleitner
2012/3/12 Sean Devlin francoisdev...@gmail.com:
 vim :-p

In case you mean viper-mode, I wouldn't recommend that. It changes all
the well structured keybindings to something rather non-sensical :-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: How to escape a space in a keyword?

2012-03-12 Thread Sean Corfield
On Mon, Mar 12, 2012 at 10:39 AM, Armando Blancas abm221...@gmail.com wrote:
 If invalid input will not throw an error
 immediately, then it DOES need to be documented that invalid input
 will result in undefined output.

 ~Justin

 Documented by whom? By you and FrankS? Maybe the push back is for lotta
 suggestin' but little doin'.

Surely undocumented behavior is undefined behavior by definition?
That's certainly the approach taken by many programming language
standards. In which case, giving any function invalid input is
immediately in undefined behavior territory and the output is
guaranteed to be undefined - unless explicitly documented to the
contrary (e.g., when given invalid input, this function shall throw an
exception).
-- 
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: proper clojure hammocks/alternatives

2012-03-12 Thread Bobby Calderwood
http://www.kammok.com/

I haven't tried these myself, but Ive heard really good things.  I
was doing some research a while back, and I think if I were to buy, it
would be one of these.

On Mar 12, 11:09 am, Gary Trakhman gary.trakh...@gmail.com wrote:
 Seriously considering some kind of apparatus to facilitate
 hammock-driven-development in the office.  Has anyone implemented a hammock
 in their workspace?

 How about one of those giant bean bag chairs?  Surely there are clojure
 developers that have done research on this already.

 Considering:http://www.amazon.com/Strathwood-Portable-Folding-Chocolate-Champagne...

 http://www.fombag.com/Giant_Fompillow_Pillow_Pillowsack.html

 Do you all have any suggestions?

-- 
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: proper clojure hammocks/alternatives

2012-03-12 Thread Devin Walters
Not sure if this is up your alley, but: 
http://www.amazon.com/Guided-Mindfulness-Meditation-Jon-Kabat-Zinn/dp/1591793599
 

Grab a comfy blanket and lay on the floor, or grab something you think will 
work for you from here: http://www.huggermugger.com/

Their stuff is good quality, but again, you can do all of the same stuff with a 
nice comfy blanket, a relaxing chair, a bed, etc. I use one of these 
personally: http://www.huggermugger.com/zafu-meditation-cushion.html 

Happy Hammocking,
'(Devin Walters)


On Monday, March 12, 2012 at 7:55 PM, Bobby Calderwood wrote:

 http://www.kammok.com/
 
 I haven't tried these myself, but Ive heard really good things. I
 was doing some research a while back, and I think if I were to buy, it
 would be one of these.
 
 On Mar 12, 11:09 am, Gary Trakhman gary.trakh...@gmail.com 
 (http://gmail.com) wrote:
  Seriously considering some kind of apparatus to facilitate
  hammock-driven-development in the office.  Has anyone implemented a hammock
  in their workspace?
  
  How about one of those giant bean bag chairs?  Surely there are clojure
  developers that have done research on this already.
  
  Considering:http://www.amazon.com/Strathwood-Portable-Folding-Chocolate-Champagne...
  
  http://www.fombag.com/Giant_Fompillow_Pillow_Pillowsack.html
  
  Do you all have any suggestions?
 
 -- 
 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 
 (mailto: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 
 (mailto: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: Google Summer of Code 2012 - any mentors?

2012-03-12 Thread Devin Walters
I'd also be happy to be a backup mentor. I've been part of the GSoC in the 
past. 

I know the official situation is that there is a 1:1 correspondence between 
mentor and student, but if anyone wants any additional support while mentoring 
I'd be happy to be a part of that as well. 

Cheers,
'(Devin Walters)


On Monday, March 5, 2012 at 2:57 PM, Paul deGrandis wrote:

 I'll happily be a backup mentor. I've gone through the Summer of Code
 program twice as a student (Nmap and PyPy).
 
 I'll actively help any mentor or pair with any student.
 
 Paul
 
 On Mar 5, 10:38 am, David Nolen dnolen.li (http://dnolen.li)...@gmail.com 
 (http://gmail.com) wrote:
  Thanks! Unless somebody else wants to - I'm willing to be the backup admin.
  
  David
  
  On Mon, Mar 5, 2012 at 1:21 AM, Christopher Redinger redin...@gmail.com 
  (http://gmail.com)wrote:
  
  
  
  
  
  
  
   I've created a new page in Confluence with questions from the application.
  
   http://dev.clojure.org/display/community/Google+Summer+of+Code+2012+A...
  
   If some people can take a pass at getting answers posted to those
   questions, I can submit the application this week.
   
  
  
   Also needed:
   * Who is interested in being the backup admin (should something happen to
   cause me to be unable to perform those duties)?
   * I see primary mentors for many of the projects. Are there people willing
   to be back up mentors? Again, in case something prevents the primary 
   mentor
   from doing so?
   
  
  
   On Sunday, March 4, 2012 4:37:53 PM UTC-5, Alexander Yakushev wrote:
  
I hate to be boring but if the application has not been filed yet then
now is the best time to do it. Only five days left, and it is good to 
have
some spare time to correct the mistakes, you know:).

   
  
  
--
   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 
   (mailto: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 
   (mailto: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 
 (mailto: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 
 (mailto: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: Which emacs packages?

2012-03-12 Thread jaime
Is there any materials to introduce how to setup emacs env for a beginner?

在 2012年3月9日星期五UTC+8上午2时06分49秒,Tassilo Horn写道:

 AndyK andy.kri...@gmail.com writes:

  Curious about which emacs packages folks use for increased Clojure
  productivity (beyond the obvious, like slime/swank-clojure)...

 For any lisp:

   - paredit
 http://www.emacswiki.org/emacs/ParEdit
   - highlight-parentheses
 http://www.emacswiki.org/emacs/HighlightParentheses

 For any programming:

   - highlight-symbol
 http://www.emacswiki.org/emacs/HighlightSymbol

 Bye,
 Tassilo



-- 
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: proper clojure hammocks/alternatives

2012-03-12 Thread Softaddicts
I do this in a hot tub I just let my mind loose (float around :) while looking 
at the ceiling.
Feels a bit like day dreaming.

Of course installing such plumbing in my office near my desk would be a bit 
akward :)
I reserve a 20/30 mns time slot at the end of the day a few times per week.
It's a good way to toss away all the non significant things I had to deal with 
at work.

It allows me a second work shift at night to put all the nice ideas that popped 
out
together. 

I think it's more a mental training issue than a specific aparatus setup.
I have been practicing standing posture exercices for a number of years.
These helped me eliminate the noise in my tought process and
it put in place the basis to get in this mind state almost at will.

Luc P.

 Not sure if this is up your alley, but: 
 http://www.amazon.com/Guided-Mindfulness-Meditation-Jon-Kabat-Zinn/dp/1591793599
  
 
 Grab a comfy blanket and lay on the floor, or grab something you think will 
 work for you from here: http://www.huggermugger.com/
 
 Their stuff is good quality, but again, you can do all of the same stuff with 
 a nice comfy blanket, a relaxing chair, a bed, etc. I use one of these 
 personally: http://www.huggermugger.com/zafu-meditation-cushion.html 
 
 Happy Hammocking,
 '(Devin Walters)
 
 
 On Monday, March 12, 2012 at 7:55 PM, Bobby Calderwood wrote:
 
  http://www.kammok.com/
  
  I haven't tried these myself, but Ive heard really good things. I
  was doing some research a while back, and I think if I were to buy, it
  would be one of these.
  
  On Mar 12, 11:09 am, Gary Trakhman gary.trakh...@gmail.com 
  (http://gmail.com) wrote:
   Seriously considering some kind of apparatus to facilitate
   hammock-driven-development in the office.  Has anyone implemented a 
   hammock
   in their workspace?
   
   How about one of those giant bean bag chairs?  Surely there are clojure
   developers that have done research on this already.
   
   Considering:http://www.amazon.com/Strathwood-Portable-Folding-Chocolate-Champagne...
   
   http://www.fombag.com/Giant_Fompillow_Pillow_Pillowsack.html
   
   Do you all have any suggestions?
  
  -- 
  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 
  (mailto: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 
  (mailto: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
--
Softaddictslprefonta...@softaddicts.ca sent by ibisMail!

-- 
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: proper clojure hammocks/alternatives

2012-03-12 Thread Gary Trakhman
Ah, thanks!  I will look into all these things.

On Mon, Mar 12, 2012 at 11:34 PM, Softaddicts
lprefonta...@softaddicts.ca wrote:
 I do this in a hot tub I just let my mind loose (float around :) while 
 looking at the ceiling.
 Feels a bit like day dreaming.

 Of course installing such plumbing in my office near my desk would be a bit 
 akward :)
 I reserve a 20/30 mns time slot at the end of the day a few times per week.
 It's a good way to toss away all the non significant things I had to deal 
 with at work.

 It allows me a second work shift at night to put all the nice ideas that 
 popped out
 together.

 I think it's more a mental training issue than a specific aparatus setup.
 I have been practicing standing posture exercices for a number of years.
 These helped me eliminate the noise in my tought process and
 it put in place the basis to get in this mind state almost at will.

 Luc P.

 Not sure if this is up your alley, but: 
 http://www.amazon.com/Guided-Mindfulness-Meditation-Jon-Kabat-Zinn/dp/1591793599

 Grab a comfy blanket and lay on the floor, or grab something you think will 
 work for you from here: http://www.huggermugger.com/

 Their stuff is good quality, but again, you can do all of the same stuff 
 with a nice comfy blanket, a relaxing chair, a bed, etc. I use one of these 
 personally: http://www.huggermugger.com/zafu-meditation-cushion.html

 Happy Hammocking,
 '(Devin Walters)


 On Monday, March 12, 2012 at 7:55 PM, Bobby Calderwood wrote:

  http://www.kammok.com/
 
  I haven't tried these myself, but Ive heard really good things. I
  was doing some research a while back, and I think if I were to buy, it
  would be one of these.
 
  On Mar 12, 11:09 am, Gary Trakhman gary.trakh...@gmail.com 
  (http://gmail.com) wrote:
   Seriously considering some kind of apparatus to facilitate
   hammock-driven-development in the office.  Has anyone implemented a 
   hammock
   in their workspace?
  
   How about one of those giant bean bag chairs?  Surely there are clojure
   developers that have done research on this already.
  
   Considering:http://www.amazon.com/Strathwood-Portable-Folding-Chocolate-Champagne...
  
   http://www.fombag.com/Giant_Fompillow_Pillow_Pillowsack.html
  
   Do you all have any suggestions?
 
  --
  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 
  (mailto: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 
  (mailto: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
 --
 Softaddictslprefonta...@softaddicts.ca sent by ibisMail!

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


[ANN] jark 0.4.0

2012-03-12 Thread isaac praveen
I am pleased to announce the release of jark v0.4.0.
So why another Clojure tool ?

Problem

Startup time of the JVM is slow and therefore the command-line
applications running on it are slow as well. There are tools like
Nailgun that partly solve the problem. However, there isn't a tool
that is Clojure-aware, lightweight, secure and extensible.

Solution

* Implement a client/server system that uses a protocol such as nREPL
  to communicate Clojure data structures over the wire

* Build a client that is extremely lightweight and  has minimum
  runtime dependencies

* Provide a server-side framework to interact with the JVM Runtime

Jark is one such tool that helps run clojure programs on the JVM,
interactively and remotely using the nREPL protocol.
It has 2 components - a client written in OCaml and a server written
in Clojure/Java. The client is compiled to native code and is
extremely tiny (~200KB).

Here are some features: http://icylisper.in/jark/features.html
See http://icylisper.in/jark/started.html to get started.

Catch us on #jark on irc.freenode.net

Mailing list: https://groups.google.com/group/clojure-jark

Project page: http://icylisper.in/jark

Caveats
---

1. The current jark version still uses nREPL 0.0.5.
   However, We are currently working on jark 0.5.0 that uses newer
   implementation of the protocol.That should be out soon.

2. lein plugin / lein2 integration has been moved to 0.5.0
   release. Once that plugin is ready, it should help run lein
   interactively.

3. The Windows client binary has not been completely tested yet.
   Hopefully we will have a test-suite in place for the client.

4. REPL does not work on windows yet.

THANKS to:
* Martin DeMello, co-author of jark
* Lucas Stadler
* Abhijith Gopal
* Chas Emerick (for nREPL)

Happy Hacking. Go ahead and give it a try!

-- 
isaac

-- 
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: Which emacs packages?

2012-03-12 Thread Cedric Greevey
On Mon, Mar 12, 2012 at 11:09 PM, jaime xiejianm...@gmail.com wrote:
 Is there any materials to introduce how to setup emacs env for a beginner?

Yes, this single word:

Don't.

:)

-- 
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 escape a space in a keyword?

2012-03-12 Thread Frank Siebenlist
This is my last reply for this thread as the support for improved doc strings 
for symbol and keyword has been kind of underwhelming - which is fine - time to 
move on. (besides, now I personally know more than enough about the 
implementation of those functions to use them conformantly ;-) )

 Surely undocumented behavior is undefined behavior by definition?

True - but that kind of assumes that there is documented behavior… the 
one-liner for (symbol ns name) doesn't say anything about input parameter value 
types, and leaves the valid characters set upto the user knowing where to find 
it on the http://clojure.org/reader; page. Note that I had to find the valid 
types for [name] and [ns name] by looking thru the clojure.core cljjava code.

 ...unless explicitly documented to the
 contrary (e.g., when given invalid input, this function shall throw an
 exception).


It took me about 3 minutes to scan thru the API list and testing at the repl to 
find alias, bases and bound? - all throwing exceptions while it is not 
mentioned in their docs. I'm sure you could have found many more in the same 
time before you wrote your reply - not sure what that tells you (?).

Also not sure what the big issue is to help the (novice) users out by being 
explicit in the doc-string about the contract and behaviour of a function. As 
far as I can tell, you have functions that validate and barf, validate and 
return some well-known value like nil for invalid input, and you have the 
garbage-in, garbage-out type. Unless you can guarantee that the first two types 
are always clearly identified in their docs, you can leave the last one open… 
however, why not mention it also explicitly? Especially for symbol, which is a 
pretty key entity for the clojure language. We have a one-liner, low on content 
for symbol/keyword and a page-long doc for deftype/defprotocol. 

So one last time… instead of having the current docs:

clojure.core/symbol
([name] [ns name])
  Returns a Symbol with the given namespace and name.

clojure.core/keyword
([name] [ns name])
  Returns a Keyword with the given namespace and name.  Do not use :
  in the keyword strings, it will be added automatically.


My suggested docs are:


clojure.core/symbol
([name] [ns name])
  Returns a Symbol with the given namespace and name.
  (symbol name): name can be string or symbol.
  (symbol ns name): ns and name must both be string.
  A symbol string, begins with a non-numeric character 
  and can contain alphanumeric characters and *, +, !, -, _, and ?.
  (see http://clojure.org/reader; for details).
  Note that function does not validate input strings for ns and name, 
  and may return improper symbols with undefined behavior for non-conformant ns 
and name.

clojure.core/keyword
([name] [ns name])
  Returns a Keyword with the given namespace and name.  Do not use :
  in the keyword strings, it will be added automatically.
  (keyword name): name can be string, symbol or keyword.
  (keyword ns name): ns and name must both be string.
  A keyword string, like a symbol, begins with a non-numeric 
  character and can contain alphanumeric characters and *, +, !, -, _, and ?.
  (see http://clojure.org/reader; for details).
  Note that function does not validate input strings for ns and name,
  and may return improper keywords with undefined behavior for non-conformant 
ns and name.


Take it or leave it.

Regards, FrankS.

/email-thread


On Mar 12, 2012, at 4:56 PM, Sean Corfield wrote:

 On Mon, Mar 12, 2012 at 10:39 AM, Armando Blancas abm221...@gmail.com wrote:
 If invalid input will not throw an error
 immediately, then it DOES need to be documented that invalid input
 will result in undefined output.
 
 ~Justin
 
 Documented by whom? By you and FrankS? Maybe the push back is for lotta
 suggestin' but little doin'.
 
 Surely undocumented behavior is undefined behavior by definition?
 That's certainly the approach taken by many programming language
 standards. In which case, giving any function invalid input is
 immediately in undefined behavior territory and the output is
 guaranteed to be undefined - unless explicitly documented to the
 contrary (e.g., when given invalid input, this function shall throw an
 exception).
 -- 
 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

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this