Re: Reading IDX Files in D, an introduction to compile time programming

2020-08-23 Thread Carl Sturtivant via Digitalmars-d-announce
On Saturday, 22 August 2020 at 07:04:19 UTC, Petar Kirov [ZombineDev] wrote: I feel like limiting CTFE just gives a false sense of security and destroys many interesting use cases. If a part of my build system will do directory traversal to build the list of files to import, what difference w

Re: Reading IDX Files in D, an introduction to compile time programming

2020-08-23 Thread aberba via Digitalmars-d-announce
On Saturday, 22 August 2020 at 07:04:19 UTC, Petar Kirov [ZombineDev] wrote: On Friday, 21 August 2020 at 20:33:51 UTC, H. S. Teoh wrote: I don't need say that unlimited CTFE has been a huge success for Jai. Never heard of that success BTW. Probably a niche success. But that aside, do you ack

Re: Reading IDX Files in D, an introduction to compile time programming

2020-08-23 Thread Martin Tschierschke via Digitalmars-d-announce
On Friday, 21 August 2020 at 15:04:30 UTC, data pulverizer wrote: I have written an article targeted at people new to D on compile-time programming: https://www.active-analytics.com/blog/reading-idx-files-in-d/ and tweeted it here: https://twitter.com/chibisi/status/1296824381088440320?s=20

Re: Reading IDX Files in D, an introduction to compile time programming

2020-08-22 Thread Petar via Digitalmars-d-announce
On Friday, 21 August 2020 at 20:33:51 UTC, H. S. Teoh wrote: On Fri, Aug 21, 2020 at 01:18:30PM -0700, Ali Çehreli via Digitalmars-d-announce wrote: [...] In my case I found a limitation: I cannot "iterate a directory" and import all file contents in there (the limitation is related to a C libr

Re: Reading IDX Files in D, an introduction to compile time programming

2020-08-21 Thread Ali Çehreli via Digitalmars-d-announce
On 8/21/20 1:33 PM, H. S. Teoh wrote: > On Fri, Aug 21, 2020 at 01:18:30PM -0700, Ali Çehreli via Digitalmars-d-announce wrote: > Generally, I don't expect directory traversal to ever be > allowed at compile-time, since it opens the door to a huge can o' > security worms. :-P I've heard that

Re: Reading IDX Files in D, an introduction to compile time programming

2020-08-21 Thread H. S. Teoh via Digitalmars-d-announce
On Fri, Aug 21, 2020 at 01:18:30PM -0700, Ali Çehreli via Digitalmars-d-announce wrote: [...] > In my case I found a limitation: I cannot "iterate a directory" and > import all file contents in there (the limitation is related to a C > library function not having source code so it cannot be evalua

Re: Reading IDX Files in D, an introduction to compile time programming

2020-08-21 Thread Ali Çehreli via Digitalmars-d-announce
On 8/21/20 8:04 AM, data pulverizer wrote: I have written an article targeted at people new to D on compile-time programming: https://www.active-analytics.com/blog/reading-idx-files-in-d/ and tweeted it here: https://twitter.com/chibisi/status/1296824381088440320?s=20 Comments welcome. Than

Re: Reading IDX Files in D, an introduction to compile time programming

2020-08-21 Thread H. S. Teoh via Digitalmars-d-announce
On Fri, Aug 21, 2020 at 08:54:14AM -0700, H. S. Teoh via Digitalmars-d-announce wrote: > On Fri, Aug 21, 2020 at 03:04:30PM +, data pulverizer via > Digitalmars-d-announce wrote: > > I have written an article targeted at people new to D on > > compile-time programming: > > https://www.active-

Re: Reading IDX Files in D, an introduction to compile time programming

2020-08-21 Thread data pulverizer via Digitalmars-d-announce
On Friday, 21 August 2020 at 15:54:14 UTC, H. S. Teoh wrote: CSS leakage into text in 2nd bullet point under "Introduction": "uspadding: 0.5em;s" should be "uses". Thanks, just fixed it.

Re: Reading IDX Files in D, an introduction to compile time programming

2020-08-21 Thread H. S. Teoh via Digitalmars-d-announce
On Fri, Aug 21, 2020 at 03:04:30PM +, data pulverizer via Digitalmars-d-announce wrote: > I have written an article targeted at people new to D on compile-time > programming: > https://www.active-analytics.com/blog/reading-idx-files-in-d/ [...] CSS leakage into text in 2nd bullet point under

Reading IDX Files in D, an introduction to compile time programming

2020-08-21 Thread data pulverizer via Digitalmars-d-announce
I have written an article targeted at people new to D on compile-time programming: https://www.active-analytics.com/blog/reading-idx-files-in-d/ and tweeted it here: https://twitter.com/chibisi/status/1296824381088440320?s=20 Comments welcome. Thanks in advance.