auto decoding / [OT] swift 5 defaults to utf-8, gets rid of auto decoding, sees 20% improvement serving web page

Seb seb at wilzba.ch
Fri Mar 22 07:36:48 UTC 2019


On Friday, 22 March 2019 at 03:49:20 UTC, Nicholas Wilson wrote:
> https://swift.org/blog/utf8-string/
>
> Choice paragraph:
>
>>[...]
>
> A plan of action on what to do about auto decoding is on the 
> agenda for the dconf AGM, but I figured there is no harm 
> starting the discussion now.
>
> My current vague idea is to add a version(Phobos_NoAutodecode) 
> that changes the default behaviour, as opt in and then 
> deprecate the use of the decoding .front/.popFront and require 
> .by[W|D]char for when decoding is actually desired.

Tried that already:

https://github.com/dlang/phobos/pull/5513

> Anyway more/better/less vaguely defined ideas welcome.

Write a new standard library. Some vague ideas are here:

https://github.com/wilzbach/dts


More information about the Digitalmars-d mailing list