ocean
ocean copied to clipboard
General purpose, platform-dependent, high-performance library for D
As D2 migration seems to indicate, those `dispose` blocks are not really necessary in most cases and can be replaced by destructors in others. We need to do some more...
The `ocean.text.convert.Float` module defines a specialized `format` function that writes a formatted string of a floating point number into a provided buffer. This is used under the hood in `ocean.text.convert.Formatter`...
Currently every `Logger` allocates 2kB of data: https://github.com/sociomantic-tsunami/ocean/blob/d20a34bf80b41203b1f1ab6ececdeaf567458b2b/src/ocean/util/log/Logger.d#L457 This is used by the [`Logger.format`](https://github.com/sociomantic-tsunami/ocean/blob/d20a34bf80b41203b1f1ab6ececdeaf567458b2b/src/ocean/util/log/Logger.d#L870-L875). However this introduces a limit in the output message, and an extra copy during logging. I...
If you had an app that used a specific aquatic library that contained versioned structs (let's say it rhymes with brill), it would be really useful if the app emitted...
It's old code which needlessly [allocates](https://github.com/sociomantic-tsunami/ocean/blob/f5948446bcd2e377e74eca81ee59c5252347b86b/src/ocean/text/util/StringSearch.d#L367-L379). Like [a lot](https://github.com/sociomantic-tsunami/ocean/blob/f5948446bcd2e377e74eca81ee59c5252347b86b/src/ocean/text/util/StringSearch.d#L458). No really, [I mean it](https://github.com/sociomantic-tsunami/ocean/blob/f5948446bcd2e377e74eca81ee59c5252347b86b/src/ocean/text/util/StringSearch.d#L524). It is however quite popular so the phasing out should be gradual.
from `man 7 ip`: ``` IP_FREEBIND (since Linux 2.4) If enabled, this boolean option allows binding to an IP address that is nonlocal or does not (yet) exist. This permits...
Now that we have UnixSocket support in DaemonApp, it would be nice to get a set of basic commands in (which can be overriden / skipped if the dev wants...
I test `eb128_node` memory layout from linux, clang 15.0.7 and ldc2 latest, find this: `key_` offset from clang is 48, `eb128_node` size is 64. `key_` offset from ldc is 40,...