PhobosV3+ Fundamental Elements
monkyyy
crazymonkyyy at gmail.com
Tue Sep 8 00:28:21 UTC 2026
On Monday, 7 September 2026 at 23:30:42 UTC, Walter Bright wrote:
> On 9/2/2026 6:17 AM, Max Klyga wrote:
>> The correct way is to have a generic sink, not a string
>> builder. And especially not a specific string builder class
>> implementation!
>
> I've been slowly moving the dmd implementation towards sinks.
> Sinks can be generic even without templates.
Templates will let it be inlined; naive delegates of strings;
handle 1 char, stack frame; 1 char, stack frame; 1 char, stack
frame; etc. will be slow.
There wont be a hope of the optimizer doing simd. Ascii
processing should be a bunch of inline bitshift hacks; unicode
and autodecoding and 3 different char types, wasnt good template
code because it was 4 different type theories when theres only 2
that matter and the fastest one was painful to even use.
More information about the Digitalmars-d
mailing list