3d09f52021-02-03Henrik Grubbström (Grubba) Changes since Pike 8.0.1116 (release 14)
b6c0fe2021-02-03Henrik Grubbström (Grubba) ----------------------------------------------------------------------
3d09f52021-02-03Henrik Grubbström (Grubba) 
7b70712021-07-02Tobias S. Josefowitz New Features ------------ o decode_value can be called with codec -1, which disables decoding of functions, objects, programs and types.
3d09f52021-02-03Henrik Grubbström (Grubba) Bug Fixes ---------
98790e2021-09-11Tobias S. Josefowitz o Concurrent - The future generated by ->timeout() would not necessarily resolve with the fullfilled or rejected values if the original Promise/Future was resolved or rejected before hitting the timeout. - If the original promise resolves or rejects, we now attempt to unschedule the timeout call_out from the backend we scheduled it in, not the one (now) configured in the Future.
3d09f52021-02-03Henrik Grubbström (Grubba) o Inotify add_watch() now returns -1 for filsystem-related failures that may be due to the filsystem being in flux.
a4bdfa2021-03-25Tobias S. Josefowitz o Image.BMP Improved size check better detects malformed BMP images.
dc0d772021-03-18Tobias S. Josefowitz o Image.GIF - Improve detection of malformed LZW bit sizes. - Improve detection of malformed LZW dictionary extensions.
f88c422021-04-06Tobias S. Josefowitz o Image.ILBM - Guard alloca() allocations with check_c_stack(). - Improved length accounting in unpackByteRun1().
9c64602021-08-17Tobias S. Josefowitz o Image.JPEG - Do not over-allocate memory for decoded image. - Limit decoded size of images to 2 GB.
a4bdfa2021-03-25Tobias S. Josefowitz o Image.PCX Improved size checks better detect malformed PCX images.
dc0d772021-03-18Tobias S. Josefowitz o Image.PNG Improved size check better detects malformed PNG images.
a4bdfa2021-03-25Tobias S. Josefowitz o Image.PSD Improved size check better detects malformed PSD images.
dc0d772021-03-18Tobias S. Josefowitz o Image.TGA - Improve detection of malformed TGA images. - Correctly update pointer when horizontal or vertical flipping is requested by the TGA image. o Image.TIM Improved size checks better detect malformed TIM images. o Image.WBF Improved size check better detects malformed WBF images.
f88c422021-04-06Tobias S. Josefowitz o Image.X Guard alloca() allocations with check_c_stack().
a4bdfa2021-03-25Tobias S. Josefowitz o Image.XCF Fixed to properly initialize the layer mask structure.
f88c422021-04-06Tobias S. Josefowitz o Image.XWD Improved size check better detects malformed XWD images.
104b8a2021-03-16Tobias S. Josefowitz Building & Tools ---------------- o Improved check for stack direction to also report correct results when compiling with Clang 11.
5edabc2018-11-01Peter Bortas Changes since Pike 8.0.702 (release 13)
b6c0fe2021-02-03Henrik Grubbström (Grubba) ----------------------------------------------------------------------
5edabc2018-11-01Peter Bortas 
6dbaa82018-12-31Peter Bortas New Features ------------
fa63392020-11-11H William Welliver o Core - Added "->?" as the safe indexing variant of "->". - Added int(7,8,16bit).
e653d52019-01-01Henrik Grubbström (Grubba) o ADT.History
6dbaa82018-12-31Peter Bortas 
e653d52019-01-01Henrik Grubbström (Grubba)  Support encode/decode_value(). o Pike.FakeObject This is used as a placeholder used in place of other objects in backtraces.
6dbaa82018-12-31Peter Bortas 
fa63392020-11-11H William Welliver o Pike.DestructImmediate An empty class that can be inherited to get the PROGRAM_DESTRUCT_IMMEDIATE flag set.
82867b2019-02-02Marcus Comstedt o Image.Dims.exif_get and Image.exif_decode New convenience functions to get the functionality of Image.Dims.exif_get_JPEG and Image.JPEG._decode (rotation of the image according to the EXIF orientation information) without needing to check if the image is JPEG first.
a7be972019-04-28Stephen R. van den Berg o Concurrent - Add delay() to postpone a future. - Rewrite timeout() to reduce the memory footprint of a future in the common case.
fa63392020-11-11H William Welliver  - Added query_{success,failure}_callbacks() and try_get() to Concurrent.Future.
8c87d32020-03-17Henrik Grubbström (Grubba) o Process.Process - On NT it is now possible to specify the preferred console handler via the "conpty" option. The default is to take it from the first pty of "stdin", "stdout", and "stderr". If none of them is a pty the console handler is inherited from the current process.
78780c2019-12-04Tobias S. Josefowitz o SSL The SSL module now supports session ticket both client and server side. This functionality has been backported from 8.1/master.
2bdf7a2020-02-24Tobias S. Josefowitz o Standards.X509 Standards.X509 now allows the user to select acceptable signature algorithms to be used in the verification of certificates.
fa63392020-11-11H William Welliver o Stdio.Buffer Added truncate() and the ability to search for substrings. o Stdio.File Support openat() with a single argument().
f7304f2020-02-18Henrik Grubbström (Grubba) o Stdio.PROP_TTY Stdio.File()->pipe() can now be used to create tty-capable pipes (aka pseudo-ttys, aka ptys).
eccaaf2018-11-01Peter Bortas Bug fixes ---------
fa63392020-11-11H William Welliver o ADT.CritBit.FloatTree Fix FloatTree when using 128bit floats.
32a4522019-06-21Tobias S. Josefowitz o ADT.CritBit.IntTree Fixed the signature of ADT.CritBit.IntTree()->_values(). values(ADT.CritBit.IntTree()) claimed to return an array(int), whereas IntTrees can hold any type as value.
e653d52019-01-01Henrik Grubbström (Grubba) o backtrace() Hide mutex keys and crypto contexts from backtraces. Having unexpected references to mutex keys may cause hangs and complaints about attempting to lock mutexes recursively.
6dbaa82018-12-31Peter Bortas o combine_path() Fixed corner case where combine_path() on strings starting with "./../" used to gain one directory level. Eg: Old behavior: > combine_path(".", "../foo"); (1) Result: "../foo" > combine_path("./..", "foo"); (2) Result: "foo" > combine_path("./../foo"); (3) Result: "foo" New (fixed) behavior: > combine_path(".", "../foo"); (1) Result: "../foo" > combine_path("./..", "foo"); (2) Result: "../foo" > combine_path("./../foo"); (3) Result: "../foo"
e653d52019-01-01Henrik Grubbström (Grubba) o describe_backtrace() - Do not use value identifiers that have not been defined in the visible backtrace. - Fix clipped/canclip propagation.
fa63392020-11-11H William Welliver o mktime() Fix zone handling when localtime is in daylight savings time. o strftime() Remove non-standard conversions %k and %l.
e653d52019-01-01Henrik Grubbström (Grubba) o types() Fixed reference leak.
fa63392020-11-11H William Welliver o crypt() Do not throw errorss on validation failure. Primarily ocurrs on RHEL 8, return a failure code instead, consistent with historical use. o Backend.PollBackend Signal read events on POLLHUP.
6dbaa82018-12-31Peter Bortas o Calendar
e653d52019-01-01Henrik Grubbström (Grubba)  - Fixed typo in the Catalan word for the month December.
fa63392020-11-11H William Welliver  - Updated tzdata to 2019c.
6dbaa82018-12-31Peter Bortas 
5edabc2018-11-01Peter Bortas o Compiler - Adhere to the calling convention more in the machine code generator on amd64, namely by keeping the stack pointer aligned
6dbaa82018-12-31Peter Bortas  before calling into C code. GCC 8 started to emit instructions relying on the correct, alignment, causing General Protection Faults.
5edabc2018-11-01Peter Bortas 
6dbaa82018-12-31Peter Bortas  - Fixed some corner cases where file names where missing from backtraces.
7347792019-11-02Tobias S. Josefowitz  - Check the proper flag to determine if a local variable may be used before optimizing away certain assignments if the assignment is immediately followed by a return of the variable in question.
30dcc42020-10-26Henrik Grubbström (Grubba) o Concurrent.Promise
527bb92020-11-01Tobias S. Josefowitz  - Fixed race condition where success- and/or failure- callbacks could get lost. - Convert errors thrown by the executor passed to Concurrent.Promise() on create into promise rejection.
30dcc42020-10-26Henrik Grubbström (Grubba) 
fa63392020-11-11H William Welliver  - Fixes for some recursive mutex lock errors.
30dcc42020-10-26Henrik Grubbström (Grubba) o Crypto.ECC
0088dd2019-07-15Tobias S. Josefowitz  Now works against Nettle 3.5.
6467432019-03-31Tobias S. Josefowitz o Filesystem.Tar Fix extraction of S_ISUID and S_ISGID bits. POSIX mandates that after a chown() (by unprivileged users), the S_ISUID and S_ISGID bits are cleared, Linux 2.2.13 removed the special case for root. The order of chmod() and chown() have been reordered trying to fix an issue with applying utime() under Windows. With this change, utime() is applied first, then chown() and then chmod(), restoring the historical order for chown() and chmod().
fa63392020-11-11H William Welliver o Gettext Prevent argument of textdomain from being empty.
82867b2019-02-02Marcus Comstedt o Image.Dims - Fixed the inconsistency that Image.Dims.get_JPEG (and thus Image.Dims.get) would flip the dimensions on JPEGs with EXIF orientation information, even though Image.JPEG.decode does not actually perform the rotations.
fa63392020-11-11H William Welliver o Inotify Improved handling of invalid event callbacks. [bug 8042]
6689452019-08-06Tobias S. Josefowitz o Odbc The module's configure script now respects ABI suffixes when searching for the ODBC library dir.
de3fbc2020-02-10Tobias S. Josefowitz o Parser.HTML Fixed a Pike stack overflow occuring with certain inputs to the HTML parser.
fa63392020-11-11H William Welliver o Pike.count_memory Prevents a loop with ADT.List objects.
be044a2019-01-09Tobias S. Josefowitz o Process.run - Don't error if stdin modifier is supplied as the empty string. [LysLysKOM 23099651]
f503372019-03-31Tobias S. Josefowitz o Protoocls.HTTP - Protocols.HTTP.do_async_proxied_method() did not pass on request headers unless credentials were given to the proxy or the protocol to be used was HTTPS.
fa63392020-11-11H William Welliver  - Add Host header to proxied requests. o Protocols.HTTP.Server Fixed bug in Request()->update_mime_var(). [bug 10033]
e653d52019-01-01Henrik Grubbström (Grubba) o Protocols.HTTP.Session - Fix race-condition when multiple threads call give_me_connection() with the same url at the same time. - Don't attempt to reuse SessionQuery objects. give_me_connection() now always returns a new SessionQuery object (albeit sometimes with a reused connection). This should alleviate issues with stuff being left around from previous queries.
fa63392020-11-11H William Welliver o Protocols.DNS Improved error handling when calling async callbacks. Survive Stdio.UDP()->bind() failing with EACCES.
6dbaa82018-12-31Peter Bortas o Protocols.HTTP.Query On Solaris 11 Stdio.File()->connect() often fails with EADDRINUSE. If this happens, retry the connection. o Protocols.Websocket Tentative fix for error 'indexing the NULL value with "set_nonblocking'.
c4a07b2020-08-11Tobias S. Josefowitz o Runtime
fa63392020-11-11H William Welliver  - Certain operations on arrays of only objects could have triggered a type confusion under some circumstances, causing integers to be freed as objects, and thus a NULL derefence (SIGSEGV). - Fix some gratuitous rounding to double with long-double-precision. - Improved Fix some gratuitous rounding to double with long-double-precision. o Search.Filter.HTML Fix title always being set to "". [bug 10020]
c4a07b2020-08-11Tobias S. Josefowitz 
53cb3a2019-12-11Stephen R. van den Berg o Sql.pgsql - Ensure that the db connection is closed when the portal is closed. - Small speed boost.
75e2222020-02-17Stephen R. van den Berg  - Fix the only known deadlock-cause logged in the last year; happened
53cb3a2019-12-11Stephen R. van den Berg  (rarely) on multiple parallel queries on a single connection.
75e2222020-02-17Stephen R. van den Berg  - Fix the only known race condition logged in the last year; happened on some queries that store >32KB data per query. - Cast integers to floats, when floats are desired.
0a567c2020-02-25Stephen R. van den Berg  - Simplify error handling.
43baec2020-03-04Stephen R. van den Berg  - Toggle cache_autoprepared_statements default to off; turning it on triggers a bug in PostgreSQL sometimes that causes spikes in CPU usage of the database.
c971f12020-05-13Stephen R. van den Berg  - Fix support for text-multiqueries (separated by semicolons). - resync() is synchronous now, and prevents race conditions if followed back-to-back with new queries.
fa63392020-11-11H William Welliver  - disregard pending statements on connection destruction.
f4d0952020-01-21Tobias S. Josefowitz o SSL
2bdf7a2020-02-24Tobias S. Josefowitz  - When verifying the hostname against the certificate, only accept * (wildcard) for one level, i.e. *.example.com matches foo.example.com, but not www.foo.example.com. Previously, all levels were matched. - No longer accept MD2, MD5, and SHA1 as signature algorithms when verification is requested. MD2 and MD5 are outright dangerous at this point, and SHA1 should no longer be very relevant as web browsers already force CAs for several years to no longer issue any SHA1 certs anymore. Acceptable signature algorithms are however configurable via SSL.Context now, in case support of older/insecure algorithms is vehemently required by an application.
f4d0952020-01-21Tobias S. Josefowitz 
6dbaa82018-12-31Peter Bortas o SSL.File
3f99572020-12-01H William Welliver  - Do not close automatically on write error.
6dbaa82018-12-31Peter Bortas 
3f99572020-12-01H William Welliver  The internal ssl_write_callback() would call shutdown() on write error, which would cause the object to enter one of the closed states, without the user actually having closed the file.
6dbaa82018-12-31Peter Bortas 
3f99572020-12-01H William Welliver  This in turn caused errors like "Not open" from functions like read() and set_nonblocking(). - Fix a situation where setting callbacks before the TLS handshake had completed would cause the connection to hang if an alert was generated (for instance when the peers are unable to agree on a cipher suite.)
6dbaa82018-12-31Peter Bortas 
1b0b472020-12-04H William Welliver  - Permit data received to be read() after the connection is closed by the peer. Previously, read would throw a "Not open" error rendering the data irretrievable.
0925f12020-03-31Henrik Grubbström (Grubba) o Standards.JSON
fa63392020-11-11H William Welliver  - encode() now allows other threads to run every now and then. - Fix floating point literals with long-double-precision
0925f12020-03-31Henrik Grubbström (Grubba) 
30cb722020-08-20Jonas Walldén o Standards.EXIF Improved detection of EXIF section in get_properties().
fa63392020-11-11H William Welliver o Standards.URI
eaca352020-12-02Tobias S. Josefowitz  - Updated list of unsafe characters to RFC 3986. [bug 8004] - String representations of the URI that are generated by the object are now canonical again. This also fixes an issue where Standards.URI instances compared identical under the == comparison, but would hash differently.
fa63392020-11-11H William Welliver  o Standards.X509 Use old syntax for compatibility.
e4effa2019-08-06Tobias S. Josefowitz o sybase The module's configure script now respects ABI suffixes when searching for the sybase library dir.
3f828b2020-01-04Tobias S. Josefowitz o System - System.openlog() now keeps a reference to the ident passed, since system level syslog() may access the string pointed to by the ident passed to openlog. The reference will be released after a subsequent call to openlog() or closelog().
fa63392020-11-11H William Welliver o Thread.MutexKey When simulated, mark for immediate destruction.
e653d52019-01-01Henrik Grubbström (Grubba) o Thread.Queue Attempt to work around glibc bugs. Glibc 2.24 and earlier have a broken implementation of condition variables (cf https://sourceware.org/bugzilla/show_bug.cgi?id=13165). Attempt to work around the issue by having the signalling thread release the associated mutex before signalling. o Thread.ResourceCount Fixed mutex handling.
b4bfd92020-10-07Tobias S. Josefowitz o Tools.Standalone.httpserver The builtin webserver tool shipped with Pike (pike -x httpserver) was previously susceptible to a directory traversal attack via URL encoding.
6dbaa82018-12-31Peter Bortas Building & Tools ----------------
a7e7cb2020-12-15H William Welliver o Add --with-exclude-site-prefixes configure option. This will cause any directory specified in this option to be excluded from the search path for binaries/includes/libraries. This option will override any paths found by other means, allowing "system" directories like /usr/local to be exluded for making binary distributions.
e653d52019-01-01Henrik Grubbström (Grubba) o Drop support for Postgres 7.1.
6dbaa82018-12-31Peter Bortas  o Fix compilation with Nettle 3.1.1.
7d3ae92018-12-23Peter Bortas 
6dbaa82018-12-31Peter Bortas o Support recent versions of libfreetype.
7d3ae92018-12-23Peter Bortas 
e653d52019-01-01Henrik Grubbström (Grubba) o Drop use of the obsolete (~20 years) Solaris ioctl /proc API. The ioctl-based /proc API was obsoleted in Solaris 2.6 (July 1997), but to be supported "until the next major release". In Solaris 11.4 (August 2018) the support has now finally been removed. Most of the removed code was from 1995, and was thus older than Pike... o Improved pkg-config search path detection on Solaris. Solaris 11.4 provides a single pkg-config binary, which by default searches in /usr/lib/pkgconfig/ and /usr/share/pkgconfig/. Unfortunately, /usr/lib/pkgconfig/ contains information for the 32-bit packages (64-bit d:o is in /usr/lib/64/pkgconfig/). This issue caused eg 32-bit headers for libffi to be used, causing a SIGSEGV in ffi_closure_unix64_inner() due to the differing sizes of ffi_closure in 32-bit and 64-bit abi.
fa63392020-11-11H William Welliver o Check for actual availability of YP functions, not just headers. o Attempt to use paxctl to alter the PaX flags for the pike binary to allow for generation of machine code on NetBSD. o Silence GL deprecation warning and fix a missing definition error on Darwin for newer versions of MacOS. o Fix check for my_bool and compilation errors related to MySQL 8.
5edabc2018-11-01Peter Bortas 
bf30302018-05-19Peter Bortas Changes since Pike 8.0.610 (release 12)
b6c0fe2021-02-03Henrik Grubbström (Grubba) ----------------------------------------------------------------------
bf30302018-05-19Peter Bortas 
46e7322018-06-12Henrik Grubbström (Grubba) New Features ------------ o Sql.mysql In unicode decode mode, characters outside the BMP are now encoded as UTF-8 encoded UTF-16. This works around that MySQL/MariaDB don't allow characters outside the BMP in utf8 strings (and instead require the character set to be declared as utf8mb4, which has quite a few side effects).
bf30302018-05-19Peter Bortas Bug fixes ---------
11be362018-08-30Henrik Grubbström (Grubba) o Runtime
5931f42018-09-12Henrik Grubbström (Grubba)  - Fixed NULL dereference (SIGSEGV) in _disable_threads() if another thread is holding the compiler lock.
11be362018-08-30Henrik Grubbström (Grubba)  - Fixed loss of Pike_interpreter_pointer (race, --with-debug only). The Pike_interpreter_pointer must not be altered by threads not holding the interpreter lock...
cdafac2018-06-06Henrik Grubbström (Grubba) o Calendar - Updated tzdata to 2018e.
5744102018-05-24Henrik Grubbström (Grubba) o Compiler - The machine code generator for ppc64 now generates correct code under ABI v2 (ppc64le) - Fixed an incompatibility between the machine code generator on ppc and GCC 7.
af80b42018-08-30Henrik Grubbström (Grubba)  - Support inherit of CompilerEnvironment. Fix some bugs triggered in the supporter subsystem when executing in an inherited CompilerEnviroment.
b9f2682018-08-30Henrik Grubbström (Grubba) o Filesystem.Monitor - Fix NULL-dereference in bump(). Survive st being zero in bump().
a5e6c42018-08-07Tobias S. Josefowitz o Fuse - Switched the Fuse module to use a different libfuse API. The way we used to use libfuse got first deprecated and support for it is now removed from the libfuse git repository entirely. In addition, our previous use of said libfuse API triggered a bug resulting in a segmentation fault in at least libfuse 2.9.2 and 2.9.7. We now use libfuse in a less elegant but more usual way, and do not trigger the bug anymore.
8d50932018-08-07Tobias S. Josefowitz  - Handle errors in Fuse operations (i.e. Pike code implementing FUSE filesystems) gently by reporting ENOSYS instead of exiting the process.
cdafac2018-06-06Henrik Grubbström (Grubba) o Gmp.mpq Fix numbers between -1.0 and 1.0 sometimes missing a leading 0.
5744102018-05-24Henrik Grubbström (Grubba) o Pike.identify_cycle Fix various issues with LFUNs throwing errors.
bf30302018-05-19Peter Bortas 
5744102018-05-24Henrik Grubbström (Grubba)  LFUNs used by mapping operations may throw errors; this caused identify_loop_visit_leave() to also throw errors. The rest of the identify_cycle code was not happy about this and
bf30302018-05-19Peter Bortas 
5744102018-05-24Henrik Grubbström (Grubba)  - Forgot to unlock the mc_mutex. This caused all following calls to Pike.identify_cycle() and Pike.count_memory() to hang. - Leaked memory. The above issues are now avoided by instead using the addresses of objects as indices in the affected mapping. It also fixes the issue with hangs if there are objects with lfuns calling Pike.identify_cycle() or Pike.count_memory().
a821082018-08-22Tobias S. Josefowitz o Protocols.HTTP.Server Fix an issue with accounting of sent bytes that caused responses to requests over HTTPS to not finish on success, but instead the whole connection to time out. Data for the first request was usually fully written, but the connection neither was properly closed nor re-used.
588a3d2018-10-04Henrik Grubbström (Grubba) o Protocols.WebSocket - Added low_connect() and low_websocket_accept(). These make it easier to test the error handling in the module, and to replace the HTTP-layer. - Improved compliance with RFC 6455 section 4.1. o The nonce is now actually random. o The http version, method and headers are validated. o Header case-sensitivity issues have been fixed. - The module now has a testsuite. - Improved HTTP-header camel-case consistency.
57662e2018-08-30Henrik Grubbström (Grubba) o Sass - Errors thrown by handle_sass_import() can now be caught and handled by the caller of compile_file() and compile_string(). - Added the option "sass_syntax". This option will parse the input as having indented Sass syntax. This option only has effect in compile_string(). - Added method sass2scss() to convert Sass syntax to SCSS syntax.
2893622018-05-30Stephen R. van den Berg o Sql.pgsql - Fix regression bug since rel 12 that hangs queries returning over 1024 records. - Fix all rare-deadlock-causes logged in the last two years.
cdafac2018-06-06Henrik Grubbström (Grubba) o Stdio.Buffer Eliminate race condition in read_cstring().
588a3d2018-10-04Henrik Grubbström (Grubba) o Stdio.UDP Fixed wait() failing with ENOTSOCK on NT.
22e1002018-06-29Martin Nilsson o Thread.Farm
e7e66d2018-08-30Henrik Grubbström (Grubba)  - Fixed lost error in provide_error() exception handling.
22e1002018-06-29Martin Nilsson 
e7e66d2018-08-30Henrik Grubbström (Grubba)  - Avoid delayed deallocation of jobs by clearing references immediately after execution.
22e1002018-06-29Martin Nilsson 
b6bca32018-08-30Henrik Grubbström (Grubba) o Tools.Standalone - extract_autodoc: Terminate on failure. Reenable termination on extraction failure.
2893622018-05-30Stephen R. van den Berg 
c66fe72018-06-12Henrik Grubbström (Grubba) Building & Tools ---------------- o Java
70b7dd2018-08-30Henrik Grubbström (Grubba)  - The location of libjvm is now detected on Ubuntu 18.04. - Detect and support OpenJDK 10.
c66fe72018-06-12Henrik Grubbström (Grubba) 
1bdaef2018-06-12Henrik Grubbström (Grubba) o Postgres Support Postgresql 10 and later.
588a3d2018-10-04Henrik Grubbström (Grubba) o Sass Improved detection of C++ runtime library on MacOS X.
c66fe72018-06-12Henrik Grubbström (Grubba) 
a48df22017-11-03Peter Bortas Changes since Pike 8.0.498 (release 11) ---------------------------------------------------------------------- New Features ------------
9746ea2018-01-19Henrik Grubbström (Grubba) o Crypto.Hash.SCRAM New class to support SCRAM authentication.
4d481b2017-12-06Stephen R. van den Berg o Concurrent - Add map_with() as an alias to flat_map().
d0be242018-02-08Henrik Grubbström (Grubba) 
4d481b2017-12-06Stephen R. van den Berg  - Add a convenience variant to zip().
d0be242018-02-08Henrik Grubbström (Grubba) 
685c282018-05-12Martin Nilsson  - depend() can be used to collect multiple dependencies before finalising the Promise.
4d481b2017-12-06Stephen R. van den Berg 
9746ea2018-01-19Henrik Grubbström (Grubba) o Debug.find_all_clones()
685c282018-05-12Martin Nilsson  New convenience function to find all objects that are clones of a program.
9746ea2018-01-19Henrik Grubbström (Grubba) 
05b9e42018-05-08Henrik Grubbström (Grubba) o MIME Added a setter for the message boundary prefix.
9d9e9a2017-11-11Stephen R. van den Berg o Sql.pgsql
2e53042017-11-15Stephen R. van den Berg  - Added support for PostgreSQL 10's stronger password authentication (SCRAM-SHA-256).
d0be242018-02-08Henrik Grubbström (Grubba) 
1b19cf2017-12-02Stephen R. van den Berg  - Slightly reduced overhead.
d0be242018-02-08Henrik Grubbström (Grubba) 
2fe02b2017-12-11Stephen R. van den Berg  - Support IEEE binary float database-wireformat.
d0be242018-02-08Henrik Grubbström (Grubba) 
b7a9e52018-02-06Stephen R. van den Berg  - Support NUMERIC database-wireformat.
d0be242018-02-08Henrik Grubbström (Grubba) 
2fe02b2017-12-11Stephen R. van den Berg  - Prevent new queries from starting in the local_backend.
4f24ec2017-11-21Stephen R. van den Berg 
bce6482018-05-07Stephen R. van den Berg  - Make sure huge queries are not fully loaded into memory.
6b8de92018-01-31Stephen R. van den Berg o Sql.Sql Make big_typed_query() gracefully fallback to big_query().
9746ea2018-01-19Henrik Grubbström (Grubba) o SSL.File
4f24ec2017-11-21Stephen R. van den Berg 
9746ea2018-01-19Henrik Grubbström (Grubba)  Support query_fd() and set_buffer_mode() methods.
4f24ec2017-11-21Stephen R. van den Berg 
aee55f2018-05-08Henrik Grubbström (Grubba) o Stdio.File [NT] A major clean-up and consistency improvment of the I/O layer on NT. - All filesystem paths are now encoded in UTF-8 from Pike-code's point of view. Previously this was a mix of Latin-1 and UTF-16, with some stuff affected by the filesystem default character set. This makes the entire filesystem accessible from Pike-code. This new behavior can be detected by the presence of the constant Stdio.__HAVE_UTF8_FS__. - Added new low-level fd handling functions. This should fix several potential race-conditions in the I/O layer on NT.
2453512018-03-11Henrik Grubbström (Grubba) o Stdio.Terminfo Support the new terminfo format from ncurses 6.
05b9e42018-05-08Henrik Grubbström (Grubba) o Thread.Farm Added Thread.Farm()->set_thread_name_cb() to help applications that monitor thread creation and termination for the purpose of tracking thread names.
4f24ec2017-11-21Stephen R. van den Berg o Thread.ResourceCount
685c282018-05-12Martin Nilsson  New module to allow threadsafe race-condition-free counting of resources.
4f24ec2017-11-21Stephen R. van den Berg 
9f7d662018-03-25Peter Bortas o Tools.Standalone.check_http
8e81722017-12-31Henrik Grubbström (Grubba)  - Allow redirect responses.
d0be242018-02-08Henrik Grubbström (Grubba) 
8e81722017-12-31Henrik Grubbström (Grubba)  - Support --expect option.
30787a2018-05-07Henrik Grubbström (Grubba) o Web.Sass This is a module that interfaces to the SASS compilation library "LibSass" (https://github.com/sass/libsass).
46dc202018-01-11Martin Nilsson 
a48df22017-11-03Peter Bortas Bug fixes ---------
33b0022018-03-30Tobias S. Josefowitz o ADT.CritBit
685c282018-05-12Martin Nilsson  - Due to an off-by-one error the last limb of bignums was never compared. This resulted (sometimes) in unequal bignums comparing equal inside of the tree.
33b0022018-03-30Tobias S. Josefowitz 
8e81722017-12-31Henrik Grubbström (Grubba) o Compiler
e182782018-01-25Henrik Grubbström (Grubba)  - Improved variant robustness. - Fixed type leak for getters/setters implemented with variant functions.
8e81722017-12-31Henrik Grubbström (Grubba)  o Calendar
05b9e42018-05-08Henrik Grubbström (Grubba)  - Updated tzdata to 2018d.
58077b2018-01-10Henrik Grubbström (Grubba)  - Calendar.TimeRanges.NullTimeRange now has a working __hash().
46dc202018-01-11Martin Nilsson  The expression ([ Calendar.TimeRanges.nulltimerange : 17 ])
58077b2018-01-10Henrik Grubbström (Grubba)  no longer gives a backtrace.
8e81722017-12-31Henrik Grubbström (Grubba) 
4d481b2017-12-06Stephen R. van den Berg o Concurrent
685c282018-05-12Martin Nilsson  - Less filling, deadlock-free, faster, available without running backend.
4d481b2017-12-06Stephen R. van den Berg 
4b10762018-05-07Henrik Grubbström (Grubba)  - Handle an empty argument array properly in results(). Previously code such as: Concurrent.Future f2 = Concurrent.results(({}));
685c282018-05-12Martin Nilsson  f2->on_success(lambda(array(string) a) { werror("success: %O.\n", a); }) ->on_failure(lambda(mixed err) { werror (describe_backtrace(err)); });
4b10762018-05-07Henrik Grubbström (Grubba) 
685c282018-05-12Martin Nilsson  would lead to a backtrace because the future was destructed prematurely.
4b10762018-05-07Henrik Grubbström (Grubba) 
4d481b2017-12-06Stephen R. van den Berg  - Readable/understandable documentation.
86f10e2017-11-06Henrik Grubbström (Grubba) o Crypto.CCM Fixed initialization of the iv.
e182782018-01-25Henrik Grubbström (Grubba) o Crypto.Hash Censor the password argument from backtraces in crypt_hash().
86f10e2017-11-06Henrik Grubbström (Grubba) o Filesystem.Monitor
2a762e2018-02-08Henrik Grubbström (Grubba)  - Fixed some backend_check rescheduling isusues.
685c282018-05-12Martin Nilsson  adjust_monitor() didn't reschedule the backend_check() call_out if the adjusted monitor already was at the head of monitor_queue.
2a762e2018-02-08Henrik Grubbström (Grubba)  This caused polls to be delayed in some common cases. register_path() didn't reschedule the backend_check() call_out.
685c282018-05-12Martin Nilsson  If the newly registered monitor ends up at the head of the monitor_queue, the backend_check() call_out likely needs to be rescheduled.
2a762e2018-02-08Henrik Grubbström (Grubba) 
685c282018-05-12Martin Nilsson  - Fixed issue with next_poll being set to zero causing polling every second.
86f10e2017-11-06Henrik Grubbström (Grubba) 
685c282018-05-12Martin Nilsson  - Fixed indexing the NULL value error when InotifyMonitor was used in combination with a filter_file() that doesn't accept everything.
86f10e2017-11-06Henrik Grubbström (Grubba) 
aab2e42018-05-07Henrik Grubbström (Grubba)  - Fixed incorrect creation of new monitors. Monitors were created using monitor() on the top level rather than using Monitor::monitor(), which prevented the symlinks' overridden
685c282018-05-12Martin Nilsson  DefaultMonitor from setting the correct state on newly created monitors.
aab2e42018-05-07Henrik Grubbström (Grubba)  We now force a check on the directory monitor instead, which will pick up the new file instantly and create the sub monitor. - Fixed race condition on deletion.
685c282018-05-12Martin Nilsson  This fixes a race that could occur on rapid exists => delete => exists transitions, where the directory monitor never noticed the change but the sub monitor was removed from the monitor lookup mapping. The directory monitor is now notified on sub-monitor release.
aab2e42018-05-07Henrik Grubbström (Grubba)  - Added set_stable_time() function.
2a762e2018-02-08Henrik Grubbström (Grubba)  - Removed obsolete special case for co_id == 1.
86f10e2017-11-06Henrik Grubbström (Grubba) o HTTPLoop: Fixed some potential race conditions. o Image.Image
685c282018-05-12Martin Nilsson  - Improved argument checking in apply_curve(). Non-integer array values lead to use of uninitialized curve values.
86f10e2017-11-06Henrik Grubbström (Grubba)  o Image.PVR Fixed size check for twiddled images.
8e81722017-12-31Henrik Grubbström (Grubba) o MIME Support trailing newline in MIME part epilogues.
39a8472018-05-07Henrik Grubbström (Grubba) o Protocols.HTTP.Query - Fixed incoming chunked transfers (timed async works now, chunk options are properly 'parsed'). Trailer headers are now correctly parsed.
a48df22017-11-03Peter Bortas 
05b9e42018-05-08Henrik Grubbström (Grubba)  - Improved handling of multiple headers of the same kind.
685c282018-05-12Martin Nilsson  - Fixed a bug where base64 encoded HTTP basic auth tokens were encoded in a pretty-printed format including line breaks, which lead to malformed HTTP requests on long username and password combinations.
a48df22017-11-03Peter Bortas 
05b9e42018-05-08Henrik Grubbström (Grubba)  - Do not wait for SSL.File()->close() to complete when called from the destruct() callback. o Protocols.HTTP.Server
ac79c72018-04-05Martin Nilsson 
05b9e42018-05-08Henrik Grubbström (Grubba)  - The header parser exception mode now doesn't immediately throw an exception. - Attempt to ensure that data is sent before terminating an HTTPS connection.
ac79c72018-04-05Martin Nilsson 
86f10e2017-11-06Henrik Grubbström (Grubba) o Protocols.LDAP Fixed race condition on initializing LDAPS.
e3025e2018-01-17Henrik Grubbström (Grubba) o Search.Database.MySQL Fixed issue where blobs didn't get updated after the initial blobs got full.
86f10e2017-11-06Henrik Grubbström (Grubba) o Search.Utils Updated debug string format.
a48df22017-11-03Peter Bortas o Sql.pgsql
52355b2017-11-09Stephen R. van den Berg  - Suppress spurious 'File not open' blurts on stderr when the connection is still pending and we inspect the connection object.
d0be242018-02-08Henrik Grubbström (Grubba) 
685c282018-05-12Martin Nilsson  - Signal EOF early before closing the SQL result portal and thoroughly cleanup bufcon/stashcount to prevent occasional deadlocks on asynchronous object destructions.
d0be242018-02-08Henrik Grubbström (Grubba) 
4f24ec2017-11-21Stephen R. van den Berg  - Suppress rare "access in destructed object" messages.
d0be242018-02-08Henrik Grubbström (Grubba) 
685c282018-05-12Martin Nilsson  - Simplified fundamentally flawed reconnect logic, made failures consistent.
d0be242018-02-08Henrik Grubbström (Grubba) 
4f24ec2017-11-21Stephen R. van den Berg  - Repair SSL connect logic.
d0be242018-02-08Henrik Grubbström (Grubba) 
4f24ec2017-11-21Stephen R. van den Berg  - Update documentation.
d0be242018-02-08Henrik Grubbström (Grubba) 
1b19cf2017-12-02Stephen R. van den Berg  - Repair fetch_row_array().
d0be242018-02-08Henrik Grubbström (Grubba) 
6b8de92018-01-31Stephen R. van den Berg  - Ensure that all database errors result in exceptions (eventually).
bce6482018-05-07Stephen R. van den Berg  - affected_rows() and status_command_complete() now wait until they have a meaningful result to report. - Closing the database will wait until all running queries have been committed.
b4ffe62018-05-07Stephen R. van den Berg  - Report correct number of affected_rows() for INSERTs.
526c552018-05-07Stephen R. van den Berg  - Eliminate a rare deadlock when running many simultaneous queries on a single filedescriptor.
8da93d2017-12-06Stephen R. van den Berg o mktime/System.TM
9696b92018-01-03Stephen R. van den Berg  - Make timezone management consistent (especially UTC handling). - Fix memory leak in strftime().
8da93d2017-12-06Stephen R. van den Berg 
86f10e2017-11-06Henrik Grubbström (Grubba) o Standards.IIM Disabled debug output for unknown segment markers.
aee55f2018-05-08Henrik Grubbström (Grubba) o Stdio - Restore the FD_SETSIZE on NT to 65536.
685c282018-05-12Martin Nilsson  Due to #include file restructuring, the FD_SETSIZE value on NT had fallen back to the default (64). This issue has probably affected all releases of Pike since 7.9.2.
aee55f2018-05-08Henrik Grubbström (Grubba)  - mv() [NT] Fixed single byte buffer overrun in mv() on NT. A NUL-terminator was written outside a malloced buffer. This caused intermittent crashes after unusual use of mv(). Fixes the crash in [PIKE-90]. - send_file()
8e81722017-12-31Henrik Grubbström (Grubba) 
aee55f2018-05-08Henrik Grubbström (Grubba)  Improved support for TLS/SSL; wait for TLS handshake to complete before calling the sendfile done callback when sending an empty string. This fixes the issue where the connection got closed before TLS handshaking was completed, confusing the other side.
8e81722017-12-31Henrik Grubbström (Grubba) 
e051752017-12-31Martin Nilsson o Image Creating images with mode "grey" now works as documented, e.g. Image.Image(10,10,"grey",123);
46dc202018-01-11Martin Nilsson 
1bc9a02017-12-31Peter Bortas Optimizations ------------- o mktime/System.TM Considerable speedup and a reduction in codesize.
8e81722017-12-31Henrik Grubbström (Grubba) 
25d4dd2018-03-12Henrik Grubbström (Grubba) o Unicode Avoid scanning the string in NFC mode if the string is 8-bit, as NFC normalization of 8-bit strings is the identity function.
46dc202018-01-11Martin Nilsson 
86f10e2017-11-06Henrik Grubbström (Grubba) Building & Tools ----------------
05b9e42018-05-08Henrik Grubbström (Grubba) o Hilfe Fix commands having priority over code. [LysLysKOM 22552693].
86f10e2017-11-06Henrik Grubbström (Grubba) o Image.SVG Fall back to using the unprefixed pkg-config if the arch-prefixed doesn't exist.
8e81722017-12-31Henrik Grubbström (Grubba) o Mysql Support MariaDB 10.2 headerfiles.
05b9e42018-05-08Henrik Grubbström (Grubba) o export - Fixed fix_configure. This was broken in multiple ways: * Did not consider timestamp on aclocal.m4 * Did not consider post_modules
685c282018-05-12Martin Nilsson  * Did not check configure scripts directly under modules or post_modules * When fixing modules, it looked for the configure scripts in the build directory rather than the source directory
05b9e42018-05-08Henrik Grubbström (Grubba)  * Did not use the run_autoconfig wrapper This has caused xenofarm to export snapshots with out of date configure scripts.
86f10e2017-11-06Henrik Grubbström (Grubba) o precompile Support precompilation with Pike 8.1 again.
05b9e42018-05-08Henrik Grubbström (Grubba) o run_autoconfig Fix localdir when relative and not "./"
86f10e2017-11-06Henrik Grubbström (Grubba) o smartlink Fixed multiple issues on Darwin & NetBSD. o Whitefish Use the standard VPATH.
8e81722017-12-31Henrik Grubbström (Grubba) o Yp
685c282018-05-12Martin Nilsson  Support using libtirpc. Glibc 2.26 has removed the Sun RPC implementation.
8e81722017-12-31Henrik Grubbström (Grubba) 
a48df22017-11-03Peter Bortas 
81c27a2017-09-24Peter Bortas Changes since Pike 8.0.466 (release 10) ---------------------------------------------------------------------- New Features ------------
862c112017-09-25Henrik Grubbström (Grubba) o Crypto.ECC
34bdae2017-09-25Martin Nilsson 
862c112017-09-25Henrik Grubbström (Grubba)  - Added get_point() to Crypto.ECC.Curve.
c56a192017-10-05Martin Nilsson  - Crypto.ECC.Curve.Point objects can now be compared with equal().
34bdae2017-09-25Martin Nilsson  o JWK
862c112017-09-25Henrik Grubbström (Grubba)  - Added Web.encode_jwk().
34bdae2017-09-25Martin Nilsson 
862c112017-09-25Henrik Grubbström (Grubba)  - Added jwk() to signatures (Nettle.Sign, Crypo.RSA, Crypto.ECC.Curve.ECDSA)
34bdae2017-09-25Martin Nilsson 
862c112017-09-25Henrik Grubbström (Grubba)  - Added jwk() to Crypto.Hash.HMAC.
81c27a2017-09-24Peter Bortas 
862c112017-09-25Henrik Grubbström (Grubba)  - decode_jwk() on a ECC private key now returns an ECDSA object (and a Point object for an ECC public key).
095c9a2017-09-24Arne Goedeke 
862c112017-09-25Henrik Grubbström (Grubba) o Standards.PKCS
095c9a2017-09-24Arne Goedeke 
862c112017-09-25Henrik Grubbström (Grubba)  Support for decoding PKCS #10 public keys through Standard.PKCS.parse_public_key.
81c27a2017-09-24Peter Bortas 
862c112017-09-25Henrik Grubbström (Grubba) Bug fixes ---------
34bdae2017-09-25Martin Nilsson 
862c112017-09-25Henrik Grubbström (Grubba) o Protocols.DNS Added hooks for controlling error handling in Protocols.DNS.server.
34bdae2017-09-25Martin Nilsson  o Protocols.HTTP
a48df22017-11-03Peter Bortas  Fixed a memory leak in the HTTP header parser upon receiving malformed HTTP headers.
34bdae2017-09-25Martin Nilsson  o Protocols.WebSocket Fixed a case where the onopen callback would get the wrong argument. o Search Fixes some broken SQL queries causing data corruption.
862c112017-09-25Henrik Grubbström (Grubba) o Sql.sqlite
34bdae2017-09-25Martin Nilsson 
95b7e22017-09-26Peter Bortas  list_fields() now throws an error when used on a non-existent table.
34bdae2017-09-25Martin Nilsson 
862c112017-09-25Henrik Grubbström (Grubba) o Stdio.Buffer
34bdae2017-09-25Martin Nilsson 
862c112017-09-25Henrik Grubbström (Grubba)  - Some methods (add_int*, input_from, add_padding) did not trigger a call to the fd output function. When using an Stdio.Buffer instance in Stdio.File buffer mode, this could result in new data not being written.
34bdae2017-09-25Martin Nilsson 
862c112017-09-25Henrik Grubbström (Grubba)  - Due to an error in the realloc strategy, in some cases unread() did not succeed after reading or writing data to a fd. o Threads Fixed a race condition when creating a new thread while threads are disabled.
d9e9532017-10-05Henrik Grubbström (Grubba) o WhiteFish - Fixed issues with merging of empty sets. - Fixed rank calculation on intersection of sets. - Fixed multiple memory leaks. - Improved behavior when provided with corrupted input. - The module is now tested by the normal testsuite.
862c112017-09-25Henrik Grubbström (Grubba) Compiler
1443362017-09-25Martin Nilsson --------
34bdae2017-09-25Martin Nilsson 
c56a192017-10-05Martin Nilsson o Improved syntax error recovery, including eliminating some fatal conditions.
862c112017-09-25Henrik Grubbström (Grubba)  o Fixed a memory leak in the preprocessor. Runtime -------
c56a192017-10-05Martin Nilsson o Fixed NULL-dereference by the GC when running count_memory() on a Pike compiled with --with-dmalloc.
862c112017-09-25Henrik Grubbström (Grubba) 
c56a192017-10-05Martin Nilsson o Fixed fatal "Didn't find gc marker as expected" at exit on a Pike compiled with --with-cleanup-on-exit.
862c112017-09-25Henrik Grubbström (Grubba) 
4e638c2017-10-05Henrik Grubbström (Grubba) o Signal handling Fixed an error where processes would share the same queue for pending signals after using fork(). As a result, a signal sent to one process could trigger a signal handler in the other process.
862c112017-09-25Henrik Grubbström (Grubba) Building & Tools ----------------
34bdae2017-09-25Martin Nilsson o Configuration Fixes to the detection of MariaDB, MySQL and Inotify.
862c112017-09-25Henrik Grubbström (Grubba) o mkpackage Fixed issue where the error code from extra platform tests wasn't propagated all the way to exit from the install script.
81c27a2017-09-24Peter Bortas 
3bfd982017-06-18Martin Nilsson Changes since Pike 8.0.438 (release 9)
c2875f2017-06-18Martin Nilsson ---------------------------------------------------------------------- New Features ------------ o Concurrent
a678bb2017-06-19Henrik Grubbström (Grubba)  The Concurrent module simplifies asynchronous code by synchronizing events in different ways. As an example the connect() function shown
6983832017-06-27Stephen R. van den Berg  below will respond with a Concurrent.Future object that at some point
c2875f2017-06-18Martin Nilsson  will represent either a connected socket or a failure.
a678bb2017-06-19Henrik Grubbström (Grubba)  Concurrent.Future connect(string host, int port)
c2875f2017-06-18Martin Nilsson  { Stdio.File con = Stdio.File(); Concurrent.Promise p = Concurrent.Promise(); if( !con->async_connect(host, port, lambda(int success) { if(success) p->success(con); else p->failure("Failed to connect to "+host+":"+port+"\n"); })) { p->failure("Failed to open socket.\n"); }
a678bb2017-06-19Henrik Grubbström (Grubba)  return p->future();
c2875f2017-06-18Martin Nilsson  }
a678bb2017-06-19Henrik Grubbström (Grubba)  The returned future can then be used in various ways.
c2875f2017-06-18Martin Nilsson  // On success, call make_request(con, query). On failure call // werror(msg).
a678bb2017-06-19Henrik Grubbström (Grubba)  connect(host, port)
c2875f2017-06-18Martin Nilsson  ->on_failure(werror) ->on_success(make_request, query); // On success, call make_request(con, query1) followed by // make_request(resp, query2), where resp is the return value from // make_reqest.
a678bb2017-06-19Henrik Grubbström (Grubba)  connect(host, port)
c2875f2017-06-18Martin Nilsson  ->then(make_request, werror, query1) ->then(make_request, werror, query2); // Call bridge_ports(con1, con2) when both connections are // established.
a678bb2017-06-19Henrik Grubbström (Grubba)  Concurrent.all(connect(host1, port1), connect(host2, port2))
c2875f2017-06-18Martin Nilsson  ->then(bridge_ports, failure); // Call make_request(con) once either of the connections are // established.
a678bb2017-06-19Henrik Grubbström (Grubba)  Concurrent.race(connect(host1, port1), connect(host2, port2))
c2875f2017-06-18Martin Nilsson  ->then(make_requet, query);
2fefeb2017-07-17Henrik Grubbström (Grubba) o Debug.Inspect Allows for interactive debugging and live data structure inspection in both single- and multi-threaded programs. Example: In the program you'd like to inspect, insert the following one-liner: Debug.Inspect("/tmp/test.pike"); Then start the program and keep it running. Next you create a /tmp/test.pike with the following content: void create() { werror("Only once per modification of test.pike\n"); } int main() { werror("This will run every iteration\n"); werror("By returning 1 here, we disable the stacktrace dumps\n"); return 0; } void destroy() { werror("destroy() runs just as often as create()\n"); } Whenever you edit /tmp/test.pike, it will automatically reload the file.
e54ef42017-08-28Per Cederqvist o Protocols.DNS.server Derived classes can now override report_decode_error() and handle_decode_error() to change how errors while decoding a DNS packet are reported and handled.
2fefeb2017-07-17Henrik Grubbström (Grubba) Bug fixes --------- o ADT.Heap Fixed heap corruption when the same object is pushed more than once. It will now be considered as calling adjust(). o FSEvents EventStreamMonitor now works with other backends.
c8e3942017-06-27Henrik Grubbström (Grubba) o Filesystem.Monitor
14f3282017-07-17Henrik Grubbström (Grubba)  - Reduced initialization latency.
c8e3942017-06-27Henrik Grubbström (Grubba)  - Changed the polling heuristic. This is intended to reduce poll (and notification) delays in some circumstances. - Improved robostness of adjust_monitor(). - Removed some dead and obsolete code. - Scan accelerated monitors too. Both the Inotify and FSEvents APIs claim that they support notifications on eg network file systems, and while they will succeed in notifying on changes performed by the local host on such file systems, they will not on changes performed by other hosts. To avoid missing such changes these monitors need to be actively scanned too.
14f3282017-07-17Henrik Grubbström (Grubba)  - Fixed lost acceleration with InotifyMonitor Recover from race-condition where when a file was repeatedly created and deleted, acceleration was lost. - Fixed symlink issue with InotifyMonitor.
42bd442017-07-18Henrik Grubbström (Grubba)  - Added support for more fine-grained tracing of monitors.
2fefeb2017-07-17Henrik Grubbström (Grubba) o Inotify
6983832017-06-27Stephen R. van den Berg 
2fefeb2017-07-17Henrik Grubbström (Grubba)  Addressed an issue where the backend might be stuck in pending indefinitely.
6983832017-06-27Stephen R. van den Berg 
2fefeb2017-07-17Henrik Grubbström (Grubba) o mappings
b86b502017-07-08William Welliver 
2fefeb2017-07-17Henrik Grubbström (Grubba)  Fixed an off by one error in random(mapping) that randomly caused values of type PIKE_T_FREE from the freelist to be exposed to Pike.
b86b502017-07-08William Welliver 
2fefeb2017-07-17Henrik Grubbström (Grubba) o Nettle.Hash
2d30252017-06-28Stephen R. van den Berg 
2fefeb2017-07-17Henrik Grubbström (Grubba)  Fixed NULL-dereference in Nettle.Hash()->crypt_hash().
2d30252017-06-28Stephen R. van den Berg 
2fefeb2017-07-17Henrik Grubbström (Grubba) o Parser.HTML
2d30252017-06-28Stephen R. van den Berg 
2fefeb2017-07-17Henrik Grubbström (Grubba)  Fixed a condition where Pike would run out of stack space for large documents.
2d30252017-06-28Stephen R. van den Berg 
2fefeb2017-07-17Henrik Grubbström (Grubba) o Search
2d30252017-06-28Stephen R. van den Berg 
2fefeb2017-07-17Henrik Grubbström (Grubba)  Fixed a race condition when updating the database.
2d30252017-06-28Stephen R. van den Berg 
2fefeb2017-07-17Henrik Grubbström (Grubba) o Sql.pgsql
2d30252017-06-28Stephen R. van den Berg 
2fefeb2017-07-17Henrik Grubbström (Grubba)  - Sped up BEGIN/COMMIT statements.
c2875f2017-06-18Martin Nilsson 
2fefeb2017-07-17Henrik Grubbström (Grubba)  - Preserve the initial error message in case of multiple error messages during the same transaction.
c2875f2017-06-18Martin Nilsson 
2fefeb2017-07-17Henrik Grubbström (Grubba)  - Flush out unseen error messages upon connection close to stderr.
c2875f2017-06-18Martin Nilsson 
2fefeb2017-07-17Henrik Grubbström (Grubba)  - Closed a prepared-statement-cache race when the same statement is offered multiple times before it finalises the cache entry.
c2875f2017-06-18Martin Nilsson 
2fefeb2017-07-17Henrik Grubbström (Grubba)  - Fix sync errors with the database in case of multiple running statements on a single connection that generate multiple errors.
c2875f2017-06-18Martin Nilsson 
2fefeb2017-07-17Henrik Grubbström (Grubba)  - Eliminate spurious sync errors on pipe-lined transactions (multiple transactions in flight on a single file descriptor).
c2875f2017-06-18Martin Nilsson 
2fefeb2017-07-17Henrik Grubbström (Grubba)  - CancelRequests (to cancel running queries) caused sync errors with the database when multiple queries were in flight.
c2875f2017-06-18Martin Nilsson 
2fefeb2017-07-17Henrik Grubbström (Grubba)  - Eliminate transient error messages on database restarts.
c2875f2017-06-18Martin Nilsson 
2fefeb2017-07-17Henrik Grubbström (Grubba) o Sql.SQLite
a678bb2017-06-19Henrik Grubbström (Grubba) 
2fefeb2017-07-17Henrik Grubbström (Grubba)  When using query bindings, strings are now always stored as strings; previously, 8-bit strings were stored as binary objects (BLOBs) and wide strings were stored as unicode strings, which caused 8-bit strings to be unequal (and thus not returned) when used in a standard string query.
c2875f2017-06-18Martin Nilsson 
2fefeb2017-07-17Henrik Grubbström (Grubba)  Binary values may be stored as BLOBs using bindings by wrapping the binary string in a multiset. For example, to store the value "myBinary" as a BLOB value using a binding, use: (<"myBinary">).
c2875f2017-06-18Martin Nilsson  o Standards.BSON
2fefeb2017-07-17Henrik Grubbström (Grubba)  - Fixed incorrect encoding/decoding of Binary data. - Bugfixes for the decoding of Binary values of subtype 2, Binary values of subtypes above 0x7f and Datetime values with negative values. o Standards.JSON Fixed integer overflow in decode() on 64-bit platforms.
c2875f2017-06-18Martin Nilsson  o Stdio.Buffer
2fefeb2017-07-17Henrik Grubbström (Grubba)  - Fixed a crash when attempting to create a rewind key on a buffer returned by read_buffer().
c2875f2017-06-18Martin Nilsson 
2fefeb2017-07-17Henrik Grubbström (Grubba)  - Fixed integer overflow in read_json().
c2875f2017-06-18Martin Nilsson 
2fefeb2017-07-17Henrik Grubbström (Grubba) Building --------
c2875f2017-06-18Martin Nilsson 
2fefeb2017-07-17Henrik Grubbström (Grubba) o Configure
6983832017-06-27Stephen R. van den Berg 
2fefeb2017-07-17Henrik Grubbström (Grubba)  Attempt to detect the tool prefix depending on ABI.
c2875f2017-06-18Martin Nilsson 
2fefeb2017-07-17Henrik Grubbström (Grubba)  Improves detection of pkg-config. o Java Detect system installation of JavaVM framework on MacOS X. o Stdio
93d0f12017-07-17Martin Nilsson 
2fefeb2017-07-17Henrik Grubbström (Grubba)  Improved support for NetBSD.
93d0f12017-07-17Martin Nilsson 
163bd32017-03-07Peter Bortas Changes since Pike 8.0.404 (release 8) ----------------------------------------------------------------------
8d8ac22017-03-07Henrik Grubbström (Grubba) New Features ------------ o Calendar Updated Calendar to use timezonedata from tzdata2017a.
3ce2372017-06-06Henrik Grubbström (Grubba) o GL & GLUT Prefer Quartz implementation on systems that have it (OS X). o GTK2 - Add -x objective-c for Darwin. - Support linking against other implementations than X11.
8d8ac22017-03-07Henrik Grubbström (Grubba) o Protocols.HTTP
07c4292017-03-07Peter Bortas  Connecting to HTTP proxies over HTTPS is now supported.
8d8ac22017-03-07Henrik Grubbström (Grubba) 
144fc62017-03-20Henrik Grubbström (Grubba) o Web.decode_jwk() Support decoding of symmetric (ie HMAC) keys.
067e842017-03-22Henrik Grubbström (Grubba) o Web.encode_jws() and Web.decode_jws() Added simplified API for dealing with JSON Web Signature values.
8d8ac22017-03-07Henrik Grubbström (Grubba) Bug fixes ---------
8b7d4d2017-06-06Henrik Grubbström (Grubba) o Runtime - Variant dispatcher Improved string range checking. Fixes mismatches due to te lazy string range (ed string(8bit)) exceeding the typed string range (eg string(7bit)) for narrow strings.
2e121b2017-06-06Henrik Grubbström (Grubba) o mkpackage Support multiple sub-packages with the same name. Gnu-tar doesn't like being asked to extract the same file multiple times from the same tar-file. It claims that the second file doesn't exist in the archive. This can happen when a sub-package has been replaced with a fixed version.
9b05ef2017-06-06Henrik Grubbström (Grubba) o smartlink Don't override MACOS_DEPLOYMENT_TARGET if it's been specified. This should prevent "compiled against version x but linking against version y" warnings.
8d8ac22017-03-07Henrik Grubbström (Grubba) o Arg & ADT.Struct Survive use by old (ie 8.0.232) pike binaries. Roxen 6.0.130 uses a Pike 8.0.232 binary with current modules.
163bd32017-03-07Peter Bortas 
451ded2017-06-06Henrik Grubbström (Grubba) o Backend.PollDeviceBackend Make set_signal_event_callback() optional. This fixes the warning "An expression of type function({ Backend = object(implements _static_modules.Builtin()->defaultBackendClass) } : void) cannot be assigned to a variable of type function({ Backend = object(implements _static_modules.Builtin()->Backend) } : void).". o bool Make sure that 0 is part of the range for the bool type.
368fc92017-06-06Henrik Grubbström (Grubba) o Charset Fixed encoding errors for two characters in the GSM-03.38 charset. o Debug Fixed typo in mask in check_callback_chain(). Fixes infinite loop in circularity detection.
2fed592017-06-06Henrik Grubbström (Grubba) o Gdbm Support building with gdbc 1.13. Fixes obscure compilation error when building with gdbm 1.13 due to a symbol clash with the symbol "fatal" used as an argument in the macro definition of gdbm_set_errno(). o Mapping Removed extraneous and conflicting prototype. Fixes linking issues on NT.
07c4292017-03-07Peter Bortas o Protocols.HTTP
e220972017-03-07Peter Bortas  - Fixed do_async_proxied_method() losing the timeout during TLS negotiation.
558ca12017-03-07Martin Nilsson  - Now fails immediately if Query is unable to open a socket, instead of waiting 120 seconds for a time out.
07c4292017-03-07Peter Bortas 
368fc92017-06-06Henrik Grubbström (Grubba)  - Allow connection reuse also when the server is a hostname.
10d75a2017-04-26Henrik Grubbström (Grubba) o Thread.Mutex
83a8fd2017-06-03Stephen R. van den Berg  - Perform a thread yield on mutex onlock in an attempt to reduce
10d75a2017-04-26Henrik Grubbström (Grubba)  thread starvation.
83a8fd2017-06-03Stephen R. van den Berg o Sql.pgsql - Added an extra synchronisation condition, and increased parallelisation to resolve all detected race conditions (which in rare circumstances (many parallel queries on a single filedescriptor) could have resulted in a deadlock).
163bd32017-03-07Peter Bortas 
908e572017-01-02Peter Bortas Changes since Pike 8.0.388 (release 7) ----------------------------------------------------------------------
24ccbd2017-02-02Henrik Grubbström (Grubba) New Features ------------ o Mysql.SqlTable sizeof() on an SqlTable now returns the number of rows in the table. o Web - Updated {en,de}code_jwt() to support HMAC signatures. - Added decode_jwk{,_set}(), which decode RFC 7515-style JOSE keys.
c27d282017-01-02Henrik Grubbström (Grubba) Runtime ------- o Stdio.Buffer & String.Buffer Allocated constant program identifiers for both of the above.
c5f1f22017-01-24Peter Bortas Bug fixes ---------
8001e82017-02-02Henrik Grubbström (Grubba) o Protocols.DNS
c5f1f22017-01-24Peter Bortas 
7e748b2017-02-07Peter Bortas  The size and precision fields of T_LOC records are now properly
c5f1f22017-01-24Peter Bortas  decoded.
8001e82017-02-02Henrik Grubbström (Grubba) o System.TM
34f56f2017-02-02Martin Nilsson  When a System.TM object was created without any arguments some operations would crash on Windows, and possibly other platforms.
c27d282017-01-02Henrik Grubbström (Grubba) Building --------
24ccbd2017-02-02Henrik Grubbström (Grubba) o Configure
7e748b2017-02-07Peter Bortas  Fixed issues with the LDSHARED test on some BSD-derivatives.
86f10e2017-11-06Henrik Grubbström (Grubba) 
f35dae2017-07-11Bill Welliver  Detect systems that provide bswap16,32,64 in their libc.
24ccbd2017-02-02Henrik Grubbström (Grubba) 
c27d282017-01-02Henrik Grubbström (Grubba) o Stdio Fixed compilation issue on platforms without readdir_r().
908e572017-01-02Peter Bortas 
c9dfab2016-12-12Henrik Grubbström (Grubba) Changes since Pike 8.0.370 (release 6) ----------------------------------------------------------------------
1ff83d2016-12-20Jonas Walldén New features ------------ o Thread
6efd352018-04-04Jonas Walldén  - _sprintf() improvements: Thread.Mutex now prints the ID of the thread holding the lock, and thread IDs are shown as hexadecimal numbers. - Thread.Farm now supports a callback for thread creation and termination for the purpose of tracking thread names.
1ff83d2016-12-20Jonas Walldén 
ef44a92016-12-12Peter Bortas Bug fixes ---------
83d5f02016-12-21Martin Nilsson o String character range
dc37942016-12-27Martin Nilsson  Fixed a bug where a string could incorrectly have its character
83d5f02016-12-21Martin Nilsson  range start point set to 0 when added with an empty string. This in turn would incorrectly block the string from being used by functions that require strings without null characters as argument or incorrectly take optimization paths.
ef44a92016-12-12Peter Bortas o VCDiff Fixed type of decode_chunk(). o Parser.XML
bffd8e2016-12-27Henrik Grubbström (Grubba)  UTF-8 encoded documents with initial BOM were not decoded correctly.
ef44a92016-12-12Peter Bortas  Serializing Parser.XML.Tree objects will now entity escape
6bc1272016-12-26Peter Bortas  characters that can not be encoded in the selected output charset.
ef44a92016-12-12Peter Bortas 
abc5392016-11-21Henrik Grubbström (Grubba) Changes since Pike 8.0.358 (release 5) ----------------------------------------------------------------------
ad9b4e2016-11-26Henrik Grubbström (Grubba) New features ------------ o Calendar Updated Calendar to use timezonedata from tzdata2016j.
1354672016-12-05Henrik Grubbström (Grubba) o Nettle Added version(). o Refdoc Updated to new Pike site layout.
6647662016-11-26Arne Goedeke Bug fixes --------- o JSON Fixed a bug in the unicode handling of Standards.JSON.decode(), which treated codepoints slightly below the surrogate range as invalid.
bea6082016-11-30Bill Welliver o pike -x pmar_install Works again and properly verifies PMAR checksums.
abc5392016-11-21Henrik Grubbström (Grubba) 
1354672016-12-05Henrik Grubbström (Grubba) o ::_indices(), ::_values(), ::_types(), ::`->(), ::`->=() Fixed several argument checking bugs in the magic_* functions. o Fixed some bugs in the pmar installer.
1edd922016-12-05Henrik Grubbström (Grubba) o Msql Fixed some compilation issues.
fbabd42016-12-07Stephen R. van den Berg o Sql.pgsql Fixed broken reconnect behaviour when the database connection dies.
1354672016-12-05Henrik Grubbström (Grubba) Runtime ------- o Added workaround for incompatibility in MS Windows 10's Linux emulation layer.
2bf3e12016-08-02Martin Nilsson Changes since Pike 8.0.276 (release 4) ----------------------------------------------------------------------
94fa212016-09-07Henrik Grubbström (Grubba) New features ------------
a4403e2016-09-08Peter Bortas o Calendar
2bf3e12016-08-02Martin Nilsson 
ce9cc42016-11-05Peter Bortas  Updated Calendar to use timezonedata from tzdata2016i.
2bf3e12016-08-02Martin Nilsson 
94fa212016-09-07Henrik Grubbström (Grubba) o Crypto.ECC Zero-pad short signature integers.
24d20a2016-09-10Martin Nilsson o Protocols.HTTP.Server.HeaderParser
94fa212016-09-07Henrik Grubbström (Grubba) 
a4403e2016-09-08Peter Bortas  It is now possible to enable non-normalization on the entire object, and not just on a per call basis. It is also possible to disable support for folded headers, as per IETFs latest specification.
94fa212016-09-07Henrik Grubbström (Grubba) 
55fdfa2016-11-01Henrik Grubbström (Grubba) o CompilerEnvironment()->lock() This is a class that exposes the compiler internal lock. o Gz.deflate()->clone() This allows for testing compression. o gdb_backtraces() gdb_backtraces() is now available even --without-debug. o ADT.Heap()->low_pop() This function is analogous to low_peek().
8b2a112016-11-05Arne Goedeke o Protocols.WebSocket Parse query variables in WebSocket Requests.
94fa212016-09-07Henrik Grubbström (Grubba) Bug fixes --------- o cpp Fixed stringify operator on strings containing escaped double quotes. o mkpackage Support $EXTRA_PLATFORM_TEST. o Threads.Condition Fixed double free at cleanup on exit. o Fixed multiple issues with cleanup on exit. o Whitefish Fixed wrong signedness.
a4403e2016-09-08Peter Bortas o Standards.EXIF Improved robustness of the EXIF parser.
55fdfa2016-11-01Henrik Grubbström (Grubba) o Protocols.HTTP.Session Ignore malformed expiry dates in cookies.
6e9d852016-09-08Arne Goedeke o Protocols.WebSocket Fixed handling of truncated frames.
55fdfa2016-11-01Henrik Grubbström (Grubba) o _Roxen Backported multiple fixes from Pike 8.1. o Compiler Fixed broken range optimization.
331d192016-11-05Peter Bortas  Removed optimization that considered the hostname() constant.
55fdfa2016-11-01Henrik Grubbström (Grubba)  Don't reference count direct cyclic references via mixed variables. o MasterObject Protect against the same file being compiled concurrently in multiple threads. Cast to program and cast to object should now be thread-safe. Survive RESOLV_DEBUG being enabled. o Stdio.FakeFile Improved sendfile compatibility. o Process.create_process Improved behavior under high signal pressure. o Sql.pgsql Improved robustness against stray destructs and exceptions. o Standards.BSON Fixed circular dependency. o Mappings Multiple optimizations in m_delete() and friends. Added flag MAPPING_FLAG_NO_SHRINK.
2cd8d82016-10-19Martin Nilsson Building -------- o Nettle Since there are distributions that have removed nettle_secp_192r1 and nettlesecp_224r1 from the nettle library, these curved are now disabled by default. Enable them by compiling with --with-weak-curves.
6dcf162016-05-15Peter Bortas Changes since Pike 8.0.240 (release 3) ---------------------------------------------------------------------- New features ------------
24d20a2016-09-10Martin Nilsson o Protocols.HTTP.Server.HeaderParser
9c8f4f2016-06-03Henrik Grubbström (Grubba)  feed() can now be forced not to normalize (ie lower_case) the header names. o Protocols.WebSocket Added client mode.
6dcf162016-05-15Peter Bortas Bug fixes ---------
9c8f4f2016-06-03Henrik Grubbström (Grubba) o Documentation Fixed some AutoDoc markup typos. o Fixed assertion failure in multiset handling. Indexing of non-empty multisets containing no objects or functions, with an object implementing lfun::`<() et al could cause assertion failures. o Filesystem.Monitor Fixed potential recursive mutex locks on destroy().
6dcf162016-05-15Peter Bortas 
62f3722016-04-01Henrik Grubbström (Grubba) Changes since Pike 8.0.182 (release 2) ---------------------------------------------------------------------- New features ------------ o Roxen.http_decode_string() now decodes UTF-16 surrogate pairs. o Protocols.HTTP.Query now always sends a content-length header. o Report feature flags for System.FSEvents and System.Inotify.
e1b3a12016-05-06Peter Bortas o Updated Calendar to use timezonedata from tzdata2016c o Added module Apple.Keychain that can extract certificates. o Made Standards.X509 aware of more OS specific ways of retriving certificates.
4834542016-05-06Henrik Grubbström (Grubba) o JOSE (JSON Object Signing and Encryption) Some low-level API support has been added to the Crypto and Web modules to support parts of RFC 7515 - 7520.
62f3722016-04-01Henrik Grubbström (Grubba)  Bug fixes ---------
6ddc482016-04-05Henrik Grubbström (Grubba) o The machine code generator on ia32 now aligns the stack on a 16 byte boundary. This makes it possible to call code that uses SSE2 instructions.
62f3722016-04-01Henrik Grubbström (Grubba) o Exceptions thrown in GTK signal handlers no longer cause segfaults.
9597b62016-05-06Martin Nilsson o The SSL client code now interprets the RFCs more leniently to address some interoperability issues. o Fixed bugs in cipher selection that prevented null-ciphers from being negotiated by the SSL server (if allowed by the Context object).
62f3722016-04-01Henrik Grubbström (Grubba) 
9fb1412016-04-05Peter Bortas o Multiple fixes for the handling of accelerated
62f3722016-04-01Henrik Grubbström (Grubba)  Filesystem.Monitor monitors, which could sometimes lose notifications. o Improved handling of response content-length in Protocols.HTTP.Query. o Fixed case where unfinished programs could lose their parents. o Fixed "Invalid service"-error from connect() on Fedora Core 4.
6ddc482016-04-05Henrik Grubbström (Grubba) o Fixed next_result() in Sql.sql_array_result.
8bc5962016-04-05Martin Nilsson o Fixed sizeof() in Array.Iterator, Multiset.Iterator and String.Iterator.
62f3722016-04-01Henrik Grubbström (Grubba) 
e1b3a12016-05-06Peter Bortas Testing ------- o Reduced the memory requirements of Tools.Shoot (pike -x benchmark)
62f3722016-04-01Henrik Grubbström (Grubba) Building and installing ----------------------- o Multiple fixes for building on Solaris. o Improved scanning for Odbc header files. o Fixed some issues with --with-abi flags not propagating correctly to the modules. Changes since Pike 8.0.164 (release 1)
0167002016-02-10Martin Nilsson ----------------------------------------------------------------------
0d4d9a2016-02-29Henrik Grubbström (Grubba) New features ------------ o gc It is now possible to run the gc in a quick mode to just cut weak references from a specific container.
294cda2016-02-28Stephen R. van den Berg Bug fixes ---------
9bd3e02016-02-28Henrik Grubbström (Grubba) o ADT.Heap The Element class lost track of its position when remove() was used. o Filesystem.Monitor * Improved thread safety and robustness * Inotify-related fixes.
294cda2016-02-28Stephen R. van den Berg o pgsql The new driver in 8.0 suffered from filedescriptor leaks if the database connections were not explicitly close()d. Fixes have been applied which eliminate the filedescriptor leak and also ensure that the filedescriptors are closed the instant the object loses all references.
9bd3e02016-02-28Henrik Grubbström (Grubba) o programs The runtime now attempts to wait for any compilations in progress to complete before complaining about cloning of unfinished programs. This fixes a race-condition when the same program is compiled from different threads. o Runtime Fixed multiple potential NULL-dereferences. o SSL.File Fixed breaking of circular references when the peer terminates the connection. o Standards.URI Support the userinfo field containing '@'. o Stdio.File The second argument to set_buffer() should now work. o Testsuite Updated the SHA3_* testvectors to FIPS 202.
b13e442016-02-10Henrik Grubbström (Grubba) Building and installing ----------------------- o Multiple fixes for building on Solaris 11.
0167002016-02-10Martin Nilsson 
e3b7732014-11-03Martin Nilsson Pike 8: Changes since Pike 7.8
2ac4992011-03-09Martin Stjernholm ----------------------------------------------------------------------
3521322013-11-02Per Hedbor New language features ---------------------
0d74632013-11-02Per Hedbor 
9bd3e02016-02-28Henrik Grubbström (Grubba) o The compiler now only blocks other threads attempting to use the compiler instead of disabling all other threads.
3521322013-11-02Per Hedbor o Added a way to access the local, and not the overloaded, implementation of a symbol.
10234d2013-11-08Henrik Grubbström (Grubba)  As an example, given the classes: | class Test | { | int a( ) { return 1; } | int b( ) { return local::a(); } // New | int c( ) { return a(); } | } | | class Test2 | {
0167002016-02-10Martin Nilsson  | inherit Test;
10234d2013-11-08Henrik Grubbström (Grubba)  | int a() { return 42; } | } Both Test()->b() and Test2()->b() will return 1, but Test2()->a() and Test2()->c() will return 42.
3521322013-11-02Per Hedbor 
0492422013-11-03Per Hedbor o Added new syntax that can be used to return the current object as if it was a class it is inheriting The syntax is X::this, where X is the inherited class. The returned object will not include any symbols not available in the class X, but your overloaded methods (and other identifiers) will be the ones returned when the object is indexed.
3521322013-11-02Per Hedbor o Added a way to easily inherit the implementation of a subclass in an inheriting class. | inherit ::this_program
464ea92014-10-20Martin Nilsson  The syntax refers to the previous definition of the current class in the inherited class, and is typically used with inherit like:
3521322013-11-02Per Hedbor  | inherit Foo; | | // Override the Bar inherited from Foo. | class Bar {
10234d2013-11-08Henrik Grubbström (Grubba)  | // The new Bar is based on the implementation of Bar in Foo.
3521322013-11-02Per Hedbor  | inherit ::this_program; | // ... | }
10234d2013-11-08Henrik Grubbström (Grubba) o Added new syntax for referring to and naming inherits. | inherit "foo.pike"; | inherit "foo/bar/baz.pike" : "foo/bar"; | // ... | "foo.pike"::foo(); | "foo/bar"::baz();
c336e02014-10-03Per Hedbor o Look up of named inherits now also looks in indirect inherits.
10234d2013-11-08Henrik Grubbström (Grubba)  | class A { int fun() {} } | class B { inherit A; } | class C { | inherit B; | // ... | // The function fun may here be referred to as any of: | B::A::fun(); | B::fun(); | A::fun(); // New.
cb784a2013-11-02Per Hedbor o Implemented the variant keyword.
dbcab02013-11-03Per Hedbor  The keyword was present before, but did not actually do anything
cb784a2013-11-02Per Hedbor  useful.
3521322013-11-02Per Hedbor  This is used to do function overloading based on the argument types. As an example:
54fe982013-11-01Per Hedbor  | class Test1 { int b(); } | class Test2 { int a(); } | | class Foo | { | variant string foo( object q ){ return "Genericfoo"; } | variant string foo( Test1 x ) { return "Test 1"; } | variant string foo( Test2 x ) { return "Test 2"; } | | variant string bar( int(0..0) s ) { return "0"; } | variant float bar( int(1..1) s ) { return 1.0; } | variant int bar( int(2..2) s ) { return 2; } | }
10234d2013-11-08Henrik Grubbström (Grubba)  A common use-case is functions that return different types depending on the arguments, such as getenv:
54fe982013-11-01Per Hedbor 
10234d2013-11-08Henrik Grubbström (Grubba)  | string|mapping(string:string) getenv( string|void variable );
0492422013-11-03Per Hedbor 
10234d2013-11-08Henrik Grubbström (Grubba)  can now be rewritten as
3521322013-11-02Per Hedbor 
10234d2013-11-08Henrik Grubbström (Grubba)  | variant string getenv( string variable ); | variant mapping(string:string) getenv( );
3521322013-11-02Per Hedbor 
10234d2013-11-08Henrik Grubbström (Grubba)  which gives significantly better type-checking.
3521322013-11-02Per Hedbor 
dbcab02013-11-03Per Hedbor o The type-checker has been rewritten.
3521322013-11-02Per Hedbor  Mainly it is now much better at finding type errors, and most error messages are more readable.
54fe982013-11-01Per Hedbor 
0492422013-11-03Per Hedbor o Allow '.' to be used as an index operator in the few places it did
54fe982013-11-01Per Hedbor  not work before.
0d74632013-11-02Per Hedbor o "Safe" index
0492422013-11-03Per Hedbor 
75d6562013-11-15Henrik Grubbström (Grubba)  Copied from a popular extension to other C-like languages.
54fe982013-11-01Per Hedbor 
75d6562013-11-15Henrik Grubbström (Grubba)  X[?ind] is equivalent to ((auto _ = X),(_ && _[ind])) while X?->ind is equivalent to ((auto _ = X),(_ && _->ind))
0492422013-11-03Per Hedbor 
75d6562013-11-15Henrik Grubbström (Grubba)  The main use is 'deep indexing' where some elements can be 0:
54fe982013-11-01Per Hedbor 
75d6562013-11-15Henrik Grubbström (Grubba)  | request_id?->user?->misc?->x
0492422013-11-03Per Hedbor 
75d6562013-11-15Henrik Grubbström (Grubba)  vs | request_id && request_id->user && request_id->user->misc | && request_id->user->misc->x
54fe982013-11-01Per Hedbor 
0e166f2013-11-02Martin Nilsson o Added the '?:' operator for compatibility with other C-like
e3b7732014-11-03Martin Nilsson  languages. It is identical to '||' in Pike.
0d74632013-11-02Per Hedbor  o The && operator changed, when doing A && B, and A is false, keep A
cb784a2013-11-02Per Hedbor  instead of returning 0.
0492422013-11-03Per Hedbor 
0d74632013-11-02Per Hedbor  This is especially useful then A is not actually 0, but an object that evaluates to false, or UNDEFINED.
f8adc02013-11-16Henrik Grubbström (Grubba) o Fixed symbol resolution with deep inherits and mixins.
c391462014-05-06Per Hedbor o Added multi-character character constants. 'ILBM' is equivalent to (('I'<<24)|('L'<<16)|('B'<<8)|'M'). Unlike how it works in some C compilers the native byte order is never relevant.
9e8a542014-10-02Per Hedbor o Added new syntax for literal-string constants
f5b27e2014-07-21Per Hedbor  #{, #( and #[ starts a literal string, and it is ended by the corresponding end marker: #}, #) and #] respectively. No character is modified at all inside the literal string, including newlines, \ " and '. So, the string #["\n\'##] will be equivalent to "\"\\n\\'#".
9e8a542014-10-02Per Hedbor  The main use-case is to write code in code:
f5b27e2014-07-21Per Hedbor  | string code = #[ | void main(int c, array v) { | string x = ""; | foreach( v[1..], string elm ) | x += reverse(elm)+","; | write("Testing: %s\n", reverse( x )); | #]; The three different start/end markers might be useful if you write code in code in code, since there is no way to quote the start/end markers.
75d6562013-11-15Henrik Grubbström (Grubba) 
57ba3a2016-01-01Chris Angelico o Added a shorthand syntax for integer ranges: xbit, where x is a
ec0bce2014-07-21Per Hedbor  number between 1 and 31. This can be used as an example to indicate that a string is 8 bits wide only: string(8bit) This is equivalent to the range (0..255) but can be easier to parse.
464ea92014-10-20Martin Nilsson  Similarly int(1bit) is an alias for 'bool', and int(12bit) is the same as int(0..4095).
ec0bce2014-07-21Per Hedbor 
9e8a542014-10-02Per Hedbor o 'this::x' is now equivalent to 'this_program::x' -- access the identifier x in the current object.
0721aa2014-10-01Per Hedbor 
0d4d9a2016-02-29Henrik Grubbström (Grubba) o Weak references to stuff with a single reference are now removed when the container is resized. This means that weak references can be cut without having to wait for the full gc to run.
0721aa2014-10-01Per Hedbor 
0492422013-11-03Per Hedbor New preprocessor features -------------------------
0d74632013-11-02Per Hedbor 
0492422013-11-03Per Hedbor o Support for the ", ##__VA_ARGS__" cpp feature.
3521322013-11-02Per Hedbor 
464ea92014-10-20Martin Nilsson  This makes the ‘##’ token paste operator have a special meaning when placed between a comma and a variable argument. If you write
75d6562013-11-15Henrik Grubbström (Grubba)  | #define err(format, ...) f(debug)werror("ERROR: "+format, ##__VA_ARGS__)
0492422013-11-03Per Hedbor 
75d6562013-11-15Henrik Grubbström (Grubba)  and the variable argument is left out when the err macro is used,
464ea92014-10-20Martin Nilsson  then the comma before the ‘##’ will be deleted. This does not happen if you pass an empty argument, nor does it happen if the token preceding ‘##’ is anything other than a comma.
3521322013-11-02Per Hedbor 
464ea92014-10-20Martin Nilsson o The define __COUNTER__ has been added. It is a unique integer value, the first time the macro is expanded it will be 1, the next time 2 etc.
ce261a2014-08-26Per Hedbor 
0492422013-11-03Per Hedbor o The preprocessor can now be run with a cpp prefix feature.
75d6562013-11-15Henrik Grubbström (Grubba) 
c336e02014-10-03Per Hedbor  This is currently used by the precompiler to run two levels of
75d6562013-11-15Henrik Grubbström (Grubba)  preprocessing, one using "#cmod_" as the prefix and the other "#".
3521322013-11-02Per Hedbor 
0d74632013-11-02Per Hedbor o Dynamic macros
75d6562013-11-15Henrik Grubbström (Grubba) 
9e8a542014-10-02Per Hedbor  You can now add programmatic macros. There is currently no syntax
75d6562013-11-15Henrik Grubbström (Grubba)  that can be used to define these while compiling code, but you can add them from one program before compiling plug-ins/modules. The main use is macros like DEBUG(...) and IFDEBUG() that would expand to something if a debug setting is enabled in the module but
464ea92014-10-20Martin Nilsson  nothing otherwise, or, to take an actual example from the Opera Mini source code:
75d6562013-11-15Henrik Grubbström (Grubba)  | add_predefine( "METRIC()", | lambda( string name, string ... code ) | { | string type = type_of( code ); | string aggregate = aggregate_of( code ); | string format = format_of( code ); | code -= ({ 0 }); | return replace( base_metric_class, | (["ID":(string)next_metric_id++, | "NAME":stringify(name), | "TYPE":type, | "AGGREGATE":aggregate, | "FORMAT":format, | "CODE":make_value_function(code), | ])); | });
c336e02014-10-03Per Hedbor  That is, a macro that needs to do some calculations, and rewrite the code more than is possible in normal macros.
75d6562013-11-15Henrik Grubbström (Grubba)  This one expands something along the lines of | METRIC("requests", Summarize, PerSecond, | floating_average_diff(requests)); into | class Metric_requests_01 | { | inherit Server.Metric; | constant name = "transcoder:requests"; | constant type = Float; | constant format = PerSecond; | constant aggregate = Summarize; | | float value() { | return floating_average_diff(requests); | } | }
54fe982013-11-01Per Hedbor 
5eb2d62014-02-17Martin Nilsson o Dependency declarations It is now possible to use the CPP directive #require to specify a condition that must be true for the file to be seen by the resolver. This would typically be the inherited C part of a module or a system call. | #require constant(__WebKit) | inherit __WebKit;
56d0052013-11-02Martin Nilsson 
0e166f2013-11-02Martin Nilsson Optimizations
56d0052013-11-02Martin Nilsson -------------
54fe982013-11-01Per Hedbor  o New significantly faster block allocator
75d6562013-11-15Henrik Grubbström (Grubba) 
0727862013-11-02Martin Nilsson  The free in the old one was O(n^2), which means that as an example
0d74632013-11-02Per Hedbor  creating a lot of objects and then free:ing them mainly used CPU in the block allocator. This fix changed the ordo of one of the tests that did that very
0727862013-11-02Martin Nilsson  thing (binarytrees) from O(n^2) to O(n), and as such is more than a
cb784a2013-11-02Per Hedbor  simple percentual speedup in some cases, but it always improves the performance some since the base speed is also faster.
0d74632013-11-02Per Hedbor 
54fe982013-11-01Per Hedbor o Power-of-two hashtables are now used for most hashtables
0d74632013-11-02Per Hedbor  This speeds up mappings and other hashtables a few percent, and also simplifies the code. o Significantly changed x86-32 and an entirely new AMD64/x86-64
dbcab02013-11-03Per Hedbor  machine-code compilation backend
0492422013-11-03Per Hedbor 
75d6562013-11-15Henrik Grubbström (Grubba)  The main feature with the x86-32 edition is that it is now using normal function call mechanics, which means that it now works with modern GCC:s.
0d74632013-11-02Per Hedbor 
75d6562013-11-15Henrik Grubbström (Grubba)  The x86-64 backends has been rewritten so that it is easier to add
e3b7732014-11-03Martin Nilsson  new instructions (x86-64) and opcodes (Pike) to it, and it is
22755e2014-08-16Per Hedbor  significantly more complete than the x86-32 one.
0d74632013-11-02Per Hedbor  o Svalue type renumbering
75d6562013-11-15Henrik Grubbström (Grubba)  PIKE_T_INT is now type #0, which makes certain things significantly faster.
0d74632013-11-02Per Hedbor 
75d6562013-11-15Henrik Grubbström (Grubba)  As an example, clearing of object variables is now done automatically when the object is created since all object memory is set to 0.
0d74632013-11-02Per Hedbor 
75d6562013-11-15Henrik Grubbström (Grubba)  The same thing happens when clearing values on the stack.
0d74632013-11-02Per Hedbor 
ec0bce2014-07-21Per Hedbor o Svalue type/subtype setting changed This halves the number of instructions used to push a value on the stack in most cases. The speedup is not large, but noticeable. o And on a related note, we now lie to the compiler about the const:ness of the Pike_interpreter_pointer variable. This significantly simplifies the code generated by the C-compiler for stack manipulation functions, the stack pointer is now only loaded once per code block, instead of once per stack operation. This saves a lot of code when using the stack multiple times in a function, and should be safe enough, albeit somewhat unconventional. If nothing else the binary size shrunk by about 5%.
54fe982013-11-01Per Hedbor o string(x..y) (constant) types
75d6562013-11-15Henrik Grubbström (Grubba)  The strings now keep track of the min/max values in addition to two new flags: all-uppercase and all-lowercase.
0d74632013-11-02Per Hedbor 
cb784a2013-11-02Per Hedbor  | > typeof("foo"); | (1) Result: string(102..111)
c336e02014-10-03Per Hedbor  This is used to optimize certain operations, lower_case, upper_case,
464ea92014-10-20Martin Nilsson  search and string_has_null for now. It could be added to other
c336e02014-10-03Per Hedbor  places in the future as well.
cb784a2013-11-02Per Hedbor 
c336e02014-10-03Per Hedbor  A fairly common case is where you are doing lower_case or upper_case on an already lower or uppercased string. This is now significantly
75d6562013-11-15Henrik Grubbström (Grubba)  faster.
0d74632013-11-02Per Hedbor 
54fe982013-11-01Per Hedbor o Several other optimizations to execution speed has been done
75d6562013-11-15Henrik Grubbström (Grubba) 
0d74632013-11-02Per Hedbor  + object indexing (cache, generic speedups)
75d6562013-11-15Henrik Grubbström (Grubba) 
0d74632013-11-02Per Hedbor  + lower_apply, changes to apply in general
c336e02014-10-03Per Hedbor 
dbcab02013-11-03Per Hedbor  Taken together these individually small optimizations speeds up at
0e166f2013-11-02Martin Nilsson  least pike -x benchmark more than 5%.
75d6562013-11-15Henrik Grubbström (Grubba) 
dbcab02013-11-03Per Hedbor  + A lot of opcodes implemented in machine-code for x86-64
464ea92014-10-20Martin Nilsson 
0d74632013-11-02Per Hedbor  This speed up the loop benchmarks close to a factor of 3. But then again, most real code is nothing like that benchmark.
75d6562013-11-15Henrik Grubbström (Grubba) 
0d74632013-11-02Per Hedbor  + Several new opcodes added
464ea92014-10-20Martin Nilsson 
0d74632013-11-02Per Hedbor  As an example an observation was that most branch_if_zero is followed by an is_eq, is_lt or is_gt or similar. Those opcodes
cb784a2013-11-02Per Hedbor  always return 1 or 0. So, two new opcodes, quick_branch_if_zero and quick_branch_if_non_zero were added that map directly to three
0e166f2013-11-02Martin Nilsson  x86-64 opcodes, there is no need to check the types, do a real pop_stack etc.
54fe982013-11-01Per Hedbor 
ec0bce2014-07-21Per Hedbor  + Demacroified some code, resulting in smaller code-size This makes things faster, it is often better to branch to a small block of code than to have it inlined in a lot of different locations on modern architectures.
04ecc62013-11-02Per Hedbor o Faster hash-function for strings
75d6562013-11-15Henrik Grubbström (Grubba) 
c336e02014-10-03Per Hedbor  If your CPU has the crc32 instruction (modern x86 mainly) the hashing is now an order of magnitude faster, albeit the risk of attacks using known crc:s in things like http request headers (to force long hashtable chains and slow things down) is greater, but: + Also added siphash24, and use that when the string hash table becomes inefficient.
04ecc62013-11-02Per Hedbor 
b61e1b2014-07-25Henrik Grubbström (Grubba) 
240fea2013-11-02Per Hedbor Deprecated features and modules -------------------------------
0492422013-11-03Per Hedbor o Tools.PEM and Tools.X409 deprecated
75d6562013-11-15Henrik Grubbström (Grubba)  Use the corresponding modules in Standards.
240fea2013-11-02Per Hedbor 
c336e02014-10-03Per Hedbor o The built in security sandbox is now deprecated
75d6562013-11-15Henrik Grubbström (Grubba)  Unless somebody wants to take ownership of the feature and keep it up to date the security system will be removed in the next stable release.
f8adc02013-11-16Henrik Grubbström (Grubba) o The compiler now warns about switch statements where the cases
464ea92014-10-20Martin Nilsson  aren't enumerable, since these will generate random failures if the code is read from a dump.
f8adc02013-11-16Henrik Grubbström (Grubba) 
44ca4b2013-11-17Per Hedbor o strlen() now only accepts strings
22755e2014-08-16Per Hedbor o Gdbm.gdbm is now known as Gdbm.DB o Yabu.db and Yabu.table renamed to Yabu.DB and Yabu.Table o The keyword 'static' will now generate deprecation warnings.
240fea2013-11-02Per Hedbor 
cb784a2013-11-02Per Hedbor Removed features and modules ----------------------------
0d74632013-11-02Per Hedbor 
54fe982013-11-01Per Hedbor o Removed facets
75d6562013-11-15Henrik Grubbström (Grubba)  The optional (and not enabled by default) support for facet classes has been removed, since it was only partially done and not really used.
3521322013-11-02Per Hedbor 
e3b7732014-11-03Martin Nilsson o It is no longer possible to compile Pike without libgmp.
75d6562013-11-15Henrik Grubbström (Grubba)  Bignums are now a required language feature
3521322013-11-02Per Hedbor 
02f8152013-11-02Henrik Grubbström (Grubba) o The old low-level 'files' module has been renamed to _Stdio
3521322013-11-02Per Hedbor 
5304252014-11-10Stephen R. van den Berg o The old _PGsql helper module has been removed.
b6f5642015-10-14Peter Bortas o 'GTK' is now GTK2 if GTK2 support is available, earlier it defaulted to GTK1 as a preference over GTK2.
3521322013-11-02Per Hedbor  o Locale.Charset
75d6562013-11-15Henrik Grubbström (Grubba)  The charset module is now available on the top level as 'Charset'
22755e2014-08-16Per Hedbor o The ancient syntax for arrays (string * was an alias for array(string)) has now been removed completely.
e3b7732014-11-03Martin Nilsson o Compatibility for Pike versions before 7.6 is no longer available.
22755e2014-08-16Per Hedbor  o decode_value can no longer decode programs using the 'old style' program encoding. Since the format has been deprecated since feb 2003, and those programs could not be decoded anyway due to other issues it is not much of a loss.
3521322013-11-02Per Hedbor 
0e166f2013-11-02Martin Nilsson New modules -----------
3521322013-11-02Per Hedbor  o Pike.Watchdog
75d6562013-11-15Henrik Grubbström (Grubba) 
3521322013-11-02Per Hedbor  A Watchdog that ensures that the process is not hung for an extended period of time. The definition of 'hung' is: Has not used the default backend.
0492422013-11-03Per Hedbor 
3521322013-11-02Per Hedbor  To use it simply keep an instance of the watchdog around in your application:
0492422013-11-03Per Hedbor 
75d6562013-11-15Henrik Grubbström (Grubba)  | Pike.Watchdog x = Pike.Watchdog( 5 ); // max 5s blocking
0492422013-11-03Per Hedbor 
3521322013-11-02Per Hedbor  An important and useful side-effect of this class is that the process will start to respond to kill -QUIT by printing a lot of
e3b7732014-11-03Martin Nilsson  debug information to stderr, including memory usage, and if Pike is
3521322013-11-02Per Hedbor  compiled with profiling, the CPU used since the last time kill -QUIT was called.
c8ae882013-11-03Per Hedbor o Crypto.Password
75d6562013-11-15Henrik Grubbström (Grubba)  A module that can be used to verify and create passwd/ldap style password hashes. It tries to support most common password hashing schemes.
c8ae882013-11-03Per Hedbor 
3521322013-11-02Per Hedbor o Debug.Profiling
75d6562013-11-15Henrik Grubbström (Grubba)  Tools useful for collecting and format for output the profiling
e3b7732014-11-03Martin Nilsson  information generated when Pike is compiled --with-profiling.
3521322013-11-02Per Hedbor 
a4f7d92013-11-02Per Hedbor o NetUtils
75d6562013-11-15Henrik Grubbström (Grubba)  This module contains a lot of functions useful for the storage and processing of network addresses, it supports IPv4 and IPv6.
a4f7d92013-11-02Per Hedbor 
6d33552015-09-19Martin Nilsson o ADT.CritBit
75d6562013-11-15Henrik Grubbström (Grubba)  Mapping-like key-sorted data structures for string, int and float-keys (ADT.CritBit.Tree, ADT.CritBit.IntTree, ADT.CritBit.FloatTree). Implemented in C.
225dd12013-11-01Per Hedbor 
54fe982013-11-01Per Hedbor o Standards.BSON
75d6562013-11-15Henrik Grubbström (Grubba) 
5eefa52015-10-14Peter Bortas  A module for working with BSON serialized data. See
464ea92014-10-20Martin Nilsson  http://bsonspec.org/
54fe982013-11-01Per Hedbor 
225dd12013-11-01Per Hedbor o Geography.GeoIP
75d6562013-11-15Henrik Grubbström (Grubba) 
464ea92014-10-20Martin Nilsson  Does geolocation of IPv4-numbers using databases from maxmind.com or software77.net
54fe982013-11-01Per Hedbor 
7876c92013-11-01Per Hedbor o Protocols.WebSocket
75d6562013-11-15Henrik Grubbström (Grubba)  An implementation of the WebSocket (RFC 6455) standard, both server and client
225dd12013-11-01Per Hedbor  o Image.WebP
75d6562013-11-15Henrik Grubbström (Grubba)  Encoder and decoder for the WEBP image format. More information about the format can be found on https://developers.google.com/speed/webp/
225dd12013-11-01Per Hedbor 
c336e02014-10-03Per Hedbor  Requires libwebp.
54fe982013-11-01Per Hedbor o Serializer
225dd12013-11-01Per Hedbor 
464ea92014-10-20Martin Nilsson  APIs useful to simplify serialization and deserialization of objects Mainly it allows you to easily iterate over the object variables, including the private ones.
75d6562013-11-15Henrik Grubbström (Grubba)  + Serializer.Encodable
c336e02014-10-03Per Hedbor  A class that can be inherited to make an object easily serializable using encode_value.
0d74632013-11-02Per Hedbor 
c336e02014-10-03Per Hedbor o Filesystem.Monitor (and the low level System.Inotify + System.FSEvents)
0d74632013-11-02Per Hedbor 
75d6562013-11-15Henrik Grubbström (Grubba)  Basic filesystem monitoring.
0d74632013-11-02Per Hedbor 
75d6562013-11-15Henrik Grubbström (Grubba)  This module is intended to be used for incremental scanning of a filesystem. Supports FSEvents on MacOS X and Inotify on Linux to provide low overhead monitoring; other systems currently use a less efficient polling approach.
225dd12013-11-01Per Hedbor 
54fe982013-11-01Per Hedbor o Mysql.SqlTable
0492422013-11-03Per Hedbor 
75d6562013-11-15Henrik Grubbström (Grubba)  This class provides some abstractions on top of an SQL table.
c336e02014-10-03Per Hedbor  At the core it is generic and could work with any SQL database, but the current implementation is MySQL specific on some points, notably the semantics of AUTO_INCREMENT, the quoting method, knowledge about
75d6562013-11-15Henrik Grubbström (Grubba)  column types, and some conversion functions. Hence the location in the Mysql module.
0492422013-11-03Per Hedbor 
75d6562013-11-15Henrik Grubbström (Grubba)  Among other things, this class handles some convenient conversions
e3b7732014-11-03Martin Nilsson  between SQL and Pike data types
225dd12013-11-01Per Hedbor 
54fe982013-11-01Per Hedbor o Parser.CSV
75d6562013-11-15Henrik Grubbström (Grubba)  This is a parser for line oriented data that is either comma,
464ea92014-10-20Martin Nilsson  semi-colon or tab separated. It extends the functionality of the
c336e02014-10-03Per Hedbor  Parser.Tabular with some specific functionality related to a header and record oriented parsing of huge datasets.
54fe982013-11-01Per Hedbor 
225dd12013-11-01Per Hedbor o ZXID
0492422013-11-03Per Hedbor 
75d6562013-11-15Henrik Grubbström (Grubba)  ZXID is a library that implements SAML 2.0, Liberty ID-WSF 2.0
6a0a4b2015-10-14Peter Bortas  and XACML 2.0. Used for single sign-on.
75d6562013-11-15Henrik Grubbström (Grubba)  This module implements a wrapper for ZXID. The interface is similar to the C one, but using generally accepted Pike syntax.
225dd12013-11-01Per Hedbor 
0e166f2013-11-02Martin Nilsson o Git
75d6562013-11-15Henrik Grubbström (Grubba)  A module for interacting with the Git distributed version control system.
225dd12013-11-01Per Hedbor  o Val
464ea92014-10-20Martin Nilsson  This module contains special values used by various modules, e.g. a
c336e02014-10-03Per Hedbor  Val.null value used both by Sql and Standards.JSON.
75d6562013-11-15Henrik Grubbström (Grubba)  In many ways these values should be considered constant, but it is possible for a program to replace them with extended versions, provided they don't break the behavior of the base classes defined here. Since there is no good mechanism to handle such extending in
e3b7732014-11-03Martin Nilsson  several steps, Pike libraries should preferably ensure that the base
c336e02014-10-03Per Hedbor  classes defined here provide required functionality directly.
54fe982013-11-01Per Hedbor 
5c38332013-11-03Henrik Grubbström (Grubba) o __builtin
c336e02014-10-03Per Hedbor  The __builtin module is now a directory module, so that it can provide a suitable namespace for code written in Pike intended for being inherited from modules written in C (cf precompile).
5c38332013-11-03Henrik Grubbström (Grubba) 
d58eb62015-10-14Peter Bortas o Web.Auth Support for federated authentication with OAuth (Web.Auth.OAuth and Web.Auth.OAuth2). There are several ready to go modules for some big OAuth authentication service providers: + Web.Auth.Facebook + Web.Auth.Github + Web.Auth.Google + Web.Auth.Instagram + Web.Auth.Linkedin + Web.Auth.Twitter o Web.Api Modules and classes for communicating with various RESTful web api's. Currently with ready to go modules for these services: + Web.Api.Facebook + Web.Api.Github + Web.Api.Google.Analytics + Web.Api.Google.Plus + Web.Api.Instagram + Web.Api.Linkedin + Web.Api.Twitter
cbf1a42015-10-14Peter Bortas o VCDiff Glue for the open-vcdiff differential compression library. More information can be found on http://code.google.com/p/open-vcdiff/
56d0052013-11-02Martin Nilsson 
7366052015-12-31Peter Bortas Incompatible changes -------------------- o Parser.XML.Tree: Fixed handling of namespaced attributes. Attribute namespaces starting with "xml" (except for "xmlns") are now handled just like any other attribute namespaces. This means that eg the attribute "xml:lang" will be expanded to "http://www.w3.org/XML/1998/namespacelang" in the mapping returned by get_attributes(), and not kept as "xml:lang" when namespace handling is enabled.
89a3182013-11-02Martin Nilsson Extensions and new functions ----------------------------
f8adc02013-11-16Henrik Grubbström (Grubba) 
4e5e002013-11-03Per Hedbor o Bz2.File added
75d6562013-11-15Henrik Grubbström (Grubba)  It implements a Stdio.File like API, including support for the same iterator API that Stdio.File has, allowing for convenient line iterations over BZ2 compressed files. | foreach( Bz2.File("log.bz2")->line_iterator(); int n; string line )
89a3182013-11-02Martin Nilsson 
464ea92014-10-20Martin Nilsson o Both sscanf and sprintf can now handle binary floats in little endian format
ec0bce2014-07-21Per Hedbor 
464ea92014-10-20Martin Nilsson  %-8F would be a 64 bit IEEE float binary value in little endian order.
ec0bce2014-07-21Per Hedbor 
0492422013-11-03Per Hedbor o Image.JPEG
75d6562013-11-15Henrik Grubbström (Grubba) 
0492422013-11-03Per Hedbor  + decode now supports basic CMYK/YCCK support
75d6562013-11-15Henrik Grubbström (Grubba) 
464ea92014-10-20Martin Nilsson  + exif_decode is a new function that will rotate the image according to exif information
89a3182013-11-02Martin Nilsson 
ec0bce2014-07-21Per Hedbor o Image.BMP now supports some more BMP:s. + Added support for vertical mirroring (images starting at the bottom left) + Added support for 32-bit (non-alpha) BMP:s.
89a3182013-11-02Martin Nilsson o String.Buffer
75d6562013-11-15Henrik Grubbström (Grubba)  It is possible to add sprintf-formatted data to a String.Buffer object by calling the sprintf() method. This function works just as the normal sprintf(), but writes to the buffer instead.
ec0bce2014-07-21Per Hedbor o String.range(str)
464ea92014-10-20Martin Nilsson  This returns the minimum and maximum character value in the string.
ec0bce2014-07-21Per Hedbor 
464ea92014-10-20Martin Nilsson  The precision is only 8 bits, so for wide strings only character blocks are known.
ec0bce2014-07-21Per Hedbor 
3bd5e22014-07-24Henrik Grubbström (Grubba) o String.filter_non_unicode(str)
ec0bce2014-07-21Per Hedbor 
e3b7732014-11-03Martin Nilsson  This function replaces all non-unicode characters in a Pike string
3bd5e22014-07-24Henrik Grubbström (Grubba)  with 0xfffd.
ec0bce2014-07-21Per Hedbor 
cb784a2013-11-02Per Hedbor o SDL.Music added to SDL.
75d6562013-11-15Henrik Grubbström (Grubba)  Allows the playback of audio/music files. Requires the SDL_mixed library.
cb784a2013-11-02Per Hedbor 
225dd12013-11-01Per Hedbor o System.TM
75d6562013-11-15Henrik Grubbström (Grubba)  Low-level wrapper for struct tm.
464ea92014-10-20Martin Nilsson  This can be used to do (very) simple calendar operations. It is, as it stands, not 100% correct unless the local time is set to GMT, and does mirror functionality already available in gmtime() and localtime() and friends, but in a (perhaps) easier to use API.
225dd12013-11-01Per Hedbor 
cb784a2013-11-02Per Hedbor o decode_value now throws the error object Error.DecodeError.
75d6562013-11-15Henrik Grubbström (Grubba)  Useful to catch format errors in the decode string.
56d0052013-11-02Martin Nilsson 
cb784a2013-11-02Per Hedbor o Process.daemon
75d6562013-11-15Henrik Grubbström (Grubba)  The daemon() function is for programs wishing to detach themselves from the controlling terminal and run in the background as system daemons.
54fe982013-11-01Per Hedbor  o Debug.pp_object_usage()
cb784a2013-11-02Per Hedbor 
75d6562013-11-15Henrik Grubbström (Grubba)  Pretty-print debug information, useful to get debug information
e3b7732014-11-03Martin Nilsson  about object counts and memory usage in Pike applications.
75d6562013-11-15Henrik Grubbström (Grubba)  Uses the new _object_size lfun, if present in objects, to account for RAM-usage in C-objects that allocate their own memory.
54fe982013-11-01Per Hedbor 
0492422013-11-03Per Hedbor o Mysql
75d6562013-11-15Henrik Grubbström (Grubba) 
4e5e002013-11-03Per Hedbor  + Added support more modern client libraries (incl. MariaDB)
75d6562013-11-15Henrik Grubbström (Grubba) 
15feac2013-11-03Arne Goedeke  + Mysql.mysql now has methods to query the id or SQLSTATE of the last error.
3521322013-11-02Per Hedbor 
5304252014-11-10Stephen R. van den Berg o pgsql A complete rewrite of the existing driver. Changes in random order: + Eliminates an obscure and rare Pike-internals corruption bug. + Drops the _PGsql CMOD in favour of pure Pike using Stdio.Buffer. + Fully threaded, event and callback driven operation.
8d0d502014-11-20Stephen R. van den Berg  + Allows for query setup and row fetches to be spread out over an arbitrary number of threads.
5304252014-11-10Stephen R. van den Berg  + Maximum parallelism over a single filedescriptor (better than before). + New interface: fetch_row_array() and callback driven. + Less filling and faster than the existing driver.
3a6fd92013-10-08Per Hedbor o Protocols.DNS
75d6562013-11-15Henrik Grubbström (Grubba) 
3a6fd92013-10-08Per Hedbor  + Prevent endless loops in maliciously crafted domain names.
75d6562013-11-15Henrik Grubbström (Grubba) 
3a6fd92013-10-08Per Hedbor  + Add QTYPE T_ANY to DNS enum EntryType in DNS.pmod.
75d6562013-11-15Henrik Grubbström (Grubba) 
3a6fd92013-10-08Per Hedbor  + Handle truncated labels
75d6562013-11-15Henrik Grubbström (Grubba) 
3a6fd92013-10-08Per Hedbor  + TCP client and server support
3521322013-11-02Per Hedbor 
3a6fd92013-10-08Per Hedbor o Thread no longer inherits Thread.Thread (aka thread_create)
3521322013-11-02Per Hedbor 
54fe982013-11-01Per Hedbor o Thread.Farm now might work
3521322013-11-02Per Hedbor 
c336e02014-10-03Per Hedbor o Cmod precompiler: + You can now use #cmod_{define,if,ifdef,include} etc to do preprocessing using CPP before the .cmod file is processed by the precompiler.
e3b7732014-11-03Martin Nilsson  This preprocessing is done with the Pike precompiler, while the
c336e02014-10-03Per Hedbor  C-compiler preprocessor will then be used on the generated file (like before)
75d6562013-11-15Henrik Grubbström (Grubba) 
3521322013-11-02Per Hedbor  + inherit "identifier" -- inherit the program returned by calling master()->resolve() on
e3b7732014-11-03Martin Nilsson  the specified identifier. Useful to inherit code written in Pike.
3521322013-11-02Per Hedbor 
c336e02014-10-03Per Hedbor  + Object types on return and argument types are now resolved dynamically when needed.
7633f52016-01-03Henrik Grubbström (Grubba)  This means that the typing information is significantly more
464ea92014-10-20Martin Nilsson  strict.
c336e02014-10-03Per Hedbor  If you use classes that are not defined in the file (or src/program_id.h) they will be resolved when your .so-file is loaded.
7633f52016-01-03Henrik Grubbström (Grubba)  Note: Circular dependencies do not work (currently, at least).
c336e02014-10-03Per Hedbor 
7633f52016-01-03Henrik Grubbström (Grubba)  Also, the parser still often has problems with types containing
c336e02014-10-03Per Hedbor  '.'. You can use object(X.Y) instead of X.Y.
3a6fd92013-10-08Per Hedbor o String.levenshtein_distance()
2ac4992011-03-09Martin Stjernholm 
75d6562013-11-15Henrik Grubbström (Grubba)  The function calculates the Levenshtein distance between two strings. The Levenshtein distance describes the minimum number of edit operations (insert, delete or substitute a character) to get from one string to the other. This can be used in approximate string matching to find matches for a short string in many longer texts, when a small number of differences is expected.
0d74632013-11-02Per Hedbor 
cb784a2013-11-02Per Hedbor o System.sync()
75d6562013-11-15Henrik Grubbström (Grubba)  Synchronizes the filesystem on systems where this is possible (currently windows and UNIX-like systems).
0d74632013-11-02Per Hedbor 
cb784a2013-11-02Per Hedbor o System.getloadavg()
75d6562013-11-15Henrik Grubbström (Grubba) 
464ea92014-10-20Martin Nilsson  Return the current 1, 5 and 15 minute system load averages as an array.
cb784a2013-11-02Per Hedbor 
44ca4b2013-11-17Per Hedbor o access() Check if a file exist and can also return if it is readable and or writeable for the current process.
3033412013-11-03Per Hedbor o glob()
c8ae882013-11-03Per Hedbor 
75d6562013-11-15Henrik Grubbström (Grubba)  The glob function has been extended to accept an array of globs as the first (glob pattern) argument. In this case, if any of the given patterns match the function will return true, or, if the second argument is also an array, all entries that match any glob in the first array.
0492422013-11-03Per Hedbor 
c8ae882013-11-03Per Hedbor o Stdio.UDP():
75d6562013-11-15Henrik Grubbström (Grubba) 
dbcab02013-11-03Per Hedbor  + added IPv6 multicast support
75d6562013-11-15Henrik Grubbström (Grubba) 
c8ae882013-11-03Per Hedbor  + added set_buffer
2d30252017-06-28Stephen R. van den Berg o Stdio.Port():
c336e02014-10-03Per Hedbor  + Added client and server support for TCP_FASTCONNECT
1aad922014-08-26Per Hedbor  To connect using this TCP extension simply pass the data as the fifth argument to connect. The server support is automatically enabled if possible when a Stdio.Port object is bound to a port.
c336e02014-10-03Per Hedbor  + Added support for SO_REUSEPORT. In this mode multiple Stdio.Port instances can bind to the same port (mainly used with the ports being opened in different processes). This allows automatic load sharing between the processes, incoming connections will only be sent to one of them by the OS.
464ea92014-10-20Martin Nilsson  The presence of these features are indicated by constants in
c336e02014-10-03Per Hedbor  Stdio.Port: Stdio.Port.SO_REUSEPORT_SUPPORT and Stdio.Port.TCP_FASTOPEN_SUPPORT (although the same code should work regardless of the existence of TCP fast open in both server and client mode, it can be useful to know if support is available) + Added a query_fd() method o Stdio.Buffer(): This is a byte buffer (unlike String.Buffer which is a string buffer, and thus contains unicode characters and not bytes) that is optimized for both reading from it and adding data to it at the same time. The main intent of the class is buffering for binary and non-binary protocol parsing and output, and also buffering when using
c006ee2014-10-03Arne Goedeke  non-blocking I/O.
c336e02014-10-03Per Hedbor 
c8ae882013-11-03Per Hedbor o Stdio.File():
75d6562013-11-15Henrik Grubbström (Grubba) 
c8ae882013-11-03Per Hedbor  + send_fd and receive_fd
464ea92014-10-20Martin Nilsson 
75d6562013-11-15Henrik Grubbström (Grubba)  These functions can be used to send and receive an open file-descriptor over another file-descriptor. The functions are
464ea92014-10-20Martin Nilsson  only available on some systems, and they generally only work when the file the descriptors are sent over is a UNIX domain socket or a pipe.
0492422013-11-03Per Hedbor 
75d6562013-11-15Henrik Grubbström (Grubba)  + Changed internally to remove one level of indirection.
464ea92014-10-20Martin Nilsson 
c8ae882013-11-03Per Hedbor  The Stdio.File object no longer has a _Stdio.Fd_ref in _fd. They are instead directly inheriting _Stdio.FD. _fd is still available for compatibility, but internally it is gone.
c336e02014-10-03Per Hedbor  + The callbacks now get the file object as the first object if no other id has been set. + Added support for buffering via Stdio.Buffer.
464ea92014-10-20Martin Nilsson  This can be used to greatly simplify the writing of non-blocking code.
c336e02014-10-03Per Hedbor  - When read and/or write buffer is enabled the corresponding callbacks get a buffer object as the second argument
464ea92014-10-20Martin Nilsson  - The only thing the callback has to do is add data to the buffer or read from it, depending on what callback it is.
c336e02014-10-03Per Hedbor  - The write callback will now only be called when the buffer contains no more output, and data that is not read in one read callback is kept for the next time data arrives.
75d6562013-11-15Henrik Grubbström (Grubba)  + Fixed grantpt() on Solaris failing with EPERM.
c336e02014-10-03Per Hedbor 
ec0bce2014-07-21Per Hedbor o Unicode databases updated to 7.0.0 from 5.1.0
75d6562013-11-15Henrik Grubbström (Grubba)  This is the latest released Unicode database from unicode.org.
0d74632013-11-02Per Hedbor 
c8ae882013-11-03Per Hedbor o The Search search engine module has seen several fixes
75d6562013-11-15Henrik Grubbström (Grubba) 
c8ae882013-11-03Per Hedbor  + Added support for padded blobs. This improves performance when incrementally growing blobs. This feature is only enabled if Search.Process.Compactor says this is OK, see the documentation for more information. + Several locking optimizations, specifically, avoid locking and unlocking for every single iteration when merging and syncing blobs. + Charset conversion fixes + Fixes for queries where the same world occur multiple times ('foo and bar and foo')
0492422013-11-03Per Hedbor o pike -x benchmark
75d6562013-11-15Henrik Grubbström (Grubba) 
4e5e002013-11-03Per Hedbor  + Output format changed
75d6562013-11-15Henrik Grubbström (Grubba) 
4e5e002013-11-03Per Hedbor  + Also added support for JSON output.
75d6562013-11-15Henrik Grubbström (Grubba) 
4e5e002013-11-03Per Hedbor  + The results should be more consistent.
75d6562013-11-15Henrik Grubbström (Grubba) 
4e5e002013-11-03Per Hedbor  + Added options to allow comparison with a previous run.
7366052015-12-31Peter Bortas o pike -x check_http This new tool can be used to check http/https connectivity to a host.
dbcab02013-11-03Per Hedbor o New stand-alone tools added to make it possible to build
e3b7732014-11-03Martin Nilsson  documentation without the Pike build tree
75d6562013-11-15Henrik Grubbström (Grubba) 
c8ae882013-11-03Per Hedbor  + autodoc_to_html
75d6562013-11-15Henrik Grubbström (Grubba)  AutoDoc XML to HTML converter.
c8ae882013-11-03Per Hedbor  + autodoc_to_split_html
75d6562013-11-15Henrik Grubbström (Grubba)  AutoDoc XML to splitted HTML converter.
c8ae882013-11-03Per Hedbor  + git_export_autodoc
75d6562013-11-15Henrik Grubbström (Grubba)  Exports a stream of autodoc.xml suitable for git-fast-import. Used on pike-librarian.
3a6fd92013-10-08Per Hedbor 
4e5e002013-11-03Per Hedbor o Readline tries to set the charset to the terminal charset
75d6562013-11-15Henrik Grubbström (Grubba) 
464ea92014-10-20Martin Nilsson  This makes it possible to write non-7bit characters on a terminal if the terminal supports it.
4e5e002013-11-03Per Hedbor 
3a6fd92013-10-08Per Hedbor o Fixed units in pike --help=kladdkaka
4e5e002013-11-03Per Hedbor  o Several changes has been done to the GTK2 module
75d6562013-11-15Henrik Grubbström (Grubba) 
464ea92014-10-20Martin Nilsson  + GTK2.DrawingArea no longer crash in draw_text if you pass odd parameters.
75d6562013-11-15Henrik Grubbström (Grubba) 
4e5e002013-11-03Per Hedbor  + draw_pixbuf can now be passed width and height -1, which makes it take the size from the passed image.
75d6562013-11-15Henrik Grubbström (Grubba) 
4e5e002013-11-03Per Hedbor  + GDKEvent no longer crash when you extract strings from them
75d6562013-11-15Henrik Grubbström (Grubba) 
4e5e002013-11-03Per Hedbor  + accelerators now work
75d6562013-11-15Henrik Grubbström (Grubba) 
4e5e002013-11-03Per Hedbor  + Fixed RadioToolButton
75d6562013-11-15Henrik Grubbström (Grubba) 
4e5e002013-11-03Per Hedbor  + signal_connect can now connect a signal in front of the list
75d6562013-11-15Henrik Grubbström (Grubba) 
4e5e002013-11-03Per Hedbor  + Several fixes to Tree related objects
75d6562013-11-15Henrik Grubbström (Grubba) 
4e5e002013-11-03Per Hedbor  + GTK2.SourceView added
75d6562013-11-15Henrik Grubbström (Grubba) 
4e5e002013-11-03Per Hedbor  + GTK2.Spinner added
dbcab02013-11-03Per Hedbor o A few issues were fixed that were found by Coverity
75d6562013-11-15Henrik Grubbström (Grubba) 
4e5e002013-11-03Per Hedbor  + Fixed memory leak in Math.Transform
75d6562013-11-15Henrik Grubbström (Grubba) 
464ea92014-10-20Martin Nilsson  + Fixed two compares that were written as assignments (errno checks for EINTR for sockets)
4e5e002013-11-03Per Hedbor 
3a6fd92013-10-08Per Hedbor o System.get_home + System.get_user
75d6562013-11-15Henrik Grubbström (Grubba) 
464ea92014-10-20Martin Nilsson  (mostly) Cross-platform ways to get the user name and home directory.
3033412013-11-03Per Hedbor 
464ea92014-10-20Martin Nilsson o System.AllocConsole, System.FreeConsole and System.AttachConsole for Windows NT
75d6562013-11-15Henrik Grubbström (Grubba) 
464ea92014-10-20Martin Nilsson  These are useful to create or close the console window that is shown
e3b7732014-11-03Martin Nilsson  for Pike programs.
3033412013-11-03Per Hedbor 
3a6fd92013-10-08Per Hedbor o Process - forkd
3033412013-11-03Per Hedbor 
75d6562013-11-15Henrik Grubbström (Grubba)  Forkd can be used to more cheaply create new processes on UNIX like systems. This is done by first starting a sub-process that is then used to create new processes.
3033412013-11-03Per Hedbor 
75d6562013-11-15Henrik Grubbström (Grubba)  If your main process is large, this is significantly faster than using the normal create_process, and does not risk running out of memory for the forked (temporary) copy of the main process that is created.
3033412013-11-03Per Hedbor 
0492422013-11-03Per Hedbor o MacOSX CoreFoundation support in the backend
75d6562013-11-15Henrik Grubbström (Grubba)  This makes it somewhat more likely that native libraries can work
e3b7732014-11-03Martin Nilsson  with Pike.
74d6812013-11-03Per Hedbor  o Better IPv6 support.
75d6562013-11-15Henrik Grubbström (Grubba)  This includes detection of IPV6 mapped IPV4 addresses
464ea92014-10-20Martin Nilsson  (::FFFF:i.p.v.4) and full support for IPv6 in the UDP code.
74d6812013-11-03Per Hedbor  o Asynchronous Protocols.SNMP client
3a6fd92013-10-08Per Hedbor o Fixes to Process.run, Process.spawn_pike and friends.
75d6562013-11-15Henrik Grubbström (Grubba)  + Support OS/2 path conventions + Fixed multiple issues with search_path()/locate_binary() - locate_binary() is now more reliable on Windows - Now invalidates the cached path is PATH is changed - Uses locate_binary to scan the path - spawn_pike() now uses search_path() + You can now optionally have System.spawn_pike pass predefines,
e3b7732014-11-03Martin Nilsson  program and include path to the spawned Pike, in addition to the
75d6562013-11-15Henrik Grubbström (Grubba)  module path.
74d6812013-11-03Per Hedbor 
0492422013-11-03Per Hedbor o Lots of autodoc fixes
75d6562013-11-15Henrik Grubbström (Grubba)  A lot more of the previously existing, but broken, documentation is now readable.
0492422013-11-03Per Hedbor  o predef::types
75d6562013-11-15Henrik Grubbström (Grubba)  This is equivalent to values and indices, but instead gives the types for each value. Basically only useful for objects.
c8ae882013-11-03Per Hedbor  o Builtin._get_setter
75d6562013-11-15Henrik Grubbström (Grubba) 
464ea92014-10-20Martin Nilsson  This function returns a setter for a variable in an object. The setter, when called, will set the variable value to the passed
75d6562013-11-15Henrik Grubbström (Grubba)  argument.
c8ae882013-11-03Per Hedbor 
3a6fd92013-10-08Per Hedbor o Parser.XML.Tree fixes
75d6562013-11-15Henrik Grubbström (Grubba) 
0492422013-11-03Per Hedbor  + Several namespace improvement and handling fixes
c8ae882013-11-03Per Hedbor 
3a6fd92013-10-08Per Hedbor o New charsets
75d6562013-11-15Henrik Grubbström (Grubba)  A lot of ISO-IR charsets added: 9-1, 9-2, 31, 232, 234, 231 (aka ANSI/NISO Z39.46, aka ANSEL) 230 (aka TDS 565) 225 (SR 14111:1998), 197/209 (sami) 208 (IS 434:1997) 207 (IS 433:1996), 204,205 and 206 (aka 8859-1, 8859-4 and 8859-13 with euro) 201, 200, 138 (ECMA-121) 198 (ISO 8859-8:1999) 182, 181, 189 (TCVN 5712:1993, aka VSCII) 167, 166 (aka TIS 620-2533 (1990)), 164, 160, 151 (NC 99-10:81), 68 (APL), 59 (CODAR-U), 202 (KPS 9566-97). Fixed CSA_Z242.4
c8ae882013-11-03Per Hedbor 
0492422013-11-03Per Hedbor o Several fixes to Protocols.HTTP
75d6562013-11-15Henrik Grubbström (Grubba)  + Improved Protocols.HTTP.Query.PseudoFile (significantly better Stdio.Stream simulation) + Do not use hard coded Linux errno:s + Case insensitive handling of header overrides in do_method + Fixed broken check for URL passwords when querying + Add more descriptive HTTP responses along with a mostly complete list of codes + Handle non-standards compliant relative redirects + Cleaner handling of async DNS failures + Handle chunked transfer encoding correctly when doing async queries + Fixes for the proxy client support + Several keep-alive handling fixes + Server: - More forgiving MIME parsing for MSIE - Fixed range header handling - Fixed parsing of broken multipart/form-data data - Added optional error_callback to attach_fd - The response processor (response_and_finish) now treats the reply mapping as read-only. - Support if-none-match (etag:s) - Ignore errors in close when destroying the object
c336e02014-10-03Per Hedbor  - Fixed ordo of sending large chunks of data without using files
0492422013-11-03Per Hedbor 
b61e1b2014-07-25Henrik Grubbström (Grubba) o Multiple threads can now call the Backend `() function (the function that waits for events). The first thread will be the controlling thread, and all callbacks will be called in it, the other threads will wake when the controlling thread is done.
dbcab02013-11-03Per Hedbor o dtrace support (on MacOSX)
75d6562013-11-15Henrik Grubbström (Grubba)  Pike now supports dtrace events on function enter and leaving (and when stack frames are notionally popped, for functions doing tailrecursion).
ec0bce2014-07-21Per Hedbor o Standards.JSON.encode can now get the initial indentation level specified. This is rather useful for recursive calls encode in pretty print mode (common for objects with encode_json methods). o Added Pike.identify_cycle(x) Checks to see if x contains any circular structures. This can be useful while optimizing to identify reference cycles in Pike data structures, so that the need for garbage collection can be reduced. o Most math functions (log, pow, exp sin, cos etc) can now take integers as arguments in addition to a floating point number. The result will still be a float, the argument will be converted.
c8ae882013-11-03Per Hedbor 
7e027d2014-07-21Per Hedbor o The random(), random_string() and random_seed() might be more random On computers with a hardware pseudo random generator random() can return significantly more random numbers, however, this means that random_seed is a no-op on those machines. A side-effect of this is that random_string is now actually significantly faster on at least x86 cpu:s with rdrnd. Note: If you want cryptographically random data please use Crypto.Random.random_string unless you know for sure the random data returned by the RDRND instruction is random enough.
c8ae882013-11-03Per Hedbor 
b61e1b2014-07-25Henrik Grubbström (Grubba) SSL --- o SSL now supports TLS 1.0 (SSL 3.1), TLS 1.1 and TLS 1.2. o Several identifiers have changed names: SSL.alert -> SSL.Alert SSL.connection + SSL.handshake -> SSL.{Client,Server,}Connection SSL.context -> SSL.Context SSL.packet -> SSL.Packet SSL.session -> SSL.Session SSL.sslfile -> SSL.File SSL.sslport -> SSL.Port SSL.state -> SSL.State
ec0bce2014-07-21Per Hedbor  o SSL.File: Changed client/server selection API.
b61e1b2014-07-25Henrik Grubbström (Grubba)  Client and server operation is now selected by calling either
464ea92014-10-20Martin Nilsson  connect() (client-side) or accept() (server-side) after creating the SSL.File object.
ec0bce2014-07-21Per Hedbor 
b61e1b2014-07-25Henrik Grubbström (Grubba)  Blocking handshaking mode is selected by calling set_blocking() before either of the above.
ec0bce2014-07-21Per Hedbor 
b61e1b2014-07-25Henrik Grubbström (Grubba) o SSL.File: Redesigned I/O state machine.
3033412013-11-03Per Hedbor 
b61e1b2014-07-25Henrik Grubbström (Grubba)  This reduces the complexity and risk of bugs in the I/O handling.
75d6562013-11-15Henrik Grubbström (Grubba) 
b61e1b2014-07-25Henrik Grubbström (Grubba) o SSL support for lots of new cipher suites added: + AEADs and modes: - CCM and CCM-8 - GCM + Certificates - ECDSA + Ciphers - AES and AES-256 - CAMELLIA and CAMELLIA-256 + Key exchange methods - DH and DHE - ECDH and ECDHE
464ea92014-10-20Martin Nilsson  + All suites currently defined consisting of combinations of the above (and earlier existing) have been added (~190 suites in total).
b61e1b2014-07-25Henrik Grubbström (Grubba)  o TLS Extensions added: + ALPN (Application Layer Protocol Negotiation) (RFC 7301). + EC Point Formats (RFC 4492). + Elliptic Curves (RFC 4492). + Encrypt then MAC. + Fallback SCSV. + Heartbeat (RFC 6520). + Max Fragment Length (RFC 6066). + Padding. + Renegotiation info (RFC 5746). + Signature Algorithms (RFC 5246). + SNI (Server Name Indicator) for both client and server (RFC 6066). + Truncated HMAC (RFC 6066). o Improved protection against various SSL/TLS attacks: + BEAST protection (aka 1/(n-1)).
464ea92014-10-20Martin Nilsson  Improve resilience against the BEAST client-side attack, by splitting the first data packet into two, where the first only contains a single byte of payload.
b61e1b2014-07-25Henrik Grubbström (Grubba)  + Heartbleed protection.
464ea92014-10-20Martin Nilsson  The protocol code can probe the peer for the Heartbleed vulnerability, and aborts the connection with ALERT_insufficient_protection if so.
b61e1b2014-07-25Henrik Grubbström (Grubba)  + Lucky 13 protection. Attempts to have HMAC calculation take the same amount of time regardless of padding size. o SSL.Context: Improved cipher suite selection: + Filtering of weak cipher suites. + Suite B (RFC 6460). o SSL.Context: Support multiple concurrent certificates.
464ea92014-10-20Martin Nilsson  This allows a server to eg have both an RSA and an ECDSA certificate.
b61e1b2014-07-25Henrik Grubbström (Grubba)  Crypto and Nettle -----------------
c8ae882013-11-03Per Hedbor  o Nettle refactored
573f8f2013-12-04Martin Nilsson  CBC cipher mode is now twice as fast.
b61e1b2014-07-25Henrik Grubbström (Grubba) o Nettle 3.0 supported.
573f8f2013-12-04Martin Nilsson 
b61e1b2014-07-25Henrik Grubbström (Grubba)  The new APIs in Nettle 3.0 are now detected and utilized.
75d6562013-11-15Henrik Grubbström (Grubba) 
b61e1b2014-07-25Henrik Grubbström (Grubba) o Crypto.GCM
0492422013-11-03Per Hedbor 
b61e1b2014-07-25Henrik Grubbström (Grubba)  GCM (Galois Counter Mode) cipher mode added.
c8ae882013-11-03Per Hedbor 
3a6fd92013-10-08Per Hedbor o Blowfish and Serpent support fixed in Nettle
7876c92013-11-01Per Hedbor 
c8ae882013-11-03Per Hedbor o Crypto.PGP
75d6562013-11-15Henrik Grubbström (Grubba)  Added support for SHA256, SHA384 and SHA512 as hash functions. Expose the used hash and key types in the out data
c8ae882013-11-03Per Hedbor 
8b327e2013-12-02Martin Nilsson o Crypto.Arctwo
5c38332013-11-03Henrik Grubbström (Grubba) 
8b327e2013-12-02Martin Nilsson  The 1-128 bit cipher Arctwo is now provided as a block cipher in
5c38332013-11-03Henrik Grubbström (Grubba)  Crypto. This cipher is only intended for compatibility with OLD third party code, and should NOT be used for new development.
8b327e2013-12-02Martin Nilsson o Crypto.Camellia
c8ae882013-11-03Per Hedbor 
8b327e2013-12-02Martin Nilsson  The 128/256 bit cipher Camellia is now available as block cipher in
b61e1b2014-07-25Henrik Grubbström (Grubba)  Crypto. * Crypto.ECC Elliptic Curve operations are now supported when compiled with Nettle 3.0 or later.
c8ae882013-11-03Per Hedbor 
75d6562013-11-15Henrik Grubbström (Grubba) o Crypto.SALSA20 and Crypto.SALSA20R12 The 128/256 bit cipher SALSA20 is now available as a stream cipher in Crypto. SALSA20R12 is SALSA20 reduced to just 12 rounds. o Crypto.SHA3_224, Crypto.SHA3_256, Crypto.SHA3_384 and Crypto.SHA3_512 The SHA-3 secure hash algorithm has been added in multiple variants.
8b327e2013-12-02Martin Nilsson o Crypto.GOST94 and RIPEMD160 The lesser used hash functions GOST R 34.11-94 (RFC 4357) and RIPEMD160 have been added. o Crypto.RSA and Crypto.DSA The key generation for RSA and DSA are now done by Nettle. This
573f8f2013-12-04Martin Nilsson  results in 90% faster key generation for RSA. Key generation for DSA is 10 times slower, but produces better quality keys.
8b327e2013-12-02Martin Nilsson  o Crypto.Hash Added support for pbkdf1 from PKCS#5v1.5 and pbkdf2 from PKCS#5v2.0.
1901212014-10-20Martin Nilsson o Crypto.Random The underlying algorithm for Crypto.Random has changed from a overly cautious Yarrow implementation to Fortuna on top of system random sources. About 7000x faster than before.
b61e1b2014-07-25Henrik Grubbström (Grubba) o Standards.PEM + Added some support for encrypted PEM files
85029a2013-11-24Martin Nilsson o Standards.X509 X509 was moved from Tools to Standards and has been refactored and bug fixed. It is now possible to extend both validation and creation
8b327e2013-12-02Martin Nilsson  of certificates with new cipher and hash algorithms. A range of new algorithms are supported for both RSA and DSA:
85029a2013-11-24Martin Nilsson  RSA MD2 RSA MD5 RSA SHA-1 RSA SHA-2-256 RSA SHA-2-384 RSA SHA-2-512 DSA SHA-1 DSA SHA-2-224 DSA SHA-2-256
b61e1b2014-07-25Henrik Grubbström (Grubba)  Note that the API has changed compared to Tools.X509 and there is
85029a2013-11-24Martin Nilsson  now a single make_selfsigned_certificate() method for both RSA and DSA, though it takes the same arguments. In addition a hash function and serial number can be supplied. The hash function defaults to SHA-2-256.
ec0bce2014-07-21Per Hedbor  Incompatible C-level API changes -------------------------------- o New svalue layout The most obvious change is that the macros TYPEOF() and SUBTYPEOF() are now actually needed to directly access the type and subtype of an svalue, the svalues no have 'type' and 'subtype' members. There are also a few additional macros used to set both the type and subtype of an svalue at the same time: SVAL_SET_TYPE_SUBTYPE(sval,type,subtype) and SVAL_SET_TYPE_DC(sval,type) (these are only neede if you do not use the usual push_* macros) They are useful because they (usually) compiles to significantly more compact code, especially if the type and subtype are compiletime constants. The _DC variant will either leave the subtype unchanged or set it to 0, useful when you do not care about the actual subtype (which is, really, most of the time). o get_storage() returns void* There is no need for casts in non-C++ code.
c8ae882013-11-03Per Hedbor 
3521322013-11-02Per Hedbor Building and installing ----------------------- o -fvisibility=hidden is now the default
75d6562013-11-15Henrik Grubbström (Grubba) 
3521322013-11-02Per Hedbor  This means that PMOD_EXPORT is now actually needed on systems like Linux and MacOSX. It also means that the binary is slightly smaller and faster. o clang compilation fixes (bignum overflow checks, misc)
75d6562013-11-15Henrik Grubbström (Grubba) 
e3b7732014-11-03Martin Nilsson  It is now possible to compile Pike using a modern clang compiler.
3521322013-11-02Per Hedbor  o Removed bundles
75d6562013-11-15Henrik Grubbström (Grubba) 
0e166f2013-11-02Martin Nilsson  Pike no longer comes with copies of some libraries, and the support for that in the makefile has been removed.
3521322013-11-02Per Hedbor  o Several OS/2 and windows compilation fixes
a10c292014-09-29Martin Nilsson o C89 assumed The configure tests will not check for functions defined in C89 anymore.
3521322013-11-02Per Hedbor 
7366052015-12-31Peter Bortas 
44ca4b2013-11-17Per Hedbor Lots of bug fixes -----------------
7876c92013-11-01Per Hedbor 
44ca4b2013-11-17Per Hedbor o Fixed symbol resolution with deep inherits and mixins
7876c92013-11-01Per Hedbor 
44ca4b2013-11-17Per Hedbor o Fixed PNG 4bpl indexed mode with alpha
7876c92013-11-01Per Hedbor 
44ca4b2013-11-17Per Hedbor o The _sprintf LFUN now works with %F
7876c92013-11-01Per Hedbor 
ec0bce2014-07-21Per Hedbor o foreach( arr[-two()..], string x), where two() returns 2 will no longer iterate over the first element in the array three times or crash.
8d21562014-09-11Stephen R. van den Berg o Postgres.postgres_result now properly decodes binary blobs and strips trailing spaces from CHAR columns.
ec0bce2014-07-21Per Hedbor o Fixed a typo from 2001-05-05 that caused a lot of countries to
8d21562014-09-11Stephen R. van den Berg  reside on the continent ',Europa' instead of "Europa" in
ec0bce2014-07-21Per Hedbor  Geography.Countries. Obviously the continent is not that often checked.
57ba3a2016-01-01Chris Angelico o Fixed interesting bug in the constant number parsing for octal
ec0bce2014-07-21Per Hedbor  numbers in escapes. For whatever reason 8:s were accepted for every location except the first in octal numbers, so 078 was considered an alias for 0100. This could cause issues at times, and will result in string parsing being somewhat different: | Pike v7.8 release 700 running Hilfe v3.5 (Incremental Pike Frontend) | > "\078"; | (1) Result: "@" | Pike v8.0 release 3 running Hilfe v3.5 (Incremental Pike Frontend) | > "\078"; | (1) Result: "\a8"
44ca4b2013-11-17Per Hedbor o A lot more, see the (more or less) full changelog for more info:
7876c92013-11-01Per Hedbor 
a40f962014-07-22Per Hedbor  http://pike-librarian.lysator.liu.se/index.xml?m=pike.git&start=forever&branch=7.9,8.0&template=logonly.inc