Search found 136 matches

by hartrock
Wed Aug 14, 2013 3:09 am
Forum: newLISP in the real world
Topic: [bug?] deleting referenced context symbol
Replies: 9
Views: 3118

Re: [bug?] deleting referenced context symbol

The hanging you observed after the first (delete 'CTX) when CTX had nil ed references will not occur anymore but give an appropriate error message: http://www.newlisp.org/downloads/development/inprogress/ So the first (delete 'CTX) on a context is a "safe" operation and errors will be signaled with...
by hartrock
Mon Aug 12, 2013 2:30 am
Forum: newLISP in the real world
Topic: pop-assoc problem: feels like a bug [fixed in v.10.5.4]
Replies: 9
Views: 3927

Re: pop-assoc problem: feels like a bug [fixed in v.10.5.4]

Thanks for your solution: a switch between 32/64-bit seems to be reasonable.
Works for me (Debian 64-bit), but should be checked for other Linuxes, too: don't know, if all are following proposal https://wiki.ubuntu.com/MultiarchSpec.
by hartrock
Sun Aug 11, 2013 7:50 pm
Forum: newLISP in the real world
Topic: pop-assoc problem: feels like a bug [fixed in v.10.5.4]
Replies: 9
Views: 3927

PS: FFI at Debian wheezy

PS: Simplified makefile working for me without /usr/local libffi, because it's at some standard loc: sr@free:~/tmp/newlisp-10.5.4$ diff makefile_linuxLP64_utf8_ffi makefile_linuxLP64_utf8_ffi_orig 9c9 < CFLAGS = -fPIC -m64 -Wall -pedantic -Wno-uninitialized -Wno-strict-aliasing -Wno-long-long -c -O2...
by hartrock
Sun Aug 11, 2013 6:48 pm
Forum: newLISP in the real world
Topic: pop-assoc problem: feels like a bug [fixed in v.10.5.4]
Replies: 9
Views: 3927

FFI at Debian wheezy

1. libffi has been installed. 2. Using configure-all just omits ffi tests, so there has been no failure. 3. After looking into the problem two patches in the test code have solved the problem (compiled the standard way): sr@free:~/tmp/newlisp-10.5.4$ diff qa-specific-tests/qa-ffi qa-specific-tests/q...
by hartrock
Sun Aug 11, 2013 5:17 pm
Forum: newLISP in the real world
Topic: [bug?] deleting referenced context symbol
Replies: 9
Views: 3118

Re: [bug?] deleting referenced context symbol

The absence of bool arg doesn't mean it's nil . The default value for the bool arg is is true . OK. My assumption has been, if there is no default value given in the docu, then an optional arg leads to a nil param, if not given. So (delete 'S) and (delete 'S true) are the same thing and do referenc...
by hartrock
Sun Aug 11, 2013 1:51 pm
Forum: newLISP in the real world
Topic: pop-assoc problem: feels like a bug [fixed in v.10.5.4]
Replies: 9
Views: 3927

Re: pop-assoc problem: feels like a bug

Hello Lutz, 1. Many thanks for your fast fix! 2. It works for me under Debian wheezy (stable). 3. For getting all tests running: ./configure-alt make make check make testall Tried to upload makefile-build named - makefile_build makefile_build.text makefile_build.txt , but always gotten: - The extens...
by hartrock
Sun Aug 11, 2013 4:40 am
Forum: newLISP in the real world
Topic: [bug?] deleting referenced context symbol
Replies: 9
Views: 3118

Re: [bug?] deleting referenced context symbol

Note: second reply to split whole reply into smaller parts. From the docu of delete (http://www.newlisp.org/downloads/newlisp_manual.html#delete) delete syntax: (delete symbol [bool]) syntax: (delete sym-context [bool]) Deletes a symbol symbol, or a context in sym-context with all contained symbols ...
by hartrock
Sun Aug 11, 2013 4:15 am
Forum: newLISP in the real world
Topic: [bug?] deleting referenced context symbol
Replies: 9
Views: 3118

Re: [bug?] deleting referenced context symbol

On a general note: I wouldn't do any deleting of namespaces in newLISP program of non-trivial size. Except when using the nil flag in the delete command, symbols are checked for reference in the whole newLISP cell memory space, which can get very slow on bigger programs with bigger data in it. OK: ...
by hartrock
Sat Aug 10, 2013 7:06 pm
Forum: newLISP in the real world
Topic: [bug?] deleting referenced context symbol
Replies: 9
Views: 3118

Re: [bug?] deleting referenced context symbol

Hello Lutz, thank you for your quick response. When deleting a context symbol, the first delete removes the context namespace contents and demotes the symbol to a normal mono-variable symbol. The second delete then removes the symbol completely from the symbol table - this will be added to the manua...
by hartrock
Sat Aug 10, 2013 11:31 am
Forum: newLISP in the real world
Topic: [bug?] deleting referenced context symbol
Replies: 9
Views: 3118

[bug?] deleting referenced context symbol

Hello All, hello Lutz, further stress testing newLisp: is this a bug or a feature (possibly for efficiency reasons)? This leads to an endless loop: newLISP v.10.5.3 64-bit on Linux IPv4/6 UTF-8, options: newlisp -h > (context 'Ctx) (context MAIN) (context? Ctx) (context 'Ctx2) (context MAIN) ;; (set...
by hartrock
Thu Aug 08, 2013 8:31 pm
Forum: newLISP in the real world
Topic: pop-assoc problem: feels like a bug [fixed in v.10.5.4]
Replies: 9
Views: 3927

pop-assoc problem: feels like a bug [fixed in v.10.5.4]

Hello All, hello Lutz, The following shows something, which looks like a bug. Code: (new Tree 'Data) (push '(1 (k_1 "v_1")) Data) (push '(k_2 "v_2") (assoc 1 Data) -1) ;; -> OK ;; (pop-assoc '(1 k_2) Data) Data:Data ;; -> OK ;; ;; (push '(k_2 "v_2") (assoc 1 Data) -1) ;; -> fails! ;; ;; repair (push...