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. 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. 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].
0c37ae2004-12-30Henrik Grubbström (Grubba) o Several declarations and definitions (most notably the debug and runtime flags) have moved from main.h to pike_embed.h, in an attempt to add support for embedding.
4d48e42004-10-30Martin Stjernholm o New `[..] operator function. Range operations have been separated from the `[] operator function and is handled by a new `[..] which provides greater control in how the range bounds are specified. For compatibility, if there is no `[..] then `[] is still called for range operations.
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. It is now possible to refer to inherits in objects. Example: 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; } } 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. It is now possible to simulate variables with functions. Example: class A { private int a; int `->b() { return a; } // Getter for the symbol b. void `->b=(int c) { a = c; } // Setter for the symbol b. int c() { return b; // Calls `->b(). } } object a = A(); a->b = 17; // Calls `->b=(17). werror("%d\n", a->b); // Calls `->b().
73fe402004-11-14Martin Stjernholm o Unicode escapes. 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. 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. Provides a method to hook into the type checker, so that it is possible to make custom type checking. No syntax yet. Added such a type checker for sprintf(). o Stricter typing of strings. The string type may now have an (optional) value range. Example: string(0..255) bytes;
d863e62004-09-03David Gourdelier o Stdio.*
5e18f72004-09-03Henrik Grubbström (Grubba)  Stdio.cp can now work recursively in a directory tree. Stdio.cp now keeps permissions when copying. Added Stdio.recursive_mv which works on every OS and also when the destination isn't on the same filesystem as the source.
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. NOTE! NOTE! Changed the argument for backend callbacks! NOTE! NOTE! The argument is now a struct Backend_struct * when called at entry (was NULL). NOTE! The argument is now NULL when called at exit (was 1). NOTE!
5e18f72004-09-03Henrik Grubbström (Grubba) o bin/precompile.pike Voidable pointer types are no longer promoted to mixed.
6de0ec2004-05-11Henrik Grubbström (Grubba) 
71ef5a2007-11-02Henrik Grubbström (Grubba) o cpp The preprocessor now supports macro expansion in the #include and #string directives.
6de0ec2004-05-11Henrik Grubbström (Grubba) o PIKE_PORTABLE_BYTECODE --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)  o Math.Matrix Multiplication were bugged and gave B*A instead of A*B. Now fixed.
9e891d2005-02-09Martin Stjernholm o Destruct reason passed to lfun::destroy. 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. The Pike compiler now supports mixin for symbols that have been declared static. o Implicit and explicit create(). The compiler now supports defining classes with both an implicit and an explicit create(). o Warnings for unused private symbols. The compiler now checks that all symbols that have been declared private actually are used.
afa4822006-12-29Martin Nilsson o Unicode Case information and the Unicode module are updated to Unicode 5.0.0.
e399bc2007-11-11Martin Nilsson o protected The modifier protected is now an alias for the modifier static.
afa4822006-12-29Martin Nilsson  Extensions and New Functions
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  It is now possible to use sizeof() and value() on a Queue object. 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 and uint 64 are aliases for already existing Item classes. - 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. FIXME: Example
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  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. 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. > Float.isnan(Math.inf/Math.inf); (1) Result: 1
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. - Several bug fixes.
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  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
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) ISO-6937:2001 (ISO-IR-156)
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 
71ef5a2007-11-02Henrik Grubbström (Grubba) o Odbc
e399bc2007-11-11Martin Nilsson  FIXME: Rewrite
71ef5a2007-11-02Henrik Grubbström (Grubba)  Now supports UnixODBC properly. Fixed various issues with Unicode.
326a9d2007-02-23Martin Nilsson o Parser.Pike
e399bc2007-11-11Martin Nilsson  Parsing of Pike has been rewritten in C for increased performance. #string directives should be handled correctly now.
326a9d2007-02-23Martin Nilsson  o Parser.RCS
e399bc2007-11-11Martin Nilsson  FIXME: Rewrite
326a9d2007-02-23Martin Nilsson  Handle broken RCS files better.
e399bc2007-11-11Martin Nilsson o Parser.XML.NSTree - Added add_child_before() and add_child_after() methods to the NSNode object. - Fixed crash bug.
326a9d2007-02-23Martin Nilsson o Parser.XML.Tree
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 o Pike
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
71ef5a2007-11-02Henrik Grubbström (Grubba)  Added support for NAPTR (RFC 3403) records.
326a9d2007-02-23Martin Nilsson  Fix for TTL parsing in SRV records. gethostbyname() now returns IPv6 addresses too, if available. Improved support for T_TXT. o Protocols.Bittorrent Support for gzipped and compact tracker responses. 30% faster hashing of files. o Protocols.HTTP.Query Many async bug fixes. Added timed_async_fetch() Don't silently downgrade to http from https if there is no crypto support. Addedunicode_data() Keep alive fixes. o Protocols.HTTP.Session Now possible to manually set content type. o Protocols.HTTP http_encode_string() now know how to encode UCS-2 characters.
71ef5a2007-11-02Henrik Grubbström (Grubba)  o sprintf sprintf() now attempts to lookup the name of the program when formatting types of objects and programs.
326a9d2007-02-23Martin Nilsson  PROTOCOLS NOT DONE o ADT.Table Fixed sorting of columns typed num.
afa4822006-12-29Martin Nilsson o Calendar.Badi Support for the Badi calendar used in the Baha'i religion. 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 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
afa4822006-12-29Martin Nilsson o Protocols.DNS_SD 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 Bittorrent tracker with support for scraping and UDP extension. o Protocols.HTTP.Server.Proxy A simple HTTP proxy. o Standards.TLD 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 Several new tests have been added to benchmark and improve on various aspects of Pike. ReplaceParallel and ReplaceSerial compares the time it takes to replace multiple substrings of a string in a single call to replace and with subsequent calls. TagRemoveArraySscanf, TagRemoveDivide, TagRemoveLoop, TagRemoveParserHTML, TagRemovePCRE, TagRemoveSearch and TagRemoveSscanf compares different methods of completing the same task, to remove XML tags from a string. o Web.CGI Provides a CGI interface on the callee side. Retrieves information from environment variables and populates the variables in the Request object. New lib: Protocols.LDAP module.pmod Sql.Sql dsn sqlite sql_array_result sql_object_result tds -x test_pike New src: embed/libpike tmodule code/amd64 Fuse Protocols.DNS_SD Charset gb18030 gbk Parser c.c / pike.c GTK2 SQLite 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 This function is removed. o _Charset This internal module has had most of its content removed.
e399bc2007-11-11Martin Nilsson o Crypto The old crypto functions from Pike 7.4 has been removed. These functions produced a warning when used in Pike 7.6.
afa4822006-12-29Martin Nilsson o Debug.describe_program The API for this debug function has changed. o Image.Image The functions select_colors(), map_closest(), map_fast() and map_fs() has been removed. Use Image.Colortable operations instead. o Parser.XML 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 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 The spider module no longer contains the XML parser. The functions isbasechar(), iscombiningchar(), isdigit(), isextender(), isfirstnamechar(), ishexchar(), isidiographic(), isletter(), isnamechar() and isspace() has also been moved to the Parser module. o Sql.Sql Pike will no longer create a .column entry in SQL query responses if there is no table name. o Standards.UUID Functions new() and new_string() has been removed. Use make_version1(-1)->encode() and make_version1(-1)->str() instead. o Stdio The functions read_file(), read_bytes(), write_file() and append_file() now always throw errors upon errors, to allow easier use as errno doesn't have to be checked. read_file() and read_bytes() still returns 0 if the file does not exists.
326a9d2007-02-23Martin Nilsson  o The modules Mird, Perl, Pipe and Ssleay have been removed.
e399bc2007-11-11Martin Nilsson  backport: Calendar.pmod/events/regional Calendar.pmod/TZnames.pmod update(?): Geography.pmod/Countries.pmod MIME.pmod/ext... fixme: Process.locate_binary