May 27, 2021
On Thursday, 27 May 2021 at 09:58:31 UTC, Ola Fosheim Grostad wrote:
> On Thursday, 27 May 2021 at 09:53:19 UTC, Walter Bright wrote:
>> On 5/25/2021 4:22 AM, jmh530 wrote:
>>> I feel like this forum has ADHD sometimes. A week ago it was all up in arms about ImportC, now it's fcused on this, two weeks from now this will be forgotten and on to something else...
>>
>> Meanwhile, Iain and I are putting out PRs on ImportC.
>
> Yes, 2 people run ahead while 10 equally capable people throw their hands up in the air then walks off and start writing their own compilers.

2 years later they were all steamrolled by C++ and Swift because they failed to organize and coordinate between themselves.

The sadness of Open Source is that unlike businesses they don't see productivitylosses. They can just ignore them and pretend they don't exist. Thus they fail to benefit fom the synergies that are available to them.

May 27, 2021
On Thursday, 27 May 2021 at 11:27:00 UTC, Ola Fosheim Grostad wrote:
> On Thursday, 27 May 2021 at 09:58:31 UTC, Ola Fosheim Grostad

You're right.

We have few people, and if we don't organize ourselves, we cannot compete with other languages. They all have organized.

Wake up,Walter(repeate 3 times).
May 27, 2021
On Thursday, 27 May 2021 at 09:53:19 UTC, Walter Bright wrote:
> On 5/25/2021 4:22 AM, jmh530 wrote:
>> I feel like this forum has ADHD sometimes. A week ago it was all up in arms about ImportC, now it's fcused on this, two weeks from now this will be forgotten and on to something else...
>
> Meanwhile, Iain and I are putting out PRs on ImportC.

Of course, forum =/= dmd
May 27, 2021
On Thursday, 27 May 2021 at 12:53:25 UTC, jmh530 wrote:
> On Thursday, 27 May 2021 at 09:53:19 UTC, Walter Bright wrote:
>> On 5/25/2021 4:22 AM, jmh530 wrote:
>>> I feel like this forum has ADHD sometimes. A week ago it was all up in arms about ImportC, now it's fcused on this, two weeks from now this will be forgotten and on to something else...
>>
>> Meanwhile, Iain and I are putting out PRs on ImportC.
>
> Of course, forum =/= dmd

The forums are drying up when it comes to people who are interested in compilers.

You better do something to recruit the ones that are still there unless you want to struggle with DIP1000 all by yourselves forever.


June 06, 2021

On Monday, 24 May 2021 at 19:42:00 UTC, user1234 wrote:

>

Eventually what could be done for the biggest methods of visitors is to extract parts of the content to several non-nested free functions, so that no more low level implementation details, like control loops, are visible and instead you just see do_this; do_that; with just a few, nzzcessarily unavoidable, flow statements.

I've had the opportunity to do quch a refact yesterday in styx. It makes things very clear, for example the expression semantic for binary assign exps :

override void visit(BinAssExpressionAstNode node)
{
    processBinaryOperands(node);
    if (tryRewritingToOperatorOverload(node, [node.left, node.right]))
        return;
    if (tryToSetLengthExp(node))
        return;
    if (checkIfInvalidEnumSetOp(node))
        return;
    if (checkPtrArithmeticOp(node))
        return;
    ensureAssignedParamIsLvalue(node);
    tryOneWayAssImplicitConv(node);
    checkIfAssignable(node.left);
}

or for binary exps that are not assign and not cmp:

override void visit(BinaryExpressionAstNode node)
{
    processBinaryOperands(node);
    if (tryRewritingToOperatorOverload(node, [node.left, node.right]))
        return;
    if (checkIfInvalidEnumSetOp(node))
        return;
    if (checkPtrArithmeticOp(node))
        return;
    tryTwoWaysBinaryImplicitConv(node);
}

It was like 200 lines before.

3 4 5 6 7 8 9 10 11 12 13
Next ›   Last »