Eko: New Programming language write entirely in D (Feedback welcome)
pouya1dev
poyaxc545 at gmail.com
Fri Aug 21 18:25:43 UTC 2026
On Friday, 21 August 2026 at 18:02:10 UTC, Mindy Batek (0xEAB)
wrote:
> On Friday, 21 August 2026 at 17:54:32 UTC, user1234 wrote:
>> Recently we also had an annouce about someone using D to write
>> a scripting engine but it was AI slop (Kite), so the topic was
>> a bit delicate if you see what I mean.
>
> Talking about scripting, two mentions:
> • arsd.script
> • arsd.mindyscript (WIP, pre-alpha)
I used arsd, especially SimpleDisplay, and I was happy with it.
However, it was difficult to define it as a function that could
be used in the Eko program files. Because some of the functions I
created to call it, although correct, still did not work when
called.
This is the file that I implemented at that time, of course, this
file is very old and is no longer used in the project
```
module ekograp.functions;
import std.stdio;
import arsd.simpledisplay, error, std.regex, std.algorithm,
std.conv;
SimpleWindow[string] windows;
string[] graphic_commends;
Point[string] psave;
ScreenPainter aa;
void clearscreen(SimpleWindow mainscreen, string color, string
line)
{
if (color == "white")
{
graphic_commends ~= "clearwhite";
} else if (color == "black")
{
graphic_commends ~= "clearblack";
} else if (color == "red")
{
graphic_commends ~= "clearred";
} else {
prinPanic(kodes._gclear_faild, line);
}
}
void windowshow(SimpleWindow mainscreen)
{
mainscreen.eventLoop();
}
SimpleWindow initscreen(string title, int size1, int size2)
{
return new SimpleWindow(size1, size2, title);
}
void toLocation(string name, int num1, int num2)
{
psave[name] = Point(num1, num2);
}
```
I think that windows could not be combined into a hash map. But I
am still working on it. Since I was busy implementing the
abstract tree, I could not work on it. It is really interesting
that it even has a scripting language. Do you have more
information about it? Or if possible, could you put a link to the
project's GitHub?
More information about the Digitalmars-d
mailing list