Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
pbsd
on June 10, 2014
|
parent
|
context
|
favorite
| on:
Comparing k-NN in Rust
Well Rust
is
checking for null pointers at the assembly level:
http://goo.gl/eh2aqc
(lines 22--27).
pcwalton
on June 10, 2014
|
next
[–]
Blech. I'm pretty sure LLVM, not the frontend, is inserting those null checks for some reason.
kzrdude
on June 10, 2014
|
parent
|
next
[–]
The slice iterator yields `Option<&T>`, the None variant is represented by a null pointer. That's probably the null check.
dbaupp
on June 10, 2014
|
prev
[–]
This is
https://github.com/mozilla/rust/issues/11751
: LLVM doesn't understand (non)null pointers enough.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: