Search found 52 matches
- Sat May 18, 2013 2:09 pm
- Forum: Whither newLISP?
- Topic: magic numbers
- Replies: 10
- Views: 11698
Re: magic numbers
For a while now I have been unconsciously squirming in my seat when reading over code like this. This morning I became aware of that discomfort and cried in alarm: magic numbers! To the trained webber this might read transparently lucid; succinct even. But to the novice seeing this for the first ti...
- Tue May 14, 2013 12:20 pm
- Forum: Anything else we might add?
- Topic: Tail Recusion
- Replies: 7
- Views: 5684
Re: Tail Recusion
Sorry to bring back to life such an old post. But I left aside newlisp for a while and now I'm catching up. And this got me puzzled: I tested the crashing function with -s 47000 and I get a stack overflow: 46998 ERR: call or result stack overflow : + called from user defined function simple-crash (s...
- Thu Jul 19, 2012 4:43 pm
- Forum: Anything else we might add?
- Topic: Blog entry: S-Expressions: The Fat-Free Alternative to JSON
- Replies: 1
- Views: 3009
Re: Blog entry: S-Expressions: The Fat-Free Alternative to J
Erm...
Parse error: syntax error, unexpected ';' in /var/www/virtual/shinkirou.org/htdocs/blog/wp-content/themes/elegant-grunge/functions.php on line 3
Parse error: syntax error, unexpected ';' in /var/www/virtual/shinkirou.org/htdocs/blog/wp-content/themes/elegant-grunge/functions.php on line 3
- Sun Jan 29, 2012 1:00 pm
- Forum: Dragonfly
- Topic: [Bug] ERR: list expected: (parse - query QUERY_STRING)
- Replies: 2
- Views: 4746
[Bug] ERR: list expected: (parse - query QUERY_STRING)
I thought dragonfly was unmaintained, but since I've saw some recent post about it in here I decided to give it a try today. So I downloaded it, unzipped it into my ~/public_html, cd-ed into ~/p.../example-site, and run ./newlispServer, and I've got this error: ERR: list expected: (parse - query QUE...
- Thu Jan 26, 2012 1:04 pm
- Forum: newLISP newS
- Topic: Updated links for modules page
- Replies: 4
- Views: 4628
Re: Updated links for modules page
Sorry, I'm used to hover over navigation bars and see drop down menus. I just noticed on this site you have to click the links for them to drop. It's a cool feature they stay on when you click them, so one can peruse at will without having to hold the mouse over the menu. However I think it's an usa...
- Wed Jan 25, 2012 2:06 am
- Forum: newLISP newS
- Topic: Updated links for modules page
- Replies: 4
- Views: 4628
Re: Updated links for modules page
Your links on the navbar do not point to anything, they have the hashmark.
- Mon Dec 26, 2011 11:00 pm
- Forum: newLISP in the real world
- Topic: [wishlist] things I wish for newlisp for 2012
- Replies: 9
- Views: 4452
Re: [wishlist] things I wish for newlisp for 2012
Haven't used it yet, but Jeff Ober's web module claims to have ASP/PHP-style templates. Also I think I've seen some other stuff around with template capabilities.jopython wrote:How about html templating module?
- Sun Dec 25, 2011 4:15 pm
- Forum: newLISP in the real world
- Topic: [wishlist] things I wish for newlisp for 2012
- Replies: 9
- Views: 4452
[wishlist] things I wish for newlisp for 2012
Since we're in this time of the year, I'll take advantage of it and make some wishes for newlisp. First I'll wish there's a new area for wishes like this. Could it be a new forum area or a bug tracker, so we can keep track of what has been proposed and avoid discussing things that have already been ...
- Sun Dec 25, 2011 12:24 pm
- Forum: newLISP in the real world
- Topic: Is there the name conflict of lambda in newlisp?
- Replies: 11
- Views: 5419
Re: Is there the name conflict of lambda in newlisp?
I'm not sure I fully understand what you're trying to achieve. However I can tell you that you avoid name conflicts by using contexts.
- Sat Dec 24, 2011 5:41 pm
- Forum: newLISP in the real world
- Topic: [itn book] map+curry+inc unexpected behaviour on v10.3.3
- Replies: 8
- Views: 3597
Re: [itn book] map+curry+inc unexpected behaviour on v10.3.3
Thanks, I used ++ to keep the section. Also modified it a little bit to make emphasis on the implicit conversion both inc/dec and ++/-- do.
- Sat Dec 24, 2011 11:42 am
- Forum: newLISP in the real world
- Topic: [itn book] map+curry+inc unexpected behaviour on v10.3.3
- Replies: 8
- Views: 3597
Re: [itn book] map+curry+inc unexpected behaviour on v10.3.3
I just added the notice to avoid using curry with destructive functions in the chapter Apply and map which is the first one to mention curry function. However I stomp on something when I went to edit the section Invisible conversion and rounding . See, the thing is cormullion wrote that section to t...
- Fri Dec 23, 2011 1:22 am
- Forum: newLISP in the real world
- Topic: [itn book] map+curry+inc unexpected behaviour on v10.3.3
- Replies: 8
- Views: 3597
Re: [itn book] map+curry+inc unexpected behaviour on v10.3.3
I mentioned the full title in the first message: ITN book is Introduction to newLISP book. It's linked in newlisp.org documentation, I thought it was pretty known in the community.jopython wrote:What is the ITN book?
- Thu Dec 22, 2011 5:29 pm
- Forum: newLISP in the real world
- Topic: [itn book] map+curry+inc unexpected behaviour on v10.3.3
- Replies: 8
- Views: 3597
Re: [itn book] map+curry+inc unexpected behaviour on v10.3.3
Cool. I'll be updating ITN book in a couple of hours, I need to take a nap now.Lutz wrote:Destructive functions should not be used with curry...
This will be mentioned in the reference manual for 'curry' and should also be mentioned in the WikiBooks introduction.
- Thu Dec 22, 2011 5:19 pm
- Forum: newLISP in the real world
- Topic: getting error from open
- Replies: 2
- Views: 1451
Re: getting error from open
On this simpler program: ... I cannot repeat the behavior, you are seeing (incrementing of file handles). Yes, called directly it behaves fine. So I rolled back my git repo and uploaded the bogus version with some additions to denote the bug. I put it here: https://gitorious.org/bogus-stuff/dzenbar...
- Thu Dec 22, 2011 2:36 pm
- Forum: newLISP in the real world
- Topic: [itn book] map+curry+inc unexpected behaviour on v10.3.3
- Replies: 8
- Views: 3597
[itn book] map+curry+inc unexpected behaviour on v10.3.3
I'm reading now the chapter Working with numbers from Introduction to newlisp book, and in the third code example under the subtitle Invisible conversion and rounding we see: (set 'lst '(2 6 9 12)) ;-> (2 6 9 12) (inc (lst 0)) ;-> 3 lst ;-> (3 6 9 12) (map inc lst) ;-> (4 7 10 13) (map (curry inc 3)...
- Thu Dec 22, 2011 12:15 pm
- Forum: newLISP in the real world
- Topic: getting error from open
- Replies: 2
- Views: 1451
getting error from open
I'm using i3 with dzen bar and I'm using newlisp to build me a pretty customized bar. I have this code to check for cpuload: (define (read-proc-stat) (setq procStat (open "/proc/stat" "read")) (do-while (regex {cpu\d?} (read-line procStat)) (parse-stat-line (current-line))) (close procStat)) Script ...
- Fri Dec 16, 2011 12:33 pm
- Forum: newLISP in the real world
- Topic: [itn book] colon prefixed mode not working
- Replies: 7
- Views: 4242
Re: [itn book] colon prefixed mode not working
itn book updated now. I modified examples and part of the text under subtitles: FOOP in a nutshell , Polymorphism , Modifying objects . Also I added an external link to the reference manual since there's an example there on nested objects which I felt was important and is missing on itn book. Maybe ...
- Fri Dec 16, 2011 10:38 am
- Forum: newLISP in the real world
- Topic: [itn book] colon prefixed mode not working
- Replies: 7
- Views: 4242
Re: [itn book] colon prefixed mode not working
Thanks Michael and Lutz, I think Cormullion said somewhere in the book to read the reference manual first, not sure though, and now I'm too engaged with the book to start from scratch with the manual. Anyway I should read it when I find this kind of differences, I'm making a mental note now. A quest...
- Thu Dec 15, 2011 10:20 am
- Forum: newLISP in the real world
- Topic: [itn book] colon prefixed mode not working
- Replies: 7
- Views: 4242
[itn book] colon prefixed mode not working
I'm reading the chapter on contexts now on the Introduction to Newlisp book, and just copy pasted the example on FOOP, which looks like this: ; definitions (define (Time:Time (t (date-value)) (zone 0)) (list Time t zone)) (define (Time:show t) (date (t 1) (t 2))) (define (Time:days-between t1 t2) "R...
- Wed Dec 07, 2011 1:20 am
- Forum: newLISP in the real world
- Topic: variable $it not set - updating itn book
- Replies: 5
- Views: 2049
Re: variable $it not set - updating itn book
The system variable $it is mentioned in the 10.3.3 doc http://www.newlisp.org/downloads/newlisp_manual.html#system_symbols Sorry about that Lutz, my bad. I just went for the index instead of searching and now I'm noticing that the index is for functions and that there're plenty of mentions of $it. ...
- Tue Dec 06, 2011 12:22 pm
- Forum: newLISP in the real world
- Topic: variable $it not set - updating itn book
- Replies: 5
- Views: 2049
variable $it not set - updating itn book
I found a reference to variable $it set by setf in Introduction to newlisp book, in the chapter on strings, http://en.wikibooks.org/w/index.php?title=Introduction_to_newLISP/Strings&stable=0#Modifying_strings which doesn't exist in the manual nor works in v10.3.3. I was about to remove the mention, ...
- Thu Nov 24, 2011 4:01 pm
- Forum: newLISP in the real world
- Topic: no PCRE_* constants
- Replies: 3
- Views: 1518
Re: no PCRE_* constants
Sorry about the fuss then, I shouldn't wave the bug-flag so carelessly. I misunderstood this statement: "The following constants can be used for int-option" in http://www.newlisp.org/downloads/newlisp_manual.html#regex , just above the table a couple of pages below the anchor. I thought I could use ...
- Thu Nov 24, 2011 2:32 pm
- Forum: newLISP in the real world
- Topic: no PCRE_* constants
- Replies: 3
- Views: 1518
no PCRE_* constants
I found this topic: http://newlispfanclub.alh.net/forum/viewtopic.php?f=9&t=3763&hilit=PCRE_UTF8 But, I tested both v10.3.3 and v.10.3.6 by doing: ./configure && make -f makefile_linuxLP64_utf8 and I got: $ ./newlisp -e '(replace { } " x x x " {-} 0x8000)' "-x x x " $ ./newlisp -e '(replace { } " x ...
- Tue Nov 22, 2011 5:18 pm
- Forum: newLISP newS
- Topic: getopts.lsp module for passing commandline options
- Replies: 5
- Views: 4601
Re: getopts.lsp module for passing commandline options
You're right Lutz... Also I think I found a bug in the installation scripts. I downloaded v10.3.3 to check for getopts.lsp and it was right there, as you stated. So I thought it might be an error with my distro (archlinux), so I completely removed newlisp, and reinstalled it, and still no getopts mo...
- Tue Nov 22, 2011 1:03 am
- Forum: newLISP newS
- Topic: getopts.lsp module for passing commandline options
- Replies: 5
- Views: 4601
Re: getopts.lsp module for passing commandline options
There's no module under /usr/share/newlisp/modules/getopts.lsp yet (newLISP v.10.3.3).
Maybe the example should say that since
will not work unless you copy the module there.
Other than that, thank you Ted.
Maybe the example should say that since
Code: Select all
(module "getopts.lsp")
Other than that, thank you Ted.