Search found 143 matches

by johu
Sat Dec 18, 2010 3:46 am
Forum: Whither newLISP?
Topic: newLisp without collateral effects
Replies: 23
Views: 15059

Re: newLisp without collateral effects

> (define (sum (x 0)) (inc 0 x)) (lambda ((x 0)) (inc 0 x)) > (sum 1) 1 > sum (lambda ((x 0)) (inc 1 x)) > (sum 3) 4 > sum (lambda ((x 0)) (inc 4 x)) > Note that the lambda expression has been changed after executing sum . The built-in function inc is destructive. But this way might not be used in ...
by johu
Fri Dec 17, 2010 10:12 am
Forum: Whither newLISP?
Topic: newLisp without collateral effects
Replies: 23
Views: 15059

Re: newLisp without collateral effects

I see. My understanding to this discussion is wrong. I'm sorry. By the way, In fact I wanted to use MAP function without using an external variable, which introduce the side-effects. In newLISP, the internal system variable $idx can be used within map. If myFunc will be used only within map, > (defi...
by johu
Fri Dec 17, 2010 5:38 am
Forum: Whither newLISP?
Topic: newLisp without collateral effects
Replies: 23
Views: 15059

Re: newLisp without collateral effects

If my understanding to this discussion might be wrong, I am sorry. It means the following ? > (setq counter 0) 0 > (map (fn(x) (inc counter) (println "Value " counter " --> " x)) '("A" "B" "C")) Value 1 --> A Value 2 --> B Value 3 --> C ("A" "B" "C") > counter 3 > (setq counter 0) 0 > (let (counter ...
by johu
Mon Nov 15, 2010 11:59 am
Forum: newLISP in the real world
Topic: User Manual and Reference v.10.2.8 rev-20.
Replies: 3
Views: 1486

Re: User Manual and Reference v.10.2.8 rev-20.

Thanks,

And I also have corrected mistakes of Japanese translation part.

http://cid-23a9a25e1aec3626.office.live ... -10208.zip
by johu
Sun Nov 14, 2010 8:26 am
Forum: newLISP in the real world
Topic: User Manual and Reference v.10.2.8 rev-20.
Replies: 3
Views: 1486

User Manual and Reference v.10.2.8 rev-20.

Hello, In User Manual and Reference v.10.2.8 rev-20. Examples of term : (set 'ACTX:var 123) (set 'sm 'ACTX:var) (string sm) → "ACTX:var" (term 'sm) → "var" But, actually : > (set 'ACTX:var 123) 123 > (set 'sm 'ACTX:var) ACTX:var > (string sm) "ACTX:var" > (term 'sm) "sm" > (term sm) "var" > (term 'A...
by johu
Fri Oct 29, 2010 12:21 pm
Forum: newLISP newS
Topic: newLISP development release v.10.2.16
Replies: 8
Views: 6128

Re: newLISP development release v.10.2.16

Thank you, Lutz.

And,

They allow (1) partioning of programs into modules,
They allow (1) partitioning of programs into modules,

If wrong, I'm sorry.

Always thank you for the wonderful newLISP.
by johu
Tue Oct 26, 2010 11:52 am
Forum: newLISP newS
Topic: newLISP development release v.10.2.16
Replies: 8
Views: 6128

Re: newLISP development release v.10.2.16

Hello Lutz, I found some mistakes in newLISP manual . cration flags as defined for the Windows <tt>CreateProcessA</tt> function creation flags as defined for the Windows <tt>CreateProcessA</tt> function The date and time values aren given as UTC, which may differ from the local timezone. The date an...
by johu
Sat Oct 09, 2010 3:02 pm
Forum: newLISP newS
Topic: newLISP development release v.10.2.16
Replies: 8
Views: 6128

Re: newLISP development release v.10.2.16

Thank you very much, Lutz.

Moreover, the tab-index can be gotten.

That's a wonderful works.
by johu
Sat Oct 09, 2010 7:47 am
Forum: newLISP newS
Topic: newLISP development release v.10.2.16
Replies: 8
Views: 6128

Re: newLISP development release v.10.2.16

In guisever 1.42, I tried adding the following code to tab-demo.lsp . (gs:table 'Table 'gs:no-action "col1" "col2") (gs:table-add-row 'Table "0" "1") (gs:insert-tab 'MyTabs 'Table "Table tab" 4) Now excuting tab-demo.lsp and clicking tabs, tabs-action prints : MAIN:MyTabs first first tab MAIN:MyTabs...
by johu
Mon Oct 04, 2010 9:54 am
Forum: newLISP newS
Topic: newLISP development release v.10.2.16
Replies: 8
Views: 6128

Re: newLISP development release v.10.2.16

In guiserver.lsp

;; Mutliple multiple column content can be specified as either a list
;; Multiple column content can be specified as either a list
by johu
Sun Oct 03, 2010 3:07 pm
Forum: newLISP newS
Topic: Johu's blog in Japanese language
Replies: 1
Views: 2580

Re: Johu's blog in Japanese language

Thanks for introducing my new blog, Lutz.

And, table APIs are very useful works.

Many thanks for table widget, Unya and Lutz.
by johu
Fri Sep 24, 2010 11:36 am
Forum: newLISP Graphics & Sound
Topic: about GUI functions manual
Replies: 6
Views: 10507

Re: about GUI functions manual

In GUI functions source , I found some mistakes of commants, maybe. If the following is correct, the source changed is here . I changed only the commnets of source, 'guiserverEx.lsp'. And 'guiserver_manual-J.html' is with Japanese-translation. ;; be installed. See the desription for 'gs:play-note' f...
by johu
Mon Sep 20, 2010 11:02 am
Forum: newLISP in the real world
Topic: About Users Manual v.10.2.8
Replies: 4
Views: 1851

Re: About Users Manual v.10.2.8

Thank for the advice, cormullion. I would have a misunderstanding that there is a verb after 'will'. Thank for the update, Lutz. I updated the Japanese translation of rev 18. http://cid-23a9a25e1aec3626.office.live.com/self.aspx/.Public/newlisp%5E_manual-10208.zip Adding the file of "newlisp-manual-...
by johu
Sun Sep 19, 2010 12:11 pm
Forum: newLISP in the real world
Topic: About Users Manual v.10.2.8
Replies: 4
Views: 1851

About Users Manual v.10.2.8

Only on Mac OS X and other Unixes will the Cilk API parallelize tasks. Myabe, there is no verb ? All built-in primitives in newLISP can be easily renamed: (constant 'plus +) Now, plus is functionally equivalent to + and runs at the same speed. As with many scripting languages, this allows for doubl...
by johu
Thu Sep 16, 2010 9:57 am
Forum: newLISP in the real world
Topic: The sample code of Passing data by reference
Replies: 4
Views: 1966

Re: The sample code of Passing data by reference

Thank you for the advice and the rapid work, Lutz. I updated the Japanese translation of current version manual into rev 16. http://cid-23a9a25e1aec3626.office.live.com/self.aspx/.Public/newlisp%5E_manual-10208.zip By the way, in the last example (nth 123 Mydb:data) → "abcdefg" (nth 1234 Mydb:data) ...
by johu
Wed Sep 15, 2010 12:25 pm
Forum: newLISP in the real world
Topic: The sample code of Passing data by reference
Replies: 4
Views: 1966

Re: The sample code of Passing data by reference

Thank you, Lutz.
I see that the error is due to macro:rewrite.

I succeeded by the following code:

Code: Select all

(when macro
  (setq tmp '())
  (swap macro:macro-list tmp))

(define (change-db obj idx value)
    (setf (obj:data idx) value))

(if tmp (swap macro:macro-list tmp))
by johu
Wed Sep 15, 2010 9:38 am
Forum: newLISP in the real world
Topic: The sample code of Passing data by reference
Replies: 4
Views: 1966

The sample code of Passing data by reference

;; pass data by context reference (set 'Mydb:data (sequence 1 100000)) (define (change-db obj idx value) (setf (obj:data idx) value)) (change-db Mydb 1234 "abcdefg") (nth (Mydb:data 1234)) → "abcdefg" According to Users Manual and Reference, Symbol creation in contexts 3.When an unknown symbol is e...
by johu
Sat Sep 11, 2010 10:07 am
Forum: newLISP newS
Topic: newLISP development release v.10.2.14
Replies: 2
Views: 3213

Re: newLISP development release v.10.2.14

Thank you, Lutz.

I updated the Japanese translation of current version manual into rev 13.

http://cid-23a9a25e1aec3626.office.live ... -10208.zip

And updated newLISP-help.lsp, too.

http://cid-23a9a25e1aec3626.office.live ... P-help.zip
by johu
Fri Sep 10, 2010 10:57 am
Forum: newLISP in the real world
Topic: About nil and the empty list ()
Replies: 1
Views: 1118

About nil and the empty list ()

According to Users Manual and Reference, In newLISP, nil and the empty list () are not the same as in some other Lisps. Only in conditional expressions are they treated as a Boolean false, as in and, or, if, while, unless, until, and cond. I think that it means the following: 1.The empty list () is ...
by johu
Fri Sep 10, 2010 10:28 am
Forum: newLISP newS
Topic: newLISP development release v.10.2.14
Replies: 2
Views: 3213

Re: newLISP development release v.10.2.14

In Users Manual and Reference v.10.2.14 3. Interactive Lisp mode After leaving the editor the program could be run uwing a load statement: After leaving the editor the program could be run using a load statement: and I hope to add the following: 3. Functions in groups List processing, flow control, ...
by johu
Fri Sep 10, 2010 9:50 am
Forum: Whither newLISP?
Topic: Extending polymorphic operations on symbols
Replies: 3
Views: 3830

Re: Extending polymorphic operations on symbols

Nobody still post, I try. According to Users Manual and Reference , (map exp-functor list-args-1 [list-args-2 ... ]) Successively applies the primitive function, defined function, or lambda expression exp-functor to the arguments specified in list-args-1, list-args-2-, returning all results in a lis...
by johu
Sat Aug 14, 2010 12:50 am
Forum: newLISP Graphics & Sound
Topic: guiserver not work UTF8 encoding
Replies: 15
Views: 15407

Re: guiserver not work UTF8 encoding

For your information,

I wrote widgets-demo-jp.lsp without hexadecimal code, and added :

Code: Select all

(if utf8 (load "UTF8-title.lsp") (load "SJIS-title.lsp"))
UTF8-title.lsp contains UTF-8 characters.
SJIS-title.lsp contains Shift-JIS characters.

widgets-demo-jp+.zip
by johu
Wed Aug 11, 2010 2:57 pm
Forum: newLISP Graphics & Sound
Topic: guiserver not work UTF8 encoding
Replies: 15
Views: 15407

Re: guiserver not work UTF8 encoding

Thanks for this work, unya and Lutz. At last, I could know how to run newLISP-GS in UTF8 mode. I wonder what is is with with either the MS932 font setting or some other specialty of your Windows installation, that it only works with java -Dfile.encoding=UTF8 on your system? If it means that the widg...
by johu
Fri Jul 30, 2010 1:45 pm
Forum: newLISP newS
Topic: newLISP stable maintenance release 10.2.8
Replies: 11
Views: 6613

Re: newLISP stable maintenance release 10.2.8

Thank you, Lutz. I updated the Japanese translation into rev 8. http://cid-23a9a25e1aec3626.office.live.com/self.aspx/.Public/newlisp%5E_manual-10208.zip http://cid-23a9a25e1aec3626.skydrive.live.com/self.aspx/.Public/newlisp%5E_manual-10208.zip And updated newLISP-help.lsp, too. http://cid-23a9a25e...
by johu
Thu Jul 29, 2010 8:55 am
Forum: newLISP newS
Topic: newLISP stable maintenance release 10.2.8
Replies: 11
Views: 6613

Re: newLISP stable maintenance release 10.2.8

I might have found some mistakes. The initialization file init.lsp On Win32 the is directory name is contained in the <tt>USERPROFILE</tt> or On Win32 the directory name is contained in the <tt>USERPROFILE</tt> or and (and) → nil (and) → true or (or '()) → nil (or '()) → () (and) returned nil before...