Re: Pegged v0.4: longest-match, left-recursion, and expandable parse trees

2017-03-03 Thread Philippe Sigaud via Digitalmars-d-announce
Thank you all for the positive comments!

Pegged v0.4: longest-match, left-recursion, and expandable parse trees

2017-03-02 Thread Philippe Sigaud via Digitalmars-d-announce
Hi, Pegged is a parser generator based on Parsing Expression Grammars (PEG) written in D, that aims to be both simple to use and work at compile-time. See: https://github.com/PhilippeSigaud/Pegged To use Pegged, just call the grammar function with a PEG and mix it in your module. For

Re: Daemonize v0.1 - simple way to create cross-platform daemons

2014-08-31 Thread Philippe Sigaud via Digitalmars-d-announce
Nice! I have a few questions/remarks, mainly to simplify the API somewhat. Please bear with me :-) // First you need to describe your daemon via template alias daemon = Daemon!( DaemonizeExample1, // unique name Does the user sees/uses this name in any way afterwards? Because I think you

Re: Daemonize v0.1 - simple way to create cross-platform daemons

2014-08-31 Thread Philippe Sigaud via Digitalmars-d-announce
Does the user sees/uses this name in any way afterwards? Because I think you could also produce a unique string at compile-time (by using __FILE__ and __LINE__, unless someone has a better idea), if the user does not provide one. Maybe he just wants an anonymous daemon, or doesn't care,

Re: Daemonize v0.1 - simple way to create cross-platform daemons

2014-08-31 Thread Philippe Sigaud via Digitalmars-d-announce
On Sun, Aug 31, 2014 at 11:36 PM, Meta via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: I didn't know you could have an enum and extend it with a cast like this. This is not a good thing. Enums are supposed to denote a *closed*, enumerated set of items. I agree. It's

Re: Daemonize v0.1 - simple way to create cross-platform daemons

2014-08-31 Thread Philippe Sigaud via Digitalmars-d-announce
I can (not must) have the form, the delegate params are tested independently from signal composition. OK, good. Is that the standard behavior for daemons in OSes? Most signals are simply ignored (except termination ones). I see. Some signals could be sent without any reason: sighup or

Re: Pushing D's mixin to the limits: Project Euler Problem 61 from Ruby to D by David Oftedal

2014-06-12 Thread Philippe Sigaud via Digitalmars-d-announce
Drat, I need a livejournal account to post comments? Well, I can at least create a reddit account, I guess... In the Ruby version, I was able to add the methods directly to the Integer class, using what's known as monkey patching, allowing me to make calls like3.pentagonal. In D, the methods are

Re: Pushing D's mixin to the limits: Project Euler Problem 61 from Ruby to D by David Oftedal

2014-06-12 Thread Philippe Sigaud via Digitalmars-d-announce
On Thu, Jun 12, 2014 at 10:35 PM, Rounin via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: Hey there! Oh cool, thanks for answering! Yeah, to expect people to register on LiveJournal in this age of Facebook... Sorry about that; It must have been to deter the spammers.

Re: DConf 2014 Day 1 Talk 2

2014-06-05 Thread Philippe Sigaud via Digitalmars-d-announce
On Tue, Jun 3, 2014 at 10:54 PM, Jonathan Crapuchettes Here is a link to the slides from the presentation. http://slides.com/jonathancrapuchettes/dconf On the 'issues with D' slide, you cite 'Can't get member names from Tuples'. Do you mean: alias Entry = Tuple!(int, index, string, value);

Re: DConf 2014 Day 1 Talk 2

2014-06-03 Thread Philippe Sigaud via Digitalmars-d-announce
On Tue, Jun 3, 2014 at 10:54 PM, Jonathan Crapuchettes via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: Here is a link to the slides from the presentation. http://slides.com/jonathancrapuchettes/dconf Very nice talk! And quite an interesting piece of software you built

Re: Adam D. Ruppe's D Cookbook now available!

2014-05-29 Thread Philippe Sigaud via Digitalmars-d-announce
On Thu, May 29, 2014 at 12:28 PM, Chris via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: On Wednesday, 28 May 2014 at 18:14:28 UTC, Walter Bright wrote: http://www.packtpub.com/discover-advantages-of-programming-in-d-cookbook/book

Re: Adam D. Ruppe's D Cookbook now available!

2014-05-29 Thread Philippe Sigaud via Digitalmars-d-announce
On Thu, May 29, 2014 at 2:31 PM, Jacob Carlborg wrote: Amazon has a version for their Kindle [1]. I have not seen any mentioning of other formats. [1] http://www.amazon.com/D-Cookbook-Adam-D-Ruppe-ebook/dp/B00KLAJ62M/ref=sr_1_1_title_1_kin?s=booksie=UTF8qid=1401366690sr=1-1 But the paper

Re: Scott Meyers' DConf 2014 keynote The Last Thing D Needs

2014-05-27 Thread Philippe Sigaud via Digitalmars-d-announce
I did a translation of most of the code in the slides. http://dpaste.dzfl.pl/72b5cfcb72e4 I'm planning to transform it into blog post (or series). Right now it just has some scratch notes. Feel free to let me know everything I got wrong. That's a good idea. I think most of us did that while