5 - PR#3830 small bugs in docs
6 - PR#4053 compilers: improved compilation time for large variant types
7 - PR#4174 ocamlopt: fixed ocamlopt -nopervasives
8 - PR#4199 otherlibs: documented a small problem in Unix.utimes
9 - PR#4280 camlp4: parsing of identifier (^)
10 - PR#4281 camlp4: parsing of type constraint
11 - PR#4285 runtime: cannot compile under AIX
12 - PR#4286 ocamlbuild: cannot compile under AIX and SunOS
13 - PR#4288 compilers: including a functor application with side effects
14 - PR#4295 camlp4 toplevel: synchronization after an error
15 - PR#4300 ocamlopt: crash with backtrace and illegal array access
16 - PR#4302 camlp4: list comprehension parsing problem
17 - PR#4304 ocamlbuild: handle -I correctly
18 - PR#4305 stdlib: alignment of Arg.Symbol
19 - PR#4307 camlp4: assertion failure
20 - PR#4312 camlp4: accept "let _ : int = 1"
21 - PR#4313 ocamlbuild: -log and missing directories
22 - PR#4315 camlp4: constraints in classes
23 - PR#4316 compilers: crash with recursive modules and Lazy
24 - PR#4318 ocamldoc: installation problem with Cygwin (tentative fix)
25 - PR#4322 ocamlopt: stack overflow under Windows
26 - PR#4325 compilers: wrong error message for unused var
27 - PR#4326 otherlibs: marshal Big_int on win64
28 - PR#4327 ocamlbuild: make emacs look for .annot in _build directory
29 - PR#4328 camlp4: stack overflow with nil nodes
30 - PR#4331 camlp4: guards on fun expressions
31 - PR#4332 camlp4: parsing of negative 32/64 bit numbers
32 - PR#4336 compilers: unsafe recursive modules
33 - PR#4337 (note) camlp4: invalid character escapes
34 - PR#4339 ocamlopt: problems on HP-UX (tentative fix)
35 - PR#4340 camlp4: wrong pretty-printing of optional arguments
36 - PR#4348 ocamlopt: crash on Mac Intel
37 - PR#4349 camlp4: bug in private type definitions
38 - PR#4350 compilers: type errors with records and polymorphic variants
39 - PR#4352 compilers: terminal recursion under Windows (tentative fix)
40 - PR#4354 ocamlcp: mismatch with ocaml on polymorphic let
41 - PR#4358 ocamlopt: float constants wrong on ARM
42 - PR#4360 ocamldoc: string inside comment
43 - PR#4365 toplevel: wrong pretty-printing of polymorphic variants
44 - PR#4373 otherlibs: leaks in win32unix
45 - PR#4374 otherlibs: threads module not initialized
46 - PR#4375 configure: fails to build on bytecode-only architectures
47 - PR#4377 runtime: finalisation of infix pointers
48 - PR#4378 ocamlbuild: typo in plugin.ml
49 - PR#4379 ocamlbuild: problem with plugins under Windows
50 - PR#4382 compilers: typing of polymorphic record fields
51 - PR#4383 compilers: including module with private type
52 - PR#4385 stdlib: Int32/Int64.format are unsafe
53 - PR#4386 otherlibs: wrong signal numbers with Unix.sigprocmask etc.
54 - PR#4387 ocamlbuild: build directory not used properly
55 - PR#4392 ocamldep: optional argument of class
56 - PR#4394 otherlibs: infinite loops in Str
57 - PR#4397 otherlibs: wrong size for flag arrays in win32unix
58 - PR#4402 ocamldebug: doesn't work with -rectypes
59 - PR#4410 ocamlbuild: problem with plugin and -build
60 - PR#4411 otherlibs: crash with Unix.access under Windows
61 - PR#4412 stdlib: marshalling broken on 64 bit architectures
62 - PR#4413 ocamlopt: crash on AMD64 with out-of-bound access and reraise
63 - PR#4417 camlp4: pretty-printing of unary minus
64 - PR#4419 camlp4: problem with constraint in type class
65 - PR#4426 compilers: problem with optional labels
66 - PR#4427 camlp4: wrong pretty-printing of lists of functions
67 - PR#4433 ocamlopt: fails to build on MacOSX 10.5
68 - PR#4435 compilers: crash with objects
69 - PR#4439 fails to build on MacOSX 10.5
70 - PR#4441 crash when build on sparc64 linux
71 - PR#4442 stdlib: crash with weak pointers
72 - PR#4446 configure: fails to detect X11 on MacOSX 10.5
73 - PR#4448 runtime: huge page table on 64-bit architectures
74 - PR#4450 compilers: stack overflow with recursive modules
75 - PR#4470 compilers: type-checking of recursive modules too restrictive
76 - PR#4472 configure: autodetection of libX11.so on Fedora x86_64
77 - printf: removed (partially implemented) positional specifications
78 - polymorphic < and <= comparisons: some C compiler optimizations
79 were causing incorrect results when arguments are incomparable
82 - made configure script work on PlayStation 3
83 - ARM port: brought up-to-date for Debian 4.0 (Etch)
84 - many other small changes and bugfixes in camlp4, ocamlbuild, labltk,
87 Objective Caml 3.10.0:
88 ----------------------
90 (Changes that can break existing programs are marked with a "*" )
93 - Added virtual instance variables in classes "val virtual v : t"
94 * Changed the behaviour of instance variable overriding; the new
95 definition replaces the old one, rather than creating a new
99 - ocamlbuild: compilation manager for OCaml applications and libraries.
100 See draft documentation at http://gallium.inria.fr/~pouillar/
101 * Camlp4: heavily revised implementation, new API.
104 - MacOS X PowerPC 64 bits.
105 - MS Windows 64 bits (x64) using the Microsoft PSDK toolchain.
106 - MS Windows 32 bits using the Visual Studio 2005 toolchain.
109 - Faster type-checking of functor applications.
110 - Referencing an interface compiled with -rectypes from a module
111 not compiled with -rectypes is now an error.
112 - Revised the "fragile matching" warning.
114 Native-code compiler:
115 - Print a stack backtrace on an uncaught exception.
116 (Compile and link with ocamlopt -g; execute with OCAMLRUNPARAM=b.)
117 Supported on Intel/AMD in 32 and 64 bits, PPC in 32 and 64 bits.
118 - Stack overflow detection on MS Windows 32 bits (courtesy O. Andrieu).
119 - Stack overflow detection on MacOS X PPC and Intel.
120 - Intel/AMD 64 bits: generate position-independent code by default.
121 - Fixed bug involving -for-pack and missing .cmx files (PR#4124).
122 - Fixed bug causing duplication of literals (PR#4152).
125 - C/Caml interface functions take "char const *" arguments
126 instead of "char *" when appropriate.
127 - Faster string comparisons (fast case if strings are ==).
130 - Refined typing of format strings (type format6).
131 - Printf, Format: new function ifprintf that consumes its arguments
132 and prints nothing (useful to print conditionally).
134 new function format_from_string to convert a string to a format string;
135 new %r conversion to accomodate user defined scanners.
136 - Filename: improved Win32 implementation of Filename.quote.
137 - List: List.nth now tail-recursive.
138 - Sys: added Sys.is_directory. Some functions (e.g. Sys.command) that
139 could incorrectly raise Sys_io_blocked now raise Sys_error as intended.
142 - Bigarray: mmap_file takes an optional argument specifying
143 the start position of the data in the mapped file.
144 - Dynlink: now defines only two modules, Dynlink and Dynlinkaux (internal),
145 reducing risks of name conflicts with user modules.
146 - Labltk under Win32: now uses Tcl/Tk 8.4 instead of 8.3 by default.
147 - VM threads: improved performance of I/O operations (less polling).
148 - Unix: new function Unix.isatty.
149 - Unix emulation under Win32:
150 fixed incorrect error reporting in several functions (PR#4097);
151 better handling of channels opened on sockets (PR#4098);
152 fixed GC bug in Unix.system (PR#4112).
154 Documentation generator (OCamldoc):
155 - correctly handle '?' in value names (PR#4215)
156 - new option -hide-warnings not to print ocamldoc warnings
158 Lexer generator (ocamllex): improved error reporting.
160 License: fixed a typo in the "special exception" to the LGPL.
163 Objective Caml 3.09.3:
164 ----------------------
167 - ocamldoc: -using modtype constraint to filter module elements displayed
169 - ocamldoc: error in merging of top dependencies of modules PR#4007
170 - ocamldoc: -dot-colors has no effect PR#3981
171 - ocamdloc: missing crossref in text from intro files PR#4066
172 - compilers: segfault with recursive modules PR#4008
173 - compilers: infinite loop when compiling objects PR#4018
174 - compilers: bad error message when signature mismatch PR#4001
175 - compilers: infinite loop with -rectypes PR#3999
176 - compilers: contravariance bug in private rows
177 - compilers: unsafe cast with polymorphic exception PR#4002
178 - native compiler: bad assembly code generated for AMD64 PR#4067
179 - native compiler: stack alignment problems on MacOSX/i386 PR#4036
180 - stdlib: crash in marshalling PR#4030
181 - stdlib: crash when closing a channel twice PR#4039
182 - stdlib: memory leak in Sys.readdir PR#4093
183 - C interface: better definition of CAMLreturn PR#4068
184 - otherlibs/unix: crash in gethostbyname PR#3043
185 - tools: subtle problem with unset in makefile PR#4048
186 - camlp4: install pa_o_fast.o PR#3812
187 - camlp4: install more modules PR#3689
190 - ocamldoc: name resolution in cross-referencing {!name}: if name is not
191 found, then it is searched in the parent module/class, and in the parent
192 of the parent, and so on until it is found.
193 - ocamldoc: new option -short-functors to use a short form to display
194 functors in html generator PR#4017
195 - ocamlprof: added "-version" option
199 Objective Caml 3.09.2:
200 ----------------------
203 - Makefile: problem with "make world.opt" PR#3954
204 - compilers: problem compiling several modules with one command line PR#3979
205 - compilers,ocamldoc: error message that Emacs cannot parse
206 - compilers: crash when printing type error PR#3968
207 - compilers: -dtypes wrong for monomorphic type variables PR#3894
208 - compilers: wrong warning on optional arguments PR#3980
209 - compilers: crash when wrong use of type constructor in let rec PR#3976
210 - compilers: better wording of "statement never returns" warning PR#3889
211 - runtime: inefficiency of signal handling PR#3990
212 - runtime: crashes with I/O in multithread programs PR#3906
213 - camlp4: empty file name in error messages PR#3886
214 - camlp4: stack overflow PR#3948
215 - otherlibs/labltk: ocamlbrowser ignores its command line options PR#3961
216 - otherlibs/unix: Unix.times wrong under Mac OS X PR#3960
217 - otherlibs/unix: wrong doc for execvp and execvpe PR#3973
218 - otherlibs/win32unix: random crash in Unix.stat PR#3998
219 - stdlib: update_mod not found under Windows PR#3847
220 - stdlib: Filename.dirname/basename wrong on Win32 PR#3933
221 - stdlib: incomplete documentation of Pervasives.abs PR#3967
222 - stdlib: Printf bugs PR#3902, PR#3955
223 - tools/checkstack.c: missing include
224 - yacc: crash when given argument "-" PR#3956
227 - ported to MacOS X on Intel PR#3985
228 - configure: added support for GNU Hurd PR#3991
230 Objective Caml 3.09.1:
231 ----------------------
234 - compilers: raise not_found with -principal PR#3855
235 - compilers: assert failure in typeclass.cml PR#3856
236 - compilers: assert failure in typing/ctype.ml PR#3909
237 - compilers: fatal error exception Ctype.Unify PR#3918
238 - compilers: spurious warning Y in objects PR#3868
239 - compilers: spurious warning Z on loop index PR#3907
240 - compilers: error message that emacs cannot parse
241 - ocamlopt: problems with -for-pack/-pack PR#3825, PR#3826, PR#3919
242 - ocamlopt: can't produce shared libraries on x86_64 PR#3869, PR#3924
243 - ocamlopt: float alignment problem on SPARC PR#3944
244 - ocamlopt: can't compile on MIPS PR#3936
245 - runtime: missing dependence for ld.conf
246 - runtime: missing dependence for .depend.nt PR#3880
247 - runtime: memory leak in caml_register_named_value PR#3940
248 - runtime: crash in Marshal.to_buffer PR#3879
249 - stdlib: Sys.time giving wrong results on Mac OS X PR#3850
250 - stdlib: Weak.get_copy causing random crashes in rare cases
251 - stdlib, debugger, labltk: use TMPDIR if set PR#3895
252 - stdlib: scanf bug on int32 and nativeint PR#3932
253 - camlp4: mkcamlp4 option parsing problem PR#3941
254 - camlp4: bug in pretty-printing of lazy/assert/new
255 - camlp4: update the unmaintained makefile for _loc name
256 - ocamldoc: several fixes see ocamldoc/Changes.txt
257 - otherlibs/str: bug in long sequences of alternatives PR#3783
258 - otherlibs/systhreads: deadlock in Windows PR#3910
259 - tools: update dumpobj to handle new event format PR#3873
260 - toplevel: activate warning Y in toplevel PR#3832
263 - otherlibs/labltk: browser uses menu bars instead of menu buttons
265 Objective Caml 3.09.0:
266 ----------------------
268 (Changes that can break existing programs are marked with a "*" )
271 - Introduction of private row types, for abstracting the row in object
275 - Polymorphic variants with at most one constructor [< `A of t] are no
276 longer systematically promoted to the exact type [`A of t]. This was
277 more confusing than useful, and created problems with private row
281 - Added warnings 'Y' and 'Z' for local variables that are bound but
283 - Added warning for some uses non-returning functions (e.g. raise), when they
284 are passed extra arguments, or followed by extra statements.
285 - Pattern matching: more prudent compilation in case of guards; fixed PR#3780.
286 - Compilation of classes: reduction in size of generated code.
287 - Compilation of "module rec" definitions: fixed a bad interaction with
288 structure coercion (to a more restrictive signature).
290 Native-code compiler (ocamlopt):
291 * Revised implementation of the -pack option (packing of several compilation
292 units into one). The .cmx files that are to be packed with
293 "ocamlopt -pack -o P.cmx" must be compiled with "ocamlopt -for-pack P".
294 In exchange for this additional constraint, ocamlopt -pack is now
295 available on all platforms (no need for binutils).
296 * Fixed wrong evaluation order for arguments to certain inlined functions.
297 - Modified code generation for "let rec ... and ..." to reduce compilation
298 time (which was quadratic in the number of mutually-recursive functions).
299 - x86 port: support tail-calls for functions with up to 21 arguments.
300 - AMD64 port, Linux: recover from system stack overflow.
301 - Sparc port: more portable handling of out-of-bound conditions
302 on systems other than Solaris.
305 - Pervasives: faster implementation of close_in, close_out.
306 set_binary_mode_{out,in} now working correctly under Cygwin.
307 - Printf: better handling of partial applications of the printf functions.
308 - Scanf: new function sscanf_format to read a format from a
309 string. The type of the resulting format is dynamically checked and
310 should be the type of the template format which is the second argument.
311 - Scanf: no more spurious lookahead attempt when the end of file condition
312 is set and a correct token has already been read and could be returned.
315 - System threads library: added Thread.sigmask; fixed race condition
317 - Bigarray library: fixed bug in Array3.of_array.
318 - Unix library: use canonical signal numbers in results of Unix.wait*;
319 hardened Unix.establish_server against EINTR errors.
322 - Support platforms where sizeof(void *) = 8 and sizeof(long) = 4.
323 - Improved and cleaned up implementation of signal handling.
326 - Improved handling of locations in source code.
329 - extensible {foo } syntax
330 - user can give .txt files on the command line, containing ocamldoc formatted
331 text, to be able to include bigger texts out of source files
332 - -o option is now used by the html generator to indicate the prefix
333 of generated index files (to avoid conflict when a Index module exists
334 on case-insensitive file systems).
337 - Configuration information is installed in `ocamlc -where`/Makefile.config
338 and can be used by client Makefiles or shell scripts.
340 Objective Caml 3.08.4:
341 ----------------------
344 - configure: find X11 config in some 64-bit Linux distribs
345 - ocamldoc: (**/**) can be canceled with another (**/**) PR#3665
346 - graphics: added resize_window
347 - graphics: check for invalid arguments to drawing primitives PR#3595
348 - ocamlbrowser: use windows subsystem on mingw
351 - ocamlopt: code generation problem on AMD64 PR#3640
352 - wrong code generated for some classes PR#3576
353 - fatal error when compiling some OO code PR#3745
354 - problem with comparison on constant constructors PR#3608
355 - camlp4: cryptic error message PR#3592
356 - camlp4: line numbers in multi-line antiquotations PR#3549
357 - camlp4: problem with make depend
358 - camlp4: parse error with :> PR#3561
359 - camlp4: ident conversion problem with val/contents/contents__
360 - camlp4: several small parsing problems PR#3688
361 - ocamldebug: handling of spaces in executable file name PR#3736
362 - emacs-mode: problem when caml-types-buffer is deleted by user PR#3704
363 - ocamldoc: extra backslash in ocamldoc man page PR#3687
364 - ocamldoc: improvements to HTML display PR#3698
365 - ocamldoc: escaping of @ in info files
366 - ocamldoc: escaping of . and \ in man pages PR#3686
367 - ocamldoc: better error reporting of misplaced comments
368 - graphics: fixed .depend file PR#3558
369 - graphics: segfault with threads and graphics PR#3651
370 - nums: several bugs: PR#3718, PR#3719, others
371 - nums: inline asm problems with gcc 4.0 PR#3604, PR#3637
372 - threads: problem with backtrace
373 - unix: problem with getaddrinfo PR#3565
374 - stdlib: documentation of Int32.rem and Int64.rem PR#3573
375 - stdlib: documentation of List.rev_map2 PR#3685
376 - stdlib: wrong order in Map.fold PR#3607
377 - stdlib: documentation of maximum float array length PR#3714
378 - better detection of cycles when using -rectypes
379 - missing case of module equality PR#3738
380 - better error messages for unbound type variables
381 - stack overflow while printing type error message PR#3705
382 - assert failure when typing some classes PR#3638
384 - better error messages related to type variance checking
385 - yacc: avoid name capture for idents of the Parsing module
388 Objective Caml 3.08.3:
389 ----------------------
392 - support for ocamlopt -pack under Mac OS X (PR#2634, PR#3320)
393 - ignore unknown warning options for forward and backward compatibility
394 - runtime: export caml_compare_unordered (PR#3479)
395 - camlp4: install argl.* files (PR#3439)
396 - ocamldoc: add -man-section option
397 - labltk: add the "solid" relief option (PR#3343)
400 - typing: fix unsoundness in type declaration variance inference.
401 Type parameters which are constrained must now have an explicit variant
402 annotation, otherwise they are invariant. This is not backward
403 compatible, so this might break code which either uses subtyping or
404 uses the relaxed value restriction (i.e. was not typable before 3.07)
405 - typing: erroneous partial match warning for polymorphic variants (PR#3424)
406 - runtime: handle the case of an empty command line (PR#3409, PR#3444)
407 - stdlib: make Sys.executable_name an absolute path in native code (PR#3303)
408 - runtime: fix memory leak in finalise.c
409 - runtime: auto-trigger compaction even if gc is called manually (PR#3392)
410 - stdlib: fix segfault in Obj.dup on zero-sized values (PR#3406)
411 - camlp4: correct parsing of the $ identifier (PR#3310, PR#3469)
412 - windows (MS tools): use link /lib instead of lib (PR#3333)
413 - windows (MS tools): change default install destination
414 - autoconf: better checking of SSE2 instructions (PR#3329, PR#3330)
415 - graphics: make close_graph close the X display as well as the window (PR#3312)
416 - num: fix big_int_of_string (empty string) (PR#3483)
417 - num: fix big bug on 64-bit architecture (PR#3299)
418 - str: better documentation of string_match and string_partial_match (PR#3395)
419 - unix: fix file descriptor leak in Unix.accept (PR#3423)
420 - unix: miscellaneous clean-ups
421 - unix: fix documentation of Unix.tm (PR#3341)
422 - graphics: fix problem when allocating lots of images under Windows (PR#3433)
423 - compiler: fix error message with -pack when .cmi is missing (PR#3028)
424 - cygwin: fix problem with compilation of camlheader (PR#3485)
425 - stdlib: Filename.basename doesn't return an empty string any more (PR#3451)
426 - stdlib: better documentation of Open_excl flag (PR#3450)
427 - ocamlcp: accept -thread option (PR#3511)
428 - ocamldep: handle spaces in file names (PR#3370)
429 - compiler: remove spurious warning in pattern-matching on variants (PR#3424)
430 - windows: better handling of InterpreterPath registry entry (PR#3334, PR#3432)
433 Objective Caml 3.08.2:
434 ----------------------
437 - runtime: memory leak when unmarshalling big data structures (PR#3247)
438 - camlp4: incorrect line numbers in errors (PR#3188)
439 - emacs: xemacs-specific code, wrong call to "sit-for"
440 - ocamldoc: "Lexing: empty token" (PR#3173)
441 - unix: problem with close_process_* (PR#3191)
442 - unix: possible coredumps (PR#3252)
443 - stdlib: wrong order in Set.fold (PR#3161)
444 - ocamlcp: array out of bounds in profiled programs (PR#3267)
445 - yacc: problem with polymorphic variant types for grammar entries (PR#3033)
448 - export <caml/printexc.h> for caml_format_exception (PR#3080)
449 - clean up caml_search_exe_in_path (maybe PR#3079)
450 - camlp4: new function "make_lexer" for new-style locations
451 - unix: added missing #includes (PR#3088)
454 Objective Caml 3.08.1:
455 ----------------------
458 - The emacs files are now under GPL
459 - Slightly relaxed some conditions of the QPL
462 - ld.conf now generated at compile-time instead of install-time
463 - fixed -pack on Windows XP (PR#2935)
464 - fixed Obj.tag (PR#2946)
465 - added support for multiple dlopen in Darwin
466 - run ranlib when installing camlp4 libraries (PR#2944)
467 - link camlp4opt with -linkall (PR#2949)
468 - camlp4 parsing of patterns now conforms to normal parsing (PR#3015)
469 - install camlp4 *.cmx files (PR#2955)
470 - fixed handling of linefeed in string constants in camlp4 (PR#3074)
471 - ocamldoc: fixed display of class parameters in HTML and LaTeX (PR#2994)
472 - ocamldoc: fixed display of link to class page in html (PR#2994)
473 - Windows toplevel GUI: assorted fixes (including PR#2932)
476 - added -v option to ocamllex
477 - ocamldoc: new -intf and -impl options supported (PR#3036)
479 Objective Caml 3.08.0:
480 ----------------------
482 (Changes that can break existing programs are marked with a "*" )
485 - Support for immediate objects, i.e. objects defined without going
486 through a class. (Syntax is "object <fields and methods> end".)
489 - When typing record construction and record patterns, can omit
490 the module qualification on all labels except one. I.e.
491 { M.l1 = ...; l2 = ... } is interpreted as { M.l1 = ...; M.l2 = ... }
494 - More compact compilation of classes.
495 - Much more efficient handling of class definitions inside functors
497 - Simpler representation for method tables. Objects can now be marshaled
498 between identical programs with the flag Marshal.Closures.
499 - Improved error messages for objects and variants.
500 - Improved printing of inferred module signatures (toplevel and ocamlc -i).
501 Recursion between type, class, class type and module definitions is now
503 - The -pack option now accepts compiled interfaces (.cmi files) in addition
504 to compiled implementations (.cmo or .cmx).
505 * A compile-time error is signaled if an integer literal exceeds the
506 range of representable integers.
507 - Fixed code generation error for "module rec" definitions.
508 - The combination of options -c -o sets the name of the generated
509 .cmi / .cmo / .cmx files.
512 - Option -output-obj is now compatible with Dynlink and
513 with embedded toplevels.
515 Native-code compiler:
516 - Division and modulus by zero correctly raise exception Division_by_zero
517 (instead of causing a hardware trap).
518 - Improved compilation time for the register allocation phase.
519 - The float constant -0.0 was incorrectly treated as +0.0 on some processors.
520 - AMD64: fixed bugs in asm glue code for GC invocation and exception raising
522 - IA64: fixed incorrect code generated for "expr mod 1".
523 - PowerPC: minor performance tweaks for the G4 and G5 processors.
526 * Revised handling of NaN floats in polymorphic comparisons.
527 The polymorphic boolean-valued comparisons (=, <, >, etc) now treat
528 NaN as uncomparable, as specified by the IEEE standard.
529 The 3-valued comparison (compare) treats NaN as equal to itself
530 and smaller than all other floats. As a consequence, x == y
531 no longer implies x = y but still implies compare x y = 0.
532 * String-to-integer conversions now fail if the result overflows
533 the range of integers representable in the result type.
534 * All array and string access functions now raise
535 Invalid_argument("index out of bounds") when a bounds check fails.
536 In earlier releases, different exceptions were raised
537 in bytecode and native-code.
538 - Module Buffer: new functions Buffer.sub, Buffer.nth
539 - Module Int32: new functions Int32.bits_of_float, Int32.float_of_bits.
540 - Module Map: new functions is_empty, compare, equal.
541 - Module Set: new function split.
542 * Module Gc: in-order finalisation, new function finalise_release.
545 - The Num library: complete reimplementation of the C/asm lowest
546 layer to work around potential licensing problems.
547 Improved speed on the PowerPC and AMD64 architectures.
548 - The Graphics library: improved event handling under MS Windows.
549 - The Str library: fixed bug in "split" functions with nullable regexps.
551 . Added Unix.single_write.
552 . Added support for IPv6.
553 . Bug fixes in Unix.closedir.
554 . Allow thread switching on Unix.lockf.
557 * Name space depollution: all global C identifiers are now prefixed
558 with "caml" to avoid name clashes with other libraries. This
559 includes the "external" primitives of the standard runtime.
562 - Windows ports: many improvements in the OCamlWin toplevel application
563 (history, save inputs to file, etc). Contributed by Christopher A. Watford.
564 - Native-code compilation supported for HPPA/Linux. Contributed by Guy Martin.
565 - Removed support for MacOS9. Mac OS 9 is obsolete and the port was not
567 - Removed ocamlopt support for HPPA/Nextstep and Power/AIX.
570 - #line directives in the input file are now accepted.
571 - Added character set concatenation operator "cset1 # cset2".
574 - #line directives in the input file are now accepted.
577 * Support for new-style locations (line numbers, not just character numbers).
578 - See camlp4/CHANGES and camlp4/ICHANGES for more info.
585 - Experimental support for recursive module definitions
586 module rec A : SIGA = StructA and B : SIGB = StructB and ...
587 - Support for "private types", or more exactly concrete data types
588 with private constructors or labels. These data types can be
589 de-structured normally in pattern matchings, but values of these
590 types cannot be constructed directly outside of their defining module.
591 - Added integer literals of types int32, nativeint, int64
592 (written with an 'l', 'n' or 'L' suffix respectively).
595 - Allow polymorphic generalization of covariant parts of expansive
596 expressions. For instance, if f: unit -> 'a list, "let x = f ()"
597 gives "x" the generalized type forall 'a. 'a list, instead of '_a list
599 - The typing of polymorphic variants in pattern matching has changed.
600 It is intended to be more regular, sticking to the principle of "closing
601 only the variants which would be otherwise incomplete". Two potential
602 consequences: (1) some types may be left open which were closed before,
603 and the resulting type might not match the interface anymore (expected to
604 be rare); (2) in some cases an incomplete match may be generated.
605 - Lots of bug fixes in the handling of polymorphism and recursion inside
607 - Added a new "-dtypes" option to ocamlc/ocamlopt, and an emacs extension
608 "emacs/caml-types.el". The compiler option saves inferred type information
609 to file *.annot, and the emacs extension allows the user to look at the
610 type of any subexpression in the source file. Works even in the case
611 of a type error (all the types computed up to the error are available).
612 This new feature is also supported by ocamlbrowser.
613 - Disable "method is overriden" warning when the method was explicitly
614 redefined as virtual beforehand (i.e. not through inheritance). Typing
615 and semantics are unchanged.
618 - Added option "-dtypes" to dump detailed type information to a file.
619 - The "-i" option no longer generates compiled files, it only prints
621 - The sources for the module named "Mod" can be placed either in Mod.ml or
623 - Compilation of "let rec" on non-functional values: tightened some checks,
624 relaxed some other checks.
625 - Fixed wrong code that was generated for "for i = a to max_int"
626 or "for i = a downto min_int".
627 - An explicit interface Mod.mli can now be provided for the module obtained
628 by ocamlc -pack -o Mod.cmo ... or ocamlopt -pack -o Mod.cmx ...
629 - Revised internal handling of source code locations, now handles
630 preprocessed code better.
631 - Pattern-matching bug on float literals fixed.
632 - Minor improvements on pattern-matching over variants.
633 - More efficient compilation of string comparisons and the "compare" function.
634 - More compact code generated for arrays of constants.
635 - Fixed GC bug with mutable record fields of type "exn".
636 - Added warning "E" for "fragile patterns": pattern matchings that would
637 not be flagged as partial if new constructors were added to the data type.
640 - Added option -vmthread to select the threads library with VM-level
641 scheduling. The -thread option now selects the system threads library.
643 Native-code compiler:
644 - New port: AMD64 (Opteron).
645 - Fixed instruction selection bug on expressions of the kind (raise Exn)(arg).
646 - Several bug fixes in ocamlopt -pack (tracking of imported modules,
647 command line too long).
648 - Signal handling bug fixed.
650 Added -ffast-math option to use inline trigo and log functions.
651 Small performance tweaks for the Pentium 4.
652 Fixed illegal "imul" instruction generated by reloading phase.
654 Enhanced code generation for Sparc V8 (option -march=v8) and
655 Sparc V9 (option -march=v9).
656 Profiling support added for Solaris.
658 Keep stack 16-aligned for compatibility with C calling conventions.
660 Toplevel interactive system:
661 - Tightened interface consistency checks between .cmi files, .cm[oa] files
662 loaded by #load, and the running toplevel.
663 - #trace on mutually-recursive functions was broken, works again.
664 - Look for .ocamlinit file in home directory in addition to the current dir.
667 - Match_failure and Assert_failure exceptions now report
668 (file, line, column), instead of (file, starting char, ending char).
669 - float_of_string, int_of_string: some ill-formed input strings were not
671 - Added format concatenation, string_of_format, format_of_string.
672 - Module Arg: added new option handlers Set_string, Set_int, Set_float,
674 - Module Format: tag handling is now turned off by default,
675 use [Format.set_tags true] to activate.
676 - Modules Lexing and Parsing: added better handling of positions
677 in source file. Added function Lexing.flush_input.
678 - Module Scanf: %n and %N formats to count characters / items read so far;
679 assorted bug fixes, %! to match end of input. New ``_'' special
680 flag to skip reresulting value.
681 - Module Format: tags are not activated by default.
682 - Modules Set and Map: fixed bugs causing trees to become unbalanced.
683 - Module Printf: less restrictive typing of kprintf.
684 - Module Random: better seeding; functions to generate random int32, int64,
685 nativeint; added support for explicit state management.
686 - Module Sys: added Sys.readdir for reading the contents of a directory.
689 - output_value/input_value: fixed bug with large blocks (>= 4 Mwords)
690 produced on a 64-bit platform and incorrectly read back on a 32-bit
692 - Fixed memory compaction bug involving input_value.
693 - Added MacOS X support for dynamic linking of C libraries.
694 - Improved stack backtraces on uncaught exceptions.
695 - Fixed float alignment problem on Sparc V9 with gcc 3.2.
699 By default, dynamically-loaded code now has access to all
700 modules defined by the program; new functions Dynlink.allow_only
701 and Dynlink.prohibit implement access control.
702 Fixed Dynlink problem with files generated with ocamlc -pack.
703 Protect against references to modules not yet fully initialized.
704 - LablTK/CamlTK: added support for TCL/TK 8.4.
705 - Str: reimplemented regexp matching engine, now less buggy, faster,
706 and LGPL instead of GPL.
707 - Graphics: fixed draw_rect and fill_rect bug under X11.
708 - System threads and bytecode threads libraries can be both installed.
709 - System threads: better implementation of Thread.exit.
710 - Bytecode threads: fixed two library initialization bugs.
711 - Unix: make Unix.openfile blocking to account for named pipes;
712 GC bug in Unix.*stat fixed; fixed problem with Unix.dup2 on Windows.
715 - Can name parts of the matched input text, e.g.
716 "0" (['0'-'7']+ as s) { ... s ... }
719 - Handle programs that run for more than 2^30 steps.
722 - Added file caml-types.el to interactively display the type information
723 saved by option -dtypes.
726 - Cygwin port: recognize \ as directory separator in addition to /
727 - MSVC port: ocamlopt -pack works provided GNU binutils are installed.
728 - Graphics library: fixed bug in Graphics.blit_image; improved event handling.
731 - new ty_code field for types, to keep code of a type (with option -keep-code)
732 - new ex_code field for types, to keep code of an exception
733 (with option -keep-code)
734 - some fixes in html generation
735 - don't overwrite existing style.css file when generating HTML
736 - create the ocamldoc.sty file when generating LaTeX (if nonexistent)
737 - man pages are now installed in man/man3 rather than man/mano
738 - fix: empty [] in generated HTML indexes
745 - Apply value restriction to polymorphic record fields.
748 - Fixed GC bug affecting lazy values.
751 - Added option "-version" to print just the version number.
752 - Fixed wrong dependencies in .cmi generated with the -pack option.
754 Native-code compiler:
755 - Fixed wrong return value for inline bigarray assignments.
758 - Unix.getsockopt: make sure result is a valid boolean.
761 - ocamlbrowser: improved error reporting; small Win32 fixes.
764 - Fixed two problems with the Mingw port under Cygwin 1.3.
771 - Support for polymorphic methods and record fields.
772 - Allows _ separators in integer and float literals, e.g. 1_000_000.
775 - New flag -principal to enforce principality of type inference.
776 - Fixed subtle typing bug with higher-order functors.
777 - Fixed several complexity problems; changed (again) the behaviour of
779 - Fixed various bugs with objects and polymorphic variants.
780 - Improved some error messages.
783 - Added option "-pack" to assemble several compilation units as one unit
784 having the given units as sub-modules.
785 - More precise detection of unused sub-patterns in "or" patterns.
786 - Warnings for ill-formed \ escapes in string and character literals.
787 - Protect against spaces and other special characters in directory names.
788 - Added interface consistency check when building a .cma or .cmxa library.
789 - Minor reduction in code size for class initialization code.
790 - Added option "-nostdlib" to ignore standard library entirely.
793 - Fixed issue with ocamlc.opt and dynamic linking.
795 Native-code compiler:
796 - Added link-time check for multiply-defined module names.
797 - Fixed GC bug related to constant constructors of polymorphic variant types.
798 - Fixed compilation bug for top-level "include" statements.
799 - PowerPC port: work around limited range for relative branches,
800 thus removing assembler failures on large functions.
801 - IA64 port: fixed code generation bug for 3-way constructor matching.
803 Toplevel interactive system:
804 - Can load object files given on command line before starting up.
805 - ocamlmktop: minimized possibility of name clashes with user-provided modules.
808 - Minor garbage collector no longer recursive.
809 - Better support for lazy data in the garbage collector.
810 - Fixed issues with the heap compactor.
811 - Fixed issues with finalized Caml values.
812 - The type "int64" is now supported on all platforms: we use software
813 emulation if the C compiler doesn't support 64-bit integers.
814 - Support for float formats that are neither big-endian nor little-endian
815 (one known example: the ARM).
816 - Fixed bug in callback*_exn functions in the exception-catching case.
817 - Work around gcc 2.96 bug on RedHat 7.2 and Mandrake 8.0, 8.1 among others.
818 - Stub DLLs now installed in subdir stublibs/ of standard library dir.
821 - Protect against integer overflow in sub-string and sub-array bound checks.
822 - New module Complex implementing arithmetic over complex numbers.
823 - New module Scanf implementing format-based scanning a la scanf() in C.
824 - Module Arg: added alternate entry point Arg.parse_argv.
825 - Modules Char, Int32, Int64, Nativeint, String: added type "t" and function
826 "compare" so that these modules can be used directly with e.g. Set.Make.
827 - Module Digest: fixed issue with Digest.file on large files (>= 1Gb);
829 - Module Filename: added Filename.open_temp_file to atomically create and
830 open the temp file; improved security of Filename.temp_file.
831 - Module Genlex: allow _ as first character of an identifier.
832 - Module Lazy: more efficient implementation.
833 - Module Lexing: improved performances for very large tokens.
834 - Module List: faster implementation of sorting functions.
836 added %S and %C formats (quoted, escaped strings and characters);
837 added kprintf (calls user-specified continuation on formatted string).
838 - Module Queue: faster implementation (courtesy of François Pottier).
839 - Module Random: added Random.bool.
840 - Module Stack: added Stack.is_empty.
842 added sub-module LargeFile to support files larger than 1Gb
843 (file offsets are int64 rather than int);
844 opening in "append" mode automatically sets "write" mode;
845 files are now opened in close-on-exec mode;
846 string_of_float distinguishes its output from a plain integer;
847 faster implementation of input_line for long lines.
849 added Sys.ocaml_version containing the OCaml version number;
850 added Sys.executable_name containing the (exact) path of the
851 file being executable;
852 Sys.argv.(0) is now unchanged w.r.t. what was provided as 0-th argument
854 - Module Weak: added weak hash tables.
858 support for bigarrays of complex numbers;
859 added functions Genarray.dims,
860 {Genarray,Array1,Array2,Array3}.{kind,layout}.
861 - Dynlink: fixed bug with loading of mixed-mode Caml/C libraries.
863 now supports also the CamlTK API (no labels);
864 support for Activate and Deactivate events;
865 support for virtual events;
866 added UTF conversion;
867 export the tcl interpreter as caml value, to avoid DLL dependencies.
869 added sub-module LargeFile to support files larger than 1Gb
870 (file offsets are int64 rather than int);
871 added POSIX opening flags (O_NOCTTY, O_*SYNC);
872 use reentrant functions for gethostbyname and gethostbyaddr when available;
873 fixed bug in Unix.close_process and Unix.close_process_full;
874 removed some overhead in Unix.select.
877 - ocamldoc (the documentation generator) is now part of the distribution.
878 - Debugger: now supports the option -I +dir.
879 - ocamllex: supports the same identifiers as ocamlc; warns for
880 bad \ escapes in strings and characters.
882 recenter the module boxes when showing a cross-reference;
883 include the current directory in the ocaml path.
886 - Can now compile with Mingw (the GNU compilers without the Cygwin
887 runtime library) in addition to MSVC.
888 - Toplevel GUI: wrong filenames were given to #use and #load commands;
889 read_line() was buggy for short lines (2 characters or less).
890 - OCamlBrowser: now fully functional.
891 - Graphics library: fixed several bugs in event handling.
892 - Threads library: fixed preemption bug.
893 - Unix library: better handling of the underlying differences between
894 sockets and regular file descriptors;
895 added Unix.lockf and a better Unix.rename (thanks to Tracy Camp).
896 - LablTk library: fixed a bug in Fileinput
903 - Allowed coercing self to the type of the current class, avoiding
904 an obscure error message about "Self type cannot be unified..."
907 - Use OCAMLLIB environment variable to find standard library, falls
908 back on CAMLLIB if not defined.
909 - Report out-of-range ASCII escapes in character or string literals
913 - The -use-runtime and -make-runtime flags are back by popular demand
914 (same behavior as in 3.02).
915 - Dynamic loading (of the C part of mixed Caml/C libraries): arrange that
916 linking in -custom mode uses the static libraries for the C parts,
917 not the shared libraries, for maximal robustness and compatibility with
920 Native-code compiler:
921 - Fixed bug in link-time consistency checking.
924 - ocamlyacc: added parser debugging support (set OCAMLRUNPARAM=p to get
925 a trace of the pushdown automaton actions).
926 - ocamlcp: was broken in 3.03 (Sys_error), fixed.
929 - More work on dynamic loading of the C part of mixed Caml/C libraries.
930 - On uncaught exception, flush output channels before printing exception
931 message and backtrace.
932 - Corrected several errors in exception backtraces.
935 - Pervasives: integer division and modulus are now fully specified
936 on negative arguments (with round-towards-zero semantics).
937 - Pervasives.float_of_string: now raises Failure on ill-formed input.
938 - Pervasives: added useful float constants max_float, min_float, epsilon_float.
939 - printf functions in Printf and Format: added % formats for int32, nativeint,
940 int64; "*" in width and precision specifications now supported
941 (contributed by Thorsten Ohl).
942 - Added Hashtbl.copy, Stack.copy.
943 - Hashtbl: revised resizing strategy to avoid quadratic behavior
945 - New module MoreLabels providing labelized versions of modules
946 Hashtbl, Map and Set.
947 - Pervasives.output_value and Marshal.to_* : improved hashing strategy
948 for internal data structures, avoid excessive slowness on
949 quasi-linearly-allocated inputs.
952 - Num: fixed bug in big integer exponentiation (Big_int.power_*).
955 - New GUI for interactive toplevel (Jacob Navia).
956 - The Graphics library is now available for stand-alone executables
958 - Unix library: improved reporting of system error codes.
959 - Fixed error in "globbing" of * and ? patterns on command line.
961 Emacs mode: small fixes; special color highlighting for ocamldoc comments.
963 License: added special exception to the LGPL'ed code (libraries and
964 runtime system) allowing unrestricted linking, whether static or dynamic.
967 Objective Caml 3.03 ALPHA:
968 --------------------------
971 - Removed built-in syntactic sugar for streams and stream patterns
972 [< ... >], now supported via CamlP4, which is now included in the
974 - Switched the default behaviour to labels mode (labels are compulsory),
975 but allows omitting labels when a function application is complete.
976 -nolabels mode is available but deprecated for programming.
977 (See also scrapelabels and addlabels tools below.)
978 - Removed all labels in the standard libraries, except labltk.
979 Labelized versions are kept for ArrayLabels, ListLabels, StringLabels
980 and UnixLabels. "open StdLabels" gives access to the first three.
981 - Extended polymorphic variant type syntax, allowing union types and
982 row abbreviations for both sub- and super-types. #t deprecated in types.
983 - See the Upgrading file for how to adapt to all the changes above.
986 - Fixed obscure bug in module typing causing the type-checker to loop
987 on signatures of the form
989 module A: sig module type T = sig module T: M end end
991 - Improved efficiency of module type-checking via lazy computation of
992 certain signature summary information.
993 - An empty polymorphic variant type is now an error.
996 - Fixed wrong code generated for "struct include M ... end" when M
997 contains one or several "external" declarations.
1000 - Protect against VM stack overflow caused by module initialization code
1001 with many local variables.
1002 - Support for dynamic loading of the C part of mixed Caml/C libraries.
1003 - Removed the -use-runtime and -make-runtime flags, obsoleted by dynamic
1004 loading of C libraries.
1006 Native-code compiler:
1007 - Attempt to recover gracefully from system stack overflow. Currently
1008 works on x86 under Linux and BSD.
1009 - Alpha: work around "as" bug in Tru64 5.1.
1011 Toplevel environment:
1012 - Revised printing of inferred types and evaluation results
1013 so that an external printer (e.g. Camlp4's) can be hooked in.
1016 - The CamlP4 pre-processor-pretty-printer is now included in the standard
1018 - New tool ocamlmklib to help build mixed Caml/C libraries.
1019 - New tool scrapelabels and addlabels, to either remove (non-optional)
1020 labels in interfaces, or automatically add them in the definitions.
1021 They provide easy transition from classic mode ocaml 3.02 sources,
1022 depending on whether you want to keep labels or not.
1023 - ocamldep: added -pp option to handle preprocessed source files.
1026 - Support for dynamic loading of the C part of mixed Caml/C libraries.
1027 Currently works under Linux, FreeBSD, Windows, Tru64, Solaris and Irix.
1028 - Implemented registration of global C roots with a skip list,
1029 runs much faster when there are many global C roots.
1030 - Autoconfiguration script: fixed wrong detection of Mac OS X; problem
1031 with the Sparc, gcc 3.0, and float alignment fixed.
1034 - Added Pervasives.flush_all to flush all opened output channels.
1037 - All libraries revised to allow dynamic loading of the C part.
1038 - Graphics under X Windows: revised event handling, should no longer lose
1039 mouse events between two calls to wait_next_event(); wait_next_event()
1040 now interruptible by signals.
1041 - Bigarrays: fixed bug in marshaling of big arrays.
1044 - Fixed broken Unix.{get,set}sockopt*
1048 Objective Caml 3.02:
1049 --------------------
1052 - Fixed embarrassing bug in pattern-matching compilation
1053 (affected or-patterns containing variable bindings).
1054 - More optimizations in pattern-matching compilation.
1057 - Protect against VM stack overflow caused by functions with many local
1060 Native-code compiler:
1061 - Removed re-sharing of string literals, causes too many surprises with
1062 in-place string modifications.
1063 - Corrected wrong compilation of toplevel "include" statements.
1064 - Fixed bug in runtime function "callbackN_exn".
1065 - Signal handlers receive the conventional signal number as argument
1066 instead of the system signal number (same behavior as with the
1068 - ARM port: fixed issue with immediate operand overflow in large functions.
1070 Toplevel environment:
1071 - User-definer printers (for #install_printer) now receive as first argument
1072 the pretty-printer formatter where to print their second argument.
1073 Old printers (with only one argument) still supported for backward
1077 - Module Hashtbl: added Hashtbl.fold.
1080 - Dynlink: better error reporting in add_interfaces for missing .cmi files.
1081 - Graphics: added more drawing functions (multiple points, polygons,
1082 multiple lines, splines).
1083 - Bytecode threads: the module Unix is now thread-safe, ThreadUnix is
1084 deprecated. Unix.exec* now resets standard descriptors to blocking mode.
1085 - Native threads: fixed a context-switch-during-GC problem causing
1086 certain C runtime functions to fail, most notably input_value.
1087 - Unix.inet_addr_of_string: call inet_aton() when available so as to
1088 handle correctly the address 255.255.255.255.
1089 - Unix: added more getsockopt and setsockopt functions to get/set
1090 options that have values other than booleans.
1091 - Num: added documentation for the Big_int module.
1094 - ocamldep: fixed wrong dependency issue with nested modules.
1097 - Removed floating-point error at start-up on some non-IEEE platforms
1098 (e.g. FreeBSD prior to 4.0R).
1099 - Stack backtrace mechanism now works for threads that terminate on
1100 an uncaught exception.
1103 - Updated config.guess and config.sub scripts, should recognize a greater
1104 number of recent platform.
1107 - Fixed broken Unix.waitpid. Unix.file_descr can now be compared or hashed.
1108 - Toplevel application: issue with spaces in name of stdlib directory fixed.
1111 - Removed the last traces of support for 68k
1114 Objective Caml 3.01:
1115 --------------------
1117 New language features:
1118 - Variables are allowed in "or" patterns, e.g.
1119 match l with [t] | [_;t] -> ... t ...
1120 - "include <structure expression>" to re-export all components of a
1121 structure inside another structure.
1122 - Variance annotation on parameters of type declarations, e.g.
1123 type (+'a,-'b,'c) t (covariant in 'a, contravariant in 'b, invariant in 'c)
1126 - Intel IA64/Itanium under Linux (including the native-code compiler).
1127 - Cygwin under MS Windows. This port is an alternative to the earlier
1128 Windows port of OCaml, which relied on MS compilers; the Cygwin
1129 Windows port does not need MS Visual C++ nor MASM, runs faster
1130 in bytecode, and has a better implementation of the Unix library,
1131 but currently lacks threads and COM component support.
1134 - Relaxed "monomorphic restriction" on type constructors in a
1135 mutually-recursive type definition, e.g. the following is again allowed
1136 type u = C of int t | D of string t and 'a t = ...
1137 - Fixed name-capture bug in "include SIG" and "SIG with ..." constructs.
1138 - Improved implicit subtypes built by (... :> ty), closer to intuition.
1139 - Several bug fixes in type-checking of variants.
1140 - Typing of polymorphic variants is more restrictive:
1141 do not allow conjunctive types inside the same pattern matching.
1142 a type has either an upper bound, or all its tags are in the lower bound.
1143 This may break some programs (this breaks lablgl-0.94).
1146 - Revised compilation of pattern matching.
1147 - Option -I +<subdir> to search a subdirectory <subdir> of the standard
1148 library directory (i.e. write "ocamlc -I +labltk" instead of
1149 "ocamlc -I /usr/local/lib/ocaml/labltk").
1150 - Option -warn-error to turn warnings into errors.
1151 - Option -where to print the location of the standard library directory.
1152 - Assertions are now type-checked even if the -noassert option is given,
1153 thus -noassert can no longe change the types of modules.
1155 Bytecode compiler and bytecode interpreter:
1156 - Print stack backtrace when a program aborts due to an uncaught exception
1157 (requires compilation with -g and running with ocamlrun -b or
1158 OCAMLRUNPARAM="b=1").
1160 Native-code compiler:
1161 - Better unboxing optimizations on the int32, int64, and nativeint types.
1162 - Tail recursion preserved for functions having more parameters than
1163 available registers (but tail calls to other functions are still
1164 turned off if parameters do not fit entirely in registers).
1165 - Fixed name-capture bug in function inlining.
1166 - Improved spilling/reloading strategy for conditionals.
1167 - IA32, Alpha: better alignment of branch targets.
1168 - Removed spurious dependency on the -lcurses library.
1170 Toplevel environment:
1171 - Revised handling of top-level value definitions, allows reclaimation
1172 of definitions that are shadowed by later definitions with the same names.
1173 (E.g. "let x = <big list>;; let x = 1;;" allows <big list> to be reclaimed.)
1174 - Revised the tracing facility so that for standard library functions,
1175 only calls from user code are traced, not calls from the system.
1176 - Added a "*" prompt when within a comment.
1179 - Fixed portability issue on bcopy() vs memmove(), affecting Linux RedHat 7.0
1181 - Structural comparisons (=, <>, <, <=, >, >=, compare) reimplemented
1182 so as to avoid overflowing the C stack.
1183 - Input/output functions: arrange so that reads and writes on closed
1184 in_channel or out_channel raise Sys_error immediately.
1187 - Module Gc: changed some counters to float in order to avoid overflow;
1189 - Module Hashtbl: added Hashtbl.replace.
1190 - Module Int64: added bits_of_float, float_of_bits (access to IEEE 754
1191 representation of floats).
1192 - Module List: List.partition now tail-rec;
1193 improved memory behavior of List.stable_sort.
1194 - Module Nativeint: added Nativeint.size (number of bits in a nativeint).
1195 - Module Obj: fixed incorrect resizing of float arrays in Obj.resize.
1196 - Module Pervasives: added float constants "infinity", "neg_infinity", "nan";
1197 added a "classify_float" function to test a float for NaN, infinity, etc.
1198 - Pervasives.input_value: fixed bug affecting shared custom objects.
1199 - Pervasives.output_value: fixed size bug affecting "int64" values.
1200 - Pervasives.int_of_string, {Int32,Int64,Nativeint}.of_string:
1201 fixed bug causing bad digits to be accepted without error.
1202 - Module Random: added get_state and set_state to checkpoint the generator.
1203 - Module Sys: signal handling functions are passed the system-independent
1204 signal number rather than the raw system signal number whenever possible.
1205 - Module Weak: added Weak.get_copy.
1208 - Bigarray: added Bigarray.reshape to take a view of the elements of a
1209 bigarray with different dimensions or number of dimensions;
1210 fixed bug causing "get" operations to be unavailable in custom
1211 toplevels including Bigarray.
1212 - Dynlink: raise an error instead of crashing when the loaded module
1213 refers to the not-yet-initialized module performing a dynlink operation.
1214 - Bytecode threads: added a thread-safe version of the Marshal module;
1215 fixed a rare GC bug in the thread scheduler.
1216 - POSIX threads: fixed compilation problem with threads.cmxa.
1217 - Both thread libraries: better tail-recursion in Event.sync.
1218 - Num library: fixed bug in square roots (Nat.sqrt_nat, Big_int.sqrt_big_int).
1221 - ocamldep: fixed missing dependencies on labels of record patterns and
1222 record construction operations
1225 - Unix.waitpid now implements the WNOHANG option.
1228 - Mac OS X public beta is supported.
1229 - Int64.format works on Mac OS 8/9.
1232 Objective Caml 3.00:
1233 --------------------
1236 - OCaml/OLabl merger:
1237 * Support for labeled and optional arguments for functions and classes.
1238 * Support for variant types (sum types compared by structure).
1239 See tutorial (chapter 2 of the OCaml manual) for more information.
1240 - Syntactic change: "?" in stream error handlers changed to "??".
1241 - Added exception renaming in structures (exception E = F).
1242 - (OCaml 2.99/OLabl users only) Label syntax changed to preserve
1243 backward compatibility with 2.0x (labeled function application
1244 is f ~lbl:arg instead of f lbl:arg). A tool is provided to help
1245 convert labelized programs to OCaml 3.00.
1248 - Option -labels to select commuting label mode (labels are mandatory,
1249 but labeled arguments can be passed in a different order than in
1250 the definition of the function; in default mode, labels may be omitted,
1251 but argument reordering is only allowed for optional arguments).
1252 - Libraries (.cma and .cmxa files) now "remember" C libraries given
1253 at library construction time, and add them back at link time.
1254 Allows linking with e.g. just unix.cma instead of
1255 unix.cma -custom -cclib -lunix
1256 - Revised printing of error messages, now use Format.fprintf; no visible
1257 difference for users, but could facilitate internationalization later.
1258 - Fixed bug in unboxing of records containing only floats.
1259 - Fixed typing bug involving applicative functors as components of modules.
1260 - Better error message for inconsistencies between compiled interfaces.
1263 - New "modular" format for bytecode executables; no visible differences
1264 for users, but will facilitate further extensions later.
1265 - Fixed problems in signal handling.
1267 Native-code compiler:
1268 - Profiling support on x86 under FreeBSD
1269 - Open-coding and unboxing optimizations for the new integer types
1270 int32, int64, nativeint, and for bigarrays.
1271 - Fixed instruction selection bug with "raise" appearing in arguments
1272 of strict operators, e.g. "1 + raise E".
1273 - Better error message when linking incomplete/incorrectly ordered set
1275 - Optimized scanning of global roots during GC, can reduce total running
1276 time by up to 8% on GC-intensive programs.
1278 Interactive toplevel:
1279 - Better printing of exceptions, including arguments, when possible.
1280 - Fixed rare GC bug occurring during interpretation of scripts.
1281 - Added consistency checks between interfaces and implementations
1285 - Added support for "custom" heap blocks (heap blocks carrying
1286 C functions for finalization, comparison, hashing, serialization
1287 and deserialization).
1288 - Support for finalisation functions written in Caml.
1291 - New modules Int32, Int64, Nativeint for 32-bit, 64-bit and
1292 platform-native integers
1293 - Module Array: added Array.sort, Array.stable_sort.
1294 - Module Gc: added Gc.finalise to attach Caml finalisation functions to
1295 arbitrary heap-allocated data.
1296 - Module Hashtbl: do not bomb when resizing very large table.
1297 - Module Lazy: raise Lazy.Undefined when a lazy evaluation needs itself.
1298 - Module List: added List.sort, List.stable_sort; fixed bug in List.rev_map2.
1299 - Module Map: added mapi (iteration with key and data).
1300 - Module Set: added iterators for_all, exists, filter, partition.
1301 - Module Sort: still here but deprecated in favor of new sorting functions
1303 - Module Stack: added Stack.top
1304 - Module String: fixed boundary condition on String.rindex_from
1305 - Added labels on function arguments where appropriate.
1307 New libraries and tools:
1308 - ocamlbrowser: graphical browser for OCaml sources and compiled interfaces,
1309 supports cross-referencing, editing, running the toplevel.
1310 - LablTK: GUI toolkit based on TK, using labeled and optional arguments,
1311 easier to use than CamlTK.
1312 - Bigarray: large, multi-dimensional numerical arrays, facilitate
1313 interfacing with C/Fortran numerical code, efficient support for
1314 advanced array operations such as slicing and memory-mapping of files.
1317 - Bytecode threads: timer-based preemption was broken, works back again;
1318 fixed bug in Pervasives.input_line; exported Thread.yield.
1319 - System threads: several GC / reentrancy bugs fixed in buffered I/O
1320 and Unix I/O; revised Thread.join implementation for strict POSIX
1321 conformance; exported Thread.yield.
1322 - Graphics: added support for double buffering; added, current_x, current_y,
1323 rmoveto, rlineto, and draw_rect.
1324 - Num: fixed bug in Num.float_of_num.
1325 - Str: worked around potential symbol conflicts with C standard library.
1326 - Dbm: fixed bug with Dbm.iter on empty database.
1328 New or updated ports:
1329 - Alpha/Digital Unix: lifted 256M limitation on total memory space
1331 - Port to AIX 4.3 on PowerPC
1332 - Port to HPUX 10 on HPPA
1333 - Deprecated 680x0 / SunOS port
1336 - Implemented the Unix and Thread libraries.
1337 - The toplevel application does not work on 68k Macintoshes; maybe
1338 later if there's a demand.
1339 - Added a new tool, ocamlmkappli, to build an application from a
1340 program written in O'Caml.
1343 Objective Caml 2.04:
1344 --------------------
1346 - C interface: corrected inconsistent change in the CAMLparam* macros.
1347 - Fixed internal error in ocamlc -g.
1348 - Fixed type-checking of "S with ...", where S is a module type name
1349 abbreviating another module type name.
1350 - ocamldep: fixed stdout/stderr mismatch after failing on one file.
1351 - Random.self_init more random.
1353 - Toplevel application: fixed spurious crash on exit.
1354 - Native-code compiler: fixed bug in assembling certain
1355 floating-point constants (masm doesn't grok 2e5, wants 2.0e5).
1357 Objective Caml 2.03:
1358 --------------------
1361 - Ported to BeOS / Intel x86 (bytecode and native-code).
1362 - BSD / Intel x86 port now supports both a.out and ELF binary formats.
1363 - Added support for {Net,Open}BSD / Alpha.
1364 - Revamped Rhapsody port, now works on MacOS X server.
1367 - Warning for "(*)" and "*)" outside comment.
1368 - Removed "#line LINENO", too ambiguous with a method invocation;
1369 the equivalent "# LINENO" is still supported.
1372 - When an incomplete pattern-matching is detected, report also a
1373 value or value template that is not covered by the cases of
1374 the pattern-matching.
1375 - Several bugs in class type matching and in type error reporting fixed.
1376 - Added an option -rectypes to support general recursive types,
1377 not just those involving object types.
1380 - Minor cleanups in the bytecode emitter.
1381 - Do not remove "let x = y" bindings in -g mode; makes it easier to
1384 Native-code compiler:
1385 - Fixed bug in grouping of allocations performed in the same basic block.
1386 - Fixed bug in constant propagation involving expressions containing
1388 - Fixed incorrect code generation for "for" loops whose upper bound is
1389 a reference assigned inside the loop.
1390 - MIPS code generator: work around a bug in the IRIX 6 assembler.
1393 - Fixed incorrect redirection of standard formatter to stderr
1394 while executing toplevel scripts.
1397 - Added List.rev_map, List.rev_map2.
1398 - Documentation of List functions now says which functions are
1399 tail-rec, and how much stack space is needed for non-tailrec functions.
1400 - Wrong type for Printf.bprintf fixed.
1401 - Fixed weird behavior of Printf.sprintf and Printf.bprintf in case of
1402 partial applications.
1403 - Added Random.self_init, which initializes the PRNG from the system date.
1404 - Sort.array: serious bugs fixed.
1405 - Stream.count: fixed incorrect behavior with ocamlopt.
1407 Run-time system and external interface:
1408 - Fixed weird behavior of signal handlers w.r.t. signal masks and exceptions
1409 raised from the signal handler.
1410 - Fixed bug in the callback*_exn() functions.
1413 - Fixed wrong printing of float record fields and elements of float arrays.
1414 - Supports identifiers starting with '_'.
1417 - Handles .mli files, so ocamlcp can be used to replace ocamlc (e.g. in a
1419 - Now works on programs that use stream expressions and stream parsers.
1422 - Graphics: under X11, treat all mouse buttons equally; fixed problem
1423 with current font reverting to the default font when the graphics
1425 - Str: fixed reentrancy bugs in Str.replace and Str.full_split.
1426 - Bytecode threads: set standard I/O descriptors to non-blocking mode.
1427 - OS threads: revised implementation of Thread.wait_signal.
1428 - All threads: added Event.wrap_abort, Event.choose [].
1429 - Unix.localtime, Unix.gmtime: check for errors.
1430 - Unix.create_process: now supports arbitrary redirections of std descriptors.
1431 - Added Unix.open_process_full.
1432 - Implemented Unix.chmod under Windows.
1433 - Big_int.square_big_int now gives the proper sign to its result.
1436 - ocamldep: don't stop at first error, skip to next file.
1437 - Emacs mode: updated with Garrigue and Zimmerman's snapshot of 1999/10/18.
1438 - configure script: added -prefix option.
1439 - Windows toplevel application: fixed problem with graphics library
1440 not loading properly.
1443 Objective Caml 2.02:
1444 --------------------
1447 - Check that all components of a signature have unique names.
1448 - Fixed bug in signature matching involving a type component and
1449 a module component, both sharing an abstract type.
1450 - Bug involving recursive classes constrained by a class type fixed.
1451 - Fixed bugs in printing class types and in printing unification errors.
1454 - Changed compilation scheme for "{r with lbl = e}" when r has many fields
1455 so as to avoid code size explosion.
1457 * Native-code compiler:
1458 - Better constant propagation in boolean expressions and in conditionals.
1459 - Removal of unused arguments during function inlining.
1460 - Eliminated redundant tagging/untagging in bit shifts.
1461 - Static allocation of closures for functions without free variables,
1462 reduces the size of initialization code.
1463 - Revised compilation scheme for definitions at top level of compilation
1464 units, so that top level functions have no free variables.
1465 - Coalesced multiple allocations of heap blocks inside one expression
1466 (e.g. x :: y :: z allocates the two conses in one step).
1467 - Ix86: better handling of large integer constants in instruction selection.
1468 - MIPS: fixed wrong asm generated for String.length "literal".
1471 - Added the "ignore" primitive function, which just throws away its
1472 argument and returns "()". It allows to write
1473 "ignore(f x); y" if "f x" doesn't have type unit and you don't
1474 want the warning caused by "f x; y".
1475 - Added the "Buffer" module (extensible string buffers).
1476 - Module Format: added formatting to buffers and to strings.
1477 - Added "mem" functions (membership test) to Hashtbl and Map.
1478 - Module List: added find, filter, partition.
1479 Renamed remove and removeq to remove_assoc and remove_assq.
1480 - Module Marshal: fixed bug in marshaling functions when passed functional
1481 values defined by mutual recursion with other functions.
1482 - Module Printf: added Printf.bprintf (print to extensible buffer);
1483 added %i format as synonymous for %d (as per the docs).
1484 - Module Sort: added Sort.array (Quicksort).
1487 - New callback functions for callbacks with arbitrary many arguments
1488 and for catching Caml exceptions escaping from a callback.
1490 * The ocamldep dependency generator: now performs full parsing of the
1491 sources, taking into account the scope of module bindings.
1493 * The ocamlyacc parser generator: fixed sentinel error causing wrong
1494 tables to be generated in some cases.
1497 - Added split_delim, full_split as variants of split that control
1498 more precisely what happens to delimiters.
1499 - Added replace_matched for separate matching and replacement operations.
1501 * The graphics library:
1502 - Bypass color lookup for 16 bpp and 32 bpp direct-color displays.
1503 - Larger color cache.
1505 * The thread library:
1506 - Bytecode threads: more clever use of non-blocking I/O, makes I/O
1508 - POSIX threads: gcc-ism removed, should now compile on any ANSI C compiler.
1509 - Both: avoid memory leak in the Event module when a communication
1510 offer is never selected.
1513 - Fixed inversion of ctime and mtime in Unix.stat, Unix.fstat, Unix.lstat.
1514 - Unix.establish_connection: properly reclaim socket if connect fails.
1516 * The DBM library: no longer crashes when calling Dbm.close twice.
1519 - Updated with Garrigue and Zimmerman's latest version.
1520 - Now include an "ocamltags" script for using etags on OCaml sources.
1523 - Fixed end-of-line bug in ocamlcp causing problems with generated sources.
1526 Objective Caml 2.01:
1527 --------------------
1530 - Added warning for expressions of the form "a; b" where a does not have
1531 type "unit"; catches silly mistake such as
1532 "record.lbl = newval; ..." instead of "record.lbl <- newval; ...".
1533 - Typing bug in "let module" fixed.
1536 - Fixed bug in compilation of recursive and mutually recursive classes.
1537 - Option -w to turn specific warnings on/off.
1538 - Option -cc to choose the C compiler used with ocamlc -custom and ocamlopt.
1540 * Bytecode compiler and bytecode interpreter:
1541 - Intel x86: removed asm declaration causing "fixed or forbidden register
1542 spilled" error with egcs and gcc 2.8 (but not with gcc 2.7, go figure).
1543 - Revised handling of debugging information, allows faster linking with -g.
1545 * Native-code compiler:
1546 - Fixed bugs in integer constant propagation.
1547 - Out-of-bound accesses in array and strings now raise an Invalid_argument
1548 exception (like the bytecode system) instead of stopping the program.
1549 - Corrected scheduling of bound checks.
1550 - Port to the StrongARM under Linux (e.g. Corel Netwinder).
1551 - I386: fixed bug in profiled code (ocamlopt -p).
1552 - Mips: switched to -n32 model under IRIX; dropped the Ultrix port.
1553 - Sparc: simplified the addressing modes, allows for better scheduling.
1554 - Fixed calling convention bug for Pervasives.modf.
1557 - #trace works again.
1558 - ocamlmktop: use matching ocamlc, not any ocamlc from the search path.
1560 * Memory management:
1561 - Fixed bug in heap expansion that could cause the GC to loop.
1564 - New macros CAMLparam... and CAMLlocal... to simplify the handling
1565 of local roots in C code.
1566 - Simplified procedure for allocating and filling Caml blocks from C.
1567 - Declaration of string_length in <caml/mlvalues.h>.
1570 - Module Format: added {get,set}_all_formatter_output_functions,
1571 formatter_of_out_channel, and the control sequence @<n> in printf.
1572 - Module List: added mem_assoc, mem_assq, remove, removeq.
1573 - Module Pervasives: added float_of_int (synonymous for float),
1574 int_of_float (truncate), int_of_char (Char.code), char_of_int (Char.chr),
1576 - Module String: added contains, contains_from, rcontains_from.
1579 - Unix.lockf: added F_RLOCK, F_TRLOCK; use POSIX locks whenever available.
1580 - Unix.tc{get,set}attr: added non-standard speeds 57600, 115200, 230400.
1581 - Unix.chroot: added.
1584 - Bytecode threads: improved speed of I/O scheduling.
1585 - Native threads: fixed a bug involving signals and exceptions
1588 * The "str" library:
1589 - Added Str.string_partial_match.
1590 - Bumped size of internal stack.
1592 * ocamlyacc: emit correct '# lineno' directive for prelude part of .mly file.
1594 * Emacs editing mode: updated with Jacques Garrigue's newest code.
1597 - Added support for the "-cclib -lfoo" option (instead of
1598 -cclib /full/path/libfoo.lib as before).
1599 - Threads: fixed a bug at initialization time.
1601 * Macintosh port: source code for Macintosh application merged in.
1604 Objective Caml 2.00:
1605 --------------------
1608 - New class language. See http://caml.inria.fr/ocaml/refman/
1609 for a tutorial (chapter 2) and for the reference manual (section 4.9).
1610 - Local module definitions "let module X = <module-expr> in <expr>".
1611 - Record copying with update "{r with lbl1 = expr1; ...}".
1612 - Array patterns "[|pat1; ...;patN|]" in pattern-matchings.
1613 - New reserved keywords: "object", "initializer".
1614 - No longer reserved: "closed", "protected".
1616 * Bytecode compiler:
1617 - Use the same compact memory representations for float arrays, float
1618 records and recursive closures as the native-code compiler.
1619 - More type-dependent optimizations.
1620 - Added the -use_runtime and -make_runtime flags to build separately
1621 and reuse afterwards custom runtime systems
1622 (inspired by Fabrice Le Fessant's patch).
1624 * Native-code compiler:
1625 - Cross-module constant propagation of integer constants.
1626 - More type-dependent optimizations.
1627 - More compact code generated for "let rec" over data structures.
1628 - Better code generated for "for" loops (test at bottom of code).
1629 - More aggressive scheduling of stores.
1630 - Added -p option for time profiling with gprof
1631 (fully supported on Intel x86/Linux and Alpha/Digital Unix only)
1632 (inspired by Aleksey Nogin's patch).
1633 - A case of bad spilling with high register pressure fixed.
1634 - Fixed GC bug when GC called from C without active Caml code.
1635 - Alpha: $gp handling revised to follow Alpha's standard conventions,
1636 allow running "atom" and "pixie" on ocamlopt-generated binaries.
1637 - Intel x86: use movzbl and movsbl systematically to load 8-bit and 16-bit
1638 quantities, no more hacks with partial registers (better for the
1639 Pentium Pro, worse for the Pentium).
1640 - PowerPC: more aggressive scheduling of return address reloading.
1641 - Sparc: scheduling bug related to register pairs fixed.
1644 - Better printing of uncaught exceptions (print a fully qualified
1645 name whenever possible).
1648 - Cray T3E (bytecode only) (in collaboration with CEA).
1649 - PowerMac under Rhapsody.
1650 - SparcStations under Linux.
1653 - Added set_binary_mode_in and set_binary_mode_out in Pervasives
1654 to toggle open channels between text and binary modes.
1655 - output_value and input_value check that the given channel is in
1657 - input_value no longer fails on very large marshalled data (> 16 Mbytes).
1658 - Module Arg: added option Rest.
1659 - Module Filename: temp_file no longer loops if temp dir doesn't exist.
1660 - Module List: added rev_append (tail-rec alternative to @).
1661 - Module Set: tell the truth about "elements" returning a sorted list;
1662 added min_elt, max_elt, singleton.
1663 - Module Sys: added Sys.time for simple measuring of CPU time.
1666 - Check for overflow when generating the tables for the automaton.
1667 - Error messages in generated .ml file now point to .mll source.
1668 - Added "let <id> = <regexp>" to name regular expressions
1669 (inspired by Christian Lindig's patch).
1672 - Better error recovery in presence of EOF tokens.
1673 - Error messages in generated .ml file now point to .mly source.
1674 - Generated .ml file now type-safe even without the generated .mli file.
1677 - Use float instead of int to represent Unix times (number of seconds
1678 from the epoch). This fixes a year 2005 problem on 32-bit platforms.
1679 Functions affected: stat, lstat, fstat, time, gmtime, localtime,
1682 - Better handling of "unknown" error codes (EUNKNOWNERR).
1683 - Fixed endianness bug in getservbyport.
1684 - win32unix (the Win32 implementation of the Unix library) now has
1685 the same interface as the unix implementation, this allows exchange
1686 of compiled .cmo and .cmi files between Unix and Win32.
1688 * The thread libraries:
1689 - Bytecode threads: bug with escaping exceptions fixed.
1690 - System threads (POSIX, Win32): malloc/free bug fixed; signal bug fixed.
1691 - Both: added Thread.wait_signal to wait synchronously for signals.
1693 * The graph library: bigger color cache.
1695 * The str library: added Str.quote, Str.regexp_string,
1696 Str.regexp_string_case_fold.
1699 - Fixed bug with paragraph fill.
1700 - Fixed bug with next-error under Emacs 20.
1703 Objective Caml 1.07:
1704 --------------------
1706 * Native-code compiler:
1707 - Revised interface between generated code and GC, fixes serious GC
1708 problems with signals and native threads.
1709 - Added "-thread" option for compatibility with ocamlc.
1711 * Debugger: correctly print instance variables of objects.
1713 * Run-time system: ported to OpenBSD.
1715 * Standard library: fixed wrong interface for Marshal.to_buffer and
1718 * Num library: added Intel x86 optimized asm code (courtesy of
1722 - Native threads: fixed GC bugs and installation procedure.
1723 - Bytecode threads: fixed problem with "Marshal" module.
1724 - Both: added Event.always.
1726 * MS Windows port: better handling of long command lines in Sys.command
1728 Objective Caml 1.06:
1729 --------------------
1732 - Added two new keywords: "assert" (check assertion) and "lazy"
1734 - Allow identifiers to start with "_" (such identifiers are treated
1735 as lowercase idents).
1738 - Added "protected" methods (visible only from subclasses, can be hidden
1739 in class type declared in module signature).
1740 - Objects can be compared using generic comparison functions.
1741 - Fixed compilation of partial application of object constructors.
1744 - Occur-check now more strict (all recursions must traverse an object).
1748 - A heap compactor was implemented, so long-running programs can now
1749 fight fragmentation.
1750 - The meaning of the "space_overhead" parameter has changed.
1751 - The macros Push_roots and Pop_roots are superseded by Begin_roots* and
1753 - Bytecode executable includes list of primitives used, avoids crashes
1754 on version mismatch.
1755 - Reduced startup overhead for marshalling, much faster marshalling of
1757 - New exception Stack_overflow distinct from Out_of_memory.
1758 - Maximum stack size configurable.
1759 - I/O revised for compatibility with compactor and with native threads.
1760 - All C code ANSIfied (new-style function declarations, etc).
1761 - Threaded code work on all 64-bit processors, not just Alpha/Digital Unix.
1762 - Better printing of uncaught exceptions.
1765 - Parsing: more detailed reporting of syntax errors (e.g. shows
1766 unmatched opening parenthesis on missing closing parenthesis).
1767 - Check consistency between interfaces (.cmi).
1768 - Revised rules for determining dependencies between modules.
1769 - Options "-verbose" for printing calls to C compiler, "-noassert"
1770 for turning assertion checks off.
1772 * Native-code compiler:
1773 - Machine-dependent parts rewritten using inheritance instead of
1774 parameterized modules.
1775 - GC bug in value let rec fixed.
1776 - Port to Linux/Alpha.
1777 - Sparc: cleaned up use of %g registers, now compatible with Solaris threads.
1779 * Top-level interactive system:
1780 - Can execute Caml script files given on command line.
1781 - Reads commands from ./.ocamlinit on startup.
1782 - Now thread-compatible.
1785 - New library module: Lazy (delayed computations).
1786 - New library module: Marshal. Allows marshalling to strings and
1787 transmission of closures between identical programs (SPMD parallelism).
1788 - Filename: "is_absolute" is superseded by "is_implicit" and "is_relative".
1789 To adapt old programs, change "is_absolute x" to "not (is_implicit x)"
1790 (but the new "is_relative" is NOT the opposite of the old "is_absolute").
1791 - Array, Hashtbl, List, Map, Queue, Set, Stack, Stream:
1792 the "iter" functions now take as argument a unit-returning function.
1793 - Format: added "printf" interface to the formatter (see the documentation).
1794 Revised behaviour of simple boxes: no more than one new line is output
1795 when consecutive break hints should lead to multiple line breaks.
1796 - Stream: revised implementation, renamed Parse_failure to Failure and
1797 Parse_error to Error (don't you love gratuitous changes?).
1798 - String: added index, rindex, index_from, rindex_from.
1799 - Array: added mapi, iteri, fold_left, fold_right, init.
1800 - Added Map.map, Set.subset, Printexc.to_string.
1802 * ocamllex: lexers generated by ocamllex can now handle all characters,
1805 * ocamlyacc: fixed bug with function closures returned by parser rules.
1808 - Revised generation of events.
1809 - Break on function entrance.
1810 - New commands start/previous.
1811 - The command loadprinter now try to recursively load required
1813 - Numerous small fixes.
1815 * External libraries:
1816 - systhreads: can now use POSIX threads; POSIX and Win32 threads are
1817 now supported by the native-code compiler.
1818 - dbm and graph: work in native code.
1819 - num: fixed bug in Nat.nat_of_string.
1820 - str: fixed deallocation bug with case folding.
1821 - win32unix: use Win32 handles instead of (buggy) VC++ emulation of Unix
1822 file handles; added gettimeofday.
1824 * Emacs editing mode and debugger interface updated to July '97 version.
1826 Objective Caml 1.05:
1827 --------------------
1829 * Typing: fixed several bugs causing spurious type errors.
1831 * Native-code compiler: fixed instruction selection bug causing GC to
1832 see ill-formed pointers; fixed callbacks to support invocation from a
1835 * Standard library: fixed String.lowercase; Weak now resists integers.
1837 * Toplevel: multiple phrases without intermediate ";;" now really supported;
1838 fixed value printing problems where the wrong printer was selected.
1840 * Debugger: fixed printing problem with local references; revised
1841 handling of checkpoints; various other small fixes.
1843 * Macintosh port: fixed signed division problem in bytecomp/emitcode.ml
1845 Objective Caml 1.04:
1846 --------------------
1848 * Replay debugger ported from Caml Light; added debugger support in
1849 compiler (option -g) and runtime system. Debugger is alpha-quality
1853 - Support for "# linenum" directives.
1854 - At toplevel, allow several phrases without intermediate ";;".
1857 - Allow constraints on datatype parameters, e.g.
1858 type 'a foo = ... constraint 'a = 'b * 'c.
1859 - Fixed bug in signature matching in presence of free type variables '_a.
1860 - Extensive cleanup of internals of type inference.
1862 * Native-code compilation:
1863 - Inlining of small functions at point of call (fairly conservative).
1864 - MIPS code generator ported to SGI IRIX 6.
1865 - Better code generated for large integer constants.
1866 - Check for urgent GC when allocating large objects in major heap.
1867 - PowerPC port: better scheduling, reduced TOC consumption.
1868 - HPPA port: handle long conditional branches gracefully,
1869 several span-dependent bugs fixed.
1872 - More floating-point functions (all ANSI C float functions now available).
1873 - Hashtbl: added functorial interface (allow providing own equality
1874 and hash functions); rehash when resizing, avoid memory leak on
1876 - Added Char.uppercase, Char.lowercase, String.uppercase, String.lowercase,
1877 String.capitalize, String.uncapitalize.
1878 - New module Weak for manipulating weak pointers.
1879 - New module Callback for registering closures and exceptions to be
1882 * Foreign interface:
1883 - Better support for callbacks (C calling Caml), exception raising
1884 from C, and main() in C. Added function to remove a global root.
1885 - Option -output-obj to package Caml code as a C library.
1887 * Thread library: fixed bug in timed_read and timed_write operations;
1888 Lexing.from_function and Lexing.from_channel now reentrant.
1890 * Unix interface: renamed EACCESS to EACCES (the POSIX name); added setsid;
1891 fixed bug in inet_addr_of_string for 64-bit platforms.
1893 * Ocamlyacc: default error function no longer prevents error recovery.
1895 * Ocamllex: fixed reentrancy problem w.r.t. exceptions during refill;
1896 fixed output problem (\r\r\n) under Win32.
1899 - The makefiles are provided for compiling and installing O'Caml on
1900 a Macintosh with MPW 3.4.1.
1901 - An application with the toplevel in a window is forthcoming.
1903 * Windows NT/95 port: updated toplevel GUI to that of Caml Light 0.73.
1905 * Emacs editing mode and debugger interface included in distribution.
1908 Objective Caml 1.03:
1909 --------------------
1912 - bug with type names escaping their scope via unification with
1913 non-generalized type variables '_a completely fixed;
1914 - fixed bug in occur check : it was too restrictive;
1915 - fixed bug of coercion operators;
1916 - check that no two types of the same name are generated in a module
1917 (there was no check for classes);
1918 - "#install_printer" works again;
1919 - fixed bug in printing of subtyping errors;
1920 - in class interfaces, construct "method m" (without type) change
1921 the status of method m from abstract to concrete;
1922 - in a recursive definition of class interfaces, a class can now
1923 inherit from a previous class;
1924 - typing of a method make use of an eventual previously given type
1925 of this method, yielding clearer type errors.
1927 * Compilation (ocamlc and ocamlopt):
1928 - fixed bug in compilation of classes.
1930 * Native-code compilation:
1931 - optimization of functions taking tuples of arguments;
1932 - code emitter for the Motorola 680x0 processors (retrocomputing week);
1933 - Alpha/OSF1: generate frame descriptors, avoids crashes when e.g.
1934 exp() or log() cause a domain error; fixed bug with
1935 String.length "literal";
1936 - Sparc, Mips, HPPA: removed marking of scanned stack frames
1937 (benefits do not outweight cost).
1940 - Arg.parse now prints documentation for command-line options;
1941 - I/O buffers (types in_channel and out_channel) now heap-allocated,
1942 avoids crashing when closing a channel several times;
1943 - Overflow bug in compare() fixed;
1944 - GC bug in raising Sys_error from I/O functions fixed;
1945 - Parsing.symbol_start works even for epsilon productions.
1947 * Foreign interface: main() in C now working, fixed bug in library
1950 * Thread library: guard against calling thread functions before Thread.create.
1952 * Unix library: fixed getsockopt, setsockopt, open_process_{in,out}.
1954 * Perl-free, cpp-free, cholesterol-free installation procedure.
1957 Objective Caml 1.02:
1958 --------------------
1960 - fixed bug with type names escaping their scope via unification
1961 with non-generalized type variables '_a;
1962 - keep #class abbreviations longer;
1963 - faster checking of well-formed abbreviation definitions;
1964 - stricter checking of "with" constraints over signatures (arity
1965 mismatch, overriding of an already manifest type).
1967 * Compilation (ocamlc and ocamlopt):
1968 - fixed bug in compilation of recursive classes;
1969 - [|...|] and let...rec... allowed inside definitions of recursive
1972 * Bytecode compilation: fixed overflow in linker for programs with
1973 more than 65535 globals and constants.
1975 * Native-code compilation:
1976 - ocamlopt ported to HPPA under HP/UX, Intel x86 under Solaris 2,
1977 PowerMacintosh under MkLinux;
1978 - fixed two bugs related to floating-point arrays (one with "t array"
1979 where t is an abstract type implemented as float, one with
1980 comparison between two float arrays on 32 bit platforms);
1981 - fixed reloading/spilling problem causing non-termination of
1982 register allocation;
1983 - fixed bugs in handling of () causing loss of tail recursion;
1984 - fixed reloading bug in indirect calls.
1986 * Windows NT/95 port:
1987 - complete port of the threads library (Pascal Cuoq);
1988 - partial port of the Unix library (Pascal Cuoq);
1989 - expansion of *, ? and @ on the command line.
1992 - bug in in List.exists2 fixed;
1993 - bug in "Random.int n" for very large n on 64-bit machines fixed;
1994 - module Format: added a "general purpose" type of box (open_box);
1995 can output on several formatters at the same time.
1997 * The "threads" library:
1998 - implementation on top of native threads available for Win32 and
2000 - added -thread option to select a thread-safe version of the
2001 standard library, the ThreadIO module is no longer needed.
2003 * The "graph" library: avoid invalid pixmaps when doing
2004 open_graph/close_graph several times.
2006 * The "dynlink" library: support for "private" (no re-export) dynamic loading.
2008 * ocamlyacc: skip '...' character literals correctly.
2010 * C interface: C code linked with O'Caml code can provide its own main()
2011 and call caml_main() later.
2014 Objective Caml 1.01:
2015 --------------------
2016 * Typing: better report of type incompatibilities;
2017 non-generalizable type variables in a struct...end no longer flagged
2018 immediately as an error;
2019 name clashes during "open" avoided.
2021 * Fixed bug in output_value where identical data structures
2022 could have different external representations; this bug caused wrong
2023 "inconsistent assumptions" errors when checking compatibility of
2024 interfaces at link-time.
2026 * Standard library: fixed bug in Array.blit on overlapping array sections
2028 * Unmarshaling from strings now working.
2030 * ocamlc, ocamlopt: new flags -intf and -impl to force compilation as
2031 an implementation/an interface, regardless of file extension;
2032 overflow bug on wide-range integer pattern-matchings fixed.
2034 * ocamlc: fixed bytecode generation bug causing problems with compilation
2035 units defining more than 256 values
2037 * ocamlopt, all platforms:
2038 fixed GC bug in "let rec" over data structures;
2039 link startup file first, fixes "undefined symbol" errors with some
2042 * ocamlopt, Intel x86:
2043 more efficient calling sequence for calling C functions;
2044 floating-point wars, chapter 5: don't use float stack for holding
2045 float pseudo-registers, stack-allocating them is just as efficient.
2047 * ocamlopt, Alpha and Intel x86: more compact calling sequence for garbage
2050 * ocamllex: generated automata no longer use callbacks for refilling
2051 the input buffer (works better with threads); character literals
2052 correctly skipped inside actions.
2054 * ocamldep: "-I" directories now searched in the right order
2056 * Thread library: incompatibilities with callbacks, signals, and
2057 dynamic linking removed; scheduling bug with Thread.wait fixed.
2059 * New "dbm" library, interfaces with NDBM.
2061 * Object-oriented extensions:
2062 instance variables can now be omitted in class types;
2063 some error messages have been made clearer;
2066 Objective Caml 1.00:
2067 --------------------
2069 * Merge of Jerome Vouillon and Didier Remy's object-oriented
2072 * All libraries: all "new" functions renamed to "create" because "new"
2073 is now a reserved keyword.
2075 * Compilation of "or" patterns (pat1 | pat2) completely revised to
2076 avoid code size explosion.
2078 * Compiler support for preprocessing source files (-pp flag).
2080 * Library construction: flag -linkall to force linking of all units in
2083 * Native-code compiler: port to the Sparc under NetBSD.
2085 * Toplevel: fixed bug when tracing several times the same function
2086 under different names.
2088 * New format for marshaling arbitrary data structures, allows
2089 marshaling to/from strings.
2091 * Standard library: new module Genlex (configurable lexer for streams)
2093 * Thread library: much better support for I/O and blocking system calls.
2095 * Graphics library: faster reclaimation of unused pixmaps.
2097 * Unix library: new functions {set,clear}_nonblock, {set,clear}_close_on_exec,
2098 {set,get}itimer, inet_addr_any, {get,set}sockopt.
2100 * Dynlink library: added support for linking libraries (.cma files).
2102 Caml Special Light 1.15:
2103 ------------------------
2105 * Caml Special Light now runs under Windows NT and 95. Many thanks to
2106 Kevin Gallo (Microsoft Research) who contributed his initial port.
2108 * csllex now generates tables for a table-driven automaton.
2109 The resulting lexers are smaller and run faster.
2111 * Completely automatic configuration script.
2113 * Typing: more stringent checking of module type definitions against
2114 manifest module type specifications.
2116 * Toplevel: recursive definitions of values now working.
2118 * Native-code compiler, all platforms:
2119 toplevel "let"s with refutable patterns now working;
2120 fixed bug in assignment to float record fields;
2121 direct support for floating-point negation and absolute value.
2123 * Native-code compiler, x86: fixed bug with tail calls (with more than
2124 4 arguments) from a function with a one-word stack frame.
2126 * Native-code compiler, Sparc: problem with -compact fixed.
2128 * Thread library: support for non-blocking writes; scheduler revised.
2130 * Unix library: bug in gethostbyaddr fixed; bounds checking for read,
2133 Caml Special Light 1.14:
2134 ------------------------
2136 * cslopt ported to the PowerPC/RS6000 architecture. Better support for
2137 AIX in the bytecode system as well.
2139 * cslopt, all platforms: fixed bug in live range splitting around catch/exit.
2141 * cslopt for the Intel (floating-point wars, chapter 4):
2142 implemented Ershov's algorithm to minimize floating-point stack usage;
2143 out-of-order pops fixed.
2145 * Several bug fixes in callbacks and signals.
2147 Caml Special Light 1.13:
2148 ------------------------
2150 * Pattern-matching compilation revised to factor out accesses inside
2153 * Callbacks and signals now supported in cslopt.
2154 Signals are only detected at allocation points, though.
2155 Added callback functions with 2 and 3 arguments.
2157 * More explicit error messages when a native-code program aborts due
2158 to array or string bound violations.
2160 * In patterns, "C _" allowed even if the constructor C has several arguments.
2162 * && and || allowed as alternate syntax for & and or.
2164 * cslopt for the Intel: code generation for floating-point
2165 operations entirely redone for the third time (a pox on whomever at
2166 Intel decided to organize the floating-point registers as a stack).
2168 * cslopt for the Sparc: don't use Sparc V8 smul and sdiv instructions,
2169 emulation on V7 processors is abysmal.
2171 Caml Special Light 1.12:
2172 ------------------------
2174 * Fixed an embarrassing bug with references to floats.
2176 Caml Special Light 1.11:
2177 ------------------------
2179 * Streams and stream parsers a la Caml Light are back (thanks to
2180 Daniel de Rauglaudre).
2182 * User-level concurrent threads, with low-level shared memory primitives
2183 (locks and conditions) as well as channel-based communication primitives
2184 with first-class synchronous events, in the style of Reppy's CML.
2186 * The native-code compiler has been ported to the HP PA-RISC processor
2187 running under NextStep (sorry, no HPUX, its linker keeps dumping
2190 * References not captured in a function are optimized into variables.
2192 * Fixed several bugs related to exceptions.
2194 * Floats behave a little more as specified in the IEEE standard
2195 (believe it or not, but x < y is not the negation of x >= y).
2197 * Lower memory consumption for the native-code compiler.
2199 Caml Special Light 1.10:
2200 ------------------------
2202 * Many bug fixes (too many to list here).
2204 * Module language: introduction of a "with module" notation over
2205 signatures for concise sharing of all type components of a signature;
2206 better support for concrete types in signatures.
2208 * Native-code compiler: the Intel 386 version has been ported to
2209 NextStep and FreeBSD, and generates better code (especially for
2212 * Tools and libraries: the Caml Light profiler and library for
2213 arbitrary-precision arithmetic have been ported (thanks to John
2214 Malecki and Victor Manuel Gulias Fernandez); better docs for the Unix
2215 and regexp libraries.
2217 Caml Special Light 1.07:
2218 ------------------------
2220 * Syntax: optional ;; allowed in compilation units and structures
2221 (back by popular demand)
2224 generic handling of float arrays fixed
2225 direct function application when the function expr is not a path fixed
2226 compilation of "let rec" over values fixed
2227 multiple definitions of a value name in a module correctly handled
2228 no calls to ranlib in Solaris
2230 * csltop: #trace now working
2232 * Standard library: added List.memq; documentation of Array fixed.
2234 Caml Special Light 1.06:
2235 ------------------------
2237 * First public release.