pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/lang/ocaml
Module Name: pkgsrc
Committed By: jaapb
Date: Thu Oct 9 19:08:28 UTC 2014
Modified Files:
pkgsrc/lang/ocaml: Makefile Makefile.common PLIST PLIST.opt
buildlink3.mk distinfo hacks.mk
pkgsrc/lang/ocaml/patches: patch-Makefile patch-asmrun_Makefile
patch-asmrun_power-bsd.S patch-asmrun_signals_osdep.h
patch-byterun_Makefile patch-configure
patch-debugger_Makefile.shared patch-man_Makefile
patch-ocamldoc_Makefile patch-otherlibs_Makefile.shared
patch-otherlibs_dynlink_Makefile
patch-otherlibs_systhreads_Makefile
patch-otherlibs_threads_Makefile patch-stdlib_Makefile
patch-stdlib_Makefile.shared patch-tools_Makefile.shared
patch-tools_ocamlmklib
Removed Files:
pkgsrc/lang/ocaml/patches: patch-camlp4_man_Makefile
patch-otherlibs_labltk_browser_Makefile.shared
patch-otherlibs_labltk_camltk_Makefile
patch-otherlibs_labltk_compiler_Makefile
patch-otherlibs_labltk_frx_Makefile
patch-otherlibs_labltk_jpf_Makefile
patch-otherlibs_labltk_labltk_Makefile
patch-otherlibs_labltk_lib_Makefile
patch-otherlibs_labltk_support_Makefile
Log Message:
Update to ocaml 4.02.0. Main changes (apart from ocamldoc and bugfixes, see
also upstream changelog):
Language features:
- Attributes and extension nodes
- Generative functors
- Module aliases
* Alternative syntax for string literals {id|...|id} (can break comments)
- Separation between read-only strings (type string) and read-write byte
sequences (type bytes). Activated by command-line option -safe-string.
Build system for the OCaml distribution:
- Use -bin-annot when building.
- Use GNU make instead of portable makefiles.
- Updated build instructions for 32-bit Mac OS X on Intel hardware.
Shedding weight:
* Removed Camlp4 from the distribution, now available as third-party software.
* Removed Labltk from the distribution, now available as a third-party library.
Type system:
* Keep typing of pattern cases independent in principal mode
- Allow opening a first-class module or applying a generative functor
in the body of a generative functor. Allow it also in the body of
an applicative functor if no types are created
* Module aliases are now typed in a specific way, which remembers their
identity. In particular this changes the signature inferred by
"module type of"
- Slight change in the criterion to distinguish private
abbreviations and private row types: create a private abbreviation for
closed objects and fixed polymorphic variants.
* Compare first class module types structurally rather than
nominally. Value subtyping allows module subtyping as long as the internal
representation is unchanged.
Compilers:
- More aggressive constant propagation, including float and
int32/int64/nativeint arithmetic. Constant propagation for floats
can be turned off with option -no-float-const-prop, for codes that
change FP rounding modes at run-time.
- New back-end optimization pass: common subexpression elimination (CSE).
(Reuses results of previous computations instead of recomputing them.)
- New back-end optimization pass: dead code elimination.
(Removes arithmetic and load instructions whose results are unused.)
- Optimization of sequences of string patterns
- Experimental native code generator for AArch64 (ARM 64 bits)
- Optimization of integer division and modulus by constant divisors
- Add "-open" command line flag for opening a single module before typing
* "-o" now sets module name to the output file name up to the first "."
(it also applies when "-o" is not given, i.e. the module name is then
the input file name up to the first ".")
* better sharing of structured constants
- new flag to keep locations in cmi files
- issue warning 3 when referring to a value marked with
the [@@ocaml.deprecated] attribute
- a new format implementation based on GADTs
* Constant exception constructors no longer allocate
- avoid unnecessary boxing in let
- Better compilation of optional arguments with default values
- ocamlopt -opaque option for incremental native compilation
Toplevel interactive system:
- New "#show_*" directives
Runtime system:
- New configure option "-no-naked-pointers" to improve performance by
avoiding page table tests during block darkening and the marking phase
of the major GC. In this mode, all out-of-heap pointers must point at
things that look like OCaml values: in particular they must have a valid
header. The colour of said headers should be black.
- Fixed bug in native code version of [caml_raise_with_string] that could
potentially lead to heap corruption.
- Blocks initialized by [CAMLlocal*] and [caml_alloc] are now filled with
[Val_unit] rather than zero.
- Fixed a major performance problem on large heaps (~1GB) by making heap
increments proportional to heap size by default
- Structural equality treats exception specifically
- efficient comparison/indexing of exceptions
- avoid using unsafe C library functions (strcpy, strcat, sprintf)
- An ISO C99-compliant C compiler and standard library is now assumed.
(Plus special exceptions for MSVC.) In particular, emulation code for
64-bit integer arithmetic was removed, the C compiler must support a
64-bit integer type.
Standard library:
* Add new modules Bytes and BytesLabels for mutable byte sequences.
- add List.sort_uniq and Set.of_list
- a faster version of "raise" which does not maintain the backtrace
- support "Unix.kill pid Sys.sigkill" under Windows
- speed improvement for Buffer
- efficient creation of uninitialized float arrays
- Improve documentation regarding finalisers and multithreading
- Trigger warning 3 for all values marked as deprecated in the documentation.
To generate a diff of this commit:
cvs rdiff -u -r1.90 -r1.91 pkgsrc/lang/ocaml/Makefile
cvs rdiff -u -r1.38 -r1.39 pkgsrc/lang/ocaml/Makefile.common
cvs rdiff -u -r1.26 -r1.27 pkgsrc/lang/ocaml/PLIST
cvs rdiff -u -r1.21 -r1.22 pkgsrc/lang/ocaml/PLIST.opt
cvs rdiff -u -r1.29 -r1.30 pkgsrc/lang/ocaml/buildlink3.mk
cvs rdiff -u -r1.75 -r1.76 pkgsrc/lang/ocaml/distinfo
cvs rdiff -u -r1.3 -r1.4 pkgsrc/lang/ocaml/hacks.mk
cvs rdiff -u -r1.3 -r1.4 pkgsrc/lang/ocaml/patches/patch-Makefile \
pkgsrc/lang/ocaml/patches/patch-otherlibs_threads_Makefile
cvs rdiff -u -r1.2 -r1.3 pkgsrc/lang/ocaml/patches/patch-asmrun_Makefile \
pkgsrc/lang/ocaml/patches/patch-otherlibs_Makefile.shared \
pkgsrc/lang/ocaml/patches/patch-otherlibs_systhreads_Makefile \
pkgsrc/lang/ocaml/patches/patch-tools_ocamlmklib
cvs rdiff -u -r1.1 -r1.2 pkgsrc/lang/ocaml/patches/patch-asmrun_power-bsd.S \
pkgsrc/lang/ocaml/patches/patch-asmrun_signals_osdep.h \
pkgsrc/lang/ocaml/patches/patch-byterun_Makefile \
pkgsrc/lang/ocaml/patches/patch-debugger_Makefile.shared \
pkgsrc/lang/ocaml/patches/patch-man_Makefile \
pkgsrc/lang/ocaml/patches/patch-ocamldoc_Makefile \
pkgsrc/lang/ocaml/patches/patch-otherlibs_dynlink_Makefile \
pkgsrc/lang/ocaml/patches/patch-stdlib_Makefile \
pkgsrc/lang/ocaml/patches/patch-stdlib_Makefile.shared \
pkgsrc/lang/ocaml/patches/patch-tools_Makefile.shared
cvs rdiff -u -r1.1 -r0 pkgsrc/lang/ocaml/patches/patch-camlp4_man_Makefile \
pkgsrc/lang/ocaml/patches/patch-otherlibs_labltk_browser_Makefile.shared \
pkgsrc/lang/ocaml/patches/patch-otherlibs_labltk_compiler_Makefile \
pkgsrc/lang/ocaml/patches/patch-otherlibs_labltk_frx_Makefile \
pkgsrc/lang/ocaml/patches/patch-otherlibs_labltk_jpf_Makefile \
pkgsrc/lang/ocaml/patches/patch-otherlibs_labltk_labltk_Makefile \
pkgsrc/lang/ocaml/patches/patch-otherlibs_labltk_lib_Makefile \
pkgsrc/lang/ocaml/patches/patch-otherlibs_labltk_support_Makefile
cvs rdiff -u -r1.7 -r1.8 pkgsrc/lang/ocaml/patches/patch-configure
cvs rdiff -u -r1.2 -r0 \
pkgsrc/lang/ocaml/patches/patch-otherlibs_labltk_camltk_Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index