On Saturday, 24 May 2025 at 12:53:21 UTC, realhet wrote:
On Friday, 23 May 2025 at 13:10:47 UTC, Dennis wrote:
Now I reached a point it's quite stable.
I had 2 problems to solve:
1. glslc.exe (the external compiler) sometimes freezed at the
exit.
Solution: Use a modified version of executeShel
On Friday, 23 May 2025 at 13:10:47 UTC, Dennis wrote:
I recommend keeping it simple, cover common cases and don't try
to make it perfect, because it won't be. But if you do somehow
make it perfect, post your results, I'd love to see it!
When you look at it through my glasses (graphical IDE), I
On Friday, 23 May 2025 at 22:11:58 UTC, Ali Çehreli wrote:
On 5/23/25 6:10 AM, Dennis wrote:
> This results in a complex system that's more annoying to deal
with than
> the original problem of just maintaining a .d file and shader
file in
> parallel, which is what I'm doing now for the time bein
On 5/23/25 6:10 AM, Dennis wrote:
> This results in a complex system that's more annoying to deal with than
> the original problem of just maintaining a .d file and shader file in
> parallel, which is what I'm doing now for the time being.
Approved! Sounds like engineering to me. :)
Ali
On Friday, 23 May 2025 at 12:06:00 UTC, realhet wrote:
- export: It was possible to export data (20MByte) from the
compiler in seconds, using pragma(msg, ...) Just don't touch
the large data with CTFE.
pragma(msg) is meant to print informative human-readable strings
for debugging purposes. I
On Wednesday, 21 May 2025 at 15:20:57 UTC, realhet wrote:
Why are these simple looking things are so slow in compile time?
Now I learned why: I had the misconception that CTFE is using the
compiler itself to generate code and then runs it with the CPU.
In reality I've found out it's an inter
On Wednesday, 21 May 2025 at 14:40:21 UTC, realhet wrote:
On Wednesday, 21 May 2025 at 14:00:56 UTC, realhet wrote:
Small program to reproduce.
I'm lucky:
`pragma(msg, "Here comes the big data: ", data);`
With this simple way I managed to put 16MB large data through it
in no time.
It was new t
On Wednesday, 21 May 2025 at 14:00:56 UTC, realhet wrote:
Hi,
Small program to reproduce.
```d
import std;
string doit(string data)()
{
static foreach(i; 0..256)
{
pragma(msg, i"Here goes lots of data:
$(cast(ubyte[])data)".text);
}
return "dummy";
}
static
Hi,
I have a pragma(msg, xxx) statement where x is a byte array of
30KBytes.
LDC2 produces the following symptom: It's memory usage goes
slowly up to the maximum (20GB) then stops with out of memory
error. The amount of used memory grows in an exponentially
slowing rate. (I guess it's a rea