Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upTracking issue for f32/f64 support in libcore #27702
Comments
alexcrichton
added
T-libs
B-unstable
labels
Aug 12, 2015
This comment has been minimized.
This comment has been minimized.
|
Is there a reason to move formatting support out of core, beyond "it may require float intrinsics that will be moved out of core"? Because AFAIK the current code doesn't require anything like that, and I see no reason why it should require that in the future. Same goes for parsing. |
This comment has been minimized.
This comment has been minimized.
|
Oh yeah if it doesn't actually require any intrinsics then it's totally fine to leave in core, it's only at most a maybe if it uses an intrinsic, and even then I think we'll still leave it in core and just say "if you use this please define the symbol". |
This comment has been minimized.
This comment has been minimized.
|
Substring search is in libcore; in the long run I'd like to improve it with for example SSE4.2 features where available. |
This comment has been minimized.
This comment has been minimized.
|
Nominating for stabilization in 1.5, now that we've landed #27823 we only depend on libm where absolutely necessary, and otherwise the stabilization of this trait should easily match what's stable in libstd already. |
alexcrichton
added
the
I-nominated
label
Sep 17, 2015
This comment has been minimized.
This comment has been minimized.
|
This issue is entering its cycle-long final comment period for stabilization in 1.5. We can add in more functionality to libcore over time if possible, but otherwise there should only be external dependencies on |
alexcrichton
added
final-comment-period
and removed
I-nominated
labels
Sep 24, 2015
This comment has been minimized.
This comment has been minimized.
|
Does the final comment period cover the |
This comment has been minimized.
This comment has been minimized.
|
It was the intention that this does indeed cover the It appears that this wasn't changed, however, so this may miss this FCP for a later date. |
alexcrichton commentedAug 12, 2015
This issue is largely targeted at tracking the state of
core_floatin libcore, but it raises the question of how much floating point support should be in libcore. Right now we don't explicitly depend on many external functions, but a number of functions are exposed as bindings to LLVM intrinsics. We do depend on symbols likefmodandfmodffor floating point modulus. Almost all LLVM intrinsics end up getting lowered to function calls to known symbols as well.As a result, supporting this functionality in libcore chips away at the principle of a "0-dependency library" (see #27200). We may wish to move all this functionality from libcore over to the standard library instead. This may raise questions about support for formatting floating point numbers as well, but it's something that will largely just fall out of an implementation.