Re: Remus

2012-11-07 Thread Aziz K.
On Mon, 05 Nov 2012 18:54:31 +0100, Namespace rswhi...@googlemail.com wrote: I am considering to rewrite Remus from the ground up. Because I hope that Remus earn next time more interest, I would like to vote or discuss the features. Writing a D parser from the ground up, even if it's

Re: D seems interesting, but...

2012-10-15 Thread Aziz K.
On Mon, 15 Oct 2012 08:36:22 +0200, Gerry Weaver ger...@compvia.com wrote: Hi, I removed the dmd package and downloaded the .zip. I checked for any files that were left behind when the package was removed and they are gone. I then ran dmd from the zip package, but I get the same result.

Re: Automated D code editing?

2012-10-13 Thread Aziz K.
On Fri, 12 Oct 2012 21:43:07 +0200, Andrej Mitrovic andrej.mitrov...@gmail.com wrote: You mean at compile-time? Try this: http://dpaste.dzfl.pl/06b95c3f Copied below: [SNIP] That's pretty ingenious!

Re: BNF grammar for D?

2012-10-12 Thread Aziz K.
Hi, I can give you three options to choose from. There's the official grammar (don't know what the form is called): http://dlang.org/declaration.html A Parser Expression Grammar (PEG): https://github.com/PhilippeSigaud/Pegged/blob/master/pegged/examples/dparser.d The source code comments in

Re: revamped candydoc

2012-10-12 Thread Aziz K.
On Fri, 12 Oct 2012 08:16:54 +0200, Jacob Carlborg d...@me.com wrote: Why is that? Tango is working just fine and Phobos is still missing some stuff that Tango has. Actually, I'm using both and there's nothing wrong with that. Tango is just yet another third party library. Yeah, no

Re: revamped candydoc

2012-10-12 Thread Aziz K.
On Thu, 11 Oct 2012 21:30:11 +0200, Jacob Carlborg d...@me.com wrote: I liked the style that the Tango docs are using much better. What? You don't like my soft, green colours? Shame on you! :P Ok, I'm not happy with the style myself, but I want to concentrate on functionality more atm.

Re: Automated D code editing?

2012-10-12 Thread Aziz K.
On Fri, 12 Oct 2012 19:51:02 +0200, Lubos Pintes lubos.pin...@gmail.com wrote: Hi, I am still playing with DGUI library. Besides other things, I would like to convert enum names from THIS_STUPID_NAMING_CONVENTION_WHICH_I_ABSOLUTELY_HATE to thisGoodOne. Obviously I could do this by hand but

Re: floating point divide

2012-10-11 Thread Aziz K.
int n1 = 10, n2 = 2; float f = (n1+0.0f)/n2; Casting n1 to float would also work, but I hope the compiler is smart enough to optimize away the plus expression.

Re: revamped candydoc

2012-10-11 Thread Aziz K.
Hi, You might also want to check out my solution to generating documentation for D projects. I've just run DIL on Phobos2 and uploaded the files to my Dropbox account: http://dl.dropbox.com/u/17101773/doc/phobos2/index.html Where else would you get a PDF of everything in Phobos2, but here

Re: revamped candydoc

2012-10-11 Thread Aziz K.
It's very easy to use DIL for doc generation (at least I try hard to make it so.) In your case you'd just have to run this command (use -I as well if required): dil ddoc path/to/output/ package1/*.d package2/*.d -v --kandil -hl Check out http://code.google.com/p/dil/wiki/Kandil for more

Re: revamped candydoc

2012-10-11 Thread Aziz K.
I'll be happy to help you compile DIL yourself. That way I can see where my assumptions are false and my instructions are lacking and make it work for different platforms and needs. I've been considering just copying Tango's files to my src folder, because it would make compiling much

Re: revamped candydoc

2012-10-11 Thread Aziz K.
On Thu, 11 Oct 2012 21:33:15 +0200, Jacob Carlborg d...@me.com wrote: If you're using git you could add Tango as a submodule. I'm talking about Tango-D2 here, I heard you're porting Dil to D2. It might be possible for D1 as well using git svn. Interesting, I didn't realize until now that

Re: Preliminary submission - std.rational and std.typelist

2012-10-09 Thread Aziz K.
On Mon, 08 Oct 2012 23:01:42 +0200, Ellery Newcomer ellery-newco...@utulsa.edu wrote: Wasn't Paul D. Anderson working on a BigFloat? Thanks for the hint. I found his project on github: https://github.com/andersonpd/decimal Seems fairly complete and usable. Hope he's going to continue to

Re: DMD 2.060

2012-10-08 Thread Aziz K.
On Sun, 07 Oct 2012 12:39:59 +0200, Walter Bright newshou...@digitalmars.com wrote: A list of relevant bugzilla entries would be illuminating. There's a regression in 2.060 which affects my project. Was first reported here: http://d.puremagic.com/issues/show_bug.cgi?id=4192 The

Re: Preliminary submission - std.rational and std.typelist

2012-10-08 Thread Aziz K.
On Mon, 08 Oct 2012 09:28:37 +0200, H. S. Teoh hst...@quickfur.ath.cx wrote: I'd like to chime in to state that I'd love to have Rational support BigInt. If necessary, use an arbitrary-width floating point format for floating point conversions (BigFloat?). Incidentally, I would very much

Re: Dangling if

2012-10-01 Thread Aziz K.
On Fri, 28 Sep 2012 06:03:41 +0200, Bernard Helyer b.hel...@gmail.com wrote: By the time the compiler even has a concept of an 'if statement' or a 'block' the whitespace is long gone. Not to say you couldn't change the lexing model to detect such things, but it's not a simple as you make it

Re: Dangling if

2012-10-01 Thread Aziz K.
On Mon, 01 Oct 2012 14:41:01 +0200, Andrej Mitrovic andrej.mitrov...@gmail.com wrote: I'm realizing now it's not just blank spaces. There could be a comment line instead. :) Okay, but that doesn't really make it more difficult. :-) -- My D Compiler: http://code.google.com/p/dil

Re: DIL v2.000 release

2012-09-25 Thread Aziz K.
Okay, so I tested the Windows binary and it actually works. My build script used wine 1.5.13 to compile Tango and DIL. To me it's a pleasant surprise that it doesn't crash (considering that wine displayed some weird error message boxes when compiling Tango.) Watch this link if you're

Re: DIL v2.000 release

2012-09-24 Thread Aziz K.
So I got informed that the 64bit Linux version doesn't work at all. Sorry about that. Either I'm doing something wrong or cross-compilation isn't possible on my 32bit machine. *sigh*

Re: DIL v2.000 release

2012-09-24 Thread Aziz K.
On Sun, 23 Sep 2012 23:35:23 +0200, Walter Bright newshou...@digitalmars.com wrote: Great! Yep! Been there for years. Started with SVN, moved to hg (sharesource.org) and then finally to git/github. ;-)

Re: DIL v2.000 release

2012-09-24 Thread Aziz K.
On Mon, 24 Sep 2012 17:43:50 +0200, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: This is very interesting. We could use some dogfooding of the compiler, not to mention using a better language. Oh lawdy, I couldn't bear writing tons of code in C++. It conjures up images of

Re: DIL v2.000 release

2012-09-24 Thread Aziz K.
On Mon, 24 Sep 2012 19:28:10 +0200, Salih Dincer sali...@hotmail.com wrote: Aziz tebrikler (congrat.), that's great... Teşekkürler! ;-)

Re: Let's give a honor to dead giants!

2012-04-30 Thread Aziz K.
Hi, On Fri, 20 Apr 2012 09:54:48 +0200, Jacob Carlborg d...@me.com wrote: I think Dil has been ported to D2 just recently. That's right. ;-) (One or two issues make it a bit unsuable atm, though.) -- My D Compiler: http://code.google.com/p/dil

Re: repeat

2011-01-18 Thread Aziz K.
I would prefer it to work like this: repeat(abc, 3) - abcabcabc repeat([abc], 3) - [abc,abc,abc] repeat([1,2,3], 3) - [1,2,3,1,2,3,1,2,3] -- Dil D compiler: http://code.google.com/p/dil/

Re: repeat

2011-01-18 Thread Aziz K.
Okay, so your arrayOf() function could be written as: auto arrayOf(T x, uint n){ return repeat([x], n); } Only needs to wrap the argument inside another array literal.

Studying the DMD front-end and contributing to similar projects?

2010-05-02 Thread Aziz K.
Hi, The specs are not always helpful when you need to know how to write a compiler for D programs. Is it okay to study the code of the front-end of DMD, and also contribute to similar projects under a different license? What are the restrictions in this regard? -- Aziz -- Dil:

Re: Studying the DMD front-end and contributing to similar projects?

2010-05-02 Thread Aziz K.
Walter Bright wrote: I use the compiler source in my Compiler Construction Seminar (http://www.astoriseminar.com). So yes, you are free to study the code, learn from it, apply the techniques in your own projects, and contribute to other projects under a different license. Great. Thanks

Change some keywords and enum manifests?

2010-04-27 Thread Aziz K.
Hi, Since we've got the attribute syntax (@identifier), wouldn't it be good to convert certain keywords to use this syntax? E.g.: nothrow - @nothrow pure - @pure Bam! Two fewer keywords in the language. :-) On a related note, I would like to suggest to get rid of the ugly enum manifest

Re: Change some keywords and enum manifests?

2010-04-27 Thread Aziz K.
bearophile wrote: @manifest int x = 2010; // we use this. :-) :D I don't like that a lot :-) It's almost worse than enum. Try again. The idea is to reduce the number of keywords, so the use of @ is a must. But like I suggested, alternatively we could simply replace enum manifests with

Re: Change some keywords and enum manifests?

2010-04-27 Thread Aziz K.
Don wrote: That ship has long since sailed. Please don't waste any more thought on it. (It's just a hack to get around OPTLINK limitations, actually). I don't see what it has to do with OPTLINK. This is about syntax and the parser in the front-end. -- Dil: http://code.google.com/p/dil/

Re: An example of Clang error messages

2010-03-06 Thread Aziz K.
More correctly: DİL ;) Yeah, but English users won't like that. :P Turkish speakers can refer to it as DİL if they like.

Re: An example of Clang error messages

2010-03-05 Thread Aziz K.
Hi, - Create a front-end in D almost from scratch. I've been developing a D compiler, and I started completely from scratch. ;) But the most difficult part still lies ahead of me: Semantic Analysis. That's why DIL (looks good in caps I guess) still can't produce any binaries. At least it

Re: dil: updated to Tango 0.99.9

2010-02-27 Thread Aziz K.
Hi! You're welcome. Please explain, what exactly would you like me to update? I already plan to upload new documentation files for Tango, Phobos and MiniD2. Got anything else in mind?