Re: Call an external program from CTFE

2024-06-25 Thread anyaburke via Digitalmars-d-learn
On Monday, 24 June 2024 at 09:52:48 UTC, realhet wrote: On Sunday, 23 June 2024 at 16:46:05 UTC, monkyyy wrote: [...] Good idea, thx! The two directions of this communication path could be: 1. LDC2 -> External process: pragma(msg, x) produces specially formatted message to the stdErr, my b

Re: Call an external program from CTFE

2024-06-24 Thread realhet via Digitalmars-d-learn
On Sunday, 23 June 2024 at 16:42:43 UTC, Richard (Rikki) Andrew Cattermole wrote: See above why the string imports was designed that way. I totally forgot the name "string imports". Now I remember, thanks. That's one data direction of the 2.

Re: Call an external program from CTFE

2024-06-24 Thread realhet via Digitalmars-d-learn
On Sunday, 23 June 2024 at 16:46:05 UTC, monkyyy wrote: On Sunday, 23 June 2024 at 16:33:54 UTC, realhet wrote: realistically you should just write a build script with two stages fun thought experiment time, if you found a programmable "FUSE"(file system api) database of some sort, mixed `-J`

Re: Call an external program from CTFE

2024-06-23 Thread monkyyy via Digitalmars-d-learn
On Sunday, 23 June 2024 at 16:33:54 UTC, realhet wrote: Hi, Is there a way to call an external program from CTFE? Use case: Inside a module I want to put some GLSL code. I also want to generate that GLSL code using CTFE. And when it's done, it would be nice if I was able to save that

Re: Call an external program from CTFE

2024-06-23 Thread Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
On 24/06/2024 4:33 AM, realhet wrote: Hi, Is there a way to call an external program from CTFE? No. This is on purpose due to "security" and reproducibility concerns. The nearest thing I've found is the "include file contents" 'macro', that can be en

Call an external program from CTFE

2024-06-23 Thread realhet via Digitalmars-d-learn
Hi, Is there a way to call an external program from CTFE? Use case: Inside a module I want to put some GLSL code. I also want to generate that GLSL code using CTFE. And when it's done, it would be nice if I was able to save that GLSL code into a temp file and call the glsl compiler on it