Search found 123 matches
- Mon Dec 26, 2011 4:56 pm
- Forum: newLISP in the real world
- Topic: [wishlist] things I wish for newlisp for 2012
- Replies: 9
- Views: 4389
Re: [wishlist] things I wish for newlisp for 2012
How about html templating module?
- Sun Dec 25, 2011 12:45 am
- Forum: So, what can you actually DO with newLISP?
- Topic: "52 Lessons in Lisp" project
- Replies: 4
- Views: 7781
Re: "52 Lessons in Lisp" project
Looks like it didn't get completed.
- Sat Dec 24, 2011 5:31 am
- Forum: newLISP in the real world
- Topic: Calling C functions
- Replies: 2
- Views: 1570
Re: Calling C functions
Never mind.
As per docs
As per docs
Code: Select all
(set 'hostname (dup "\000" 64))
(set 'lpNum (pack "lu" (length str)))
(gethostname str lpNum)
(trim str)
- Sat Dec 24, 2011 5:10 am
- Forum: newLISP in the real world
- Topic: Calling C functions
- Replies: 2
- Views: 1570
Calling C functions
Code: Select all
char hostname[128];
gethostname(hostname, sizeof hostname);
> gethostname<FEFC95F0>
> (set 'hostname nil)
> (gethostname hostname)
0
How to handle to the sizeof part?
- Sat Dec 24, 2011 1:36 am
- Forum: newLISP in the real world
- Topic: parsing large files (> 5GB)
- Replies: 8
- Views: 3207
Re: parsing large files (> 5GB)
That still seems very slow.
Yes they(UltraSparc iii) are slow. They belong to the 2001 era. SUN(now Oracle) sparcs are generally not optimized for single threaded performance. Infact the SPARC cpus did even feature out-out-order execution until recently.
Yes they(UltraSparc iii) are slow. They belong to the 2001 era. SUN(now Oracle) sparcs are generally not optimized for single threaded performance. Infact the SPARC cpus did even feature out-out-order execution until recently.
- Fri Dec 23, 2011 10:12 pm
- Forum: newLISP in the real world
- Topic: parsing large files (> 5GB)
- Replies: 8
- Views: 3207
Re: parsing large files (> 5GB)
Now using the stdin method for the original script it went down from 8 minutes to 13 secs. Phew.
Looks like fgetc method is a bad idea.
Code: Select all
time ./apache.lsp < xaa
3885
real 0m13.088s
user 0m12.662s
sys 0m0.243s
- Fri Dec 23, 2011 10:05 pm
- Forum: newLISP in the real world
- Topic: parsing large files (> 5GB)
- Replies: 8
- Views: 3207
Re: parsing large files (> 5GB)
Hmm..
./readchannel test.txt
time:87445.189
read 100000 lines and 19000792 characters
$ ./readstdin < test.txt
time:1704.849
read 100000 lines and 19000792 characters
This is a Ultrasparc 25.
./readchannel test.txt
time:87445.189
read 100000 lines and 19000792 characters
$ ./readstdin < test.txt
time:1704.849
read 100000 lines and 19000792 characters
This is a Ultrasparc 25.
- Fri Dec 23, 2011 8:34 pm
- Forum: newLISP in the real world
- Topic: parsing large files (> 5GB)
- Replies: 8
- Views: 3207
Re: parsing large files (> 5GB)
The difference is really huge 8 Minutes in newlisp vs 2 seconds in Perl for a 100MB log file. I am not a fan of Perl. But i am forced to use it because of its text processing performance. $ time ./apache.lsp xaa 3885 real 8m2.346s user 1m28.495s sys 6m30.581s $ cat apache.lsp ;(set 'yesterd (date (d...
- Thu Dec 22, 2011 11:03 pm
- Forum: newLISP in the real world
- Topic: [itn book] map+curry+inc unexpected behaviour on v10.3.3
- Replies: 8
- Views: 3544
Re: [itn book] map+curry+inc unexpected behaviour on v10.3.3
What is the ITN book?
- Wed Dec 21, 2011 9:22 pm
- Forum: newLISP in the real world
- Topic: parsing large files (> 5GB)
- Replies: 8
- Views: 3207
parsing large files (> 5GB)
Parsing large log files (using line-by-line) takes a looong time(several times slow compared to Perl). ------------------ (while (read-line file) (if (regex p1 (current-line) 0x10000) (inc foo))) ------------------ Is there anything I could use within newlisp to shorten the time for reading files? S...
- Wed Dec 21, 2011 9:21 pm
- Forum: newLISP in the real world
- Topic: Function composition?
- Replies: 4
- Views: 2770
Re: Function composition?
Thank you , Kazimir.
- Sun Dec 18, 2011 2:52 pm
- Forum: newLISP in the real world
- Topic: Function composition?
- Replies: 4
- Views: 2770
Function composition?
Is there a builtin compose function in newlisp?
- Thu Dec 15, 2011 11:08 pm
- Forum: newLISP and the O.S.
- Topic: Compiling using gcc 3.4.4 in SPARC Solaris 10
- Replies: 1
- Views: 2703
Compiling using gcc 3.4.4 in SPARC Solaris 10
I get a lot of 'dereferencing type-punned pointer' warnings. $ make -f makefile_sunos gcc -m32 -Wall -pedantic -Wno-uninitialized -Wno-long-long -c -O2 -DSUNOS newlisp.c newlisp.c: In function `p_apply': newlisp.c:4295: warning: dereferencing type-punned pointer will break strict-aliasing rules newl...
- Thu Dec 15, 2011 2:13 am
- Forum: newLISP in the real world
- Topic: Lisp Manual and reference in PDF?
- Replies: 2
- Views: 1647
Re: Lisp Manual and reference in PDF?
No prob. I used 'wkhtmltopdf' in my Ubuntu.
- Thu Dec 15, 2011 1:58 am
- Forum: newLISP and the O.S.
- Topic: Compiling newlisp using Oracle Studio compiler in SPARC S10
- Replies: 1
- Views: 2550
Compiling newlisp using Oracle Studio compiler in SPARC S10
I compiled newlisp 10.3.3 using Oracle Studio 12 in SPARC Solaris 10 platform and got these warnings. make -f makefile_modifiedsunos cc -m32 -c -O2 -DSUNOS newlisp.c "newlisp.c", line 851: warning: statement not reached "newlisp.c", line 3571: warning: statement not reached "newlisp.c", line 3614: w...
- Wed Dec 14, 2011 3:08 am
- Forum: newLISP in the real world
- Topic: Lisp Manual and reference in PDF?
- Replies: 2
- Views: 1647
Lisp Manual and reference in PDF?
I prefer reading it in PDF format (when offline) with my tablet
- Sun Oct 03, 2010 5:58 pm
- Forum: newLISP and the O.S.
- Topic: nth-set in Ubuntu Linux
- Replies: 4
- Views: 3316
Re: nth-set in Ubuntu Linux
Thank you all for the quick response. It's one of those things which makes me interested in newlisp.
It seems i was reading Aug 2008 version 'Intro to newlisp' which had the nth-set.
Its not there in Dec 2008 version anymore.
It seems i was reading Aug 2008 version 'Intro to newlisp' which had the nth-set.
Its not there in Dec 2008 version anymore.
- Sun Oct 03, 2010 2:57 pm
- Forum: newLISP and the O.S.
- Topic: nth-set in Ubuntu Linux
- Replies: 4
- Views: 3316
nth-set in Ubuntu Linux
I am going through the documentation (Introduction to newlisp) and trying to use nth-set as mentioned in page 70: $ newlisp newLISP v.10.2.8 on Linux IPv4 UTF-8, execute 'newlisp -h' for more info. > (set 't "a b c") "a b c" > (nth-set (t 0) ">") ERR: invalid function : (nth-set (t 0) ">") What am I...
- Tue Sep 14, 2010 9:01 pm
- Forum: newLISP and the O.S.
- Topic: Newbie question: Daemon mode in Linux
- Replies: 8
- Views: 4680
Re: Newbie question: Daemon mode in Linux
but I guess many zLinux images run on that mainframe CPU sharing the power.
Yep we have a hundred of them.
Yep we have a hundred of them.
- Tue Sep 14, 2010 7:48 pm
- Forum: newLISP and the O.S.
- Topic: Newbie question: Daemon mode in Linux
- Replies: 8
- Views: 4680
Re: Newbie question: Daemon mode in Linux
For SUN SPARC running a 1350MHZ processor it is:
newlisp qa-specific-tests/qa-bench
Benchmarking all non I/O primitives
5579.9 ms
>>>>> Performance ratio: 2.24 (1.0 on Mac OS X, 1.83 GHz Intel Core 2 Duo)
newlisp qa-specific-tests/qa-bench
Benchmarking all non I/O primitives
5579.9 ms
>>>>> Performance ratio: 2.24 (1.0 on Mac OS X, 1.83 GHz Intel Core 2 Duo)
- Tue Sep 14, 2010 7:27 pm
- Forum: newLISP and the O.S.
- Topic: Newbie question: Daemon mode in Linux
- Replies: 8
- Views: 4680
Re: Newbie question: Daemon mode in Linux
newlisp qa-specific-tests/qa-bench
Code: Select all
Benchmarking all non I/O primitives
2134.6 ms
>>>>> Performance ratio: 0.89 (1.0 on Mac OS X, 1.83 GHz Intel Core 2 Duo)
- Tue Sep 14, 2010 5:58 pm
- Forum: newLISP and the O.S.
- Topic: Newbie question: Daemon mode in Linux
- Replies: 8
- Views: 4680
Re: Newbie question: Daemon mode in Linux
Thanks for the quick response which works.
FYI, I compiled newlisp on zLinux (for the IBM mainframe) with the config_alt option.
Works fine for me so far.
FYI, I compiled newlisp on zLinux (for the IBM mainframe) with the config_alt option.
Works fine for me so far.
- Tue Sep 14, 2010 3:15 pm
- Forum: newLISP and the O.S.
- Topic: Newbie question: Daemon mode in Linux
- Replies: 8
- Views: 4680
Newbie question: Daemon mode in Linux
I want newlisp to run in the background while I am away from the shell. In a 'traditional' UNIX scripting language like Perl, Python the setsid function will have to be called from the inside. In the Bash/Korn shell we have to invoke nohup script_name & Is there a way to avoid the nohup command for ...