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 message

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 prescriptions

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

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 bla

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 s

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 different

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 sta

Re: Thoughts on a curly-infix reader macro?

2014-04-06 Thread Joshua Brulé
licked' into place and started making sense. On Sunday, April 6, 2014 6:11:46 PM UTC-4, James Reeves wrote: > > > > > On 6 April 2014 21:50, Joshua Brulé >wrote: > >> >> But it still seems to me that in the case *exactly three forms* - binary >> function

Re: Thoughts on a curly-infix reader macro?

2014-04-06 Thread Joshua Brulé
resent? It > doesn't represent anything new, just a different way of writing lists. > > Imagine if you proposed something similar for JSON. Would 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.

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 alrea

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

Re: Web App structure on server?

2014-01-26 Thread Joshua Ballanco
> > Julio > > > > On Jan 24, 2014, at 11:14 PM, Joshua Ballanco > (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, yo

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 On

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 automaticall

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

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

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 fetc

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

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: [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 wrote:

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: how to securely store parameters in config files

2012-09-30 Thread Joshua Ballanco
ith Travis 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 86

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 Ballanc

Re: Evolving the Clojure contribution process and goals

2012-09-24 Thread Joshua Ballanco
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 Ballanco ELC Technologies™ 1771 NW Pettygrove Street, Suite 140 Por

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

2012-09-04 Thread Joshua Ballanco
ent amount of pre-processing and data-massaging can go 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

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

Re: 'functional' performance VS 'imperative' complexity

2012-08-26 Thread Joshua Ballanco
k into the details of your specific problem more, but in the absence of time, might I suggest two quick points: 1. Gary Bernhardt has been playing with a "new" approach he calls "Functional Core, Imperative Shell". Essentially, it's another take on the question of how to limi

Re: Folding a reducer inside of a fold

2012-08-22 Thread Joshua Ballanco
ds to be a proper monoid. Is that right? Also, on a related note, it's very annoying that "and" in Clojure is implemented as a macro and therefore cannot be used directly as combinef... - Josh -- Joshua Ballanco ELC Technologies™ 1771 NW Pettygrove Street, Suite 140 Por

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.

Re: real-world usage of reducers?

2012-08-21 Thread Joshua Ballanco
t; 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 Not sure if you'd consider this "real code", but I recently wrote a scrabble solver (i.e. find

Re: deployment

2012-08-18 Thread Joshua Ballanco
hl=en I can't speak of specific experience, since we're still in the early development phase, but we have had an outstanding experience with Torquebox and so have been looking at it's Clojure cousin Immutant (http://immutant.org/). At the very least, I think it's worth adding

Re: Writing code to get the source of a function

2012-08-08 Thread Joshua Ballanco
efn print-src [] (println (with-out-str (clojure.repl/source my-function 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 Balla

Re: record constructor

2012-08-07 Thread Joshua Ballanco
invariably end up wrapped in as much bureaucracy and configuration as actual code. Just my opinion, but I think if you tried something relatively unobtrusive like the above, and it caught on, you might some day find it incorporated into the main language. (After all, even the famous "let&qu

Re: community interest in machine learning (?)

2012-07-22 Thread Joshua Bowles
nking abou 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 we

Re: community interest in machine learning (?)

2012-07-20 Thread Joshua Bowles
tica 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,

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

2012-07-19 Thread Joshua Ballanco
design! This is definitely a good start. Cheers, 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 +1 877.658.6313 M +1 646.463.2673 T +90 533.0

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 wrote: > Peter Norvig's response: > > Possible ... Udacity would be more likely --

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 wrote: > I agree. My thinking with an AI class is that as LISP used to be taught > for A

Re: Expanding the Community Through Online Courses

2012-07-18 Thread Joshua Bowles
Programming." Another course I would suggest is, "Building a Dynamic > Contacts 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

Re: Expanding the Community Through Online Courses

2012-07-18 Thread Joshua Bowles
Yes! Just this morning (before reading this thread) I emailed Coursera to request a course like "Artificial Intelligence in Clojure". I posted on a separate thread here ("community interest in machine learning(?)") that I had made the request and provided a link for anyone else who wanted to make a

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 li

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 wrote: > Thanks to all the replies. I'm starting to think that

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 wrote: > > i also have a strong interest in machine learning...to that end i've > wrapped most of enc

Re: community interest in machine learning (?)

2012-07-16 Thread Joshua Bowles
can give you 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, J

Re: community interest in machine learning (?)

2012-07-16 Thread Joshua Bowles
re to take 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 wrote: > Hi Joshua > > I know several people who're interested in this. I slowly working

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

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

2012-01-03 Thread Joshua
y check 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

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 material

Re: Small Problem: Which Strings Differ at One Location

2011-05-30 Thread joshua-choi
a compact functional > implementation:https://gist.github.com/828413 > > 2011/5/30 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 a

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'

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

Re: Macro problems with delay

2010-09-10 Thread joshua-choi
macro 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: > Tha

Re: Macro problems with delay

2010-09-10 Thread joshua-choi
macro 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: > Tha

Re: Macro problems with delay

2010-09-10 Thread joshua-choi
dding 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 wrote: > > > I am running into a problem sometimes when I call a certain macro I > > defined. This problem macro (and an associated

Re: Macro problems with delay

2010-09-10 Thread joshua-choi
ou are correct, commenting out 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: > >

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!): http://gist.

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 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 back to puttin

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 curr

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

2010-05-24 Thread joshua-choi
roxying AFn instead? > > On May 24, 3:24 pm, joshua-choi 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

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 ideall

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

2010-05-14 Thread joshua-choi
/partition #"\s+" "ab c  de") > ;; ("ab" " " "c" "  " "de") > > Justin > > On May 13, 12:24 pm, joshua-choi wrote: > > > I'd like to know if there's a standard function similar to > > clojure

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

2010-05-13 Thread joshua-choi
> You could do it by using 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"

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

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 wrote: > Hello, > > After thinking twice about it, ns does 2 special things

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 wrote: > Yes,http://gith

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

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, :c

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

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 ch

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 to

Re: Prefixed or suffixed symbols?

2010-02-25 Thread joshua-choi
of > taste I like suffixes).  If it's the behavior version, I think that a > special macro is in order (e.g. deftest) > > Sean > > On Feb 25, 10:22 pm, joshua-choi wrote: > > > > > Could you explain more what you mean? For instance, how are macros > > re

Re: Prefixed or suffixed symbols?

2010-02-25 Thread joshua-choi
-clojure-utils/blob/master/s... > > Hope this helps, > Sean > > On Feb 25, 8:59 pm, joshua-choi 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 > >

Re: Prefixed or suffixed symbols?

2010-02-25 Thread joshua-choi
sible. On Feb 25, 3:16 pm, Jarkko Oranen wrote: > On Feb 25, 12:17 am, joshua-choi 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. :) > > >

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 i

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 somethi

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 wrote: > Thanks for the link; it's helpful. I've registered with Freenode as > jo

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

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

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" wrote: > On Fri, Jun 12, 2009 at 12:35 PM, joshua-choi wrote: > > > Is the function of the "filter identity" call to make (map > > isInteresting pixels) a lazy sequence? I thought th

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 wrote: > Hi Vlad, > I would approach it like this, and make full use of Clojure's

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

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 wrote: > Sorry for the necro, but I

Re: JavaWorld article

2009-05-12 Thread Joshua Fox
mmunity: 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 wrote: > I am working on a short article to appear in JavaWorld sometim

Re: A syntax feature request: splitting literal strings

2009-04-04 Thread Joshua Fox
Of course, Clojure's treatment of simple multiline literal strings already handles them intuitively user=> "a multiline string" "a multiline\nstring" user=> Java and many other popular languages don't do this. But I understand that you'd like to

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: Full Clojure, Right Now! (tm)

2009-04-01 Thread Joshua Fox
there among other libraries. Joshua On Wed, Apr 1, 2009 at 10:22 PM, Daniel Jomphe wrote: > > Let's say I *hate* dealing with Java classpaths, especially within > IDEs. > Somehow, it's always the hardest configuration part of setting up a > project. > > Let's ad

Re: Questions about Clojure and Common Lisp

2009-04-01 Thread Joshua Fox
> 3. Clojure can use Java libraries. Common Lisp can use C/C++ > libraries. Is it possible to say Clojure has strong points to Common > Lisp in the power of libraries? Accessing Java from Clojure is easier & more transparent than accessing C from Common Lisp. Joshua On Wed, Apr 1,

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 wrote: > > I want to write a function or macro that allows me to outp

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 wrote: > Javadoc would be nice, but I do note that Rich's Java code is pretty darn > clear ;) > I also note the indentati

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 wrote: > > 2009/3/23 Krešimir Šojat : > > (rand

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 n

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

What makes Clojure an easier Lisp?

2009-03-22 Thread Joshua Fox
ialects Any other thoughts 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 e

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 rec

  1   2   >