What programming tools do you usually use?

Imperatorn johan_forsberg_86 at hotmail.com
Sat Nov 13 01:02:45 UTC 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


More information about the Digitalmars-d mailing list