b cd") "Ab Cd")) ?
Here's my take:
(defn capitalize [s]
(apply str (map (fn [prev curr]
(or (and (= prev \space) (Character/toUpperCase curr)) curr))
(cons \space s) s)))
--
Itay Maman
http://javadots.blogspot.com
On Mar 8, 3:20 pm, David Sletten wrote:
> On Ma
m] (assoc m :foo foo))
(defn load-plugin [path]
((load-file path) {}) )
;mylib/lib1.clj
(defn libfoo []
(((load-plugin (if some-condition "myutil/ut1.clj" "myutil/
ut2.clj")) :foo)) )
That's it. In Waterfront this design is integrated with the context
pattern which
I guess my response is "why not?". ASM is a Java library. Clojure
works with Java.
Where's the catch? (or maybe I am missing something)
--
Itay Maman
http://javadots.blogspot.com
On Mar 4, 11:09 pm, Robert Feldt wrote:
> Can we access the ASM used by clojure internally
Sorry, this was supposed to be offline
On Mar 4, 8:29 pm, Itay Maman wrote:
> On Mar 4, 7:33 pm, Joshua Fox wrote:
>
> > I am working on a short article to appear in JavaWorld sometime this
> > spring.
> > Its goal is to encourage senior Java developers to learn mor
On Mar 4, 7:33 pm, Joshua Fox wrote:
> I am working on a short article to appear in JavaWorld sometime this
> spring.
> Its goal is to encourage senior Java developers to learn more about Clojure.
> The audience is experienced and knowledgeable about Java, but LISP to them
> is a distant memory
The second point is somewhat less significant but it does have a
point: With 1-based you need to write (<= i n) instead of (< i n). It
seems that programmers prefer to write less, hence making 0-based
indexing more popular.
Just my 2c
--
Itay Maman
http://javadots.blogspot.com/
On Mar
loop, but the advantage of making
the context pattern indifferent of the order of the observers. My
experience shows that observers ordering issues are more complicated
to solve than infinite loops among observers.
--
Itay Maman
http://javadots.blogspot.com/
On Mar 4, 8:45 am, Glen Stampoult
for the shell script is encoding
> DOS style newlines and doesn't work on linux. I copied the text to a
> new file to get around it.
>
> -Adler
>
> On Feb 25, 4:32 am, Itay Maman wrote:
>
> > On Feb 25, 11:08 am, bOR_ wrote:
>
> > > I'm trying to
Konrad,
Your installation is probably fine. The problem lies in the
FileNameExtensionFilter class. It was only introduced in Java6.
Therefore, despite the fact
that you now have binaries that are compatible with your JVM, the
program does not run. I'll try to fix this soon. I'll post a message
w
Hi,
On Feb 28, 8:32 pm, CuppoJava wrote:
> Hi Itay,
> I'm a little confused about one aspect of the context pattern.
>
> If I understand this write, a listener is a function that takes an old
> context, and returns a new context, BUT it also calls the appropriate
> GUI functions (setText, setSiz
On Feb 27, 5:38 pm, Marko Kocić wrote:
> Interesting approach, nice explained.
>
> Does anyone have similar example using one of the cells
> implementations?
> What would be pros/cons between this and cells approach?
I think that in general, when comparing powerful facilities (such as
the Cont
No" it will immediately return, thus reducing the workload on the
observer invocation loop.
-Itay
> Or am I missing something?
>
> On Feb 27, 1:05 am, Itay Maman wrote:
>
> > Some of the reaction for Waterfront was related to the Application
> > Context Pattern
Dan, Marko,
I wonder whether you have the time to do a little experiment. The L&F
is set at line 182 of net/sourceforge/waterfront/ide/ui.clj. Could you
please try to see which L&F works on your machine or, otherwise,
understand why an exception is thrown there?
Thanks,
-Itay
On Feb 28, 12:58
On Feb 28, 1:57 am, zoltar wrote:
> On Feb 25, 6:02 pm, "Stephen C. Gilardi" wrote:
>
>
>
> > - When using waterfront on Mac OS X, it appears that the control
> > characters intended to trigger menu selections (e.g. ^E) are being
> > intercepted before they reach the menus. In the specific
On Feb 27, 5:22 pm, Marko Kocić wrote:
> Nice work.
>
> I have a couple of (mostly cosmetic but important suggestions):
> - Set look and feel to NativeLookAndFeel
I'm not sure I understand. Are you referring to
UIManager.getSystemLookAndFeelClassName() ?
This is the L&F that Waterfront is usin
you Stephen, Tom, Mike and all the other for the feedback.
Also, for those interested in the "application context pattern",
please see a post with that title published earlier today.
-Itay
On Feb 26, 4:25 pm, Itay Maman wrote:
> > What ? You used Eclipse, and s
Hi,
I just posted about the application context pattern. I believe it
addresses the issue you're describing.
-Itay
On Feb 27, 4:21 am, CuppoJava wrote:
> Hi,
> After having used Clojure for a few months now, I'm still having lots
> of trouble separating my mutable code from my immutable code.
Some of the reaction for Waterfront was related to the Application
Context Pattern (ACP) - The pattern that allows most of Waterfront's
code to be purely functional. I'll try to explain the basics in this
post. Let me start with the motivation: the reason why FP is at odds
with GUI code.
(Pure) F
Should be "you can now submit..."
Sorry for the typo.
-Itay
On Feb 26, 9:37 pm, Itay Maman wrote:
> For those of you who encountered issues/bugs with Waterfront, you not
> submit reports
> at:http://sourceforge.net/tracker2/?func=browse&group_id=249246&atid=112...
For those of you who encountered issues/bugs with Waterfront, you not
submit reports at:
http://sourceforge.net/tracker2/?func=browse&group_id=249246&atid=1126790
My intention is to get Waterfront into contrib in the near future.
Till then, Waterfront will stay on sf.net.
Also, thank you very m
>
> What ? You used Eclipse, and still wanted to get rid of it and of clojuredev
> ! How sad I am ... ;-)
:))
>
> I've taken a look at what you've done, wow !
>
> How long did it take to realize that ? Were you working on it daily, or
> nightly ?
I had a couple of weeks off at Dec. Since Jan. i
On Feb 26, 2:02 pm, Konrad Hinsen wrote:
> On Feb 26, 2009, at 12:30, Itay Maman wrote:
>
> > In Java6 @Override can also be attached to a method that overrides an
> > interface-declared method. So, the code is not supposed to compile w/
> > a Java5 compiler. As fo
On Feb 26, 2:11 pm, Onorio Catenacci wrote:
> On Feb 26, 6:10 am, Itay Maman wrote:
>
> > Hi Onorio
>
> > RC1-147 requires the use of Clojure's latest snapshot (can be obtained
> > from the SVN).
>
> I figured that was probably the case but I thou
On Feb 26, 3:02 am, "Stephen C. Gilardi" wrote:
> On Feb 24, 2009, at 6:47 PM, Itay Maman wrote:
>
> > This version is fully functional and so far I didn't encounter any
> > bugs.
> > I guess that over the course of the next few days, as people start
&
Hi Onorio
RC1-147 requires the use of Clojure's latest snapshot (can be obtained
from the SVN).
-Itay
On Feb 26, 4:21 am, Onorio Catenacci wrote:
> Hi Itay (and everyone else),
>
> Every time I try to run Waterfront I keep running into the same
> error. On line 83 of kit.clj the assertion f
directory) and delete the file ".waterfront.config.clj".
-Itay
On Feb 25, 3:49 pm, Jeffrey Straszheim
wrote:
> Count me interested also.
>
> On Wed, Feb 25, 2009 at 7:49 AM, Itay Maman wrote:
>
> > On Feb 25, 11:48 am, linh wrote:
> > > where can i read
UI in functional languages?
> i'm writing a small swing based app in clojure, and i have problems
> wirting the gui, because the gui code tends to be very imperative and
> messy.
>
> On 24 Feb, 15:04, Itay Maman wrote:
>
> > I've been silently following Clojure (an
e also been working on a GUI application in Clojure and I share
> > your perspective on the challenges of designing a functional GUI. I
> > am definitely intrigued by the application context pattern and I am
> > going to take a look at it for incorporation in my design.
>
&g
and so far I didn't encounter any
bugs.
I guess that over the course of the next few days, as people start
using this version,
a few issues may come up. I'd be glad to fix these.
I also took Mike's suggestion, Waterfromt's main window is now using
a side-by-side layout.
--
else highlight it and
> then select "reflect" from the source menu, I get "I could not
> evaluate the symbol 'Math/sqrt'". Ideas?
>
Yes. The symbol detection takes the whole thing, "Math/sqrt", as a
single token.
Reflect, OTOH, exp
All, thanks so much for the feedback.
I am working on adapting Waterfront to the Clojure's latest snapshot.
Will let you know when this process is complete. Till then it can be
tried with Clojure's previous version (Dec.17).
-Itay
On Feb 24, 6:32 pm, Itay Maman wrote:
> I built i
I built it against the latest download 20081217 (SVN Revision: 1173)
-Itay
On Feb 24, 6:19 pm, Tom Ayerst wrote:
> This is an interesting idea and a lightweight IDE distributed in contrib
> would be a great addition IMHO.
>
> I have tried it (on Windows using a pre-lazy version of clojure) and
Ooops...
Sorry for the multiple posting. Seems to be some glitch.
-Itay
--~--~-~--~~~---~--~~
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 f
ments the underlying engine is also less than 200 LOC. I
think this is a very good indication to Clojure's power.
Hope you'll find it useful. I'd be happy if anyone would like to join
and contribute to Waterfront. Your feedback, either
eight" nor "density" so
this issue is largely a personal judgment call.
Just my 2c.
--
Itay Maman
http://javadots.blogspot.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Clojure" g
I want to be able to read and write a clojure object, which contains
functions, from/to a file.
The structure looks something like this: { :s "my-string" :f (fn[x]
(inc x) }
Reading is easy: (load-file ...) works fine. The tricky part is
writing it back to the file. (pr ...) gives something like
No doubts this is very elegant. However, I think that the underyling
programming model is imperative:
there's a map which is essentially a RAM. Each instruction writes to
this RAM (alters the mappings in the map).
It seems that a stack-machine exhibits a more functional nature: an
instruction eit
Hi,
I am trying to write a function that recursively traverses a given
object - applying a function to each node. Something along these
lines:
(defn traverse [f os]
(f os)
(when (coll? os)
(doseq [o os]
(traverse f o
Although this fragment seems to be doing the job, I am not s
38 matches
Mail list logo