November 13, 2021
On Friday, 12 November 2021 at 23:50:31 UTC, Dr Machine Code wrote:
>
> that sounds interesting, is this tool available to public?
>

No. As Ken Thompson would say, I don't want to be the [drug] pusher ;-)

Today I'm thinking about adding a new feature 'Top level statements for D' ..

..so that I can just write this:

// ------------------
printHello();

void printHello()
{
    writeln("Hello world!");
}
// ----------------------


EZ Compiler will create the necessary scaffolding.. i.e. import std; and main()


November 13, 2021

On Saturday, 13 November 2021 at 00:10:39 UTC, Imperatorn wrote:

>

Disclaimer: this is not a repl by any means. I was just toying around with how fast compiles are:
https://github.com/Imperatorn/repel-d

I called it repel-d because I was repelled by it at first.

But it "works" and I can evaluate stuff in it pretty easy and do stuff with the last output etc.

that really interesting actually.

It's what just gave me the idea to implement 'Top Level statements' in EZ.

Thanks ;-)

November 13, 2021

On Saturday, 13 November 2021 at 00:10:39 UTC, Imperatorn wrote:

>

On Friday, 12 November 2021 at 23:50:31 UTC, Dr Machine Code wrote:

>

On Friday, 12 November 2021 at 23:45:38 UTC, forkit wrote:

>

On Friday, 12 November 2021 at 22:33:00 UTC, forkit wrote:

>

I use my own custom GUI IDE (winforms/C#) which I developed myself, cause nothing out there did what it wanted it to do.

I call it EZ Compiler.

Here is screen dump of it (not sure how long link lasts)

https://imgur.com/a/PvBm2q4

This pic is much better pic of it, as it shows 'actual' D code ;-)

https://imgur.com/a/8mm0Fdi

that sounds interesting, is this tool available to public? as REPL window for D it would be useful

Disclaimer: this is not a repl by any means. I was just toying around with how fast compiles are:
https://github.com/Imperatorn/repel-d

I called it repel-d because I was repelled by it at first.

But it "works" and I can evaluate stuff in it pretty easy and do stuff with the last output etc.

Some examples:
To evaluate 2+2 just write that and it will show 4.
Then to do something with that value in the next command, use # like:
#-2 which would evaluate to 4-2.

To evaluate some raw code, type r and then the code, like to get some "Processor Info and Feature Bits":
r uint x; asm { mov EAX, 1; cpuid; mov x, EDX; }; writefln("%b", x);

To print something there's a shorthand "f " which just uses writefln, like
f "%d is %b in binary", 23, 23 would print 23 is 10111 in binary

To execute something in the external environment there's "e ", like for example:
e cat repl.d | grep "case" would output
case "e ":
case "f ":
case "r ":

Then there's a special mysterious thing. You can apparently do curl stuff there. So like net.get("dlang.org") would get dlang.org and you could use that later in the same way.

Example:
net.get("dlang.org").hashOf would print the hash of what's returned and then to check

# == net.get("dlang.org").hashOf

November 13, 2021

On Friday, 12 November 2021 at 21:05:05 UTC, Dr Machine Code wrote:

>

willing to learn what [programming tools]

Why doesn't anyone investigate your most commonly used libraries (not limited to languages)?

November 13, 2021
On Friday, 12 November 2021 at 21:05:05 UTC, Dr Machine Code wrote:
> willing to learn what [programming tools](https://en.wikipedia.org/wiki/Programming_tool) do you guys use when coding in D. Maybe there are something new out there. The tools aside from the usual compiler(dmd/ldc/gdc)/debugger/dub

I use CLion with D Language plugin and my CMake-d fork. It works really well and allows me to use both Dub packages and CMake C++ libraries. (It just misses some Dub quirks and tracking compiler files to rebuild)
November 13, 2021
On Saturday, 13 November 2021 at 01:36:00 UTC, Dadoum wrote:
> On Friday, 12 November 2021 at 21:05:05 UTC, Dr Machine Code wrote:
>> willing to learn what [programming tools](https://en.wikipedia.org/wiki/Programming_tool) do you guys use when coding in D. Maybe there are something new out there. The tools aside from the usual compiler(dmd/ldc/gdc)/debugger/dub
>
> I use CLion with D Language plugin and my CMake-d fork. It works really well and allows me to use both Dub packages and CMake C++ libraries. (It just misses some Dub quirks and tracking compiler files to rebuild)

What about debugging?
November 13, 2021
On Saturday, 13 November 2021 at 00:34:33 UTC, forkit wrote:
> On Friday, 12 November 2021 at 23:50:31 UTC, Dr Machine Code wrote:
>>
>> that sounds interesting, is this tool available to public?
>>
>
> No. As Ken Thompson would say, I don't want to be the [drug] pusher ;-)

oh i see. If I didn't got such tool anywhere, I may need to wrote one myself

> Today I'm thinking about adding a new feature 'Top level statements for D' ..
>
> ..so that I can just write this:
>
> // ------------------
> printHello();
>
> void printHello()
> {
>     writeln("Hello world!");
> }
> // ----------------------
>
>
> EZ Compiler will create the necessary scaffolding.. i.e. import std; and main()

that's also interesting, Linqpad has something to dump statements too

November 13, 2021

On Saturday, 13 November 2021 at 01:12:26 UTC, zjh wrote:

>

On Friday, 12 November 2021 at 21:05:05 UTC, Dr Machine Code wrote:

>

willing to learn what [programming tools]

Why doesn't anyone investigate your most commonly used libraries (not limited to languages)?

that's also interesting idea. I was just interested in D programming tools when I created the threat, willing to find out new tools around

November 13, 2021
On Saturday, 13 November 2021 at 01:44:07 UTC, Imperatorn wrote:
> On Saturday, 13 November 2021 at 01:36:00 UTC, Dadoum wrote:
>> On Friday, 12 November 2021 at 21:05:05 UTC, Dr Machine Code wrote:
>>> willing to learn what [programming tools](https://en.wikipedia.org/wiki/Programming_tool) do you guys use when coding in D. Maybe there are something new out there. The tools aside from the usual compiler(dmd/ldc/gdc)/debugger/dub
>>
>> I use CLion with D Language plugin and my CMake-d fork. It works really well and allows me to use both Dub packages and CMake C++ libraries. (It just misses some Dub quirks and tracking compiler files to rebuild)
>
> What about debugging?

It works.
November 13, 2021

On Friday, 12 November 2021 at 21:05:05 UTC, Dr Machine Code wrote:

>

willing to learn what programming tools do you guys use when coding in D. Maybe there are something new out there. The tools aside from the usual compiler(dmd/ldc/gdc)/debugger/dub

I'm using VSCode. The only other D-related tool I use is Dstep to generate bindings for C libraries.