Search found 7 matches

by nanxiao
Fri Jul 20, 2018 8:30 am
Forum: newLISP in the real world
Topic: A typo in net-eval manual
Replies: 0
Views: 5040

A typo in net-eval manual

In the code example of net-eval manual(http://www.newlisp.org/downloads/newlis ... l#net-eval):

Code: Select all

......
; communicating via Uix local domain sockets

newlisp -c /tmp/mysocket
It should be Unix not Uix.
by nanxiao
Mon Jul 16, 2018 5:29 am
Forum: newLISP in the real world
Topic: Why the fexpr's internal variable's name couldn't be same as
Replies: 2
Views: 3057

Re: Why the fexpr's internal variable's name couldn't be sam

Hi Ralph,

Got it! Thanks for your reply!

Best Regards
Nan Xiao
by nanxiao
Wed Jul 11, 2018 10:26 am
Forum: newLISP in the real world
Topic: Why the fexpr's internal variable's name couldn't be same as
Replies: 2
Views: 3057

Why the fexpr's internal variable's name couldn't be same as

Hi all, Greeting from me! When studying define-macro( http://www.newlisp.org/downloads/newlisp_manual.html#define-macro ), I am a little confused with following statement: Note that in fexprs, the danger exists of passing a parameter with the same variable name as used in the define-macro definition...
by nanxiao
Fri Jun 29, 2018 9:43 am
Forum: newLISP in the real world
Topic: How to get return value of every spawn process iteration
Replies: 2
Views: 3444

Re: How to get return value of every spawn process iteration

@ralph.ronnquist:

Thanks very much for your help!
by nanxiao
Thu Jun 28, 2018 5:14 am
Forum: newLISP in the real world
Topic: Why doesn't "-m" option take effect?
Replies: 2
Views: 3412

Re: Why doesn't "-m" option take effect?

@Lutz:

Got it! Thanks very much for your time and response!
by nanxiao
Wed Jun 27, 2018 7:01 am
Forum: newLISP in the real world
Topic: Why doesn't "-m" option take effect?
Replies: 2
Views: 3412

Why doesn't "-m" option take effect?

Hi all, Greeting from me! I try arg-test program in http://www.newlisp.org/downloads/CodePatterns.html#toc-2 : #!/usr/bin/newlisp -s 100000 -m 10 (println (main-args)) (println (sys-info)) (exit) ; important Using current stable 10.7.1 , the result of running arg-test is like this: $ ./arg-test.lsp ...
by nanxiao
Mon Jun 25, 2018 1:40 pm
Forum: newLISP in the real world
Topic: How to get return value of every spawn process iteration
Replies: 2
Views: 3444

How to get return value of every spawn process iteration

Hi all, Greeting from me! I am a newbie of newLISP, and want to implement a simple feature which launches processes according to CPU number: (import "libc.so" "sysconf") (constant '_SC_NPROCESSORS_ONLN 503) (define (report pid) (println "process: " pid " has returned")) (define cpu-num (sysconf _SC_...