Skip to content

Functional Programming tutorial claims all basic OCaml types are unboxed. #1611

@ninjaaron

Description

@ninjaaron

In C or C++ you should have no problems constructing either of the two types of arrays above. In Java, you have two types, int which is unboxed and Integer which is boxed, and hence considerably less efficient. In OCaml, the basic types are all unboxed.

I'm not sure what is meant by "basic types" here, but this is extremely misleading, since, as far as I know, int is the only common unboxed type in OCaml and even float is normally boxed. It would be good if this was reworded to reflect the fact that almost every non-integer value in OCaml is boxed, and this is indeed a pain-point for OCaml in HPC.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions