Need help with Undertow Server availability over wireless

2015-01-09 Thread Joshua Aroke
Please my question is straight forward. I want to make undertow server to be available over wireless such that every thing that I can access using localhost or any other ip can also be accessed from another machine(laptops, phones, tablet) connected over wireless. -- You received this

Re: Starting a project the right way - tips?

2014-10-27 Thread Joshua Ballanco
Just in case you hadn’t already come across it in your Google-ing, I thought you should know about http://clojure-doc.org . This site is more than just API documentation, it also contains a number of useful guides covering various topics in Clojure. It’s not exactly a collection of

Re: Recursive definition in core.logic

2014-09-22 Thread Joshua Ballanco
On Sunday, September 21, 2014 at 21:40, Tassilo Horn wrote: I think instead of `conde' you can use `conda' here, because when the first clause succeeds the second one cannot succeed and doesn't need to Careful with the use of `conde` vs `conda`, as `conda` is an early cut. In other words,

Re: Programming Clojure in the large: libraries, frameworks, oh my

2014-09-19 Thread Joshua Ballanco
I think you’ve missed Immutant: http://immutant.org . I’ve used it on multiple projects for serving HTTP requests, coordinating background jobs, caching, and inter-app communication. It’s also fairly easy to get set up with a clustered configuration. On Friday, September 19, 2014 at 15:52,

Re: ECHELON: Wrangling messy political data

2014-09-17 Thread Joshua Ballanco
Very interesting project! (and congrats on joining SunlightLabs) As someone who has, on occasion, contributed to various SunlightLabs foundation projects, my only question would be: what do you need help with? I understand completely if this project is not at a point where you’re looking for

Re: Is Clojure a language for growth?

2014-08-20 Thread Joshua Ballanco
My advice on convincing your boss to use Clojure for a new project: don’t. Projects succeed or fail for any number of different reasons, but I can guarantee you that if you *start* a new project with Clojure, and it does happen to fail, then the choice of Clojure will bear the brunt of the

Re: help with the lawyers?

2014-06-01 Thread Joshua Ballanco
When dealing with lawyers, I find it best to keep things simple: Is there no other project in the entire federal government developed with Eclipse or some other EPL licensed code? Somehow, I find that hard to believe. On Friday, May 30, 2014 at 6:31, rcg wrote: Hello; Developing web

Re: Clojure cons vs. conj

2014-04-27 Thread Joshua Ballanco
I think you’ve actually answered your own question without realizing it. At least, the way I was taught is that “conj” is always constant time w.r.t. the collection being appended to. Since different collections have different internal storage mechanisms, that means that “conj” will do

A different sort of FizzBuzz

2014-04-07 Thread Joshua Ballanco
My intention is to write up a full blog post explaining how I arrived at this answer, but as I am horribly delinquent in updating my personal site, I figured I would share this directly with the community: https://github.com/jballanc/logicbuzz Comments, questions, and incredulous cock-eyed

Re: Thoughts on a curly-infix reader macro?

2014-04-06 Thread Joshua Brulé
it make sense to have an infix notation syntax for a data-only syntax? If not, then it probably doesn't make sense for Clojure. - James On 4 April 2014 05:17, Joshua Brulé jtcb...@gmail.com javascript:wrote: Proposal: For an *odd* number of forms a, x, b, ... {a x b x c ...} = (x a b

Re: Thoughts on a curly-infix reader macro?

2014-04-06 Thread Joshua Brulé
:46 PM UTC-4, James Reeves wrote: On 6 April 2014 21:50, Joshua Brulé jtcb...@gmail.com javascript:wrote: But it still seems to me that in the case *exactly three forms* - binary function and arguments - curly infix can be a solid improvement on readability. (map (fn [x] (cond (zero? {x

Thoughts on a curly-infix reader macro?

2014-04-04 Thread Joshua Brulé
Proposal: For an *odd* number of forms a, x, b, ... {a x b x c ...} = (x a b c ...) {a x b y c ...} = (*nfx* a x b y c ...) Reasoning: Even after a lot of practice, prefix math is still harder (at least for me...) to read than non-prefix math. The [], () and matching delimiters are already

Re: [ANN]: Buddy 0.1.0-beta3: Authentication, Authorization Signing library for Clojure.

2014-02-09 Thread Joshua Ballanco
On Sunday, February 9, 2014 at 18:54, Andrey Antukh wrote: Hi! Buddy is an authentication, authorization and signing library for clojure, designed with simplicity in mind. Features / Sub libraries: * Modular Authentication (implemented using protocols). * Modular Authorization (with

Re: Web App structure on server?

2014-01-26 Thread Joshua Ballanco
On Jan 24, 2014, at 11:14 PM, Joshua Ballanco jball...@gmail.com (mailto:jball...@gmail.com) wrote: I just wanted to point out that if you’re looking to write small background processes that are more shell-script-y than server-y, you might consider CLJS + Node.js. That way you can

Re: Web App structure on server?

2014-01-24 Thread Joshua Ballanco
I just wanted to point out that if you’re looking to write small background processes that are more shell-script-y than server-y, you might consider CLJS + Node.js. That way you can still leverage Clojure without the need to spin up an entire JVM just for a quick cron task. Cheers, Josh

Re: Deploying Caribou on Openshift

2014-01-02 Thread Joshua Ballanco
You should be able to deploy with Immutant and then use the Immutant-Openshift-Quickstart (https://github.com/openshift-quickstart/immutant-quickstart) or the Immutant Cart (https://github.com/immutant/openshift-immutant-cart). On Tuesday, December 31, 2013 at 16:04, Leon Talbot wrote:

Read Microsoft Word .doc files in Clojure

2014-01-02 Thread Joshua Mendoza
Hi!, I've been looking for libraries or resources to read MS .doc files in Clojure, but found none. Does anyone have tried, used, encountered or witnessed such a thing to read them? I found a lot of info publicly available by the government in .doc files but I want to process them

Re: Akka-like framework in Clojure ?

2013-12-29 Thread Joshua Ballanco
On Saturday, December 28, 2013 at 6:05, kovas boguta wrote: The bottom line is that the definitive clojure distributed computing solution is yet to be invented, but there are a number of things out there including the aforementioned. 1. clojure wrappers for Akka, for instance

Re: accessing big-resource - what are people doing?

2013-12-07 Thread Joshua Ballanco
On Saturday, December 7, 2013 at 14:06, Jim - FooBar(); wrote: Hi all, Technically speaking this is not a question specific to Clojure. I 'd like to see how people are generally accessing some big resource (e.g a massive .csv file). My use case is this: I've got code that fetches

Re: Am I missing something?

2013-12-04 Thread Joshua Ballanco
On Wednesday, December 4, 2013 at 12:37, James Laver wrote: Ring is really wonderfully simple. the two combined take up only a handful of lines. Unfortunately, the tests take up rather a lot of lines (~140) and since they helped squeeze out the bugs, it would be a poor argument to say

Re: [ANN] projars.com

2013-11-28 Thread Joshua Ballanco
On Thursday, November 28, 2013 at 12:10, Stanislav Yurin wrote: Hello, Clojure community. I have been following the Clojure path for nearly two years now, and have really great pleasure using it in my personal and job projects, watching the community delivering a lot of great things,

Re: Padding missing elements in a sequence of identical K/V maps

2013-11-19 Thread Joshua Ballanco
In an attempt to be slightly more elegant (whatever that means ;-) ): -8-8- (def start [{:key 3 :value 10} {:key 6 :value 30}]) (into [] (map (fn [[k v]] {:key k :value v}) (merge (into {} (for [x (range 6)] {x nil})) (into {} (map (juxt :key :value) start) ;;= [{:key 6,

Re: [ClojureCLR] Clojure.Compile.exe

2013-11-19 Thread Joshua Ballanco
…and just yesterday a ticket was opened to address at the very least warning when this happens: http://dev.clojure.org/jira/browse/CLJ-1297 . If you've wasted valuable development hours on this, up votes would be appreciated ;-) - Josh On Tuesday, November 19, 2013 at 10:10 PM, dmiller

Re: how to securely store parameters in config files

2012-09-30 Thread Joshua Ballanco
have leaked, you can quickly revoke them without any effect on your production machines. - Josh -- Joshua Ballanco ELC Technologies™ 1771 NW Pettygrove Street, Suite 140 Portland, OR, 97209 jballanco (mailto:jballa...@elctech.com)@elctech.com (mailto:kmil...@elctech.com) P +1 866.863.7365 F

Re: Evolving the Clojure contribution process and goals

2012-09-24 Thread Joshua Ballanco
import my signature using the web cam). I completely understand and agree with the desire for there to be at least a small barrier before one can become involved with Clojure development, but requiring physical mail seems like a biased barrier that is much larger for some than others. -- Joshua

Re: Clojure Course on Coursera

2012-09-24 Thread Joshua Ballanco
Zed Shaw's been working on just such a thing (generic online learning environment) over at https://inculcate.me/ . It's still early, so I don't know if he's even accepting third-party courses just yet, but it might be interesting to reach out to him... -- Joshua Ballanco ELC Technologies

Re: when looking for performance, consider 'cheating' !

2012-09-04 Thread Joshua Ballanco
a long way (as well as applying YAGNI to algorithmic evaluations). If you haven't already, I think this would make a good series of blog posts too! Cheers, Josh -- Joshua Ballanco ELC Technologies™ 1771 NW Pettygrove Street, Suite 140 Portland, OR, 97209 jballa...@elctech.com P +1 866.863.7365 F

Re: 'functional' performance VS 'imperative' complexity

2012-08-26 Thread Joshua Ballanco
, transients could provide improved performance At any rate, it's been very informative watching you hammer on this problem. Cheers, Josh -- Joshua Ballanco ELC Technologies™ 1771 NW Pettygrove Street, Suite 140 Portland, OR, 97209 jballa...@elctech.com P +1 866.863.7365 F +1 877.658.6313 M +1

Re: 'functional' performance VS 'imperative' complexity

2012-08-26 Thread Joshua Ballanco
On Sun, Aug 26, 2012 at 11:16:29AM +0100, Jim - FooBar(); wrote: On 26/08/12 11:03, Joshua Ballanco wrote: I would love to have some time to look into the details of your specific problem more, but in the absence of time, might I suggest two quick points: Well, feel free to have a look

Re: Folding a reducer inside of a fold

2012-08-22 Thread Joshua Ballanco
is implemented as a macro and therefore cannot be used directly as combinef... - Josh -- Joshua Ballanco ELC Technologies™ 1771 NW Pettygrove Street, Suite 140 Portland, OR, 97209 jballa...@elctech.com P +1 866.863.7365 F +1 877.658.6313 M +1 646.463.2673 T +90 533.085.5773 http

Re: real-world usage of reducers?

2012-08-21 Thread Joshua Ballanco
word given a set of letters) in such a way that it can be used with or without reducers: https://github.com/jballanc/scrabbler Running with reducers cuts runtime to 1/4 the original. - Josh -- Joshua Ballanco ELC Technologies™ 1771 NW Pettygrove Street, Suite 140 Portland, OR, 97209 jballa

Folding a reducer inside of a fold

2012-08-21 Thread Joshua Ballanco
, but since I also just started looking at reducers, perhaps I'm just not understanding how they work? Any ideas? Thanks, Josh -- Joshua Ballanco ELC Technologies™ 1771 NW Pettygrove Street, Suite 140 Portland, OR, 97209 jballa...@elctech.com P +1 866.863.7365 F +1 877.658.6313 M +1 646.463.2673 T

Re: deployment

2012-08-18 Thread Joshua Ballanco
list. - Josh -- Joshua Ballanco ELC Technologies™ 1771 NW Pettygrove Street, Suite 140 Portland, OR, 97209 jballa...@elctech.com P +1 866.863.7365 F +1 877.658.6313 M +1 646.463.2673 T +90 533.085.5773 http://www.elctech.com -- You received this message because you are subscribed

Re: Writing code to get the source of a function

2012-08-08 Thread Joshua Ballanco
The source method is designed for the REPL, and so dumps to *out* by default (you can confirm this yourself, appropriately enough, by doing (source source)) Cheers, Josh -- Joshua Ballanco ELC Technologies™ 1771 NW Pettygrove Street, Suite 140 Portland, OR, 97209 jballa...@elctech.com P +1

Re: record constructor

2012-08-07 Thread Joshua Ballanco
day find it incorporated into the main language. (After all, even the famous let started as a pattern that was made into a macro that ended up in almost every LISP in use today). Cheers, Josh -- Joshua Ballanco ELC Technologies™ 1771 NW Pettygrove Street, Suite 140 Portland, OR, 97209 jballa

Re: community interest in machine learning (?)

2012-07-22 Thread Joshua Bowles
this kind of stuff yet... thanks. No matter the language, it seems like it always ends up coming back to BLAS/LAPLACK... ahhh Fortran. On Friday, July 20, 2012 11:35:44 AM UTC-6, Ben Mabey wrote: On 7/20/12 10:34 AM, Joshua Bowles wrote: Check this out for weka: https://github.com

Re: community interest in machine learning (?)

2012-07-20 Thread Joshua Bowles
to Weka and am interested in doing something similar with Clojure. Weka, by the way, is 99% terrific, and so before people go completely reinvent the wheel, it might be worthwhile thinking about a Clojure-Weka interface of sorts. On Sunday, July 15, 2012 11:10:22 AM UTC-6, Joshua Bowles wrote

Re: talking to machines: Teaching beginners to program with an interactive ClojureScript REPL

2012-07-19 Thread Joshua Ballanco
math doesn't work like that (i.e. RPN instead of infix) * Maybe it's just how my brain works, but I think it might be clearer to introduce fn in isolation first, then link it with def, then introduce defn Overall, I love the design! This is definitely a good start. Cheers, Josh -- Joshua

Re: community interest in machine learning (?)

2012-07-18 Thread Joshua Bowles
I've written to Coursera to request a course in Artificial Intelligence with Clojure; they offer about 8 courses related to Artificial Intelligence. One of the latest course offerings is Functional Programming Principles in Scala taught by the language's creator Martin Odersky. If you would like

Re: Expanding the Community Through Online Courses

2012-07-18 Thread Joshua Bowles
Application for the Cloud, and the third one would be Game Development in Clojure or something more focused like Fluid Dynamics for Game Development. All these could use Clojure. -h. On Wednesday, July 18, 2012 4:29:04 PM UTC+2, Joshua Bowles wrote: Yes! Just this morning (before reading

Re: Expanding the Community Through Online Courses

2012-07-18 Thread Joshua Bowles
Peter Norvig's response: Possible ... Udacity would be more likely -- they seem to be more skill-based whereas Coursera is more academic-based. On Wed, Jul 18, 2012 at 10:16 AM, Joshua Bowles bowlesl...@gmail.comwrote: I agree. My thinking with an AI class is that as LISP used to be taught

Re: Expanding the Community Through Online Courses

2012-07-18 Thread Joshua Bowles
I've made a request to Udacity and forwarded Harrison Maseko's suggestions in my request. I'm sure if enough people get behind this... On Wed, Jul 18, 2012 at 10:33 AM, Joshua Bowles bowlesl...@gmail.comwrote: Peter Norvig's response: Possible ... Udacity would be more likely -- they seem

Re: community interest in machine learning (?)

2012-07-17 Thread Joshua Bowles
Thanks to all the replies. I'm starting to think that the future of Clojure in the Artificial Intelligence domain (including machine learning) is extr On Tue, Jul 17, 2012 at 1:29 PM, Jim.foobar jimpil1...@gmail.com wrote: i also have a strong interest in machine learning...to that end i've

Re: community interest in machine learning (?)

2012-07-17 Thread Joshua Bowles
Thanks to all the replies. I'm starting to think that the future of Clojure in the Artificial Intelligence domain (including machine learning) is extremely promising. On Tue, Jul 17, 2012 at 1:51 PM, Joshua Bowles bowlesl...@gmail.com wrote: Thanks to all the replies. I'm starting to think

community interest in machine learning (?)

2012-07-16 Thread Joshua Bowles
New to Clojure (but not Lisp). Does anyone have a good sense of the interest in machine learning in Clojure community? I've seen in the last few threads some interesting posts and libraries related to machine learning, and there is plenty of stuff one can get from Java (mahout, weka, clj-ml

Re: community interest in machine learning (?)

2012-07-16 Thread Joshua Bowles
the lead in many AI sub-fields. I know also that a few people taking Andrew Ng's (online) Machine Learning Class did it in Clojure. On Mon, Jul 16, 2012 at 7:16 AM, Alex Ott alex...@gmail.com wrote: Hi Joshua I know several people who're interested in this. I slowly working on translation

Re: community interest in machine learning (?)

2012-07-16 Thread Joshua Bowles
access to my repository - to benefit from collaborative work ;-) I also thought about using Weka, but the Data Mining: Practical Machine Learning Tools and Techniques, 3ed is still waiting in reading queue... On Mon, Jul 16, 2012 at 4:24 PM, Joshua Bowles bowlesl...@gmail.com wrote: Incanter

Use You a Spaced Repetition System for Great Good!

2012-01-03 Thread Joshua
Anybody else using a spaced repetition system (SRS) for Clojure learning? What about just general programming? How did it work out for you? I've just started using Anki and I uploaded a Clojure Sequence API shared deck. I'm hoping others might be interested in adding other Clojure related

Re: Use You a Spaced Repetition System for Great Good!

2012-01-03 Thread Joshua
it out and would be a great place for this sort of project. Have you found using an SRS helped with more than just studying on your own with regard to development? Are you experiencing good retention rates and reduced practice time reviewing with Anki? -Joshua On Jan 3, 12:25 pm, daly d...@axiom

Small Problem: Which Strings Differ at One Location

2011-05-30 Thread joshua-choi
Let's say that I have a set of strings, each three English letters long. How can I determine which strings differ only at one location (e.g. xxe and xbe)? Right now, I'm writing a loop that sequentially compares every string to every other string. I think that there's a better way, but I don't

Re: Small Problem: Which Strings Differ at One Location

2011-05-30 Thread joshua-choi
/828413 2011/5/30 joshua-choi rbysam...@gmail.com: Let's say that I have a set of strings, each three English letters long. How can I determine which strings differ only at one location (e.g. xxe and xbe)? Right now, I'm writing a loop that sequentially compares every string

Adding an interface with (proxy) produces NoClassDefFoundError

2010-12-11 Thread Joshua Eckroth
I'm having an issue using (proxy) to extend a class (JViewport) with an interface (Scrollable). The behavior is as follows: if I clean my code (lein clean) then try to run it (lein run), I get an exception. However, if I edit the file that has the proxy, then run the code again (lein run), it

JavaFX alternative languages talk at JavaOne

2010-09-12 Thread joshua-choi
I have no idea how many of you both care at all about JavaFX and are planning to go to the JavaOne conference tomorrow Monday in San Francisco, but there's apparently going to be a talk about using the JavaFX platform from alternative languages, particularly Clojure, at 4 PM. I myself can't go,

Re: Macro problems with delay

2010-09-10 Thread joshua-choi
that function call in the macro does prevent the error. I don't understand it. Konrad Hinsen wrote: On 10 Sep 2010, at 03:11, joshua-choi wrote: And here is a full macro-expansion of the call at which the error happens: http://gist.github.com/572879 If I understand the comment

Re: Macro problems with delay

2010-09-10 Thread joshua-choi
of a delay into macro code is somewhere else, but I don't know. Meikel Brandmeyer wrote: Hi, On 10 Sep., 03:11, joshua-choi rbysam...@gmail.com wrote: I am running into a problem sometimes when I call a certain macro I defined. This problem macro (and an associated problem function

Re: Macro problems with delay

2010-09-10 Thread joshua-choi
call, resulting in the error. The solution was to change (alter-var-root maker-var# named-rule-maker ~rule-type-kw) to (when (= '~def-form `defmacro) (alter-var-root maker-var# named-rule-maker ~rule-type-kw)) Thanks, everyone for your help. joshua-choi wrote: That ought

Macro problems with delay

2010-09-09 Thread joshua-choi
I am running into a problem sometimes when I call a certain macro I defined. This problem macro (and an associated problem function) is: http://gist.github.com/572875 I run into this error (which is at a call to the macro, but *not* at the *first* time it's called for some reason!):

Re: Another JavaFX and Clojure Demo

2010-08-23 Thread joshua-choi
This is fascinating—I too am interested in Clojure-JavaFX interaction. Thanks a lot for putting this up! On Aug 21, 8:43 pm, Sam Griffith stayp...@mac.com wrote: Hello group, I'd replied a long time ago to one of the posts about JavaFX and Clojure working together... I've now finally gotten

Re: DSL with a grammar

2010-07-08 Thread joshua-choi
Consider using FnParse (http://github.com/joshua-choi/fnparse/tree/ develop). It's a pure Clojure parser combiner that is flexible in what tokens it accepts. You can use it to parse the symbol/list/etc. structures given to your macros into other forms. FnParse 3, the latest version, is currently

Language request: Passing metadata to a fn from its name (in a fn form)

2010-05-24 Thread joshua-choi
I have a language request for the fn special form. Functions can now have metadata. This is great, and very useful for me. I'd like to request that now the (fn name …) form pass on any metadata on the name symbol to the function itself: user= (meta (fn ^{:a 3} name …)) {:a 3} This would

Re: Language request: Passing metadata to a fn from its name (in a fn form)

2010-05-24 Thread joshua-choi
be proxying AFn instead? On May 24, 3:24 pm, joshua-choi rbysam...@gmail.com wrote: I have a language request for the fn special form. Functions can now have metadata. This is great, and very useful for me. I'd like to request that now the (fn name …) form pass on any metadata

Re: Splitting a string with the characters between each split?

2010-05-14 Thread joshua-choi
 de) ;; (ab c   de) Justin On May 13, 12:24 pm, joshua-choi rbysam...@gmail.com wrote: I'd like to know if there's a standard function similar to clojure.contrib.string/split that includes the characters between the spitted string, or if there isn't one, how I might write one. In other

Splitting a string with the characters between each split?

2010-05-13 Thread joshua-choi
I'd like to know if there's a standard function similar to clojure.contrib.string/split that includes the characters between the spitted string, or if there isn't one, how I might write one. In other words, I'd like a function split* such that (split* #\s+ ab c de) returns (ab cde). --

Re: Splitting a string with the characters between each split?

2010-05-13 Thread joshua-choi
the word boundary regexp operator. (ns foo.bar   (:use [clojure.contrib.string :only [split]])) (defn split* [s]   (drop 1 (split #\b s))) (split* ab c  de) ;; (ab c   de) -Drew On Thu, May 13, 2010 at 11:24, joshua-choi rbysam...@gmail.com wrote: I'd like to know if there's a standard

Re: removing the need for refer-clojure ?

2010-05-05 Thread joshua-choi
I would love if this happened; it could probably be implemented in a backwardly compatible way, since you're currently not supposed to use or require clojure.core anyway, as far as I know. On May 5, 8:36 am, Laurent PETIT laurent.pe...@gmail.com wrote: Hello, After thinking twice about it, ns

Re: Trouble with Leiningen and Autodoc

2010-05-03 Thread joshua-choi
Yes, http://github.com/joshua-choi/fnparse/tree/develop. You must use the latest tree in the develop branch (which is at the time of this writing commit baf3b39f51fdd3893471f52d330336b5a794fa6d). Thanks for the help, and I look forward to what you figure out. On May 3, 12:12 pm, Tom Faulhaber

Re: Trouble with Leiningen and Autodoc

2010-05-03 Thread joshua-choi
Actually, disregard the message above! You don't want the latest tree on the develop branch; it currently throws errors because defalias doesn't work with macros anymore. You want to use the tree at the tag 3.α.3! My apologies. On May 3, 5:15 pm, joshua-choi rbysam...@gmail.com wrote: Yes,http

Calling for advice on a parser's location data

2010-05-02 Thread joshua-choi
I'm making a parsing library that can keep track of its location in a stream of tokens, and the tokens can be of any type—character, map, and so forth. I need advice on this question: Can you think of an instance where the location would not be a line number and column number, such as {:line 3,

Trouble with Leiningen and Autodoc

2010-05-01 Thread joshua-choi
This is my project.clj: (defproject fnparse 3.α.3 :description A library for creating functional parsers in Clojure. :dependencies [[org.clojure/clojure 1.2.0-master-SNAPSHOT] [org.clojure/clojure-contrib 1.2.0-master- SNAPSHOT]] :dev-dependencies [[autodoc 0.7.0]]) I run

Naming factory functions

2010-04-22 Thread joshua-choi
When it comes to naming factory functions—functions that create things— clojure.core gives four precedents: 1. Name it exactly what the new object is called. vector, hash-map, set. 2. Name it a shortened version of #1. vec. 3. Prefix #1 with make-. make-hierarchy, make-array. 4. Prefix #1 with

Are there any plans for more allowed symbol characters?

2010-03-01 Thread joshua-choi
According to http://clojure.org/reader, “Symbols begin with a non- numeric character and can contain alphanumeric characters and *, +, !, -, _, and ? (other characters will be allowed eventually, but not all macro characters have been determined).” Are there any plans of allowing any more symbol

Re: bug: clojure.contrib.json should not default to use keywords.

2010-02-28 Thread joshua-choi
As a small note, according to http://clojure.org/reader, Clojure keywords and symbols are allowed to contain only alphanumeric characters, *, +, !, -, _, and ?. Spaces aren’t allowed, but the keyword function allows them anyway because it doesn’t do any checking for validity for performance. I’m

Re: Prefixed or suffixed symbols?

2010-02-25 Thread joshua-choi
25, 3:16 pm, Jarkko Oranen chous...@gmail.com wrote: On Feb 25, 12:17 am, joshua-choi rbysam...@gmail.com wrote: When it comes to distinguishing certain types of symbols from other things, should one use prefixes or suffixes? Whichever makes more sense, of course. :) Example: naming

Re: Prefixed or suffixed symbols?

2010-02-25 Thread joshua-choi
/master/s... Hope this helps, Sean On Feb 25, 8:59 pm, joshua-choi rbysam...@gmail.com wrote: Yeah, I don’t really like the underscores either. But I have to work with the set of currently allowed non-alphanumeric symbol characters (*, +, !, -, _, and ?, according to clojure.org/reader

Re: Prefixed or suffixed symbols?

2010-02-25 Thread joshua-choi
the behavior version, I think that a special macro is in order (e.g. deftest) Sean On Feb 25, 10:22 pm, joshua-choi rbysam...@gmail.com wrote: Could you explain more what you mean? For instance, how are macros related to these questions? This just has to do with informal naming conventions

Prefixed or suffixed symbols?

2010-02-24 Thread joshua-choi
When it comes to distinguishing certain types of symbols from other things, should one use prefixes or suffixes? Example: naming tests with clojure.test/deftest. If you distinguish your tests’ symbols at all, do you do “t-addition” or “addition-t”? (I need to know what the standard is, if there

Re: idiomatic question about reader macro

2010-02-03 Thread joshua-choi
I see why you want to create your own reader macros—you want to set apart certain code visually. But ataggart has a good point when he keeps asking you for specific examples of your code. Do you want to use reader macros to change something like this: (make-data red blue green) into something

Clojure IRC help

2010-01-24 Thread joshua-choi
Sorry for asking this here, but it's about the Clojure IRC room, which is kind of related to Clojure, being this group's sister help resource. I know nothing about IRC, but I've been using the Colloquy application for Mac OS X to connect to the Clojure IRC room on irc.freenode.net. It was working

Re: Clojure IRC help

2010-01-24 Thread joshua-choi
Thanks for the link; it's helpful. I've registered with Freenode as joshua-choi with a password and nickname, and my IRC client informs me when I reconnect that the server has identified me as joshua-choi. However, when I try to send a message, I still get the same error. Could anything else

Re: Clojure IRC help

2010-01-24 Thread joshua-choi
Ah! Never mind! I just got an email telling me that I had to verify the account! I did that, and I can now send messages to the room (I think). Thanks a lot! On Jan 24, 12:00 pm, joshua-choi rbysam...@gmail.com wrote: Thanks for the link; it's helpful. I've registered with Freenode as joshua

Re: Was it decided to add these functions to core?

2009-06-23 Thread joshua-choi
On creating an infinite range, I think it'd be wonderful if Double/ POSITIVE_INFINITY or something like it would be bound to a core symbol, such as infinity or something. That'd way, one would be able to do things like (range 3 infinity) or ( infinity 5). CuppoJava, how long ago did those

Re: Small question: Best way to create a map with vector vals

2009-06-23 Thread joshua-choi
Come to think of it, this would also work for me: keeping the vector of pairs, and instead using filter to get the values of a key: (defn get-from-pairs [pairs key-to-fetch] (map #(get % 1) (filter #(= key-to-fetch (get % 0)) pairs))) (I wish the key and val functions were defined on vectors

Re: breaking early from a tight loop

2009-06-12 Thread joshua-choi
Is the function of the filter identity call to make (map isInteresting pixels) a lazy sequence? I thought that the sequences map returned were already lazy, but I could be mistaken. On Jun 12, 8:56 am, CuppoJava patrickli_2...@hotmail.com wrote: Hi Vlad, I would approach it like this, and make

Re: breaking early from a tight loop

2009-06-12 Thread joshua-choi
Oh! I see. Thanks for the explanation. On Jun 12, 9:56 am, J. McConnell jdo...@gmail.com wrote: On Fri, Jun 12, 2009 at 12:35 PM, joshua-choi rbysam...@gmail.com wrote: Is the function of the filter identity call to make (map isInteresting pixels) a lazy sequence? I thought

Re: In let: unpacking maps with accessors too

2009-06-08 Thread joshua-choi
Oh, I didn't know that. It makes me wonder, then, why integers were not implemented as functions of sequential collections: (3 [:a :b :c]). Ah, well. I guess since let can't be changed, it's then a choice between using accessors or being more elegant. Thanks for the reply. On Jun 8, 9:25 am,

Re: error-kit + test-is

2009-05-18 Thread joshua-choi
I'd love for that to happen—either error-kit support in test-is or test-is support in error-kit. clojure.contrib libraries should be able to use each other with no worries, since they'll be installed together just about always. On May 17, 12:52 am, Dan Larkin d...@danlarkin.org wrote: Sorry for

Re: JavaWorld article

2009-05-12 Thread Joshua Fox
: The responsiveness, the skill, the quality and power of the code, never cease to amaze me. Thanks also to everyone who read and commented on the article. Regards, Joshua On Wed, Mar 4, 2009 at 8:33 PM, Joshua Fox joshuat...@gmail.com wrote: I am working on a short article to appear in JavaWorld sometime

Saving repl functions

2009-04-03 Thread Joshua Fox
When I have been experimenting on the REPL, I sometimes want to save my work. Is there a way of serializing an image of the REPL into Clojure sourcecode? Joshua --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Trying to get a list of random numbers using repeat

2009-03-24 Thread Joshua Fox
Why presumably with side effects?Otherwise you would use repeat. A pure function returns the same value every time, so there is no reason to call it repeatedly. Joshua On Tue, Mar 24, 2009 at 10:04 AM, Paul Drummond paul.drumm...@iode.co.ukwrote: 2009/3/23 Krešimir Šojat kso...@gmail.com

Re: Suggestion for Java Clojure code, use of checkstyle or code formatter

2009-03-24 Thread Joshua
Even though I don't really care for the indentation style used, it is (unlike most projects) consistent and clear. Joshua On Mar 24, 8:40 am, David Nolen dnolen.li...@gmail.com wrote: Javadoc would be nice, but I do note that Rich's Java code is pretty darn clear ;) I also note

Re: simple debugging utility

2009-03-24 Thread Joshua Fox
Eric Rochester has a debug macro, together with a walkthrough of how he built it, here http://writingcoding.blogspot.com/2008/09/stemming-part-19-debugging.html Joshua On Tue, Mar 24, 2009 at 4:43 PM, Mark Volkmann r.mark.volkm...@gmail.comwrote: I want to write a function or macro

Re: Information Hiding

2009-03-23 Thread Joshua Fox
Any other tricks or techniques There is defn- http://clojure.org/api#toc189 as well as the :private metadata tag. Joshua --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send

Re: Information Hiding

2009-03-23 Thread Joshua Fox
I was envisioning .. only traverse the public keys You could provide a function which uses select-keys to return a new map with only the public* *keys. This can be seen as an interface into the map held in the ref for read access, though not for write. Joshua

What makes Clojure an easier Lisp?

2009-03-22 Thread Joshua Fox
on this? Joshua --~--~-~--~~~---~--~~ 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

Re: March 20th 2009 Rich Hickey Appreciation Day!

2009-03-21 Thread Joshua Fox
Hear, Hear! It was far more natural to learn than Lisp and Scheme. The language has lots of brilliant features that make me think I wish I had thought of that. And I like the way Rich has built the community. Joshua --~--~-~--~~~---~--~~ You received

Re: Request Feedback on Clojure Blog Article

2009-03-20 Thread Joshua Fox
and completely immutability-safe. If it is considered idomatic, then that's great, as it safely simulates the sequential building up of values usual to procedural programs. Joshua --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Request Feedback on Clojure Blog Article

2009-03-19 Thread Joshua Fox
thing. Joshua --~--~-~--~~~---~--~~ 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

Re: Request Feedback on Clojure Blog Article

2009-03-19 Thread Joshua Fox
On Wed, Mar 18, 2009 at 10:40 PM, Stephen C. Gilardi squee...@mac.com wrote: Because parallel bindings are also useful Could you explain? I don't understand the justification for let in Lisp, when let* seems so much more useful. Joshua

Issue 34

2009-03-17 Thread Joshua
I think I have a fix for Issue 34 (Disable EvalReader with a *read- eval* flag). I added the *read-eval* variable and also created a dispatch reader that sets the value at read time. Let me know any comments. Joshua ### Eclipse Workspace Patch 1.0 #P Clojure Index: src/jvm/clojure/lang

Re: Issue 34

2009-03-17 Thread Joshua
Sample syntax is: #r() #r(eval (def x 3)) works fine #r(#=(eval (def x 3))) will throw an exception Joshua --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email

  1   2   >