Re: Csmith - C compiler stress test

2011-04-13 Thread Emil Madsen
On 13 April 2011 17:27, David Nadlinger wrote: > On 4/13/11 5:16 PM, Trass3r wrote: > >> I think I also came across such a tool but I'm not sure if it was this >> one. >> Since it uses a grammar (subset) to generate the programs it should be >> perfectly possible to adapt it for D. >> Though it "

Re: http://lang-index.sourceforge.net/

2011-04-13 Thread Emil Madsen
On 11 April 2011 03:22, Andrei Alexandrescu wrote: > I wonder how accurate this language popularity index is. > > Andrei > I wouldn't belive it; 1 result on youtube? - atleast according to the table, but I'm getting 1410,

Re: image processing in D

2011-04-08 Thread Emil Madsen
On 7 April 2011 17:55, Eric Poggel (JoeCoder) wrote: > On 4/3/2011 6:35 PM, Emil Madsen wrote: > >> This about image processing, got me thinking, hows the shader support >> for D currently? - Interfaceable though C? >> Because for image processing, thats def. the w

Re: Code example on www.d-programming-language.org?

2011-04-04 Thread Emil Madsen
On 5 April 2011 00:02, bearophile wrote: > Andrei: > > > Clearly finding a good example with such conflicting requirements is not > > easy and there's no need to restate that. If it were easy I would've > > done it. What is needed is an example that successfully finds the sweet > > spot. > > In m

Re: image processing in D

2011-04-03 Thread Emil Madsen
On 3 April 2011 20:33, Andrei Alexandrescu wrote: > On 4/3/11 7:25 AM, Fawzi Mohamed wrote: > >> On 2-apr-11, at 10:40, aman bansal wrote: >> >> i was trying to chalk out a strategy to go for image processing in >>> D.the closest reference i found was in the implementation of python >>> imaging l

Re: GSoC-2011 project:: Containers

2011-03-30 Thread Emil Madsen
On 30 March 2011 10:38, Jonathan M Davis wrote: > On 2011-03-30 01:18, Daniel Gibson wrote: > > Am 30.03.2011 01:55, schrieb Jonathan M Davis: > > > On 2011-03-29 14:50, dsimcha wrote: > > >> == Quote from Jonathan M Davis (jmdavisp...@gmx.com)'s article > > >> > > >>> The fancier stuff would be

Re: Is D more complex than C++?

2011-03-29 Thread Emil Madsen
On 29 March 2011 11:30, ToNyTeCh wrote: > Francisco Almeida wrote: > > == Quote from ToNyTeCh (t...@nospam.net)'s article > > > >> It doesn't matter to me. I was just posting when I wasn't drunk. > > > > Good for you. It certainly explains a lot. > > fuck you > > > Can we keep the mailing list in

Re: Pretty please: Named arguments

2011-03-09 Thread Emil Madsen
On 9 March 2011 13:22, Gareth Charnock wrote: > Named arguments are useful when you have a function that takes a large > number of parameters, the vast majority of which have default values. For > example, have a look at this constructor in wxWidgets: > > > http://docs.wxwidgets.org/trunk/classwx

Re: Naming convention in Phobos

2011-03-08 Thread Emil Madsen
On 6 March 2011 12:38, Jonathan M Davis wrote: > On Sunday 06 March 2011 02:59:25 Jim wrote: > > Okay, so there's a discussion about identifier names in the proposed > > std.path replacement -- should they be abbreviated or not? Should we > > perhaps seek to have a consistent naming convention fo

Re: Andrei's "Sealed Containers"

2010-12-03 Thread Emil Madsen
On 3 December 2010 05:18, Eric Poggel wrote: > On 12/2/2010 11:00 PM, Craig Black wrote: > >> Still working on some details. Thanks for the interest. >>> >> >> Thanks for the response. I would be interested to know how far you have >> gotten and what details are holding up progress, if you don't

Re: GCC 4.6

2010-11-25 Thread Emil Madsen
On 25 November 2010 01:15, Iain Buclaw wrote: > == Quote from Emil Madsen (sove...@gmail.com)'s article > > --90e6ba539f3ee121840495d5033f > > Content-Type: text/plain; charset=ISO-8859-1 > > On 25 November 2010 00:25, Walter Bright > wrote: > > > E

Re: GCC 4.6

2010-11-24 Thread Emil Madsen
On 25 November 2010 00:25, Walter Bright wrote: > Emil Madsen wrote: > >> And yea, bearophile brings up a lot of nice features, and Walter would >> never have a chance to implement all of them himself, which might be good, >> if everything bearophile suggests got into the

Re: shorter foreach syntax - C++0x range-based for

2010-11-24 Thread Emil Madsen
On 1 November 2010 16:14, Andrei Alexandrescu wrote: > On 11/1/10 9:09 AM, Gary Whatmore wrote: > >> Nick Treleaven Wrote: >> >> There's a C++0x proposal for a range-based 'for' statement: >>> http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2009/n2930.html >>> >>> The upcoming GCC 4.6 C++ com

Re: GCC 4.6

2010-11-24 Thread Emil Madsen
On 24 November 2010 21:40, Bruno Medeiros wrote: > On 31/10/2010 02:47, bearophile wrote: > >> Walter: >> >> You post lists of features every day. >>> >> >> I hate wasting your time, so please ignore my posts you aren't interested >> in. I write those things because I like to think and discuss ab

Re: Template performance

2010-11-23 Thread Emil Madsen
2010/11/23 Stanislav Blinov > 23.11.2010 2:23, bearophile wrote: > >> Time ago I have found a little C++ program that computes the number of >> solutions to the N Queens problem at compile-time using just templates. I >> have translated it into CTFE code and I have shown in this newsgroup that if

Re: Some new LLVM slides/videos

2010-11-19 Thread Emil Madsen
So these sliders are empty - I take it? On 19 November 2010 22:29, bearophile wrote: > > -- // Yours sincerely // Emil 'Skeen' Madsen

Re: Ruling out arbitrary cost copy construction?

2010-11-10 Thread Emil Madsen
Make the syntax ugly? - so you cant avoid seeing it? On 29 October 2010 19:40, Andrei Alexandrescu wrote: > On 10/29/10 12:18 CDT, dsimcha wrote: > >> == Quote from Andrei Alexandrescu (seewebsiteforem...@erdani.org)'s >> article >> >>> To recap: >>> 1. Arbitrary cost copy construction: >>> + Ma

Re: The Next Big Language

2010-10-20 Thread Emil Madsen
Nahh, its just him, he apparently likes you the most (^ . ^) (jk) On 19 October 2010 21:53, Andrei Alexandrescu wrote: > On 10/19/10 14:04 CDT, Max Samukha wrote: > >> On 10/19/2010 09:06 PM, Walter Bright wrote: >> >>> bearophile wrote: >>> The point I was trying to express is that from wh

Re: [due diligence] std.xml

2010-10-19 Thread Emil Madsen
I agree with so, be polite, tho the code might not be as good as one would wish. 2010/10/19 so > Man, you sure getting on my nerves, on your last strike i lost it and gone > berserk in one of your threads. Now this... You know a human being wrote it, > have some respect until you come up with so

Re: Ddoc to PDF

2010-10-19 Thread Emil Madsen
Having two modes? - the basic standart one, and a flag switched one? On 19 October 2010 15:14, Gerrit Wichert wrote: > Am 17.10.2010 19:45, schrieb Walter Bright > > > Apparently, it is fairly simple to convert plain text files to PDF. > > > > http://re-factor.blogspot.com/2010/10/text-to-pdf.ht

Re: The Next Big Language

2010-10-19 Thread Emil Madsen
So... When are you writing a book? Emil Madsen On 19 October 2010 13:49, bearophile wrote: > Andrej Mitrovic: > > > Knowing the syntax and knowing how to use a language are two very > > different things. If you're a newbie you can learn the C syntax in a > > coup

Re: The Next Big Language

2010-10-18 Thread Emil Madsen
I see a lot of applications going into the browser, in the future, but thats maybe just me :) On 18 October 2010 16:10, Jeff Nowakowski wrote: > On 10/18/2010 07:11 AM, bearophile wrote: > >> >> The "Next Big Language" will probably be JavaScript. >> > > I see JavaScript as being stuck in the br

Re: [nomenclature] What is a bug?

2010-10-18 Thread Emil Madsen
This is a bug: http://www.ent.iastate.edu/images/hemiptera/stinkbug/brown_stink_bug_adult.jpg Atleast for people who gets outside. - or well.. thats what I'm told :) On 13 October 2010 15:51, Iain Buclaw wrote: > == Quote from Nick Sabalausky (a...@a.a)'s article > > "Lutger" wrote in message >

Re: What would you rewrite in D?

2010-10-18 Thread Emil Madsen
I would love to rewrite the copybyvalue and copybyreference schematics, to one, and then keep that one. I think its counter intuitive that the same syntax is used for both, and tbh, if everything was just copybyvalue, one would be able to use by reference, if they wanted to by explicitly declaring

Re: struct field alignment

2010-10-18 Thread Emil Madsen
About the 16byte alignment, of 4floats, its mostlikely for SSE :) On 18 October 2010 04:16, Denis Koroskin <2kor...@gmail.com> wrote: > On Mon, 18 Oct 2010 06:00:49 +0400, Walter Bright < > newshou...@digitalmars.com> wrote: > > http://www.digitalmars.com/d/2.0/attribute.html#align >> >> Over ti

Re: Am I doing it wrong?

2010-10-03 Thread Emil Madsen
So I've been told, but havn't been able to find it, so I rechecked, and there it was, apperently I'm getting blind >.< I'll make sure not to pollute this mailing list with these questions again then :) - Thanks once again On 3 October 2010 23:28, Ali Çehreli wrote: &g

Re: Am I doing it wrong?

2010-10-03 Thread Emil Madsen
perfect :), thanks :) On 3 October 2010 13:39, Jonathan M Davis wrote: > On Sunday 03 October 2010 04:34:31 Emil Madsen wrote: > > can the enum be a float? if calcprimes returned a float? - and if so, > will > > the enum be a float or an int? (will it be casted, or will it w

Re: Am I doing it wrong?

2010-10-03 Thread Emil Madsen
Okay I had a misunderstanding of pure, now I get it, thanks :) and when I changed the code to enum int, the compiler complained about the delete statement too :) so once again thanks :) On 3 October 2010 13:35, Jonathan M Davis wrote: > On Sunday 03 October 2010 03:54:06 Emil Madsen wr

Re: SSE in D

2010-10-03 Thread Emil Madsen
lity to implement matrixes, and such using SSE. - what would my alternative be? implementing "xmmintrin.h" using bits of small inline asm? - that however wouldn't yield any speed, if its not getting inlined? On 3 October 2010 03:34, bearophile wrote: > Emil Madsen: > > Yo

Re: Am I doing it wrong?

2010-10-03 Thread Emil Madsen
can the enum be a float? if calcprimes returned a float? - and if so, will the enum be a float or an int? (will it be casted, or will it work as an auto type?) thanks btw :) On 3 October 2010 13:28, Torarin wrote: > 2010/10/3 Emil Madsen : > > ah ofc! I shoulda know :) - So I were

Re: Am I doing it wrong?

2010-10-03 Thread Emil Madsen
ah ofc! I shoulda know :) - So I were doing it wrong :) Say I'm doing that enum a = calcPrimes(); then a will be an enum with 1 element, that I can use as an int right? - or is there something special to be aware of? On 3 October 2010 13:20, Torarin wrote: > 2010/10/3 Emil Madsen : >

Re: Am I doing it wrong?

2010-10-03 Thread Emil Madsen
Well the result is assigned to an immutable int, shouldn't that be a compile const too? 2010/10/3 Denis Koroskin <2kor...@gmail.com> > On Sun, 03 Oct 2010 14:54:06 +0400, Emil Madsen wrote: > > So I wrote a program, to find prime numbers, just to check out this pure

Am I doing it wrong?

2010-10-03 Thread Emil Madsen
So I wrote a program, to find prime numbers, just to check out this pure thing; http://gist.github.com/608493 However, the program has a runtime of about 5 seconds? - in my mind, if the function is pure, shouldn't the compiler insure that it was evaluated at compiletime? - or am I doing it wrong?

Re: The Many Faces of D - slides

2010-10-03 Thread Emil Madsen
Interesting, would have loved to be there :) On 3 October 2010 12:28, Walter Bright wrote: > The slides for my Sep. 15 talk at NWCPP: > > http://nwcpp.org/images/stories/nwcpp-2010-09.pdf > -- // Yours sincerely // Emil 'Skeen' Madsen

SSE in D

2010-10-02 Thread Emil Madsen
Is there a D equivalent of the "xmmintrin.h", or any other convenient way of doing SSE in D? - I've been looking into the Array Operators, but will those work, for instance if I'm doing something alike: a[3], b[4] c[4] = a+b; and when will the compiler write SSE asm for the array operators? - is th