New ranges and algorithms

2009-12-21 Thread Philippe Sigaud
Hello, I posted to digitalmars.D a month ago to present some modules on ranges and algorithms but I didn't have a repository at the time. Here it is now: http://www.dsource.org/projects/dranges/ Dranges is a small project to bring some new ranges and algorithms to D. Its main source of

Re: New ranges and algorithms

2009-12-22 Thread Philippe Sigaud
bearophile Wrote: Philippe Sigaud: http://www.dsource.org/projects/dranges/ This can improve Phobos2 some. But it's really important that functions written by Andrei, you and other people are tested inside real code (even better is when real code asks for their creation, so

Re: dpldocs.info - easy redirect to phobos docs

2010-02-21 Thread Philippe Sigaud
On Sun, Feb 21, 2010 at 05:43, Adam D. Ruppe destructiona...@gmail.comwrote: On Sat, Feb 20, 2010 at 08:47:03PM -0500, Nick Sabalausky wrote: http://dpldocs.info/phobos or http://dpldocs.info/std brings you to the Phobos homepage. You can also type any of these into the box on the

Re: dpldocs.info - easy redirect to phobos docs

2010-02-22 Thread Philippe Sigaud
On Mon, Feb 22, 2010 at 03:45, Adam D. Ruppe destructiona...@gmail.comwrote: Well, I'm happy with it. More than I thought I'd be too - my simple algorithm is giving decent results with just a minimal number of hand edits! And, of course, the results should only get better with more tweaking.

Re: dmd 1.057 and 2.041 release

2010-03-08 Thread Philippe Sigaud
On Mon, Mar 8, 2010 at 14:22, Steven Schveighoffer schvei...@yahoo.comwrote: The shrinkToFit name is not my favorite, anyone care to submit a better name? minimize is out because it has connotations of math already. minCapacity minimizeCapacity shrinkCapacity shrink (just shrink)

Re: dmd 1.057 and 2.041 release

2010-03-08 Thread Philippe Sigaud
writeln(typeid(typeof(a.init))); // prints: int ?! You mean typeof(a) != typeof((typeof(a)).init) ?! Ugh... I thought (int[2]).init was [0,0] and in general (T[n]).init was [(T.init) n times] writeln(foo(a)); // test.d(14): Error: Array operation s + s not implemented } But now

Re: dmd 1.057 and 2.041 release

2010-03-09 Thread Philippe Sigaud
On Tue, Mar 9, 2010 at 11:29, grauzone n...@example.net wrote: Many of these names (including shrinkToFit) suggest that memory usage is reduced by freeing the left over memory after the array. This is not true: the function just enables stomping of the memory past the slice passed to the

Re: DMDScript now under Boost license

2010-03-31 Thread Philippe Sigaud
On Wed, Mar 31, 2010 at 02:34, Adam Ruppe destructiona...@gmail.com wrote: All right, now I'm actually done for the day. Updated the zip at the link: http://arsdnet.net/dcode/dmdscript_d2.zip se.addFunction!(fun, fun); // adding D functions is just giving the names. the second arg

Re: DMDScript now under Boost license

2010-03-31 Thread Philippe Sigaud
On Wed, Mar 31, 2010 at 21:21, Adam D. Ruppe destructiona...@gmail.comwrote: On Wed, Mar 31, 2010 at 09:03:10PM +0200, Philippe Sigaud wrote: Cool, I wasn't sure it'd work. Now we know what this new trait is for :) It is slightly different than my old code: the getPlainName helper function

Re: Code::Blocks 10.05

2010-06-01 Thread Philippe Sigaud
On Tue, Jun 1, 2010 at 11:35, Matthias Pleh matthias.p...@gmx.at wrote: I know, you can setup codeblocks as you need it. Almost everythink is adjustable. But my changes was thought to help newbies to use the IDE. And that's a pretty good idea. I found CB easy to download and install and much

Re: dflplot 0.01

2010-07-10 Thread Philippe Sigaud
Hmm, my first reply seems lost in limbo... On Sat, Jul 10, 2010 at 06:40, dsimcha dsim...@yahoo.com wrote: In the spirit of making D2 a first-rate scientific computing language, I have just uploaded the first usable version of my DFL-based dflplot plotting library to Scrapple. For those

Re: dflplot 0.01

2010-07-10 Thread Philippe Sigaud
On Sat, Jul 10, 2010 at 15:46, dsimcha dsim...@yahoo.com wrote: == Quote from Philippe Sigaud (philippe.sig...@gmail.com)'s article Out of curiosity, as I don't know DFL, why do you draw everything as text in a scatterplot instead of using small rectangles or lines? This is to give

Re: dflplot 0.01

2010-07-10 Thread Philippe Sigaud
On Sat, Jul 10, 2010 at 17:42, dsimcha dsim...@yahoo.com wrote: This is perfectly feasible, technically speaking. I'm just not sure what it would buy practically speaking. I kind of like the way x's and o's look. Maybe it would be faster for scatter plots with huge amounts of points,

Re: dflplot 0.01

2010-07-11 Thread Philippe Sigaud
On Sun, Jul 11, 2010 at 13:52, Lars T. Kyllingstad pub...@kyllingen.nospamnet wrote: On Sat, 10 Jul 2010 20:51:15 +, dsimcha wrote: BTW, since my attachment didn't actually get attached, I've put up the latest screenshot, produced from my demo/testing function, at:

A tutorial on D templates

2012-01-13 Thread Philippe Sigaud
[Cross-posted with D.learn, since it's also a learning-related post] Hello all, I discovered D a few years ago and, seeing the recent increase in community projects, I looked for a way to bring my own small part to it. I quite like D templates and wanted to try LaTeX again, so I decided to bite

Re: A tutorial on D templates

2012-01-14 Thread Philippe Sigaud
On Fri, Jan 13, 2012 at 23:07, bearophile bearophileh...@lycos.com wrote: Philippe Sigaud: https://github.com/PhilippeSigaud/D-templates-tutorial/blob/master/dtemplates.pdf (click on View Raw) I am using a pdf blocking plug-in, that causes that GitHub link to save a fake pdf file

Re: A tutorial on D templates

2012-01-14 Thread Philippe Sigaud
On Sat, Jan 14, 2012 at 09:16, Walter Bright newshou...@digitalmars.com wrote: On 1/13/2012 1:20 PM, Philippe Sigaud wrote: This also extend to anyone who would want to share some template love/lore with the rest of us. I see you've already done a great deal of work on this, it looks nice

Re: A tutorial on D templates

2012-01-14 Thread Philippe Sigaud
On Sat, Jan 14, 2012 at 14:56, Zachary Lund ad...@computerquip.com wrote: On page 78 where template mixins are discussed, some of the variable names feel rather confusing. I would suggest changing them to be more distinct. OK, added as an issue. You mean all the 'name', 'Named', 'named'?

Re: A tutorial on D templates

2012-01-14 Thread Philippe Sigaud
On Sat, Jan 14, 2012 at 16:56, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: On 1/13/12 3:20 PM, Philippe Sigaud wrote: https://github.com/PhilippeSigaud/D-templates-tutorial/blob/master/dtemplates.pdf (click on View Raw) If you have any comment, criticism, explanation, what

Re: A tutorial on D templates

2012-01-14 Thread Philippe Sigaud
Maybe I'll write a small script to extract code samples and compile them. Do you have anything like this for TPDL? Emailed. Got it, thanks a lot! I have a problem with implicit main() and/or presenting in one sample code that should be in the global scope and some that must be put into a

Re: A tutorial on D templates

2012-01-14 Thread Philippe Sigaud
On Sat, Jan 14, 2012 at 21:07, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: On 1/14/12 5:21 AM, Philippe Sigaud wrote: Uh, I don't think it'll ever be a book. I didn't write it with a book in mind. It's organized as a book (TOC, index, structure) and has 141 pages with quite

Re: A tutorial on D templates

2012-01-14 Thread Philippe Sigaud
On Sat, Jan 14, 2012 at 14:56, Zachary Lund ad...@computerquip.com wrote: On page 78 where template mixins are discussed, some of the variable names feel rather confusing. I would suggest changing them to be more distinct. OK, done. Tell me if it's better?

Re: A tutorial on D templates

2012-01-14 Thread Philippe Sigaud
On Sat, Jan 14, 2012 at 16:56, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: On 1/13/12 3:20 PM, Philippe Sigaud wrote: They are used everywhere in Phobos, D standard library and any D user should know about them. - They are used everywhere in Phobos---D's standard library

Re: A tutorial on D templates

2012-01-14 Thread Philippe Sigaud
On Sat, Jan 14, 2012 at 17:00, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: On 1/14/12 9:56 AM, Andrei Alexandrescu wrote: [snip] Oh, one more thing. It would be great to make the explanatory boxes either floats, sidebars, or \mbox{}es so they don't span more than one page. Look

Re: A tutorial on D templates

2012-01-15 Thread Philippe Sigaud
On Sun, Jan 15, 2012 at 12:26, Jacob Carlborg d...@me.com wrote: I see that you have referenced my Orange library, cool. As for Orange, is it OK with you if I show a small part of it? Is it OK for me to link to the github project? Mainly, I wanted to show some tricks you used in

Re: A tutorial on D templates

2012-01-15 Thread Philippe Sigaud
On Sun, Jan 15, 2012 at 12:16, Jacob Carlborg d...@me.com wrote: Thank you all for the encouragements! Templates is just one part of the language. There are many other parts to write about :) *snort* I do think a big range tutorial is overdue. Andrei's article is good, but we need something

Re: A tutorial on D templates

2012-01-15 Thread Philippe Sigaud
On Sun, Jan 15, 2012 at 11:50, d coder dlang.co...@gmail.com wrote: can't open the pdf with acrobat reader under win7 :( (the file seems to be ok, contains the pdf header) im using the latest acrobat reader x Same here. When I regenerated the pdf after cloning the git repository the pdf

Re: A tutorial on D templates

2012-01-15 Thread Philippe Sigaud
On Sun, Jan 15, 2012 at 03:27, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: On 1/14/12 6:54 PM, Georg Wrede wrote: Why don't we just let the guy write his thing in peace, before demanding a complete book with stylistically professional grammar and style? I mean, at this rate we

Re: A tutorial on D templates

2012-01-15 Thread Philippe Sigaud
On Sun, Jan 15, 2012 at 17:00, Ali Çehreli acehr...@yahoo.com wrote: I do think a big range tutorial is overdue. Andrei's article is good, but we need something a bit more detailed / for newbies I am hoping that this is good enough for now:  http://ddili.org/ders/d.en/ranges.html It sure

Re: A tutorial on D templates

2012-01-17 Thread Philippe Sigaud
On Tue, Jan 17, 2012 at 02:49, Nick Sabalausky a@a.a wrote: dennis luehring dl.so...@gmx.net wrote in message news:jeu3mf$94o$1...@digitalmars.com... https://github.com/PhilippeSigaud/D-templates-tutorial/blob/master/dtemplates.pdf ...with acrobat reader... Eewww.  Do youself a favor and

A tutorial on D templates: updates

2012-01-29 Thread Philippe Sigaud
Hello, I posted there a few weeks ago about a tutorial on D templates I put in github: https://github.com/PhilippeSigaud/D-templates-tutorial/blob/master/dtemplates.pdf Since then, I received numerous mails, issues, advices and thanks. Thank to you all! Following the ideas found in TDPL, I

Re: A tutorial on D templates: updates

2012-01-29 Thread Philippe Sigaud
On Mon, Jan 30, 2012 at 06:16, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: Great! Just give me the green light when you feel this is reddit-publishable. That should be OK now, thanks.

Re: A tutorial on D templates: updates

2012-01-30 Thread Philippe Sigaud
On Mon, Jan 30, 2012 at 13:07, bls bizp...@orange.fr wrote: First of all thank you so much for this wonderful book! Thanks! I would like to ask for a little enhancement regarding mixin templates. see snippet. Yes, this section is still bit short. But, what enhancement are you talking about?

Pegged, a Parsing Expression Grammar (PEG) generator in D

2012-03-10 Thread Philippe Sigaud
Hello, I created a new Github project, Pegged, a Parsing Expression Grammar (PEG) generator in D. https://github.com/PhilippeSigaud/Pegged docs: https://github.com/PhilippeSigaud/Pegged/wiki PEG: http://en.wikipedia.org/wiki/Parsing_expression_grammar The idea is to give the generator a

Re: Pegged, a Parsing Expression Grammar (PEG) generator in D

2012-03-10 Thread Philippe Sigaud
On Sun, Mar 11, 2012 at 00:34, Alex Rønne Petersen xtzgzo...@gmail.com wrote: Admittedly I have not heard of PEGs before, so I'm curious: Is this powerful enough to parse a language such as C? I think so. But you'd have to do add some semantic action to deal with typedefs and macros. People

Re: Pegged, a Parsing Expression Grammar (PEG) generator in D

2012-03-10 Thread Philippe Sigaud
On Sun, Mar 11, 2012 at 00:56, Andrej Mitrovic andrej.mitrov...@gmail.com wrote: I see you are not the only one who started writing string array literals like this: enum PEGCode = grammarCode!(     Grammar - S Definition+ EOI    ,Definition - RuleName Arrow Expression    ,RuleName   -

Re: Pegged, a Parsing Expression Grammar (PEG) generator in D

2012-03-10 Thread Philippe Sigaud
On Sun, Mar 11, 2012 at 08:26, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: I, too, think this is very significant work! Suggestion for Philippe: instead of this: enum PEGCode = grammarCode!(     Grammar - S Definition+ EOI    ,Definition - RuleName Arrow Expression    

Re: Pegged, a Parsing Expression Grammar (PEG) generator in D

2012-03-10 Thread Philippe Sigaud
On Sun, Mar 11, 2012 at 08:26, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: Any chance you consider adding AST generator actions as discussed in the main forum a while ago? The AST is automatically produced, and there are already AST actions to simplify / guide its creation. There

Re: Pegged, a Parsing Expression Grammar (PEG) generator in D

2012-03-10 Thread Philippe Sigaud
On Sun, Mar 11, 2012 at 08:30, Jonathan M Davis jmdavisp...@gmx.com wrote: On Sunday, March 11, 2012 00:28:42 Philippe Sigaud wrote: Hello, I created a new Github project, Pegged, a Parsing Expression Grammar (PEG) generator in D. Cool! PEGs aren't used all that much for language grammars

Re: Pegged, a Parsing Expression Grammar (PEG) generator in D

2012-03-10 Thread Philippe Sigaud
On Sun, Mar 11, 2012 at 08:46, Jonathan M Davis jmdavisp...@gmx.com wrote: Is there an EBNF grammar for D somewhere, I mean outside the dlang docs? Someone may have been trying to write one, but I don't believe that there's an official one, and I recall someone complaining the the BNF grammar

Re: Pegged, a Parsing Expression Grammar (PEG) generator in D

2012-03-10 Thread Philippe Sigaud
On Sun, Mar 11, 2012 at 08:53, Philippe Sigaud philippe.sig...@gmail.com wrote: Anyway, the separating if done on the rule definitions  (Identifier - ...) Aw, I meant, the separation is done on rule definitions. Damn children climbing on me to get more breakfast :-)

Re: Pegged, a Parsing Expression Grammar (PEG) generator in D

2012-03-11 Thread Philippe Sigaud
On Sun, Mar 11, 2012 at 08:51, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: I was thinking of ANTLR-style operators in which you say where the root should be and you get to drop unnecessary nodes. (Post on 2012/02/29 10:19AM GMT-0600.) Get it, thanks for the ref! There is an

Re: Pegged, a Parsing Expression Grammar (PEG) generator in D

2012-03-11 Thread Philippe Sigaud
On Sun, Mar 11, 2012 at 00:34, Alex Rønne Petersenxtzgzo...@gmail.com wrote: [Parsing C?] I think so. But you'd have to do add some semantic action to deal with typedefs and macros. Oh, I should have mentioned I only meant the actual language (ignoring the preprocessor). OK. I admit I

Re: Pegged, a Parsing Expression Grammar (PEG) generator in D

2012-03-11 Thread Philippe Sigaud
Quick question, you mention the ability to opt-out of the space-insensitivity, where might one find this? Yes, undocumented. Use the '' operator. You know, I introduced space-insensitivity recently, to simplify some rules and it keeps biting me back. For example Line - (!EOL .)* EOL The

Re: Pegged, a Parsing Expression Grammar (PEG) generator in D

2012-03-11 Thread Philippe Sigaud
Also, I have sent a pull request to fix the build on 64-bit: https://github.com/PhilippeSigaud/Pegged/pull/1 Merged, thanks!

Re: Pegged, a Parsing Expression Grammar (PEG) generator in D

2012-03-11 Thread Philippe Sigaud
By the way, bootstrap.d seems to fail to build at the moment: ../pegged/utils/bootstrap.d(1433): found ':' when expecting ')' following template argument list ../pegged/utils/bootstrap.d(1433): members expected ../pegged/utils/bootstrap.d(1433): { } expected following aggregate declaration

Re: Pegged, a Parsing Expression Grammar (PEG) generator in D

2012-03-11 Thread Philippe Sigaud
Hm, I don't *think* C has such ambiguities but I could well be wrong. In any case, if it can handle the non-ambiguous case, that's enough for me. I wanted to tackle D this week, but I might as well begin with C :) Do you happen to have any handy and readable EBNF grammar for C? At least for D,

Re: Pegged, From EBNF to PEG

2012-03-13 Thread Philippe Sigaud
On Tue, Mar 13, 2012 at 18:05, Alex Rønne Petersen xtzgzo...@gmail.com wrote: lowerCase - [a-z] upperCase - [A-Z] Identifier - (lowerCase / upperCase) (lowerCase / upperCase)* Why not: Identifier - [a-zA-Z]+ That was an illustrative example from the Pegged docs. But yeah, you should

Re: Pegged, From EBNF to PEG

2012-03-13 Thread Philippe Sigaud
On Mon, Mar 12, 2012 at 13:43, bls bizp...@orange.fr wrote: Just WOW! Thanks! Don't be too excited, it's still quite slow as a parser. But that is a fun project :) Nice to have on your WIKI would be a EBNF to PEG sheet. Wirth EBNF      Pegged A = BC.         A - B C A = B|C.        A - C

Re: Pegged, From EBNF to PEG

2012-03-17 Thread Philippe Sigaud
On Wed, Mar 14, 2012 at 10:48, Dmitry Olshansky dmitry.o...@gmail.com wrote: That's one of the caveats on PEG. That and greedy operators. 'a*a' never succeeds because 'a*' consumes all the available a's. Hey, wait, I thought there has to be backtrack here, i.e. when second 'a' finally

Re: Pegged: Syntax Highlighting

2012-03-17 Thread Philippe Sigaud
On Wed, Mar 14, 2012 at 21:03, Andrej Mitrovic andrej.mitrov...@gmail.com wrote: how would one use a parser like Pegged for syntax highlighting? Ok, typically one would use a lexer and not a parser. But using a parser might be more interesting for creating more complex syntax highlighting.

Re: Pegged, From EBNF to PEG

2012-03-17 Thread Philippe Sigaud
On Sat, Mar 17, 2012 at 10:09, Dmitry Olshansky dmitry.o...@gmail.com wrote: Ok, let's agree on fact that semantically a* is : As - a As / a and a*? is this: As - a / a As Now that's local ;) It's local, yes. But the pb is with Expr - A* B C D, when D fails. PEG sequences don't

Re: Pegged, From EBNF to PEG

2012-03-17 Thread Philippe Sigaud
On Sat, Mar 17, 2012 at 15:48, Dmitry Olshansky dmitry.o...@gmail.com wrote: PEG sequences don't backtrack. I'd argue they do. As I see it as: Expr - As B C D / B C D As - A / A As That's what people doing Regex-to-PEG translations do, yes. But it's not the spontaneous behavior of A* B C D

Re: Pegged: Syntax Highlighting

2012-03-17 Thread Philippe Sigaud
On Sat, Mar 17, 2012 at 15:44, Extrawurst s...@extrawurst.org wrote: On 17.03.2012 15:13, Philippe Sigaud wrote: The D grammar is a 1000-line / hundreds of rules monster. I finished writing it and am now crushing bugs. Any ETA when u gonna commit it for the public ? Wouldn't mind getting my

Re: Pegged: Syntax Highlighting

2012-03-17 Thread Philippe Sigaud
On Sat, Mar 17, 2012 at 18:11, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: The D grammar is a 1000-line / hundreds of rules monster. I finished writing it and am now crushing bugs. God, that generates a 10_000 line module to parse it. I should simplify the code generator

Re: Pegged: Syntax Highlighting

2012-03-27 Thread Philippe Sigaud
On Tue, Mar 27, 2012 at 16:41, Andrej Mitrovic andrej.mitrov...@gmail.com wrote: On 3/17/12, Philippe Sigaud philippe.sig...@gmail.com wrote: If ddmd-clean is OK for you, that's cool. Keep us informed how that went. Seems to work ok: http://i.imgur.com/qGVZD.png Nice one. Care to explain how

Re: Pegged: Syntax Highlighting

2012-03-28 Thread Philippe Sigaud
On Wed, Mar 28, 2012 at 18:06, Andrej Mitrovic andrej.mitrov...@gmail.com wrote: Okay I got it, you've recently changed some code. I can see it mentioned in the readme: By default, the grammars do not silently consume spaces, as this is the standard behavior for PEGs. There is an opt-out

Re: Pegged: Syntax Highlighting

2012-03-28 Thread Philippe Sigaud
On Wed, Mar 28, 2012 at 19:08, Andrej Mitrovic andrej.mitrov...@gmail.com wrote: On 3/28/12, Andrej Mitrovic andrej.mitrov...@gmail.com wrote: snip Ouch, DMD crashes with that autogenerated ddump D grammar file. Yeah, I spent two evenings trying to get why there is a segmentation fault. I

Re: Pegged: Syntax Highlighting

2012-03-28 Thread Philippe Sigaud
On Wed, Mar 28, 2012 at 19:19, Andrej Mitrovic andrej.mitrov...@gmail.com wrote: Also asModule seems to have stopped generating valid modules since the last time I've tried it. I keep getting this error when importing a generated file: arithmetic.d(44): Error: undefined identifier module

Re: Pegged: Syntax Highlighting

2012-03-29 Thread Philippe Sigaud
On Thu, Mar 29, 2012 at 12:40, Andrej Mitrovic andrej.mitrov...@gmail.com wrote: I don't know exactly which files I need to compile Pegged as a library. I propose we move this discussion the 'issues' part of Pegged Github page. No need to pollute the announce ML. FYI, you just need

Re: I'll be in Seattle at Lang.NEXT

2012-04-07 Thread Philippe Sigaud
On Sat, Apr 7, 2012 at 08:33, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: Slides are online: http://channel9.msdn.com/Events/Lang-NEXT/Lang-NEXT-2012/Three-Unlikely-Successful-Features-of-D Nice :) Thanks for choosing my project as one of your examples. Talk will be up in due

Re: JPG and PNG decoder

2012-06-17 Thread Philippe Sigaud
On 6/16/2012 12:10 PM, cal wrote: I've been working on decoders for simple (baseline) JPEG and PNG's, mostly for my own amusement, and they seem to work ok now, so if anyone has need of some simple D modules to load these formats you can grab them here:

Re: JPG and PNG decoder

2012-06-17 Thread Philippe Sigaud
On Sun, Jun 17, 2012 at 9:55 AM, cal callumena...@gmail.com wrote: On Sunday, 17 June 2012 at 07:07:35 UTC, Philippe Sigaud wrote: Still, I'm interested in writing a JPEG/PNG to disk from a ubyte[3][][], or whatever. Do you mean that you want to encode a ubyte array to disk as JPEG/PNG

Re: JPG and PNG decoder

2012-06-17 Thread Philippe Sigaud
On Sun, Jun 17, 2012 at 3:25 PM, Stewart Gordon smjg_1...@yahoo.com wrote: FWIW a while ago I wrote a simple experimental program that generates an image and encodes it as a PNG.  And I've just tweaked it and updated it to D2 (attached).  It supports only truecolour with 8 bits per sample, but

Re: Dscanner - It exists

2012-08-01 Thread Philippe Sigaud
On Wed, Aug 1, 2012 at 7:30 PM, Brian Schott briancsch...@gmail.com wrote: First: This is not a release announcement. I want to let people know that Dscanner *exists*. https://github.com/Hackerpilot/Dscanner/ What it does: * Has a D lexer (...) * Can generate a JSON summary of D code. I

Re: Dscanner - It exists

2012-08-01 Thread Philippe Sigaud
On Wed, Aug 1, 2012 at 11:03 PM, Brian Schott briancsch...@gmail.com wrote: It's more likely that I'll remember things if they're enhancement requests/bugs on Github. Right, I say the same to people asking for things in my projects :) OK, done.

Re: Dscanner - It exists

2012-08-01 Thread Philippe Sigaud
On Wed, Aug 1, 2012 at 11:35 PM, Marco Leise marco.le...@gmx.de wrote: Am Wed, 1 Aug 2012 22:39:41 +0200 schrieb Philippe Sigaud philippe.sig...@gmail.com: I just tested the JSON output and it works nicely. Finally, a way to get imports! What does it do if you import from _inside_

Re: dmd 1.075 and 2.060 release

2012-08-02 Thread Philippe Sigaud
On Thu, Aug 2, 2012 at 10:18 PM, dnewbie r...@myopera.com wrote: Memory usage of my program when compiled by dmd2.057, 2.058, 2.059 2.060: http://postimage.org/image/hqn6l4l8p/ It's a great improvement. Thanks for the new release. Wow.

Re: dmd 1.075 and 2.060 release

2012-08-03 Thread Philippe Sigaud
On Fri, Aug 3, 2012 at 10:25 AM, Mike James f...@bar.com wrote: Well, I installed by hand on windows, as I did for the previous releases and nothing links anymore. Then, at home, the same for linux. I did the exact moves/copies I did for 2.057, 2.058 and 2.059 and I never had this problem before.

Re: dmd 1.075 and 2.060 release

2012-08-03 Thread Philippe Sigaud
On Fri, Aug 3, 2012 at 7:22 PM, Andrej Mitrovic andrej.mitrov...@gmail.com wrote: On 8/3/12, Philippe Sigaud philippe.sig...@gmail.com wrote: On Fri, Aug 3, 2012 at 10:25 AM, Mike James f...@bar.com wrote: Well, I installed by hand on windows, as I did for the previous releases and nothing

Re: dmd 1.075 and 2.060 release

2012-08-03 Thread Philippe Sigaud
On Fri, Aug 3, 2012 at 7:48 PM, Dmitry Olshansky dmitry.o...@gmail.com wrote: If you (like I did) just extract zip over your dmd installation this could lead to unpleasant surprise as some files should be now deleted yet new compiler will happily pick up old ones and get to a link error.

Re: Wrote a blog post about CTFE and D

2012-08-30 Thread Philippe Sigaud
On Thu, Aug 30, 2012 at 7:10 PM, Danny Arends danny.are...@gmail.com wrote: I wrote a blog post about the stuff I've been doing last weekend using CTFE. All comments are welcome, you can find the blog post at: http://www.dannyarends.nl/index.cgi?viewDetailed=00029 Nice article, Danny! A

Re: Programming in D book is about 62% translated

2012-09-16 Thread Philippe Sigaud
On Sun, Sep 16, 2012 at 8:40 AM, Ali Çehreli acehr...@yahoo.com wrote: I have continued with the translation of the book. At this point there are 439 pages in English of total 703 pages in Turkish. In addition to many corrections and additions throughout the book, there are two more chapters

Re: Remus

2012-10-30 Thread Philippe Sigaud
It would be really awesome if you could play around with making the AST available during compilation so we can alter it using ctfe. I have a compile-time parser and code generator project here: https://github.com/PhilippeSigaud/Pegged We are adding a D grammar in there and there is a

Re: Abstract Database Interface

2012-10-30 Thread Philippe Sigaud
On Tue, Oct 30, 2012 at 9:15 AM, Jacob Carlborg d...@me.com wrote: On 2012-10-30 04:22, BLM768 wrote: If you make x some fancy wrapper type containing more fancy wrapper types with overloaded equality operators that return some sort of Expression class instead of a boolean, you might actually

Re: Abstract Database Interface

2012-10-30 Thread Philippe Sigaud
On Tue, Oct 30, 2012 at 3:44 PM, Jacob Carlborg d...@me.com wrote: How does that work with operator precedence? (...) But because of the operator precedence in Ruby you need to wrap every comparison in parentheses, not very pretty. I think the problem would the same here. Of course, to know D

Re: Abstract Database Interface

2012-10-31 Thread Philippe Sigaud
Timon: From higher to lower, where relational ops are unordered with respect to bitwise ops (this is the reason comparisons would have to be wrapped in parentheses in D as well): ! = (not a real operator, occurs twice this is binding power to the left) . ++ -- ( [ ^^ (right-associative)

Re: D 1.076 and 2.061 release

2013-01-03 Thread Philippe Sigaud
On Thu, Jan 3, 2013 at 9:00 PM, David Nadlinger s...@klickverbot.at wrote: On Thursday, 3 January 2013 at 19:36:31 UTC, Jonathan M Davis wrote: In fact, I think that _every_ item in Phobos' changelog.d was lost. That information needs to be presented to users. Agreed – while it is great to

Re: D 1.076 and 2.061 release

2013-01-04 Thread Philippe Sigaud
FWIW, you can see some info here: http://forum.dlang.org/thread/**k7afq6$2832$1...@digitalmars.comhttp://forum.dlang.org/thread/k7afq6$2832$1...@digitalmars.com Yeah, I read that when it happened. But I don't want to read entire threads months afterwards to see how a feature work. And,

Re: D 1.076 and 2.061 release

2013-01-04 Thread Philippe Sigaud
I create a pull request with docs for UDA's: https://github.com/D-**Programming-Language/d-** programming-language.org/pull/**231https://github.com/D-Programming-Language/d-programming-language.org/pull/231 Nice move! Too bad I get a pink unicorn from this one. Github is becoming stranger

Re: D 1.076 and 2.061 release

2013-01-04 Thread Philippe Sigaud
On Friday, 4 January 2013 at 15:26:35 UTC, Jacob Carlborg wrote: Works for me. Try this one: https://github.com/jacob-carlborg/d-programming-language.org/commit/bddbdf18353203ba12d8e0e44391e8b6a031b91a Yeah, that works, thanks! Now for some reading. I'll still start a thread on D.main,

Re: D 1.076 and 2.061 release

2013-01-04 Thread Philippe Sigaud
On Fri, Jan 4, 2013 at 5:13 PM, Jonathan M Davis jmdavisp...@gmx.comwrote: On Friday, January 04, 2013 15:03:42 deadalnix wrote: Isn't that feature supposed to be here in that form for strategic reasons and should remains kind of hidden ? Yeah. I thought that UDAs were supposed to be

Re: D 1.076 and 2.061 release

2013-01-04 Thread Philippe Sigaud
On Fri, Jan 4, 2013 at 5:50 PM, Jonathan M Davis jmdavisp...@gmx.comwrote: They were shoved out the door without being fully sorted out first instead of being done on a separate branch first and sorted out there prior to being released. Yeah. OK, water under the bridge. I thought that

Re: D 1.076 and 2.061 release

2013-01-04 Thread Philippe Sigaud
On Fri, Jan 4, 2013 at 6:13 PM, Pierre Rouleau prouleau...@gmail.comwrote: If this is the case, why not add the mention experimental inside the documentation? Readers (users and developers) would be aware of the new feature and the fact that it might change or go away. /Pierre Ow,

Re: Mono-D v0.4.6 - UDA parsing support

2013-01-06 Thread Philippe Sigaud
Oh, no you actually can type deprecated(Don't do this because!) void oldFoo() {} now. You can? Wow, yet another change that was not in the docs? I'm becoming bitter, here. With the 'deprecated' attribute syntax I meant this [..] attribute syntax, nothing else. :) OK. Good job,

Re: D 1.076 and 2.061 release

2013-01-06 Thread Philippe Sigaud
On Sun, Jan 6, 2013 at 6:56 PM, Pierre Rouleau prouleau...@gmail.comwrote: So, again, this is why I was asking whether you guys thought it would be a good idea for me to start a discussion somewhere in one of the D mailing lists, to gather the list of new features planned for the future

Re: Runtime code reloading in D, part 1

2013-01-06 Thread Philippe Sigaud
On Sun, Jan 6, 2013 at 6:49 PM, Dmitry Olshansky dmitry.o...@gmail.comwrote: Regarding toString there is a better signature that avoids useless allocations: void toString(scope void delegate(const (char)[]) sink); It takes a delegate to output string representation directly to the

Re: D 1.076 and 2.061 release

2013-01-06 Thread Philippe Sigaud
The main newsgroup. Normally, D.announce should not contain this kind of conversation. It's supposed to be a low-bandwidth list for announcing projects and releases.

Re: D 1.076 and 2.061 release

2013-01-09 Thread Philippe Sigaud
On Wed, Jan 9, 2013 at 9:52 AM, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: There is something to be said about proportional response. Shall we stop this now? I propose to start another thread, maybe more constructive, where I propose a small text describing what's new in 2.061.

Re: Programming in D book is about 78% translated

2013-02-01 Thread Philippe Sigaud
On Fri, Feb 1, 2013 at 6:10 AM, Ali Çehreli acehr...@yahoo.com wrote: I have continued with the translation of the book. At this point there are 551 pages in English of total 711 pages in Turkish. In addition to many corrections and additions throughout the book, there are the following

Re: Programming in D book is about 78% translated

2013-02-22 Thread Philippe Sigaud
On Fri, Feb 22, 2013 at 6:15 PM, Ali Çehreli acehr...@yahoo.com wrote: On 02/01/2013 03:55 AM, Philippe Sigaud wrote: I like how you introduce the new syntax for 'alias' and 'alias this'. I just learned that 'alias this' has been converted to the old syntax in 2.062. I can't find any obvious

Re: DCD 0.2.0 Released

2013-11-13 Thread Philippe Sigaud
This project imports stdx.d.(lexer/parser/ast). Where can I find these modules? On Thu, Nov 14, 2013 at 8:19 AM, Jacob Carlborg d...@me.com wrote: On 2013-11-13 20:40, Brian Schott wrote: DCD 0.2.0 is released. Github Project: https://github.com/Hackerpilot/DCD Release Tag:

Re: Range-Based Graph Search in D (blog post)

2014-01-11 Thread Philippe Sigaud
Trying to write a bit more about D on my blog now. To start, I've written about a proof-of-concept range-based API for graph search. http://poita.org/2014/01/09/range-based-graph-search-in-d.html I'd greatly appreciate any feedback on the design. As we don't yet have a graph library for D,

Re: Lumen will be a part of the KDE 4.13 Release

2014-02-21 Thread Philippe Sigaud
On Thursday, 20 February 2014 at 14:16:51 UTC, David wrote: Lumen, the DCD plugin for Kate/KDevelop will be included in the KDE 4.13 release: http://kate-editor.org/2014/02/20/lumen-a-code-completion-plugin-for-the-d-programming-language/ Oh boy oh boy. I'm using Kate daily to code in D (I

Re: My D book is now officially coming soon

2014-03-03 Thread Philippe Sigaud
On Mon, 03 Mar 2014 11:37:48 -0500, Adam D. Ruppe destructiona...@gmail.com wrote: As some of you might know, I've been working on a D book over the last few months. It is now available as coming soon on the publisher's website:

Re: Article: Functional image processing in D

2014-03-22 Thread Philippe Sigaud
On Fri, Mar 21, 2014 at 12:04 PM, Vladimir Panteleev vladi...@thecybershadow.net wrote: http://blog.thecybershadow.net/2014/03/21/functional-image-processing-in-d/ Some highlights from a recent overhaul of the graphics package from my D library. It makes use of a number of D-specific language

Re: Article: Functional image processing in D

2014-03-22 Thread Philippe Sigaud
On Sat, Mar 22, 2014 at 4:10 PM, Graham Fawcett fawc...@uwindsor.ca wrote: I think this is it: https://github.com/CyberShadow/ae Hmm, there is the /demo directory, that can be useful. But I don't see any documentation per se.

Re: 1st draft of complete class-based std.random successor

2014-03-23 Thread Philippe Sigaud
On Sun, Mar 23, 2014 at 11:17 AM, bearophile bearophileh...@lycos.com wrote: Joseph Rushton Wakeling: int r = data[uniform![)(0, data.length)]; D also accepts: immutable r = data[uniform![)(0, $)]; Really? The '$' part works?

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

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

  1   2   >