New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Discuss performance benefits of native types #1534
Comments
|
Not only speed things up, but natively typed arrays can be a giant memory saving also where applicable. |
|
Where could this go? nativecall page is not exactly the right place. And as native types go, we only have int documented. After #372 all native types point to nativecall page but again that's not entirely right. |
|
The int documentation is somewhat unfortunate in that it lists a load of methods you can call on a "native int". This not quite true, as you can't call a method, or indeed do anything object-y, on a native type. Calls to such methods will box the native integer into an Perhaps making the native int documentation describe what a native integer is, the sized variants, and its boxing behavior (with a link to |
|
I can think either of a new |
|
@JJ no-no, I think this should go directly to the same place where native types are discussed. Unfortunately, I don't know about a page like this. To clarify, a person searching for “int” should be able to eventually land on a page which discusses packed native arrays and stuff like that. And there we can say why the user may want to do that at all (e.g. for performance reasons). |
|
Currently searching for There's also https://docs.perl6.org/language/nativecall but that's a different topic IMO. |
|
FWIW the CaR grant branch that'll be merged after next release (2018-05-19) adds a "Numerics" language page that does mention native types as well as their performance benefits, including the case where they're lost because code does a lot of boxing. |
|
Please close this issue then when you merge.
|
From #372 (comment):
The text was updated successfully, but these errors were encountered: