e996782004-05-02Martin Nilsson Changes since Pike 7.6:
6bf19a2002-09-15Peter Bortas ----------------------------------------------------------------------
cd683a2001-07-27Johan Sundström 
71ef5a2007-11-02Henrik Grubbström (Grubba) o Added ABI selection.
92c1842008-05-07Henrik Grubbström (Grubba) 
71ef5a2007-11-02Henrik Grubbström (Grubba)  It's now possible to select whether to compile in 32bit or 64bit mode at configure time by using the --with-abi option.
4d48e42004-10-30Martin Stjernholm o New syntax to index from the end in range operations.
92c1842008-05-07Henrik Grubbström (Grubba) 
4d48e42004-10-30Martin Stjernholm  A "<" can be added before an index in the [..] operator to count from the end instead. This is convenient to e.g. chop off the last element in an array: a[..<1].
92c1842008-05-07Henrik Grubbström (Grubba) o Improved support for embedding. Several declarations and definitions (most notably the debug and
0c37ae2004-12-30Henrik Grubbström (Grubba)  runtime flags) have moved from main.h to pike_embed.h, in an attempt to add support for embedding.
33f0672008-04-26Henrik Grubbström (Grubba) o Major compiler API cleanups.
92c1842008-05-07Henrik Grubbström (Grubba) 
33f0672008-04-26Henrik Grubbström (Grubba)  The Pike compiler is now executing in a pike function context (rather than in an efun context), and it is possible to customize some of its behaviour via inherit (rather than via handler objects). As a consequence the compiler is now much closer to being thread-safe.
4d48e42004-10-30Martin Stjernholm o New `[..] operator function.
92c1842008-05-07Henrik Grubbström (Grubba) 
4d48e42004-10-30Martin Stjernholm  Range operations have been separated from the `[] operator function
bc2a632008-05-10Henrik Grubbström (Grubba)  and are now handled by the new `[..] which provides greater control
66f21a2008-05-10Henrik Grubbström (Grubba)  for how the range bounds are specified. For compatibility, if there is no `[..] then `[] is still called for range operations.
4d48e42004-10-30Martin Stjernholm 
e399bc2007-11-11Martin Nilsson  FIXME: Describe relation with Pike.INDEX_FROM_BEG/END & OPEN_BOUND.
85b3d32004-12-19Henrik Grubbström (Grubba) o Generalized this and this_program.
92c1842008-05-07Henrik Grubbström (Grubba) 
85b3d32004-12-19Henrik Grubbström (Grubba)  It is now possible to refer to inherits in objects. Example:
92c1842008-05-07Henrik Grubbström (Grubba) 
85b3d32004-12-19Henrik Grubbström (Grubba)  class A { int a; void foo() { werror("A\n"); } } class B { inherit A; int b; void foo() { werror("B\n"); } A::this_program get_a() { return A::this; } }
92c1842008-05-07Henrik Grubbström (Grubba) 
85b3d32004-12-19Henrik Grubbström (Grubba)  In the above B()->get_a() will return an object with two symbols, 'a' and 'foo', but B()->get_a()->foo() will still write "B\n".
71ef5a2007-11-02Henrik Grubbström (Grubba) o Added support for getters and setters.
92c1842008-05-07Henrik Grubbström (Grubba) 
71ef5a2007-11-02Henrik Grubbström (Grubba)  It is now possible to simulate variables with functions. Example:
92c1842008-05-07Henrik Grubbström (Grubba) 
71ef5a2007-11-02Henrik Grubbström (Grubba)  class A { private int a;
98c7e42007-11-15Martin Nilsson  int `b() { return a; } // Getter for the symbol b. void `b=(int c) { a = c; } // Setter for the symbol b.
71ef5a2007-11-02Henrik Grubbström (Grubba)  int c() {
98c7e42007-11-15Martin Nilsson  return b; // Calls `b().
71ef5a2007-11-02Henrik Grubbström (Grubba)  } } object a = A();
98c7e42007-11-15Martin Nilsson  a->b = 17; // Calls `b=(17). werror("%d\n", a->b); // Calls `b().
71ef5a2007-11-02Henrik Grubbström (Grubba) 
9056902008-05-10Henrik Grubbström (Grubba) o Casting to derived types. It is now possible to call a value of type type to perform the corresponding value cast. eg: typedef string MyString; return MyString(17); // Casts 17 to "17".
73fe402004-11-14Martin Stjernholm o Unicode escapes.
92c1842008-05-07Henrik Grubbström (Grubba) 
73fe402004-11-14Martin Stjernholm  Pike now understands the common way to escape unicode chars, using \uxxxx and \Uxxxxxxxx escapes. These escapes works both in string and character literals and in the preprocessor. The latter means that unicode escapes can be used in identifiers, which is useful if they contain characters that can't be represented raw in the source code charset.
71ef5a2007-11-02Henrik Grubbström (Grubba) o New (stricter) type checker for function calls.
92c1842008-05-07Henrik Grubbström (Grubba) 
71ef5a2007-11-02Henrik Grubbström (Grubba)  The type checker for function calls is now based on the concept of currification. This should provide for error messages that are more easily understood. It also is much better att typechecking function calls utilizing the splice (@) operator. The mechanisms used by the typechecker are also made available as Pike.get_first_arg_type(), Pike.low_check_call() and Pike.get_return_type(). o Added generic attributes for types.
92c1842008-05-07Henrik Grubbström (Grubba) 
71ef5a2007-11-02Henrik Grubbström (Grubba)  Provides a method to hook into the type checker, so that it is possible to make custom type checking. o Stricter typing of strings.
92c1842008-05-07Henrik Grubbström (Grubba) 
71ef5a2007-11-02Henrik Grubbström (Grubba)  The string type may now have an (optional) value range. Example:
92c1842008-05-07Henrik Grubbström (Grubba) 
71ef5a2007-11-02Henrik Grubbström (Grubba)  string(0..255) bytes;
4f24d62008-06-29Martin Nilsson o Stdio - Stdio.cp can now work recursively in a directory tree. It will also keep the permissions of files it copies. - Added Stdio.recursive_mv which works on every OS and also when the destination isn't on the same filesystem as the source. - Added more symbolc default termcap/terminfo bindings to Stdio.Readline. - Improved support for Terminfo on NetBSD. - read_file(), read_bytes(), write_file() and append_file() will may now throw exceptions on uncommon errors such as when write_file is unable to write all its data.
92c1842008-05-07Henrik Grubbström (Grubba) 
4f24d62008-06-29Martin Nilsson  - Stdio.File->openat() opens a file relative to an open directory.
d863e62004-09-03David Gourdelier 
71ef5a2007-11-02Henrik Grubbström (Grubba) o Prepared for having multiple different active backend implementations. ... The global variable next_timeout is no more. It has been replaced by a backend-specific variable. Added backend_lower_timeout() for accessing the new variable. This fixes issues GTK, GTK2 and sendfile had with the new backend implementation.
66f21a2008-05-10Henrik Grubbström (Grubba)  NOTE! NOTE! C-API incompatibility!
71ef5a2007-11-02Henrik Grubbström (Grubba)  NOTE! NOTE! Changed the argument for backend callbacks! NOTE!
92c1842008-05-07Henrik Grubbström (Grubba)  NOTE! The argument is now a struct Backend_struct * when called NOTE! at entry (was NULL).
71ef5a2007-11-02Henrik Grubbström (Grubba)  NOTE! The argument is now NULL when called at exit (was 1). NOTE!
5e18f72004-09-03Henrik Grubbström (Grubba) o bin/precompile.pike
92c1842008-05-07Henrik Grubbström (Grubba)  Voidable pointer types are no longer promoted to mixed.
6de0ec2004-05-11Henrik Grubbström (Grubba) 
71ef5a2007-11-02Henrik Grubbström (Grubba) o cpp
92c1842008-05-07Henrik Grubbström (Grubba) 
71ef5a2007-11-02Henrik Grubbström (Grubba)  The preprocessor now supports macro expansion in the #include and #string directives.
6de0ec2004-05-11Henrik Grubbström (Grubba) o PIKE_PORTABLE_BYTECODE
92c1842008-05-07Henrik Grubbström (Grubba) 
6de0ec2004-05-11Henrik Grubbström (Grubba)  --with-portable-bytecode is now the default. Pike programs that have been dumped on one architecture now can be decoded on another.
95d0872004-11-09Mirar (Pontus Hagland) 
9e891d2005-02-09Martin Stjernholm o Destruct reason passed to lfun::destroy.
92c1842008-05-07Henrik Grubbström (Grubba) 
9e891d2005-02-09Martin Stjernholm  lfun::destroy now receives an integer flag that tells why the object is being destructed, e.g. if it was an explicit call to destroy(), running out of references, or reaped by the garbage collector.
afa4822006-12-29Martin Nilsson  These integers are defined in the new Object module as DESCTRUCT_EXPLICIT, DESTRUCT_NO_REFS, DESTRUCT_GC and DESTRUCT_CLEANUP.
71ef5a2007-11-02Henrik Grubbström (Grubba) o Support for class symbols with storage in parent scope. Also added support for aliased symbols. o Improved support for mixin.
92c1842008-05-07Henrik Grubbström (Grubba) 
71ef5a2007-11-02Henrik Grubbström (Grubba)  The Pike compiler now supports mixin for symbols that have been declared static. o Implicit and explicit create().
92c1842008-05-07Henrik Grubbström (Grubba) 
71ef5a2007-11-02Henrik Grubbström (Grubba)  The compiler now supports defining classes with both an implicit and an explicit create(). o Warnings for unused private symbols.
92c1842008-05-07Henrik Grubbström (Grubba) 
71ef5a2007-11-02Henrik Grubbström (Grubba)  The compiler now checks that all symbols that have been declared private actually are used.
afa4822006-12-29Martin Nilsson o Unicode
92c1842008-05-07Henrik Grubbström (Grubba) 
afa4822006-12-29Martin Nilsson  Case information and the Unicode module are updated to Unicode
70a6932008-05-29Martin Nilsson  5.1.0.
afa4822006-12-29Martin Nilsson 
e399bc2007-11-11Martin Nilsson o protected
92c1842008-05-07Henrik Grubbström (Grubba) 
e399bc2007-11-11Martin Nilsson  The modifier protected is now an alias for the modifier static.
33f0672008-04-26Henrik Grubbström (Grubba) o Pike_fp->context
92c1842008-05-07Henrik Grubbström (Grubba) 
33f0672008-04-26Henrik Grubbström (Grubba)  Pike_fp->context is now a pointer to the current struct inherit rather than a copy of it. This allows for easier access to inherited symbols in C-code.
66f21a2008-05-10Henrik Grubbström (Grubba)  NOTE! NOTE! C-API incompatibility! NOTE!
afa4822006-12-29Martin Nilsson 
2a73e02008-05-30Henrik Grubbström (Grubba) o Inherit level argument added to several object handling functions. In order to implement subtyping of objects, and extra argument "inherit_level" has been added to many object indexing related functions. NOTE! NOTE! C-API incompatibility! NOTE!
afa4822006-12-29Martin Nilsson Extensions and New Functions
33f0672008-04-26Henrik Grubbström (Grubba) o __attribute__ and __deprecated__
92c1842008-05-07Henrik Grubbström (Grubba) 
33f0672008-04-26Henrik Grubbström (Grubba)  It's now possible to set custom attributes on types. This is currently used to improve the argument checking for sprintf() and related functions, and for marking symbols as deprecated.
2a73e02008-05-30Henrik Grubbström (Grubba)  eg: __deprecated__ mixed obsolete_function(); __deprecated__(mixed) obsolete_return_value(); mixed fun(__deprecated__(mixed) obsolete_arg); __deprecated__(mixed) obsolete_variable;
33f0672008-04-26Henrik Grubbström (Grubba) 
92c1842008-05-07Henrik Grubbström (Grubba) o __func__ The symbol __func__ now evaluates to the name of the current function. Note that this name currently can differ from the declared name in case of local functions (ie lambdas). Note also that __func__ behaves like a litteral string, so implicit string concatenation is supported. eg: error("Error in " __func__ ".\n");
2a73e02008-05-30Henrik Grubbström (Grubba) o #pragma {no_,}deprecation_warnings Warnings for use of deprecated symbols can be turned off for a segment of code with #pragma no_deprecation_warnings and turned on again with #pragma deprecation_warnings
431ebd2008-05-09Martin Nilsson o limit() The new toplevel function limit(a, x, b) is a convenience function that works like min(max(a,x),b).
187e1f2008-05-18Henrik Grubbström (Grubba) o sprintf() and sscanf() The format string for sprintf() and sscanf() et al is now syntax checked at compile-time, and the arguments after it are matched against it.
326a9d2007-02-23Martin Nilsson o ADT.BitBuffer
e399bc2007-11-11Martin Nilsson  Added read() method that reads whole bytes from the buffer and returns as a string.
326a9d2007-02-23Martin Nilsson  o ADT.Queue
e399bc2007-11-11Martin Nilsson 
612ad42008-06-29Martin Nilsson  It is now possible to use sizeof() and values() on a Queue object.
e399bc2007-11-11Martin Nilsson  o ADT.Stack Stack objects can now be cast to arrays.
326a9d2007-02-23Martin Nilsson  o ADT.Struct
e399bc2007-11-11Martin Nilsson  - New Item class SByte, SWord and SLong represents a signed byte, word and longword respectively. - The Item classes int8, uint8, int16, uint16, int32, uint32, int64
612ad42008-06-29Martin Nilsson  and uint64 are aliases for already existing Item classes.
e399bc2007-11-11Martin Nilsson  - sizeof() now works for empty Struct objects. - sizeof() can be used on individual Item objects. - Struct objects can now be used as Items in other Structs.
612ad42008-06-29Martin Nilsson  class Pair { inherit ADT.Struct; Item id = uint8(); Item val = uint64(); } class File { inherit ADT.Struct; Item magic = Chars(4); Item one = Pair(); Item two = Pair(); }
326a9d2007-02-23Martin Nilsson  o Array
e399bc2007-11-11Martin Nilsson  - New function combinations() returns all combinations of a specified length with elements from a given array. - Added push(), pop(), shift() and unshift() functions for Perl weirdos.
326a9d2007-02-23Martin Nilsson  o Calendar
e399bc2007-11-11Martin Nilsson  - Added new calendar Badi, used in the Baha'i religion. - Fixed bugs in discordian, where the year() was off by 1166 and now() was off 5 month per year. - Time objects now handle * and / with floats. A split() method has been added for more advanced splitting. FIXME: Example - A new formatting method format_ext_time_short() has been added to Time objects. - Timezones are now read from /etc/localtime, if available.
326a9d2007-02-23Martin Nilsson 
92c1842008-05-07Henrik Grubbström (Grubba) o CompilerEnvironment & CompilerEnvironment()->PikeCompiler The Pike compiler has been refactored to be more object-oriented and more transparent. It is now possible to customize the compiler by overloading functions in the above two classes.
326a9d2007-02-23Martin Nilsson o Debug
e399bc2007-11-11Martin Nilsson  The new function count_objects() will return the different kinds of objects existing within the Pike process. Useful when trying to pinpoint a leak of Pike objects.
92c1842008-05-07Henrik Grubbström (Grubba) o DefaultCompilerEnvironment The CompilerEnvironment object used by Pike internally.
e399bc2007-11-11Martin Nilsson o Error The new function mkerror() will normalize any thrown value into a proper error object (or 0).
326a9d2007-02-23Martin Nilsson  o Filesystem
e399bc2007-11-11Martin Nilsson  Traversion has been extended with two new create arguments. The first one is a flag to supress errors and the other is a sorting function which will be applied to the entries in every directory. This callback can also be used to filter the directory entries.
326a9d2007-02-23Martin Nilsson  o Float
e399bc2007-11-11Martin Nilsson  The function isnan() can be used to check if a float is Not a Number.
92c1842008-05-07Henrik Grubbström (Grubba)  > Float.isnan(Math.inf/Math.inf); (1) Result: 1
326a9d2007-02-23Martin Nilsson 
35c4b12008-05-09Martin Nilsson o Gdbm Gdbm databases can be opened in synchronous mode or locking mode by adding "s" or "l" respectively in the mode parameter to the create method.
326a9d2007-02-23Martin Nilsson o Geography.Position
e399bc2007-11-11Martin Nilsson  It is now possible to encode Position objects with encode_value().
326a9d2007-02-23Martin Nilsson  o GLUE
e399bc2007-11-11Martin Nilsson  - The default event callback will now exit both on Exit and Escape events. - The texture, list and light id generators will now be created after we are sure that GL has been initialized, to prevent crashes on several systems. - BaseTexture and BaseDWIM now supports clamped textures.
35c4b12008-05-09Martin Nilsson o Gz - Added compress() and uncompress() functions as an simpler and more efficient but non-streaming interface. - Support for RLE And FIXED compression method, if supported by zlib. - Added support for configurable compression window size. o Image.Colortable
612ad42008-06-29Martin Nilsson  - The new method greyp() can be used to query if the color in the color object is grey.
35c4b12008-05-09Martin Nilsson 
612ad42008-06-29Martin Nilsson  - Partial support for serializing color objects. Dithering type and lookup mode is not currently saved.
35c4b12008-05-09Martin Nilsson 
326a9d2007-02-23Martin Nilsson o Image.Dims
e399bc2007-11-11Martin Nilsson  Support for parsing out the dimensions of TIFF files has been added.
326a9d2007-02-23Martin Nilsson 
35c4b12008-05-09Martin Nilsson o Image.FreeType
612ad42008-06-29Martin Nilsson  - Added support for handling monochrome (bitmap) fonts.
431ebd2008-05-09Martin Nilsson 
35c4b12008-05-09Martin Nilsson o Image.Image
612ad42008-06-29Martin Nilsson  - Image object can now be serialized and deserialized with encode_value() and decode_value().
35c4b12008-05-09Martin Nilsson 
612ad42008-06-29Martin Nilsson  - It is possible to convert the colors in an image object to and from YUV (YCrCb) with the new rgb_to_yuv() and yuv_to_rgb() methods.
35c4b12008-05-09Martin Nilsson  o Image.Layer
612ad42008-06-29Martin Nilsson  - It is now possible to get the raw bitmap data of a layer by casting the layer object to a string.
35c4b12008-05-09Martin Nilsson  o Image.PNG - Properly decode cHRM (chrome), sBIT (sbit), gAMA (gamma), pHYs
612ad42008-06-29Martin Nilsson  (physical), oFFs (offset), tIME (time) chunks. - The compression level and strategy when compressing PNG images can be controlled by passing "zlevel" and "zstrategy" options to the encode() method. Available strategies are filtered, huffman, rle and fixed.
35c4b12008-05-09Martin Nilsson 
612ad42008-06-29Martin Nilsson  Image.PNG.encode( img, ([ "zlevel":9, "zstrategy":Gz.RLE ]) );
35c4b12008-05-09Martin Nilsson  o Image.TIFF Added support for little endian TIFF files.
326a9d2007-02-23Martin Nilsson o Int
e399bc2007-11-11Martin Nilsson  Int.inf is an object that can be used as an infinitly large integer.
326a9d2007-02-23Martin Nilsson  o Locale.Charset
92c1842008-05-07Henrik Grubbström (Grubba) 
e399bc2007-11-11Martin Nilsson  FIXME: Rewrite
71ef5a2007-11-02Henrik Grubbström (Grubba)  Remapped and documented the use of the private character space. ISO-IR non-spacers are now converted into combiners. Added some support for pluggable character sets.
326a9d2007-02-23Martin Nilsson  Added GB18030/GBK UTF-EBCDIC unicode prefix, e.g. unicode-1-1-utf-7 CP949 GBK (cp936)
71ef5a2007-11-02Henrik Grubbström (Grubba)  DIN-31624 (ISO-IR-38) ISO-5426:1980 (ISO-IR-53) ISO-6438:1996 (ISO-IR-39, ISO-IR-216)
12c2682007-11-13Martin Stjernholm  ISO-6937:2001 (ISO-IR-156) Added typed encode and decode error objects (Locale.Charset.EncodeError and Locale.Charset.DecodeError) to make
612ad42008-06-29Martin Nilsson  it possible to catch such errors in a better way.
326a9d2007-02-23Martin Nilsson 
431ebd2008-05-09Martin Nilsson o Math
66f21a2008-05-10Henrik Grubbström (Grubba)  - Matrix multiplication was bugged and gave B*A instead of A*B, which is now fixed.
431ebd2008-05-09Martin Nilsson  - Matrix objects now have xsize() and ysize() methods to query their dimensions. - To ease your logarithmic needs log2() and logn() have been added.
326a9d2007-02-23Martin Nilsson o MIME
e399bc2007-11-11Martin Nilsson  - Added remapping variants of the encode words functions with encode_word_text_remapped(), encode_word_quoted(), encode_words_quoted_remapped() and encode_words_quoted_labled_remapped(). - Added workaround for a bug in Microsoft Internet Explorer where it forgets to properly quote backslashes in the Content-Disposition field. - Fixed a bug that could occur when casting MIME.Message objects to strings.
326a9d2007-02-23Martin Nilsson 
12c2682007-11-13Martin Stjernholm o Mysql
92c1842008-05-07Henrik Grubbström (Grubba) 
612ad42008-06-29Martin Nilsson  Unicode support. FIXME: mast Document in more detail. C.f. check-in 1.25 of lib/modules/Sql.pmod/mysql.pike.
12c2682007-11-13Martin Stjernholm 
71ef5a2007-11-02Henrik Grubbström (Grubba) o Odbc
92c1842008-05-07Henrik Grubbström (Grubba) 
e399bc2007-11-11Martin Nilsson  FIXME: Rewrite
71ef5a2007-11-02Henrik Grubbström (Grubba)  Now supports UnixODBC properly. Fixed various issues with Unicode.
612ad42008-06-29Martin Nilsson  FreeTDS fixes
71ef5a2007-11-02Henrik Grubbström (Grubba) 
4232ab2008-06-27Martin Nilsson o Oracle
612ad42008-06-29Martin Nilsson  - The module has been updated to work with Oracle 10. - The number of rows in a result object can be queried from the new function num_rows().
4232ab2008-06-27Martin Nilsson  o Parser.HTML FIXME Allow string and array as argument to _set_*_callback
4215582008-04-27Martin Nilsson o Parser.Pike and Parser.C
e399bc2007-11-11Martin Nilsson 
612ad42008-06-29Martin Nilsson  - Parser.Pike and Parser.C has been rewritten in C for increased performance. - The #string directives should be handled correctly now.
326a9d2007-02-23Martin Nilsson  o Parser.RCS
92c1842008-05-07Henrik Grubbström (Grubba) 
612ad42008-06-29Martin Nilsson  - The RCS parser has been rewritten to handle broken RCS data better.
326a9d2007-02-23Martin Nilsson 
e399bc2007-11-11Martin Nilsson o Parser.XML.NSTree - Added add_child_before() and add_child_after() methods to the NSNode object. - Fixed crash bug.
4232ab2008-06-27Martin Nilsson o Parser.XML.Simple FIXME autoconvert() moved to top level Several correctness fixes. Added Simple.Context
326a9d2007-02-23Martin Nilsson o Parser.XML.Tree
92c1842008-05-07Henrik Grubbström (Grubba) 
e399bc2007-11-11Martin Nilsson  FIXME: Rewrite
326a9d2007-02-23Martin Nilsson  Added rendering of DTD ENTITY nodes. The renderer now knows about the internal_subset attribute for the DOCTYPE tag. Added rendering of DTD ELEMENT nodes. Added functions to inser new childe node. Moved parser code into the nodes allowing for extendability. set_tag_name() simple-stuff AbstractSimpleNode, VirtualNode, SimpleNode. Node.zap_tree
4232ab2008-06-27Martin Nilsson o Postgres FIXME Added affected_rows.
326a9d2007-02-23Martin Nilsson o Pike
e399bc2007-11-11Martin Nilsson 
0a2fa22008-05-11Martin Stjernholm  - A new function count_memory() has been added which can calculate the memory consumed by arbitrary data structures. Useful when implementing memory caches.
e399bc2007-11-11Martin Nilsson  - A new function get_runtime_info() has been added which returns information about current ABI, if automatic bignums are enabled, what bytecode method is used, the size of native floats and integers and the native byte order. - The constants INDEX_FROM_BEG, INDEX_FROM_END and OPEN_BOUND has been added for use with the `[..] operator API. - The functions low_check_call(), get_return_type() and get_first_arg_type(). FIXME!
326a9d2007-02-23Martin Nilsson  o Process
e399bc2007-11-11Martin Nilsson  - The new function spawn_pike() will spawn a Pike process similar to the current one, using the same binary file, master and module paths. - The new function run() is an easy interface that will run a process and return a mapping with all the outputs and exit code. - Process.popen is now able to run in nonblocking mode. If a second argument is provided a file object will be opened with that mode and return, enabling two way communication with the new process. - The system() function has been extended to be able to pass stdin, stdout and stderr arguments to the spawn() call it performs.
71ef5a2007-11-02Henrik Grubbström (Grubba) 
326a9d2007-02-23Martin Nilsson o Protocols.DNS
43bb262007-11-11Martin Nilsson  - Added support for NAPTR (RFC 3403) records. - The gethostbyname() function now returns IPv6 addresses too, if available. - Fixed bugs in IPv6 record parsing.
326a9d2007-02-23Martin Nilsson  o Protocols.Bittorrent
43bb262007-11-11Martin Nilsson  - Support for gzipped and compact tracker responses. - 30% faster hashing of files. - Many performance and bug fixes. o Protocols.HTTP - Added support for httpu and httpmu requests. - Queries will now throw an exception in case of an errno condition. - A new function, do_async_method(), has been added to allow access to low level asynchronous HTTP calls. - The http_encode_string() function now know how to encode UCS-2 characters. o Protocols.HTTP.Server - If accept() fails on the open port, the Port object will continue trying, to support servers with high load.
326a9d2007-02-23Martin Nilsson  o Protocols.HTTP.Query
43bb262007-11-11Martin Nilsson  - Added unicode_data() method that will return the payload decoded according to the charset described in the Content-Type header.
326a9d2007-02-23Martin Nilsson 
43bb262007-11-11Martin Nilsson  - Many fixes for bugs in asynchronous mode.
326a9d2007-02-23Martin Nilsson 
43bb262007-11-11Martin Nilsson  - A query will not silently downgrade to http from https anymore if
326a9d2007-02-23Martin Nilsson 
43bb262007-11-11Martin Nilsson  there is no crypto support.
326a9d2007-02-23Martin Nilsson 
43bb262007-11-11Martin Nilsson  - Fixes for keep alive. o Protocols.LDAP
12c2682007-11-13Martin Stjernholm  Added more resilience to UTF-8 encode errors. A new flag Protocols.LDAP.SEARCH_RETURN_DECODE_ERRORS may be used to avoid throwing errors when this happens.
43bb262007-11-11Martin Nilsson  FIXME: Many changes o Protocols.SNMP The readmsg() method in the protocol object now takes an optional timout argument. o Protocols.XMLRPC The new AsyncClient class implements an asynchronous XMLRPC client.
12c2682007-11-13Martin Stjernholm o Regexp.PCRE.Widestring
92c1842008-05-07Henrik Grubbström (Grubba) 
4232ab2008-06-27Martin Nilsson  - Replace matches in a string, with support for backreferences, now possible from replace_positional(). > Regexp.PCRE.Plain("my name is ([a-zA-Z]+)")-> >> replace_positional("hello, my name is john.", >> "%[0]s is my name"); (1) Result: "hello, john is my name." - Regexp.PCRE.Widestring is now reported in the basic feature list (pike --features).
12c2682007-11-13Martin Stjernholm 
43bb262007-11-11Martin Nilsson o Sql - Bugfixes in listing Postgres fields. - If ENABLE_SPAWN_RSQLD is defined, rsqld will be spawned when needed to complete rsql queries. - Added streaming_query() method to Sql objects which enables larger result sets than available memory. - It is possible to iterate over the result object from big_query() queries directly in foreach.
4f24d62008-06-29Martin Nilsson  - Support for ODBC DSN files. FIXME: Example from grubba? Sql.Sql db = Sql.Sql("dsn://user:pass@host/database"); - Support for the TDS protocol, used by Sybase and Microsoft SQL server. Sql.Sql db = Sql.Sql("tds://user:pass@host/database"); - Support for the SQLite database added. A raw interface is available throug hthe SQLite module. FIXME: Syntax? Sql.Sql db = Sql.Sql("sqlite://path/to/file");
43bb262007-11-11Martin Nilsson  FIXME: mysql o SSL FIXME: client certificates: examples? o Standards.IIM Some bugfixes in parsing Photoshop headers and DOS EPS Binary Headers. o Standards.ISO639_2 Updated with the latest ISO639-2 languages. o Standards.URI - Updated to conform to RFC 3986. - Added methods get_query_variables(), set_query_variables(), add_query_variable() and add_query_variables() to give a better API to to handle query variables. - The new method get_http_query() returns the query part and get_http_path_query() returns both the path and the query, both coded according to RFC 1738. o Standards.UUID - Added support for UUID version 5; name based with SHA hash, which can be generated from the make_version5 function. - An UUID object can now be used as namespace in the second argument to make_version3 as well as the new make_version5. o Standards.XML.Wix FIXME o String - The function int2size has been rewritten to fixpoint as well as using the more common abbreviation of "B" for byte.
4232ab2008-06-27Martin Nilsson o System FIXME resolvepath() enabled on more OSes and falls back to realpath(3C) if resolvepath(2) doesn't exists. setproctitle() - Added support for POSIX style timers using clock_gettime(3) to allow for high resolution thread local cpu time and monotonic real time on reasonable modern Linux systems for gethrvtime() and gauge(). Added CPU_TIME_RESOLUTION, CPU_TIME_IMPLEMENTATION, REAL_TIME_IS_MONOTONIC, REAL_TIME_RESOLUTION and REAL_TIME_IMPLEMENTATION constants to singal the system capabilities.
43bb262007-11-11Martin Nilsson o Tools FIXME o Web.Crawler - Bugfix to support robots.txt created on windows. - User Agent change to "Mozilla 4.0 (PikeCrawler)" o Web.RDF - Added add_statement() method which allows new relations to be added to an RDF set.
71ef5a2007-11-02Henrik Grubbström (Grubba)  o sprintf
92c1842008-05-07Henrik Grubbström (Grubba) 
4232ab2008-06-27Martin Nilsson  - sprintf() and related functions now attempt to perform compile-time argument checking. - sprintf() now attempts to lookup the name of the program when formatting types of objects and programs. - The new formatting directive %H can be used to format a string as a binary holertih string. > sprintf("%2H", "Hello"); (1) Result: "\0\5Hello" - The new formatting directive %q can be used to format a atring as a quoted string, quoting all control character and non-8-bit characters as well as quote characters. Like %O but always on one line.
92c1842008-05-07Henrik Grubbström (Grubba) 
4232ab2008-06-27Martin Nilsson  > sprintf("%q", "abc \x00 \" \' \12345"); (1) Result: "\"abc \\0 \\\" ' \\u14e5\""
12c2682007-11-13Martin Stjernholm  o gethrtime, gethrvtime, gauge
92c1842008-05-07Henrik Grubbström (Grubba) 
12c2682007-11-13Martin Stjernholm  Added support for POSIX style timers using clock_gettime(3). Notably this fixes nice high resolution thread local cpu time and monotonic real time on reasonably modern Linux systems. There are new constants CPU_TIME_* and REAL_TIME_* in the System module to allow pike code to query various properties of the CPU and real time clocks in use.
326a9d2007-02-23Martin Nilsson 
afa4822006-12-29Martin Nilsson  New Modules
326a9d2007-02-23Martin Nilsson o ADT.List
71ef5a2007-11-02Henrik Grubbström (Grubba) o ADT.Trie
afa4822006-12-29Martin Nilsson o ADT.Set
92c1842008-05-07Henrik Grubbström (Grubba) 
afa4822006-12-29Martin Nilsson  ADT.Set implements a datatype for sets. These sets behave much like multisets, except that they are restricted to containing only one instance of each member value. From a performance viewpoint, it is probably more efficient for a Pike program to use mappings to serve as sets, rather than using an ADT.Set,so ADT.Set is mainly provided for the sake of completeness and code readability.
e399bc2007-11-11Martin Nilsson o Arg
92c1842008-05-07Henrik Grubbström (Grubba) 
19a6f32008-05-03Martin Nilsson  The new argument parser module allows for Getopt style arugment parsing, but with a much simpler and object oriented API. class Parser { inherit Arg.Options; Opt verbose = NoOpt("-v")|NoOpt("--verbose")|Env("VERBOSE"); Opt name = HasOpt("-f")|HasOpt("--file")|Default("out"); Opt debug = MaybeOpt("-d")|MaybeOpt("--debug"); } void main(int argc, array(string) argv) { Parser p = Parser(argv); werror("name: %O, verbose: %O, debug: %O\n", p->name, p->verbose, p->debug); } A more simplistic interface is also available for smaller hacks and programs. void main(int argc, array(string) argv) { mapping opts = Arg.parse(argv); argv = opts[Arg.REST]; }
e399bc2007-11-11Martin Nilsson 
431ebd2008-05-09Martin Nilsson o Kerberos FIXME
afa4822006-12-29Martin Nilsson o Protocols.DNS_SD
92c1842008-05-07Henrik Grubbström (Grubba) 
afa4822006-12-29Martin Nilsson  This module provides an interface to DNS Service Discovery. The functionality of DNS-SD is described at <http://www.dns-sd.org/>. Using the Proctocols.DNS_SD.Service class a Pike program can announce services, for example a web site or a database server, to computers on the local network. When registering a service you need to provide the service name. service type, domain and port number. You can also optionally specify a TXT record. The contents of the TXT record varies between different services; for example, a web server can announce a path to a web page, and a printer spooler is able to list printer features such as color support or two-sided printing. The service is registered on the network for as long as the instance of the Service class is valid. o Bittorrent.Tracker
92c1842008-05-07Henrik Grubbström (Grubba) 
afa4822006-12-29Martin Nilsson  Bittorrent tracker with support for scraping and UDP extension. o Protocols.HTTP.Server.Proxy
92c1842008-05-07Henrik Grubbström (Grubba) 
afa4822006-12-29Martin Nilsson  A simple HTTP proxy. o Standards.TLD
92c1842008-05-07Henrik Grubbström (Grubba) 
afa4822006-12-29Martin Nilsson  Country domains and other TLDs according to IANA. Useful when parsing log information or providing live information about clients connecting to your server. o Tools.Shoot
92c1842008-05-07Henrik Grubbström (Grubba) 
afa4822006-12-29Martin Nilsson  Several new tests have been added to benchmark and improve on
66f21a2008-05-10Henrik Grubbström (Grubba)  various aspects of Pike. ReplaceParallel and ReplaceSerial measure the times it takes to replace multiple substrings of a string in a
afa4822006-12-29Martin Nilsson  single call to replace and with subsequent calls. TagRemoveArraySscanf, TagRemoveDivide, TagRemoveLoop, TagRemoveParserHTML, TagRemovePCRE, TagRemoveSearch and
66f21a2008-05-10Henrik Grubbström (Grubba)  TagRemoveSscanf measure different methods of completing the same task; to remove XML tags from a string.
afa4822006-12-29Martin Nilsson  o Web.CGI
92c1842008-05-07Henrik Grubbström (Grubba) 
afa4822006-12-29Martin Nilsson  Provides a CGI interface on the callee side. Retrieves information from environment variables and populates the variables in the Request object.
4f24d62008-06-29Martin Nilsson Deprecations o The keyword nomask has been deprecated. It was functionally equivivalent with the keyword final. o Stdio.File->set_peek_file_before_read_callback() is deprecated.
afa4822006-12-29Martin Nilsson  Incompatible changes These incompatible changes can be solved by adding #pike 7.6 to your source file or starting Pike with -V7.6. o Array.transpose_old
92c1842008-05-07Henrik Grubbström (Grubba) 
66f21a2008-05-10Henrik Grubbström (Grubba)  This function has been removed.
afa4822006-12-29Martin Nilsson  o _Charset
92c1842008-05-07Henrik Grubbström (Grubba) 
66f21a2008-05-10Henrik Grubbström (Grubba)  The parts of this internal module that were written in Pike have moved to Locale.Charset.
92c1842008-05-07Henrik Grubbström (Grubba) 
e399bc2007-11-11Martin Nilsson o Crypto
92c1842008-05-07Henrik Grubbström (Grubba)  The old crypto functions from Pike 7.4 have been removed. These
e399bc2007-11-11Martin Nilsson  functions produced a warning when used in Pike 7.6.
afa4822006-12-29Martin Nilsson o Debug.describe_program
92c1842008-05-07Henrik Grubbström (Grubba) 
afa4822006-12-29Martin Nilsson  The API for this debug function has changed. o Image.Image
92c1842008-05-07Henrik Grubbström (Grubba) 
afa4822006-12-29Martin Nilsson  The functions select_colors(), map_closest(), map_fast() and map_fs() has been removed. Use Image.Colortable operations instead. o Parser.XML
92c1842008-05-07Henrik Grubbström (Grubba) 
afa4822006-12-29Martin Nilsson  The XML parsers are now stricter in verifying the correctness of the XML. The function compat_allow_errors can be called in the create method of the Parser.XML.Simple and Parser.XML.Validating (with "7.6" as argument for 7.6 compatibility). Parser.XML.Tree can be created with PARSE_COMPAT_ALLOW_ERRORS_7_6 as flag. o Protocols.LDAP.client
92c1842008-05-07Henrik Grubbström (Grubba) 
afa4822006-12-29Martin Nilsson  The "dn" field wasn't properly utf-8 decoded in 7.6 and earlier. If your application does it yourself, you need to use the compatibility version of this class. o spider.XML
92c1842008-05-07Henrik Grubbström (Grubba) 
afa4822006-12-29Martin Nilsson  The spider module no longer contains the XML parser. The functions isbasechar(), iscombiningchar(), isdigit(), isextender(), isfirstnamechar(), ishexchar(), isidiographic(), isletter(),
66f21a2008-05-10Henrik Grubbström (Grubba)  isnamechar() and isspace() have also been moved to the Parser module.
afa4822006-12-29Martin Nilsson  o Sql.Sql
92c1842008-05-07Henrik Grubbström (Grubba) 
afa4822006-12-29Martin Nilsson  Pike will no longer create a .column entry in SQL query responses if there is no table name. o Standards.UUID
92c1842008-05-07Henrik Grubbström (Grubba)  Functions new() and new_string() have been removed. Use
afa4822006-12-29Martin Nilsson  make_version1(-1)->encode() and make_version1(-1)->str() instead. o Stdio
92c1842008-05-07Henrik Grubbström (Grubba) 
afa4822006-12-29Martin Nilsson  The functions read_file(), read_bytes(), write_file() and
92c1842008-05-07Henrik Grubbström (Grubba)  append_file() now always throw errors on error conditions, to allow easier use as errno doesn't have to be checked. read_file() and read_bytes() still return 0 if the file does not exist.
326a9d2007-02-23Martin Nilsson 
92c1842008-05-07Henrik Grubbström (Grubba) o The modules Mird, Perl and Ssleay have been removed.
e399bc2007-11-11Martin Nilsson 
43bb262007-11-11Martin Nilsson -------------------- NOTES------------ 2004/04/26 00:13:30
e399bc2007-11-11Martin Nilsson backport: Calendar.pmod/events/regional Calendar.pmod/TZnames.pmod
43bb262007-11-11Martin Nilsson Protocols.HTTP.Query
e399bc2007-11-11Martin Nilsson  update(?): Geography.pmod/Countries.pmod MIME.pmod/ext... fixme: Process.locate_binary
4215582008-04-27Martin Nilsson 
431ebd2008-05-09Martin Nilsson __deprecated__
4215582008-04-27Martin Nilsson ---- modules/_Charset
35c4b12008-05-09Martin Nilsson 
4f24d62008-06-29Martin Nilsson New lib: Protocols.LDAP module.pmod -x test_pike New src: embed/libpike tmodule Fuse Protocols.DNS_SD Charset gb18030 gbk GTK2 SQLite
35c4b12008-05-09Martin Nilsson src: CommonLog: fixed sign bug files: FIXME Gettext: lots of build fixes gmp: FIXME
431ebd2008-05-09Martin Nilsson java: FIXME mysql: FIXME