January 03, 2023

On Tuesday, 3 January 2023 at 04:13:53 UTC, Richard (Rikki) Andrew Cattermole wrote:

>

On 03/01/2023 10:24 AM, Dukc wrote:

>

Other things coming to mind: Bidirectional grapheme iteration, Word break and line break algorithms, lazy normalisation. Indeed, lots of improvement potential.

I've done word break, "lazy" normalization (so can stop at any point), and lazy case insensitive comparison with normalization.

Can't wait to see them in master!

>

But: Bidirectional grapheme iteration makes my eye twitch lol.

I did write a reverse grapheme iterator for Symmetry. It isn't fit for Phobos as-is since it only accepts UTF-8 strings (not other ranges) and is modeled after the Phobos grapheme walker, not the 15.0 standard. But I could ask for permission to give it to you if it'd help.

January 03, 2023
On Tuesday, 3 January 2023 at 05:23:55 UTC, Richard (Rikki) Andrew Cattermole wrote:
> The main concern would be shared libraries, which Phobos should be able to be distributed as on all platforms by all compilers.

I said this on the discord chat but you should really just dynamic load the system icu if it is available.
January 04, 2023
On 04/01/2023 2:51 AM, Dukc wrote:
> On Tuesday, 3 January 2023 at 04:13:53 UTC, Richard (Rikki) Andrew Cattermole wrote:
>> On 03/01/2023 10:24 AM, Dukc wrote:
>>> Other things coming to mind: Bidirectional grapheme iteration, Word break and line break algorithms, lazy normalisation. Indeed, lots of improvement potential.
>>
>> I've done word break, "lazy" normalization (so can stop at any point), and lazy case insensitive comparison with normalization.
> 
> Can't wait to see them in master!
> 
>>
>> But: Bidirectional grapheme iteration makes my eye twitch lol.
> 
> I did write a reverse grapheme iterator for Symmetry. It isn't fit for Phobos as-is since it only accepts UTF-8 strings (not other ranges) and is modeled after the Phobos grapheme walker, not the 15.0 standard. But I could ask for permission to give it to you if it'd help.

I probably won't be adding any new features to std.uni. Only finishing off the things that annoy me and reviewing other peoples work.

I've got enough on my plate just building my own "standard library" https://github.com/Project-Sidero/basic_memory :)
January 04, 2023
On 04/01/2023 2:58 AM, Adam D Ruppe wrote:
> On Tuesday, 3 January 2023 at 05:23:55 UTC, Richard (Rikki) Andrew Cattermole wrote:
>> The main concern would be shared libraries, which Phobos should be able to be distributed as on all platforms by all compilers.
> 
> I said this on the discord chat but you should really just dynamic load the system icu if it is available.

Ideally. We still need an implementation for CTFE though. Its just a lot of work to shoehorn it in now.
1 2
Next ›   Last »