I'm curious if the development of native Clojurescript macros is in progress

2012-12-27 Thread Chanwoo Yoo
Hello. I read about native clojurescript macros in this page( http://dev.clojure.org/display/design/Macros). It seems that Chris suggested his idea and implementationabout native macro about 8 months ago. So I'm curious if the adoption

Questions about Clojure and Common Lisp

2009-04-01 Thread Chanwoo Yoo
Hello. Yesterday, I talked with a representative of a publisher about a translation of Lisp books. There are books about Ruby, Lua, Erlang, and Groovy in South Korea, but there is no book about Lisp except SICP. So he is considering printing the first Lisp book in South Korea. We talked about 'Pro

Re: offtopic - where are you come from? (poll)

2008-11-16 Thread Chanwoo Yoo
Seoul, South Korea, which LG and Samsung are belongs to (I know there is few who knows where South Korea is. ^_^; It is placed between China and Japan.) On 10월22일, 오후10시07분, perdalum <[EMAIL PROTECTED]> wrote: > Aarhus, Denmark > > On 17 Okt., 11:27, "Rastislav Kassak" <[EMAIL PROTECTED]> wrote:

Re: About testing private functions

2008-11-10 Thread Chanwoo Yoo
You're right. Meikel's way seems good to me, too, and "try 1" works after restarting slime. :) Thanks! Meikel, Stuart~ On 11월10일, 오후11시49분, Stuart Halloway <[EMAIL PROTECTED]> wrote: > Hi Chanwoo, > > I think Meikel's approach of switching to the namespace is simpler, > but your "try 1" works for

Re: a question about ns

2008-11-10 Thread Chanwoo Yoo
Hmm.. My code which I pasted above is wrong.. Though I know no one care about it, :) here is the corrected code.. It seems that It is good to just use 'java-import-code->lst' in repl and copy & paste the list into (:use ~) statement. (ns easy-import (:use clojure.contrib.str-utils)) (defn java

About testing private functions

2008-11-10 Thread Chanwoo Yoo
I'm sorry for spamming.. In Stuart's book - 'Programming Clojure', I saw below paragraph: "1. Redefine private to mean "private for production code, but public for serialization and unit tests". ... I have seen Java programs that needed all these features." So I decided to try what he referred t

Re: a question about ns

2008-11-10 Thread Chanwoo Yoo
Thanks a lot. Now I see. :) On 11월10일, 오후9시23분, mb <[EMAIL PROTECTED]> wrote: > Hi, > > On 10 Nov., 12:48, Chanwoo Yoo <[EMAIL PROTECTED]> wrote: > > > (ns test > > (->:import "import org.apache.http.HttpVersion; import > > org.apache.http.

a question about ns

2008-11-10 Thread Chanwoo Yoo
Hello. I tried to write small utility for importing java code. Because sometimes I want to just copy and paste very long java import code and hope it work in clojure rather than converting it to clojure style. Functions and macros work as I expected. But if I try to apply '- >:import' in ns state

Re: A trivial question about type and class

2008-11-06 Thread Chanwoo Yoo
I really appreciate your answer... and exciting 'Clojure', Rich. :) --~--~-~--~~~---~--~~ 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 t

Re: A trivial question about type and class

2008-11-06 Thread Chanwoo Yoo
Thanks hoeck and mb for your detailed explanation! Now I can understand your points. :) It's so exciting to read 'Programming Clojure', and I'm really happy that 'a lisp book' is printed from 'The Pragmatic Programmers', which is my favorite book publisher. --~--~-~--~~~---

Re: A trivial question about type and class

2008-11-06 Thread Chanwoo Yoo
ss {:a 1}) #=clojure.lang.PersistentArrayMap On 11월6일, 오후9시22분, Chanwoo Yoo <[EMAIL PROTECTED]> wrote: > Thanks~ "clojure.lang.PersistentHashMap" works~ :) But I feel > something is strange.. See next code, especially arrowed line. > > user> clojure.lang.PersistentHashMap &g

Re: A trivial question about type and class

2008-11-06 Thread Chanwoo Yoo
t; (= (class (hash-map :a 1)) (class {:a 1})) ;; <= false user> (:a {:a 1}) 1 Is {:a 1} not a hash-map? It seems that there is some inconsistency... On 11월6일, 오후4시27분, "Michael Wood" <[EMAIL PROTECTED]> wrote: > On Thu, Nov 6, 2008 at 8:25 AM, Chanwoo Yoo <[EMAIL PRO

A trivial question about type and class

2008-11-05 Thread Chanwoo Yoo
Hi all. In Stuart's book - Programming Clojure, there is a multi method like following: (defmulti blank? class) (defmethod blank? String [s] (every? #{\space} s)) (defmethod blank? nil [_] true) After reading the method, I was curious about type or class of native data structures of Clojure. So

Re: Nother N00B Question

2008-11-05 Thread Chanwoo Yoo
Thank you so much, Stuart! Congratulations~ I really look forward to reading this book. :) --~--~-~--~~~---~--~~ 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

Re: Macro-Defining Macros

2008-11-04 Thread Chanwoo Yoo
Thank you for your explanation! I don't think I fully understand your point. But I'll try. :) On 11월3일, 오후11시24분, Chouser <[EMAIL PROTECTED]> wrote: > On Mon, Nov 3, 2008 at 9:13 AM, Chanwoo Yoo <[EMAIL PROTECTED]> wrote: > > > Below code is copied from 'On

Re: A question about test-is

2008-11-04 Thread Chanwoo Yoo
Thanks! Now I'm simply looking into *inferior lisp* buffer. Strangely, still next code seems not working in slime... (binding [*test-out* System/out] (run-tests)) On 11월3일, 오후11시34분, Stuart Sierra <[EMAIL PROTECTED]> wrote: > On Nov 2, 11:20 pm, Chanwoo Yoo <[EMAIL

Macro-Defining Macros

2008-11-03 Thread Chanwoo Yoo
Today, when I was writing some code, which is a macro writing a macro, I felt strange that it never work.. So I decided to examine existing code from 'On Lisp' Below code is copied from 'On Lisp'. I just changed , to ~. But this code does not work in Clojure. (defmacro abbrev [short long] `(def

A question about test-is

2008-11-02 Thread Chanwoo Yoo
Hi. Nowadays I'm happy with playing Clojure. I really appreciate Rich Hickey and contributors. When I evaluate (run-tests) in a repl of my terminal, I can see test messages. But when I do it in slime, I can't see any messages. How I can see test results in slime? in repl: user=> (run-tests) Test

Re: problems with slime and emacs

2008-11-01 Thread Chanwoo Yoo
Thanks! With the latest version of Clojure, slime does not show error messages, and works properly. But it seems that indentations are not applied to expressions in slime. Does it occur only to me? Or does slime not support indentation of Clojure code? --~--~-~--~~~---

Re: problems with slime and emacs

2008-10-31 Thread Chanwoo Yoo
Hi. With a latest version of slime, I can not make slime working properly with clojure on Mac(Leopard). I tried it as instructions of clojure wiki, a readme file in swank-clojure, and emacs/slime/clojure tutorial on ubuntu, but in the every case, slime shows some error messages. When I type m+x r

Re: classpath problem on MacOSX

2008-10-28 Thread Chanwoo Yoo
Thanks! It works! For someone like me, here is an example code. Case 1: clj file /Users/chanwoo/Documents/lisp/clojure/code/clojure/contrib/duck- streams/duck-stream.clj (add-classpath "file:///Users/chanwoo/Documents/lisp/clojure/code/") (use 'clojure.contrib.duck-streams) Case 2: Test class i

Re: classpath problem on MacOSX

2008-10-28 Thread Chanwoo Yoo
Thanks! mb. I did a stupid mistake. But It still doesn't work after correcting typing. canu-yuyi-macbook-air:duck_streams chanwoo$ pwd /Users/chanwoo/Documents/lisp/clojure/code/clojure/contrib/ duck_streams canu-yuyi-macbook-air:duck_streams chanwoo$ ls duck_streams.clj ~/.profile "export CLAS

CLASSPATH problem on MacOSX

2008-10-28 Thread Chanwoo Yoo
Hi. When I try to use 'contrib' library, next error message occurs. user=> (use 'clozure.contrib.duck-streams) java.io.FileNotFoundException: Could not locate Clojure resource on classpath: clozure/contrib/duck_streams/duck_streams.clj My '.profile' file in home directory are as following: "exp