-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Tracking issue for f32/f64 support in libcore #27702
Comments
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. |
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". |
Substring search is in libcore; in the long run I'd like to improve it with for example SSE4.2 features where available. |
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. |
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 |
Does the final comment period cover the |
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. |
This issue is largely targeted at tracking the state of
core_float
in 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 likefmod
andfmodf
for 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.
The text was updated successfully, but these errors were encountered: