1
  
2
  
3
  
4
  
5
  
6
  
7
  
8
  
9
  
10
  
11
  
12
  
13
  
14
  
15
  
16
  
17
  
18
  
19
  
20
  
21
  
22
  
23
  
24
  
25
  
26
  
27
  
28
  
29
  
30
  
31
  
32
  
33
  
34
  
35
  
36
  
37
  
38
  
39
  
40
  
41
  
42
  
43
  
44
  
45
  
46
  
47
  
48
  
49
  
50
  
51
  
52
  
53
  
54
  
55
  
56
  
57
  
58
  
59
  
60
  
61
  
62
  
63
  
64
  
65
  
66
  
67
  
68
  
69
  
70
  
71
  
72
  
73
  
74
  
75
  
76
  
77
  
78
  
79
  
80
  
81
  
82
  
83
  
84
  
85
  
86
  
87
  
88
  
89
  
90
  
91
  
92
  
93
  
94
  
95
  
96
  
97
  
98
  
99
  
100
  
101
  
102
  
103
  
104
  
105
  
106
  
107
  
108
  
109
  
110
  
111
  
112
  
113
  
114
  
115
  
116
  
117
  
118
  
119
  
120
  
121
  
122
  
123
  
124
  
125
  
126
  
127
  
128
  
129
  
130
  
131
  
132
  
133
  
134
  
135
  
136
  
137
  
138
  
139
  
140
  
141
  
142
  
143
  
144
  
145
  
146
  
147
  
148
  
149
  
150
  
151
  
152
  
153
  
154
  
155
  
156
  
157
  
158
  
159
  
160
  
161
  
162
  
163
  
164
  
165
  
166
  
167
  
168
  
169
  
170
  
171
  
172
  
173
  
174
  
175
  
176
  
177
  
178
  
179
  
180
  
181
  
182
  
183
  
184
  
185
  
186
  
187
  
188
  
189
  
190
  
191
  
192
  
193
  
194
  
195
  
196
  
197
  
198
  
199
  
200
  
201
  
202
  
203
  
204
  
205
  
206
  
207
  
208
  
209
  
210
  
211
  
212
  
213
  
214
  
215
  
216
  
217
  
218
  
219
  
220
  
221
  
222
  
223
  
224
  
225
  
226
  
227
  
228
  
229
  
230
  
231
  
232
  
233
  
234
  
235
  
236
  
237
  
238
  
239
  
240
  
241
  
242
  
243
  
244
  
245
  
246
  
247
  
248
  
249
  
250
  
251
  
252
  
253
  
254
  
255
  
256
  
257
  
258
  
259
  
260
  
261
  
262
  
263
  
264
  
265
  
266
  
267
  
268
  
269
  
270
  
271
  
272
  
273
  
274
  
275
  
276
  
277
  
278
  
279
  
280
  
281
  
282
  
283
  
284
  
285
  
286
  
287
  
288
  
289
  
290
  
291
  
292
  
293
  
294
  
295
  
296
  
297
  
298
  
299
  
300
  
301
  
302
  
303
  
304
  
305
  
306
  
307
  
308
  
309
  
310
  
311
  
312
  
313
  
314
  
315
  
316
  
317
  
318
  
319
  
320
  
321
  
322
  
323
  
324
  
325
  
326
  
327
  
328
  
329
  
330
  
331
  
332
  
333
  
334
  
335
  
336
  
337
  
338
  
339
  
340
  
341
  
342
  
343
  
344
  
345
  
346
  
347
  
348
  
349
  
Changes since Pike 7.6: 
---------------------------------------------------------------------- 
 
o New syntax to index from the end in range operations. 
  A "<" can be added before an index in the [..] operator to count 
  from the end instead. This is convenient to e.g. chop off the last 
  element in an array: a[..<1]. 
 
o Several declarations and definitions (most notably the debug and 
  runtime flags) have moved from main.h to pike_embed.h, in an attempt 
  to add support for embedding. 
 
o New `[..] operator function. 
  Range operations have been separated from the `[] operator function 
  and is handled by a new `[..] which provides greater control in how 
  the range bounds are specified. For compatibility, if there is no 
  `[..] then `[] is still called for range operations. 
 
o Generalized this and this_program. 
  It is now possible to refer to inherits in objects. Example: 
    class A { 
      int a; 
      void foo() { werror("A\n"); } 
    } 
    class B { 
      inherit A; 
      int b; 
      void foo() { werror("B\n"); } 
      A::this_program get_a() { return A::this; } 
    } 
  In the above B()->get_a() will return an object with two symbols, 
  'a' and 'foo', but B()->get_a()->foo() will still write "B\n". 
 
o Unicode escapes. 
  Pike now understands the common way to escape unicode chars, using 
  \uxxxx and \Uxxxxxxxx escapes. These escapes works both in string 
  and character literals and in the preprocessor. The latter means 
  that unicode escapes can be used in identifiers, which is useful if 
  they contain characters that can't be represented raw in the source 
  code charset. 
 
o Stdio.* 
  Stdio.cp can now work recursively in a directory tree. 
  Stdio.cp now keeps permissions when copying. 
  Added Stdio.recursive_mv which works on every OS and also when the 
  destination isn't on the same filesystem as the source. 
 
o Process.popen 
   Process.popen is now able to run in nonblocking mode. If a second 
   argument is provided a file object will be opened with that mode 
   and return, enabling two way communication with the new process. 
 
o bin/precompile.pike 
   Voidable pointer types are no longer promoted to mixed. 
 
o PIKE_PORTABLE_BYTECODE 
   --with-portable-bytecode is now the default. Pike programs that have 
   been dumped on one architecture now can be decoded on another. 
 
o Math.Matrix  
  Multiplication were bugged and gave B*A instead of A*B. Now fixed.  
 
o Destruct reason passed to lfun::destroy. 
  lfun::destroy now receives an integer flag that tells why the object 
  is being destructed, e.g. if it was an explicit call to destroy(), 
  running out of references, or reaped by the garbage collector. 
 
  These integers are defined in the new Object module as 
  DESCTRUCT_EXPLICIT, DESTRUCT_NO_REFS, DESTRUCT_GC and 
  DESTRUCT_CLEANUP. 
 
o Unicode 
  Case information and the Unicode module are updated to Unicode 
  5.0.0. 
 
 
Extensions and New Functions 
 
o ADT.BitBuffer 
  read() added. Bugfixes. 
 
o ADT.Priotity_queue 
  Fixed pop bug. 
 
o ADT.Queue 
  Added _sizeof, _values 
 
o ADT.Struct 
  Signed integers. 
  Structs can be Items in other Structs. 
  _sizeof in every Item. 
 
o ADT.Relation.Binary 
  iterator API fix. 
  Fixed creating relation with initial relation. 
  Added cast to mapping. 
 
o Array 
  Added combinations() 
  Bugfixed Array.diff3 
  Added push(), pop(), shift() and unshift() for Perl weirdos. 
 
o Cache 
  Data.recursive_low_size() now supports floats. 
  thread fixes 
 
o Calendar 
  Fixed bugs in discordian. year off by 1166 and now 5 month per year. 
  Islamic days start at sunset 
  New national day 
  fixed hour formatting for format_smtp() 
  Time: * and / now handle floats. split implemented. 
  how_many() now returns the correct value. was off by one. 
 
o Crypto.Random 
  Now thread safe. 
 
o Debug 
  count_objects() added. 
 
o Filesystem 
  ignore_error added to traverse 
 
o Float 
  Added isnan() 
 
o Geography.Position 
  Now possible to encode. 
 
o GLUE 
  mipmap to flags 
  supports clamped textures in BaseTexture and BaseDWIM 
 
o Image.Dims 
  supports TIFF 
 
o _Image ? 
  Added support for DOS EPS 
 
o Int 
  inf + operations 
 
o Locale.Charset 
  Added GB18030/GBK 
  UTF-EBCDIC 
  unicode prefix, e.g. unicode-1-1-utf-7 
  CP949 
  GBK (cp936) 
 
o MIME 
  Fix for casting MIME.Message objects to strings 
  Added remapping variants of the encode words functions. 
 
o Parser.Pike 
  Now uses parser written in C. 
  Fixed parsing of #string 
 
o Parser.RCS 
  Handle broken RCS files better. 
 
o Parser.XML.Tree 
  Added rendering of DTD ENTITY nodes. 
  The renderer now knows about the internal_subset attribute for the 
    DOCTYPE tag. 
  Added rendering of DTD ELEMENT nodes. 
  Added functions to inser new childe node. 
  Moved parser code into the nodes allowing for extendability. 
  set_tag_name() 
  simple-stuff 
  AbstractSimpleNode, VirtualNode, SimpleNode. 
  Node.zap_tree 
 
o Pike 
  get_runtime_info() 
  Encoder, Decoder, Codec 
 
o Process 
  run() 
  spawn_pike() 
  Extended system() to pass args to spawn() 
  New popen implementation. 
 
o Protocols.DNS 
  Fix for TTL parsing in SRV records. 
  gethostbyname() now returns IPv6 addresses too, if available. 
  Improved support for T_TXT. 
 
o Protocols.Bittorrent 
  Support for gzipped and compact tracker responses. 
  30% faster hashing of files. 
 
o Protocols.HTTP.Query 
 
  Many async bug fixes. 
  Added timed_async_fetch() 
  
  Don't silently downgrade to http from https if there is no crypto  
  support. 
 
  Addedunicode_data() 
 
  Keep alive fixes. 
 
o Protocols.HTTP.Session 
  Now possible to manually set content type. 
 
o Protocols.HTTP 
  http_encode_string() now know how to encode UCS-2 characters. 
   
PROTOCOLS NOT DONE 
 
o ADT.Table 
  Fixed sorting of columns typed num. 
 
o Calendar.Badi 
  Support for the Badi calendar used in the Baha'i religion. 
 
New Modules 
 
o ADT.List 
 
o ADT.Set 
  ADT.Set implements a datatype for sets. These sets behave much 
  like multisets, except that they are restricted to containing only 
  one instance of each member value. 
 
  From a performance viewpoint, it is probably more efficient for a 
  Pike program to use mappings to serve as sets, rather than using an 
  ADT.Set,so ADT.Set is mainly provided for the sake of completeness 
  and code readability. 
 
o Protocols.DNS_SD 
  This module provides an interface to DNS Service Discovery. The 
  functionality of DNS-SD is described at <http://www.dns-sd.org/>. 
 
  Using the Proctocols.DNS_SD.Service class a Pike program can 
  announce services, for example a web site or a database server, to 
  computers on the local network. 
 
  When registering a service you need to provide the service name. 
  service type, domain and port number. You can also optionally 
  specify a TXT record. The contents of the TXT record varies between 
  different services; for example, a web server can announce a path 
  to a web page, and a printer spooler is able to list printer 
  features such as color support or two-sided printing. 
 
  The service is registered on the network for as long as the instance 
  of the Service class is valid. 
 
o Bittorrent.Tracker 
  Bittorrent tracker with support for scraping and UDP extension. 
 
o Protocols.HTTP.Server.Proxy 
  A simple HTTP proxy. 
 
o Standards.TLD 
  Country domains and other TLDs according to IANA. Useful when 
  parsing log information or providing live information about clients 
  connecting to your server. 
 
o Tools.Shoot 
  Several new tests have been added to benchmark and improve on 
  various aspects of Pike. ReplaceParallel and ReplaceSerial compares 
  the time it takes to replace multiple substrings of a string in a 
  single call to replace and with subsequent calls. 
 
  TagRemoveArraySscanf, TagRemoveDivide, TagRemoveLoop, 
  TagRemoveParserHTML, TagRemovePCRE, TagRemoveSearch and 
  TagRemoveSscanf compares different methods of completing the same 
  task, to remove XML tags from a string. 
 
o Web.CGI 
  Provides a CGI interface on the callee side. Retrieves information 
  from environment variables and populates the variables in the 
  Request object. 
 
New lib: 
Protocols.LDAP module.pmod 
Sql.Sql dsn 
        sqlite 
        sql_array_result 
        sql_object_result 
        tds 
-x test_pike 
 
New src: 
embed/libpike 
tmodule 
code/amd64 
Fuse 
Protocols.DNS_SD 
Charset gb18030 
        gbk 
Parser c.c / pike.c 
GTK2 
SQLite 
 
Incompatible changes 
 
  These incompatible changes can be solved by adding #pike 7.6 to your 
  source file or starting Pike with -V7.6. 
 
o Array.transpose_old 
  This function is removed. 
 
o _Charset 
  This internal module has had most of its content removed. 
 
o Debug.describe_program 
  The API for this debug function has changed. 
 
o Image.Image 
  The functions select_colors(), map_closest(), map_fast() and 
  map_fs() has been removed. Use Image.Colortable operations instead. 
 
o Parser.XML 
  The XML parsers are now stricter in verifying the correctness 
  of the XML. The function compat_allow_errors can be called in the 
  create method of the Parser.XML.Simple and Parser.XML.Validating 
  (with "7.6" as argument for 7.6 compatibility). Parser.XML.Tree can 
  be created with PARSE_COMPAT_ALLOW_ERRORS_7_6 as flag. 
 
o Protocols.LDAP.client 
  The "dn" field wasn't properly utf-8 decoded in 7.6 and earlier. If 
  your application does it yourself, you need to use the compatibility 
  version of this class. 
 
o spider.XML 
  The spider module no longer contains the XML parser. The functions 
  isbasechar(), iscombiningchar(), isdigit(), isextender(), 
  isfirstnamechar(), ishexchar(), isidiographic(), isletter(), 
  isnamechar() and isspace() has also been moved to the Parser module. 
 
o Sql.Sql 
  Pike will no longer create a .column entry in SQL query responses if 
  there is no table name. 
 
o Standards.UUID 
  Functions new() and new_string() has been removed. Use 
  make_version1(-1)->encode() and make_version1(-1)->str() instead. 
 
o Stdio 
  The functions read_file(), read_bytes(), write_file() and 
  append_file() now always throw errors upon errors, to allow easier 
  use as errno doesn't have to be checked. read_file() and 
  read_bytes() still returns 0 if the file does not exists. 
 
o The modules Mird, Perl, Pipe and Ssleay have been removed.