Search found 4 matches

by pkoppstein
Sat Aug 03, 2013 4:53 am
Forum: Anything else we might add?
Topic: JSON support
Replies: 0
Views: 3201

JSON support

This is an enhancement request regarding support for JSON. In brief, I would like newlisp to support a variant of json-parse that preserves the JSON/Javascript distinction between objects and arrays. Apart from the intrinsic value of preserving the duality, another consideration is invertibility. In...
by pkoppstein
Sat Aug 03, 2013 2:44 am
Forum: Anything else we might add?
Topic: segmentation fault using import on OSX
Replies: 8
Views: 6084

Re: segmentation fault using import on OSX

Some good news: after I switched from the "homebrew" version of newlisp to the "official" (newlisp.org) version, the unexplained problems went away. Notice in particular the difference in banners: homebrew: newLISP v.10.5.3 64-bit on OSX IPv4/6 UTF-8, options: newlisp -h official: newLISP v.10.5.3 6...
by pkoppstein
Fri Aug 02, 2013 7:48 pm
Forum: Anything else we might add?
Topic: segmentation fault using import on OSX
Replies: 8
Views: 6084

Re: segmentation fault using import on OSX

Thank you for your responses, but please note: 1) using the "extended syntax" also does not work in the Mac environment I am using (see below); 2) even the fixed-signature "atof" does not work properly, as is illustrated below as well. Anyway, since "printf" is "polymorphic", it would seem there is ...
by pkoppstein
Fri Aug 02, 2013 5:47 pm
Forum: Anything else we might add?
Topic: segmentation fault using import on OSX
Replies: 8
Views: 6084

segmentation fault using import on OSX

$ newlisp newLISP v.10.5.3 64-bit on OSX IPv4/6 UTF-8, options: newlisp -h > (import "libc.dylib" "printf") printf@7FFF92EAD222 > (printf "%s %d" "hola" 123) hola 1238 > (printf "%s %d %c\n" "hello" 999 65) hello 999 A 12 > (printf "%g" 1.2) 4.35711e-31412 > (printf "%g %s %d %c\n" 1.23 "hello" 999 ...