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

Francesco Mecca me at francescomecca.eu
Fri Mar 22 10:59:31 UTC 2019


On Friday, 22 March 2019 at 07:36:48 UTC, Seb wrote:
> 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

Can you explain why this PR failed? What are the counterarguments?
>
>> Anyway more/better/less vaguely defined ideas welcome.
>
> Write a new standard library. Some vague ideas are here:
>
> https://github.com/wilzbach/dts

What is gonna stop the community from repeating the Tango / 
Phobos fiasco?





More information about the Digitalmars-d mailing list