Commit graph

7 commits

Author SHA1 Message Date
ryoon
18fde647fb Update to 10.6.0 from 10.5.4
* Add Java dependency, it is used with GUI server.

Changelog:
10.5.5 2013 November 20th, development release
   Allow trailing , (comma) in JSON arrays. The new JSON ECMA-404 seems not
   to allow it but the JavaScript standard ECMA-262 and many browsers do.

   Added makefile_linux_openwrt for for TP-link TL-WR703N travel router
   contributed by Dexter.

   In arithmetik big integer operations + - * / % more than two operands
   are allowed as in normal precision integer operations.

   On Windows support UNIX conventions for formatting 64-bit integers.
   I.e.: %lld %llu %llx %llX additionally to %I64d %I64u %I64x %I64X

   Added ++, -- to qa-bigint. Fixed sign change on second operand of
   bigint -- when second operand was negative.

   Some cleanup in Cilk API when releasing resources.

   The 'gcd' function now also works on big integers and > 2 operands.

   On UBUNTU Linux decimal numbers can be formatted using a GNU extension
   in libc, e.g: (format "%'d" 12345) => 12,345
   The optional ' (single quote) after the % character causes thousands
   to be separated with the appropiate character for the current locale.

   Fixed a cell leak introduced in 10.5.5 when deleting contexts.

   The default pretty-print float setting has been changed to "%1.15g".

   'reset' now also cancels command line parameter processing.

   A fix in 'round' when number is exacty 0.5.

   'map', 'apply', 'stats', 'corr', 't-test' now also can take arrays

   'bayes-query' with Fisher's Chi2 method calculated wrong probabilities
   when training in more than two categories. When training in two
   categories the result probabilities were swapped - reporting the
   probability for the second category first. 'bayes-query' calculating
   probabilities with the Chain Bayesian method - using the true flag -
   was not affected.

   Many documentation changes and corrections.

10.5.6 December 10th, 2013, development release
   Since OSX 10.9 Maverick (format "%'d" 12345) => 12,345 will work too.
   Will not work on any locale but works on en_US.UTF-8.

   Fixed 'apply' for arrays introduced in 10.5.5 for a cell/memory leak.

   When making hash trees using the predefined context 'Tree',
   the default symbol in the new context is protected as is 'Tree:Tree'.
   Default symbols in hash trees must be 'nil' in order for the hash
   statement syntax for namespaces to work.

   When copying symbols from a source context to a target contest using 'new'
   or 'def-new', the 'protected?' property is copied too.

   An empty list as index vector for a list or array yields the original
   list or array as return value:
       (set 'L '(1 2 (3 4)))
       (L '())    => (1 2 (3 4))
       (nth '() L) => (1 2 (3 4))

   Many document changes, additions and corrections.

   'int' can convert binarys numbers like (int "0b11111") => 31
   This format is recognized by the code reader/loader since v.10.4.4.

   Integers are accepted as hash keys. This allows creating sparse vectors:
       (new Tree 'V)
       (V 123 "hello")
       (V 123) => "hello"

   'reverse' can be used on arrays.

   Anaphoric system variable $it is now set to the value of the conditional
   expression in 'if'.

   Speed improvements in evaluateExpression().  For this The -pendatic option
   has been turned off in Linux to avoid ISO C90 mixed declaration warnings.

   'length' on integers will return the number of digits, just like it already
   does on bigint numbers, on floats returns the number of decimal digits before
   the decimal separator.


10.5.7
   Fixes for deprecated CYGWIN compile. See also makefile_cygwin for more info.

   Clear potential error condition when doing 'import'.

   In guiserver.jar: When adding columns with empty string headers, this will not
   any more put the column number as header. This allows to add columns to
   headerless tables, as possible when supplying empty string headers in the
   initial gs:table statement.

   Debugger will now always highlight the correct expression, not highlight
   the first one if multiple instances exist.

   Eliminated strncat() for BSD and better speed with memcpy() in most places.

   Delay signal-behavior change in spawn after getting parameters. Makes better
   error recovery.

   In guiserver.jar: New table functions. Thanks to Ferry de Bruin.
     gs:table-remove-row, gs:table-set-column-name and gs:table-set-row-count.
   To avoid API naming confusions, the naming of old gs:table-set-row-number
   is deprecated and should be called as gs:table-show-row-number.
   The old naming will continue to work. Three new optional parameters for
   'gs:scroll-pane' can specify colun header, row headers and a widget
   for the top left corner of a table used in the scroll pane.

   'find-all' should return an empty list as documented when nothing is found
   on strings too.

   Some renaming of functions and constants for better code readability and
   some small refactoring in several files.

   qa-bench has been redone with changes for Emscripten compiled newLISP.
   Now calibrates for comparison with Mac OSX 9.1 on 2.3GHz Intel Core i5.

   Fixed a crash bug when colon operator has missing or wrong-type args
   on 64-bit compiles.

   newLISP compiled to JavaSript with Emscripten
   ---------------------------------------------
   Added makefile_emscripten_lib_utf8. For this
   Must download and install the Emscripten-SDK from here:
       https://github.com/kripken/emscripten/wiki/Emscripten-SDK
   Tested on OSX 10.9 installing emsdk-portable.tar.gz v.1.7.8

   The newlisp-js-lib.js is made using makefile_emscripten_lib_utf8.

   The new function 'eval-string-js' takes a JavaSript string.
   New 'display-html' can either replace the current page or display
   a page in a new tab of the host browser. 'display-html' must be
   defined in Emscripten appplication .html

   Some functions (filter, index, clean, exists, forl-all) will not show
   error messages under certain circumstanmces in the monitor, although
   newLISP behaves correctly throwing the exception (setjmp/longjmp), they
   just don't reach the Emscripten console (log). In this case, if the error
   is not 'catch'ed newLISP exits without advising why. This problem goes away
   when compiling with Emscriptem without any optimizations, but slows
   everything down by a factor of 40 to 50. Normal performance is around
   1.5 of native on Mac OSX when excluding all time/date related functions
   and a few other outliers. Including outliers about 2.65.
   See also here: https://github.com/kripken/emscripten/issues/810
   (volatile declaration did not help)

   All file and directory functions work (almost all did all the time),
   but changes are lost after leaving the page or reloading the page.
   Storage is 'session storage' only. No URLs are in allowed in file
   functions as is on native compiled newLISP.

   As editor, CodeMirror from codemirror.net is used and mode/newlisp.js
   was created for syntax high-lighting.

10.5.8
   'macro' is now a built-in primitive function working exactly as described
   in the macro.lsp module, which is now obsolete. Macros cannot be redefined
   using 'macro'. Macros can be nested. A symbol used as a macro can only be
   used as a macro, even if changing the definition of it.

   Another speed improvement for 'read-line' on file handles (the first speed
   improvement happend in 10.3.10).

10.6.0
   Eliminated emscripten-lib.c, gets handled by unix-lib.c.

   A fix for 'file?' and 'directory?' predicates when applied to root
   directories on Windows.

   Updated examples/udp-server.lsp to nmake it work on Windows.
2014-07-07 14:25:31 +00:00
ryoon
dca2b36e68 Update to 10.5.4
Changelog:
10.5.4
   3.7 newlispdoc cleanup ";; *" regex

   New FFI ffi.h include directory in makefile_linux* when installing libffi

   Fix for last list element optimization in push, pop and pop-assoc when
   popping and inserting last element

   Accessing a deleted context will never hang but give an error message

   Some changes in nl-filesys.c for AIX and new makefile for AIX ILP32

   On Windows: a fix for correctly closing logfiles initiated by newlisp -l or
   newlisp -L and for closing files created by the HTTP PUT operation.

   Two sample 't-test' when variances are different (independent samples) with
   new syntax:
        (t-test <list-vector-A> <list-vector-B> <float-probabilty>)
   When <float-probabilty> is specified, an internal F-test for variance
   equality in data A and B is performed. If the probablity of F is
   smaller than <float-probabilty>, then Welch's variant of the t-test for
   independent samples is performed. Using 1.0 <float-probabilty>, Welch
   can be forced even when variances are not significantly different.

   One sample 't-test' using new syntax pattern:
        (t-test <list-vector-data> <float-value>)
   Gives the two-tailed probability that observed mean is differs from <float-value>
   Instead of sdev for second list-vector the standard error for the observed mean
   is reported.

   Some cleanup and changes in scripts (makefiles) for binary installers
2013-10-12 10:30:40 +00:00
ryoon
ba831d600b Update to 10.5.3
Changelog:
newLISP® v.10.5.3 Stable Release 2013-07-10

This release fixes bugs in the new, unlimited precision, integer arithmetic and JSON subsystems and introduces functions for KMEANS data clustering.
New Features

    New cluster analysis functions kmeans-train and kmeans-query (v.10.5.2).

Bug fixes

    Big integer division had problems with embedded, aligned big int sized zeros and trailing zeros in results. On Linux, compiler optmizations in big integer division code caused problems and are disabled now with no decrease in performance (v.10.5.1).
    The bigint function now accepts integers in strings with trailing non-digit characters and floats in simple dot-decimal notation (v.10.5.1).
    After Java update 7u21, install directory names could not have spaces. This has been fixed (v.10.5.2).
    Escaped " quote and \ backslash characters in json-parse strings are now handled correctly (v.10.5.2/3).

Compatibility with previous versions

This version is compatible with the previous versions in the 10.5.x series.
2013-07-12 13:37:38 +00:00
ryoon
7ebbd31670 Update to 10.5.0
Changelog:
10.4.7
     Eliminate unused JSON error message.

     Elminated usage of $0 in replace on lists (no regular expressions). The count
     of replacements now is contained in the new $count system var, not $0. The usage
     of $0 - $15 now is strictly for regular expressions. This also speeds up replace.

     read-expr now uses $count instead of $0 for the number of characters processed.

     Eliminated undocumented usage of $0 for found elements in find-all on lists.
     Only $it is used. $0 only on find-all on strings with regular expressions.
     The system variable $count is updated for all forms of find-all, ref-all and
     set-ref-all.

     Link feature now built in with comandline flag -x for all OS flavors:
        newlisp -x <source-file> <executable-file>
     The file util/link.lsp is not required anymore but has been included and
     adapted to changes for the -x linkage. The file illustrates the internals
     of the linkage process when using the -x option.

     An additional true flag in the real-path function allows finding the executable
     path of executables - similar to the "which" utility on UNIX. This is a by-
     product of fixing the link.lsp feature for UNIX. The additional flag works
     on all platforms. 'real-path' on Windows and BSD now also veryfies that path
     and file are valid, as it already did on non-BSD Unix (OSX, Linux).

     Enforce MAX_SYMBOL for tags in xml-parse and symbol creation using sym.

     Security fixes for strncpy and strncat.

     Windows CGI server mode was broken in development version 10.4.6 (isDir()).

     Preparation for 64-bit Windows (in early summer).

10.4.8
    Cleanup of the factor function.

    Like date-parse, date-value will produce negative values for dates before 1970-1-1
    til 1901-12-14.

    The function 'flat' now can take an optioal depth parameter to limit flattening
    a list up to certain level: (flat <list> [<level>])

        (flat '(1 2 (3 4 (5 6)) (7 8 (9 10)))  ) => (1 2 3 4 5 6 7 8 9 10)
        (flat '(1 2 (3 4 (5 6)) (7 8 (9 10))) 1) => (1 2 3 4 (5 6) 7 8 (9 10))
        (flat '(1 2 (3 4 (5 6)) (7 8 (9 10))) 2) => (1 2 3 4 5 6 7 8 9 10)

    A fix for 'extend' when passing wrong type to unitialized symbol.

    A fix in the parser to accept -.9 as -0.9 or +.9 as +0.9

    =, +, -, *, /, %, ++, --, >, <, <=, >=, !=  operators and the functions 'abs',
    'even?', 'odd?', 'length', 'number?' and 'zero?' are all working on big-integers
    of unlimited size. 'float' and 'int' convert bigints into double floats and
    64-bit integers and the function 'bigint' converts integers and floats to big
    integers. See the section "Big integer, unlimited precision arithmetik" in
    chapter 8. of the Users Manual for more information.

    Extended commandline buffer to 1024 bytes.

    The "debug" option in: (get-url "http://newlisp.org" "header debug") will now also
    output the status header line of the server response in the console.

10.5.0 Stable Release May 21st, 2013
    Further speed improvements on big integer multiplication and division/modulus.

    Check for division by zero in big integer division/modulus.

    Memory fix for ++, -- on big integers.

    The OSX Intel version is now 64-bit by default.
2013-06-02 11:24:56 +00:00
ryoon
74459e5973 Update to 10.4.5
Changelog:
2012-11-21
# Changes and additions
* On Windows, process now returns real process ids as in UNIX, not Windows process handles.
* The cgi.lsp module now handles multiform data in POST requests.
* Two new make files for compiling RedHat Fedora and CentOS distributions. The configure utility called by make will handle these two subflavors of RedHat Linux automatically.

# Bug fixes
* Memory overrun of invalid UTF8 strings now causes an error message "invalid UTF8 string".
* The function ref did sometimes not handle correctly multiple, nested matching expressions.
* The float function did sometimes not work correctly when used on list members.
* OpenBSD did not load .init.lsp.

# Compatibility with previous versions
* This version is compatible with previous versions in the 10.4 series of newLISP.
2012-11-22 18:54:06 +00:00
ryoon
cfc8c4beff Update to 10.4.4
Changelog:
10.4.1 Development release April 3rd, 2012
     The day-of-year value in 'date-list' now also starts with 1, like in 'now'.

     Added CELL_IMPORT_FFI to various output functions (source, save etc.).

     Added UTF-8 meta tag to newlispdoc HTML output.

     Protect internally variable $x used in 'curry' and predefined 'module'.

     When extended 'import' FFI is compiled, show 'libffi' in banner.

     Added new function 'union' (composed of (unique (append ...))).

     New functions 'odd?' and 'even?'

     Fixed unix.lsp for new overwrite protection of imported symbols in ffilib version

     An additional 'true' flag in (char str idx true) returns the byte value instead
     of the UTF-8 character value at index idx in the string.

     Handle probablilities less 0.5 in crit-z.

     New 'prob-t', 'crit-t', 'prob-f', 'crit-f' for Student's t and F statistic.
     'crit-chi2' redone for extreme values. All report small, significant
     one-tailed probabilities for higher values of t, or F.

     Adjustments in 'normal' for better fit.

     Optional 'true' flag in 'file?' lets it return filename string.

     Windows version should cut off trailing CR-LFs in string passed to 'command-event'.

10.4.2 stable  maintenance release May 2nd, 2012
     In extended ffi "char*" will now only accept strings not integer addresses to
     string buffers. For passing integer addresses use "void*" - internally libffi
     treats them as the same, but the new approach gives automatic type-checking
     at the newLISP level without causing a segfault. Already for return values
     "char*" always returns a newLISP string and "void*" an integer address.

     A fix for 'pack' when packing structures made with 'struct' in 64-bit newLISP.

     In 'import' for OSX/Linux/Unix allow libraries to be opened without importing
     functions. This is necessary if an imported library refers to another one, e.g.:
        (import "libgslcblas.dylib")

     New module gsl.lsp with SVD, QR and Cholesky decompositions.

     Added  'corr', 't-test' and 'stats' statistical functions.

     New standard module gsl.lsp for SDV, QR and Cholesky decomp. and solver routines.

     Updated plot.lsp with line and XY plot now a standard module.

10.4.3 stable maintenance release May 7th, 2012
     (seek <file-handle>) after (read-line <file-handle>) was broken in 10.4.0 when
     introducing faster file stream reading on 'read-line' and file closing could
     leak memory.

10.4.4
     Eliminated getFloatFromCell() and replaced by getDirectFloat() in nl-math.c

     Fixed error message for missing [/text] -tag when loading source from file.

     read-file, write-file, append-file, delete-file when used with http:// URLs will
     now return nil under error conditions instead of throwing an error. This is
     consistent with error behavior on local files.  When nil is returned, net-error
     gives more error information. For remote server-side errors on URLs the server
     HTTP error page is returned.

     Check for UTF8 string validity in functions which are UTF8 sensitive.
     An error message "invalid UTF8 string" is issued for invalid UTF8 strings.

     Several - and continuing - manual updates, most of them also going into current
     online version of manual.

     guiserver.jar 1.47 fixes getting text from an empty gs:text-field.

     Binary number format can be used with either 0b or 0B as prefix to up to 64
     1's and 0's, e.g. 0b101010 for the  number 42.

     A 'true' flag as optional parameter in base64-enc will force the empty string
     to be translated as "" instead of "====". Both cases translate correctly to
     the empty string when fed into base64-dec.

     Fixed a result stack overflow problem on callback's.

     On OSX Mountain Lion 10.8.0 compiles also using clang instead of gcc.
2012-10-06 10:49:41 +00:00
ryoon
69cb28b82c Import newlisp-10.3.3 as lang/newlisp from wip/newlisp.
newLISP is a Lisp-like, general-purpose scripting language. It is
especially well-suited for applications in AI, web search, natural
language processing, and machine learning. Because of its small
resource requirements, newLISP is also excellent for embedded
systems applications. Most of the functions you will ever need are
already built in. This includes networking functions, support for
distributed and parallel processing, and Bayesian statistics.
2011-10-11 13:03:18 +00:00