You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
This is the second time in not so long that this tutorial seems to be incorrect/misleading (see ocaml/ocaml.org#1595) and I agree with @Octachron that overall the tone of the tutorial is not great. I'm wondering if it is causing more harm than good at this point?
Overall, I think that all tutorials would need to be edited. Another piece from the label tutorial:
When and when not to use ~ and ?
The syntax for labels and optional arguments is confusing, and you may often wonder when to use ~foo, when to use ?foo and when to use plain foo. It's something of a black art which takes practice to get right.
I cannot disagree more with the use of black art to try to instill a false sense of familiarity with the reader, at the price of sending a terrible and inaccurate message.
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 evenfloat
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.The text was updated successfully, but these errors were encountered: