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