pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/lang/ksi

Module Name:    pkgsrc
Committed By:   asau
Date:           Thu Aug 12 09:27:54 UTC 2010

Modified Files:
        pkgsrc/lang/ksi: Makefile PLIST distinfo

Log Message:
Update to KSi 3.9.0


* Prerelease of the 4.0.0 that will be R6RS compliant.

* The doc directory temporary removed from distrib.
  The old docs obsolete and new is not ready.

* Simple R6RS-like library manager implemented.
  "load" function removed (use "import" syntax instead).

* the ksi module system removed in a favour of new R6RS library system.

* `' that implemented 'syntax-case' in older revisions of the ksi, 
was removed.
  As a result, only core syntax evaluated by ksi.
  And ksi core is not a R6RS core :-(

* '(gensym)' generate (almost) unique symbol names.
  As a part of generated symbol name used a 'session_id' that is initialized at 
  So, each ksi invocation has its own 'session_id'.
  This can help (in a future) to hardly optimize the scheme code evaluation
  Now the 'session_id' is initialized with random bits converted to readable 

* the "do" syntax, "delay" syntax and "force" function was removed from the ksi 

* the 'struct Ksi_Environ' and companions was rewriten almost completly.
  Now the environment has the name, the export list
  and the hashtab that maps the symbol to the value
  A value can be a plain value (the symbol is a variable) or a syntax value.
  If a symbol is bound to a syntax value, it can not be defined, assigned or
  used in any other case except in a intented syntax form
  As a special case, if a symbol is bound to a syntax value and the value is a 
  the procedure is applyed to the form before evaluating it.
  (Look at 'ksi_defsyntax()' and 'ksi_compile()' for details).
  This mechanics is intended for low-level macros (as "define-macro!")
  and derived forms such as 'cond', 'case', etc.
  The normal sanitary macro system planned ;-).

* All packed-in-the-pointer objects was removed.
  Such objects as 'ksi_nil', 'ksi_false' and so on,
  are implemented as a pointers to a memory location
  that allocated when initializing the ksi library.
  Do not be suprized the error if you use its before calling `ksi_init()'.

* The 'struct Ksi_Char' (added) is internal representation of a character now.
 (first step to unicode).

* the GMP library used for exact arithmetics now.
  As a result, the ksi supports the exact rational numbers now.

* The short integers was removed.  Bignums are the only exact numbers now.
  And predefined constans 'ksi_zero', 'ksi_one', etc was removed too.
  (Use 'ksi_long2num()' in C code)

* A flonum has real and imag part always, and so, a flonum is a complex number 
  But 'real?' returns #t if imaginary part is zero
  and 'number->string' do not print "+0.0i" if imaginary part is zero.
  (This is not what R6RS requires but alas, it is the ksi)

* balanced comments are writen within "#| |#" construct now
  (not with "#! !#" as in the previous revisions of the ksi).
  The sequence "#!<identifier>" used for the reader directives now.
  In addition, to support the scheme scripts, the sequence "#! " (note 
  and "#!/" in the very begin of a file supposed as a one-line comment.

* Reader now case-sensitive by default, as required R6RS.
 Use the "#!fold-case" directive to switch the reader to the case-insensitive 
 and "#!no-fold-case" to switch to the case-sensitive mode back.

* By default, the reader parses postfix keyword notation, such as "key:".
 "#!keyword-prefix" switches the reader to prefix mode, such as ":key",
 and "#!keyword-postfix" switches the reader back to postfix mode.

* By default, the reader do not parses the old ksi keyword notation, such as 
 Use the "#!keyword-sharp" directive to switch the old mode on,
 and "#!no-keyword-sharp" to switch off.

* "#!r6rs" directive switches the reader to the R6RS mode,
  and "#!ksi" directive switches the reader to the default mode back.

 In the r6rs mode:
   -- the keywords are not parsed at all;
   -- any sequence that starts with digit, '+', '-', '.', tried to be parsed as 
a number
      and, if cannot, exception raised.
      Otherwice the sequence is parsed as a symbol.

 In the ksi mode:
   --  the keywords are parsed;
   --  any sequence, that starts with digit, or '+', '-', '.' folowed by digit,
       tried to be parsed as a number and, if cannot, exception raised.
       Otherwice the sequence is parsed as a symbol.

 So, the sequence like '+x' is parsed as symbol in the ksi mode, but raise 
exception in the r6rs mode.

 Note that in the previous revisions of the ksi, any sequence,
 that cannot be parsed as a number, was considered as a symbol (never exception 


* bugfixes

* (Windows) ksi dll name has version info now.


* code refactoring

To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 pkgsrc/lang/ksi/Makefile
cvs rdiff -u -r1.5 -r1.6 pkgsrc/lang/ksi/PLIST
cvs rdiff -u -r1.6 -r1.7 pkgsrc/lang/ksi/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Home | Main Index | Thread Index | Old Index