Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
gf000
5 months ago
|
parent
|
context
|
favorite
| on:
OCaml as my primary language
At the same time, OCaml has a very simplistic memory layout where even integers are boxed - Java at least has primitive types.
That surely has a performance cost.
dmpk2k
5 months ago
[–]
Are you sure about boxed integers? Perhaps you mean floats? As far as I know Ocaml uses the typical integer/pointer divide.
orthoxerox
5 months ago
|
parent
[–]
IIRC it has 31-bit integers, which means you can't natively work with 32-bit data without widening.
zorobo
5 months ago
|
root
|
parent
[–]
or 63 bits on 64 bit architectures.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
That surely has a performance cost.