Re: d2tags - converts DMD2's JSON output to Exuberant Ctags format

2010-05-06 Thread Lutger
Andrei Alexandrescu wrote: MIURA Masahiro wrote: Hi, Being happy to see issue 3415 (broken JSON format) fixed, I have written a utility to convert DMD2's JSON output to Exuberent Ctags format. This enables you to tagjump in Vim and other editors/IDEs. It's just 150+ lines, thanks to

Re: Unit tests in D

2010-05-06 Thread Lutger
bearophile wrote: Lutger: ... rdmd has the option --main, together with -unittest you can easily do this. This page doesn't list that option: http://www.digitalmars.com/d/2.0/rdmd.html rdmd prints: --eval=code evaluate code +� la perl -e (multiple --eval allowed) --loop

Re: Unit tests in D

2010-05-05 Thread Lutger
Walter Bright wrote: bearophile wrote: Walter Bright: But why? Just use: foo(10); I think you are missing something important here. Static asserts (or other implicit errors) inside a template, etc, test that some input types are correct, some template input values are in the correct

Re: Unit tests in D

2010-05-05 Thread Lutger
Don wrote: bearophile wrote: dmd D 2.045 improves the built-in unit tests resuming their run when they fail (it reports only the first failed assert for each unit test). There are many features that today a professional unittest system is expected to offer, I can write a long list. But in

Re: Unit tests in D

2010-05-05 Thread Lutger
bearophile wrote: dmd D 2.045 improves the built-in unit tests resuming their run when they fail (it reports only the first failed assert for each unit test). There are many features that today a professional unittest system is expected to offer, I can write a long list. But in the past I

Re: // A great help for the best D, I think //

2010-05-01 Thread Lutger
Walter Bright wrote: Ary Borenszweig wrote: Then a long text below that, the links on the left are at the same level as the title and the text. But the other links (wiki, search, etc.) are above all of that, so I don't see them. And as far as I remember, other people couldn't see them

Re: GDB Patched

2010-04-30 Thread Lutger
Robert Clipsham wrote: On 30/04/10 00:39, Jesse Phillips wrote: I'm a little surprised I didn't see this announced here, at least I can't find it. GDB has had the patch accepted! http://www.llucax.com.ar/blog/blog/post/06d99f3b It has been more than accepted, it is now in the source

Re: Clojure Protocols expression problem

2010-04-28 Thread Lutger
retard wrote: Wed, 28 Apr 2010 16:44:07 +, BCS wrote: Hello bearophile, By the way, you can see an example of the expression problem here, Could you elaborate on what exactly the expression problem is? Learning the use of a search engine would help you greatly in your life:

Re: Less than 30 days to bound copies of TDPL

2010-04-28 Thread Lutger
Ezneh wrote: Andrei Alexandrescu Wrote: On 04/28/2010 12:50 PM, Ezneh wrote: Andrei Alexandrescu Wrote: I put a countdown on my website (http://erdani.com/) displaying the days left to final bound dead-tree copies of TDPL. Also, the book cover (front and back) is now available for

Re: Loop invariant for a binary search

2010-04-28 Thread Lutger
What do you think about expressing the loop invariant as as nested pure function? something like this: body { Node* p = list_header; // pointer to the current Node Node* pp; // pointer to the precedent Node pure void checkInvariant(in Node* _pp, in

Re: Clojure Protocols expression problem

2010-04-28 Thread Lutger
bearophile wrote: According to the paper from Bjarne Stroustrup: http://www.research.att.com/~bs/multimethods.pdf this is a possible syntax D3 can use for the double dispatch: void foo(@virtual A a, @virtual B b) {} Bye, bearophile I have studied this paper a bit once, it's good. It

Re: JavaScript is the VM to target for D

2010-04-24 Thread Lutger
Justin Johansson wrote: KennyTM~ wrote: On Apr 22, 10 14:52, Lutger wrote: I don't think javascript is suited for this purpose, but perhaps silverlight / moonlight is. A D compiler targetting the CoreCLR could be big, depending on how this platform takes off. D.NET? D.NET (D.CLR

Re: JavaScript is the VM to target for D

2010-04-22 Thread Lutger
I don't think javascript is suited for this purpose, but perhaps silverlight / moonlight is. A D compiler targetting the CoreCLR could be big, depending on how this platform takes off.

Re: DMD and commercial application ?

2010-04-17 Thread Lutger
BCS wrote: Hello GG, Thanks Adam D. Ruppe ! It's clear now ! Maybe the web site could have a section talking about license because I know many people who don't use D and DMD because they are afraid about the commercial license. I think that's a fairly standard clause for just about

Re: Pattern matching example

2010-04-04 Thread Lutger
bearophile wrote: I'm not currently asking to implement pattern matching in D3 (as present for example in Scala), but it's positive to think how to solve similar problems in D2, because even if pattern matching is not available in D2, the problems it is asked to solve solve can be real.

Re: Pattern matching example

2010-04-04 Thread Lutger
Lutger wrote: ... void main(string[] args) { int i = 12; matcher(i, [ aha: (string v) { writeln(I saw a string , v); } ], [ 12 : (int i) { writeln(I saw an int , i); } ] ); string v = aha; matcher(v, [ aha : (string v) { writeln(I saw

Re: Fatal flaw in D design which is holding back widespread adoption

2010-03-31 Thread Lutger
Jacob Carlborg wrote: On 3/31/10 03:53, Nick Sabalausky wrote: Steven Schveighofferschvei...@yahoo.com wrote in message news:op.vaefb7p3eav...@localhost.localdomain... On Tue, 30 Mar 2010 16:56:32 -0400, Walter Bright newshou...@digitalmars.com wrote: BTW, type a file to a console

Re: Fatal flaw in D design which is holding back widespread adoption

2010-03-30 Thread Lutger
Matt wrote: I shouldn't be using notepad, I should be using YOUR editor which makes your faulty method work? D does not support notepad.

Re: Fatal flaw in D design which is holding back widespread adoption

2010-03-30 Thread Lutger
Walter Bright wrote: Lutger wrote: Matt wrote: I shouldn't be using notepad, I should be using YOUR editor which makes your faulty method work? D does not support notepad. D doesn't care what text editor you use. BTW, type a file to a console window. Tabs come out as 8 characters

Re: Implicit enum conversions are a stupid PITA

2010-03-29 Thread Lutger
Andrei Alexandrescu wrote: On 03/28/2010 03:44 AM, Lutger wrote: (...) I like this idea of implementing a flag type and tried to work something out. Instead of implementing the overloads, it is also possible to generate an enum via CTFE inside a struct and forward with alias this, what do

Re: Implicit enum conversions are a stupid PITA

2010-03-29 Thread Lutger
Lutger wrote: ... struct Flags(string members, T = uint) { static assert( is(T : ulong), Wrong underlying type of Flags: must be integral not ~ T.stringof ); mixin( genFlags(members) ); I screwed up of course, this must be: mixin( genFlags(members, T.stringof) ); alias

Re: Implicit enum conversions are a stupid PITA

2010-03-29 Thread Lutger
Lutger wrote: ... unittest { alias Flags!q{ do_nothing, walk_dog, cook_breakfast, deliver_newspaper, visit_miss_kerbopple, morning_task = walk_dog | cook_breakfast, wash_covers } Todo; Todo list1 = Todo.do_nothing; assert( list1 == 1 ); list1

Re: Implicit enum conversions are a stupid PITA

2010-03-28 Thread Lutger
bearophile wrote: To invent a software you can first find the best syntax. This seems a nice syntax, very similar to the enum one (that ubyte is optional): flags ubyte Todo { do_nothing, walk_dog, cook_breakfast, deliver_newspaper, visit_miss_kerbopple,

Re: Implicit enum conversions are a stupid PITA

2010-03-28 Thread Lutger
bearophile wrote: Lutger: alias Flags!q{ do_nothing, walk_dog, cook_breakfast, deliver_newspaper, visit_miss_kerbopple, wash_covers } Todo; That's better. But you have missed the optional type :-) Bye

Re: DDebber Request for Review

2010-03-25 Thread Lutger
Jesse Phillips wrote: Walter Bright Wrote: Jesse Phillips wrote: I would like to announce DDebber. http://dsource.org/projects/ddebber Looks like we have an embarrassment of riches here. Jordi Sayol i Salom� has sent me a shell script to do it, and Cristi has contributed a script

Re: DDebber Request for Review

2010-03-25 Thread Lutger
Jesse Phillips wrote: Lutger wrote: You could try getting LDC with Tango into debian, there are no license problems with them. My goal isn't exactly to get anything into the official repo. This is my first time really doing packaging and I'd like to figure out what is best for D

Re: DMDScript now under Boost license

2010-03-22 Thread Lutger
Thank you. Under svn there is both the gpl and boost license files, and no indication which is the right one. Could you remove gpl.txt to avoid confusion?

Re: dmdz

2010-03-18 Thread Lutger
Walter Bright wrote: BCS wrote: The only case I can think of where putting a zip file in the middle of that loop is even remotely reasonable would be for a remote build farm. The other use cases for build-from-zip are building someone else's code where you aren't editing the parts in the zip

Re: dmdz

2010-03-16 Thread Lutger
Ellery Newcomer wrote: Anyone want to play with dmdz, here it is: http://personal.utulsa.edu/~ellery-newcomer/dmdz.zip Haven't tested it much, especially on windows. Don't know what it will do with multiple zip files. piecemeal flag doesn't know how to stop when you tell it to. dmd's

Re: [OT] zip etiquette

2010-03-12 Thread Lutger
Bernard Helyer wrote: On 12/03/10 18:09, Nick Sabalausky wrote: Ellery Newcomerellery-newco...@utulsa.edu wrote in message news:hnc4o3$2lm...@digitalmars.com... What I really want is an archive program that automatically makes a subfolder by default *but* detects if the top level inside

Re: dmd 1.057 and 2.041 release

2010-03-09 Thread Lutger
Michal Minich wrote: On Tue, 09 Mar 2010 10:23:07 -0500, Steven Schveighoffer wrote: I want to focus more on the fact that you are declaring the data after the slice as being no longer used. kind of assumeUnique ... assumeNoArrayReference ? I like that. Or assumeNoMemoryAliasing. It

Re: dmd 1.057 and 2.041 release

2010-03-08 Thread Lutger
Thanks! A pleasant surprise to see interface contracts.

Re: Empty array literals

2010-03-08 Thread Lutger
Michael Rynn wrote: That IS what Walter thinks, actually. It's being moved to libraries (which is why there have been some nasty AA regressions in the past few compiler releases :-( ). Sounds good. So the source is in druntime? Does that mean I can find out how to implement opIn ?. I

Re: Is D a cult?

2010-03-07 Thread Lutger
retard wrote: Sun, 07 Mar 2010 05:05:03 +, BCS wrote: Hello Jane, Is D a cult? No, not yet. Walter hasn't figured out how to brain wash people over a newsgroup yet. However I think Andrei's working on it and Don should have a patch in time for TDPL going out ;b FWIW, I think

Re: Is D a cult?

2010-03-07 Thread Lutger
retard wrote: Sun, 07 Mar 2010 14:12:14 +0100, Lutger wrote: retard wrote: Sun, 07 Mar 2010 05:05:03 +, BCS wrote: Hello Jane, Is D a cult? No, not yet. Walter hasn't figured out how to brain wash people over a newsgroup yet. However I think Andrei's working on it and Don

Re: Static attributes immutability, static attributes seen from instances

2010-03-06 Thread Lutger
Nick Sabalausky wrote: ... I've always felt that the ability to access static members through an instance was just a bad idea in general, and this seems to add another reason not to allow it. I agree, some compilers issue warnings in this case.

Re: Good Contract programming idiom?

2010-03-02 Thread Lutger
Theoretically exceptions are situations you expect can happen, even though the code is bug free, while assertions always indicate a bug. I think the main implication of this is that assertions should behave differently. They should halt the program at once so the developer's attention is

Re: Good Contract programming idiom?

2010-03-02 Thread Lutger
bearophile wrote: This can be done just keeping asserts in the precondition, and putting the exceptions in the body (if you are a really tidy person you can even disable the exceptions in not release built). But in practice I think the good enough thing to do is to be sure essential

Re: A possible future purpose for D1

2010-02-27 Thread Lutger
bearophile wrote: I think this comment contains a grain of truth: languages that start simple can gain an user base, and then they can slowly grow more complex: http://www.reddit.com/r/programming/comments/b74jv/scala_books_in_general_are_just_not_selling_well/ I think you need to

Re: Tidier pre/post conditions

2010-02-27 Thread Lutger
Just practically speaking, not being able to call any non-pure functions is real pain. You can't even call to!string for example. I like your original suggestion, thanks for putting it it in bugzilla. I hope it will considered some day. By the way, I just discovered contract programming is

Re: A rationale for pure nothrow --- @pure @nothrow (and nothing else changes)

2010-02-27 Thread Lutger
Don wrote: ... I genuinely thought @pure, @nothrow was a no-brainer. I really thought the explanation that we made all attibutes use the @ form, except those where it was prevented by historical precedent was quite defensible. But I was very, very wrong. Looks like the community is

Re: optional feature with contract inheritance? (design question)

2010-02-27 Thread Lutger
Jonathan M Davis wrote: ... Generally, I speaking, I think that having functions which override functions from a base class and throw if they're used is a bad design. It may be that it makes perfect sense in some contexts, but generally, I'd consider it a very bad idea. Personally, I hate it

Re: Consume, Skip, Eat, Munch, Bite, or...?

2010-02-22 Thread Lutger
Andrei Alexandrescu wrote: Jonathan M Davis wrote: Andrei Alexandrescu wrote: I also defined recently: === /** If $(D startsWith(r1, r2)), consume the corresponding elements off $(D r1) and return $(D true). Otherwise, leave $(D r1) unchanged and return $(D false).

Re: D hates to be dynamic linked

2010-02-21 Thread Lutger
Justin Johansson wrote: Eldar Insafutdinov wrote: Steve Teale Wrote: On Fri, 19 Feb 2010 16:41:20 -0500, g wrote: I tried to get some attention for this problem again a couple of weeks ago (see the special treat thread), and everyone who replied said yes, we really need this, but Walter

Re: DMD on x86_64

2010-02-17 Thread Lutger
If you manage to find the proper 32 bit libraries, there is a configuration file for ld where you can specify the search paths, should be: /etc/ld.so.conf The 64-bit distro's I have used fail to add the 32-bit lib paths to this file, even if you install the right packages.

Re: disabling unary - for unsigned types

2010-02-16 Thread Lutger
Walter Bright wrote: Steven Schveighoffer wrote: For example, there is no possible way a person unfamiliar with computers That's a valid argument if you're writing a spreadsheet program. But programmers should be familiar with computers, and most definitely should be familiar with 2's

Re: change mixins

2010-02-15 Thread Lutger
retard wrote: Mon, 15 Feb 2010 01:08:38 -0500, Nick Sabalausky wrote: BCS n...@anon.com wrote in message news:a6268ff103d38cc7ba48d6fa...@news.digitalmars.com... Hello Nick, I *definitely* want that for string mixins of both the template-generated and ctfe-generated varieties. Why? I

Re: A thought for template alias parameters?

2010-02-06 Thread Lutger
On 02/06/2010 05:55 AM, Joel Anderson wrote: On 2/4/2010 4:41 PM, Trip Volpe wrote: Joel Anderson Wrote: That's one of the reasons I've wished D had a nicer syntax for the string mixin format. This one kinda scares people away :p What kind of syntax do you have in mind? Making mixins less

Re: TDPL a bad idea?

2010-02-06 Thread Lutger
On 02/06/2010 01:58 PM, Yigal Chripun wrote: ... Also, I've found a simple NNTP server written in python that has modular back-end support so it can be set-up to provide a bi-directional NNTP interface for various web forums. What is the name / link? Thanks

Re: TDPL a bad idea?

2010-02-02 Thread Lutger
On 02/03/2010 02:42 AM, Walter Bright wrote: Yigal Chripun wrote: I've thought about building such a system for these forums many times. Registration would not be required to post, but registering would enable features like voting on posts, establishing a profile, preferences, etc. That

assert fails to display file on dmd 2.040?

2010-02-02 Thread Lutger
Does anybody get this with 2.040? I couldn't find a bug report about it, so maybe it is due to my setup. // in file test.d: assert(false); output: core.exception.asserter...@l(5): Assertion failure ^ not the right file // in file test.d: assert(false, ok);

Re: Unit testing with asserts: Why is assertHandler required to throw?

2010-01-31 Thread Lutger
On 01/31/2010 09:39 PM, Trip Volpe wrote: I recently began porting an existing C++ project of mine (a compiler/interpreter for a dynamic language) to D. In the process I found that the built-in unit testing support, while an awesome concept, was a little bit sparse. In particular, assert() is

Re: Unit testing with asserts: Why is assertHandler required to throw?

2010-01-31 Thread Lutger
On 01/31/2010 10:04 PM, Nick Sabalausky wrote: Lutgerlutger.blijdest...@gmail.com wrote in message news:hk4r35$1hp...@digitalmars.com... You can use line and file info with default arguments, this works (special case). That must be a D2 thing, because I know it doesn't work in D1.

Re: dmd 1.056 and 2.040 release

2010-01-30 Thread Lutger
This release makes me smile. Thank you so much Walter, and everybody who contributed too.

Re: Accessors, byLine, input ranges

2010-01-29 Thread Lutger
On 01/29/2010 07:01 PM, Andrei Alexandrescu wrote: ... How about @property? When you add a @property to a function it can be called as an assignment. @property does not touch the calling of no-argument functions. Are there any problems with that? Such a @property is just for the writing

Re: std.string will get the boot

2010-01-29 Thread Lutger
On 01/29/2010 06:36 PM, Andrei Alexandrescu wrote: ... One problem I foresee is the growth of std.algorithm. It already has many things in it, and I fear that some user who just wants to trim a string may find it intimidating to browse through all that documentation. I wonder how we could break

Re: std.string will get the boot

2010-01-29 Thread Lutger
On 01/29/2010 09:13 PM, Lutger wrote: http://www.naturaldocs.org/documenting/reference.html#Example_Class sorry, wrong anchor: http://www.naturaldocs.org/documenting/reference.html#Summaries

Re: std.string will get the boot

2010-01-29 Thread Lutger
On 01/29/2010 09:18 PM, Andrei Alexandrescu wrote: Lutger wrote: On 01/29/2010 06:36 PM, Andrei Alexandrescu wrote: ... One problem I foresee is the growth of std.algorithm. It already has many things in it, and I fear that some user who just wants to trim a string may find it intimidating

Re: std.string will get the boot

2010-01-29 Thread Lutger
On 01/29/2010 09:43 PM, bearophile wrote: Andrei Alexandrescu: I think the idea of tags is awesome, particularly because it doesn't require one to divide items in disjoint sets. I'll think some more of it. A hierarchical D/Python-like module system isn't the only way to organize blocks of

Re: Function calls

2010-01-28 Thread Lutger
On 01/28/2010 11:05 PM, Andrei Alexandrescu wrote: Michiel Helvensteijn wrote: Andrei Alexandrescu wrote: foreach (line; stdin.byLine()) { ... } vs. foreach (line; stdin.byLine) { ... } How do I choose? byLine is a property. It is fetching a range on stdin. -Steve Damn. I was sure the

Re: Function calls

2010-01-28 Thread Lutger
On 01/28/2010 11:28 PM, Andrei Alexandrescu wrote: Lutger wrote: On 01/28/2010 11:05 PM, Andrei Alexandrescu wrote: Michiel Helvensteijn wrote: Andrei Alexandrescu wrote: foreach (line; stdin.byLine()) { ... } vs. foreach (line; stdin.byLine) { ... } How do I choose? byLine

Re: opDispatch or equivalent at static context

2010-01-21 Thread Lutger
On 01/21/2010 09:28 AM, Chris Nicholson-Sauls wrote: Lars T. Kyllingstad wrote: Chris Nicholson-Sauls wrote: (Apologies ahead of time if I've overlooked something.) How possible could it be to have opDispatch or an equivalent feature (opStaticDispatch?) available for static forwarding?

Re: why Ddbg is not updated anymore...

2010-01-19 Thread Lutger
On 01/19/2010 09:32 PM, Matthias Pleh wrote: Stephan schrieb: I dunno if anyone knew this before but i wanted to give my kudos to a guy that did a lot for the D community by developing the still best debugger for the D Programming Language Ddbg (http://ddbg.mainia.de/releases.html) The

Re: Invalid pointer reference

2010-01-19 Thread Lutger
On 01/19/2010 08:11 AM, bearophile wrote: Another of those billion dollar mistakes D2 will not be able to avoid! http://www.microsoft.com/technet/security/advisory/979352.mspx Our investigation so far has shown that Internet Explorer 5.01 Service Pack 4 on Microsoft Windows 2000 Service Pack

Re: D compiler as part of GCC

2010-01-18 Thread Lutger
On 01/18/2010 03:45 AM, Jerry Quinn wrote: [also posted to D.gnu] Hi, folks, I'm interested in creating a D front end for GCC that would be part of the GCC codebase. My feeling is that a GDC that is part of GCC distributions will likely have more life than one that must be updated whenever

Re: D Language 2.0

2010-01-18 Thread Lutger
On 01/18/2010 11:31 PM, Walter Bright wrote: Jérôme M. Berger wrote: Embedded x86 is an oxymoron. Yes, I know, it exists (and btw, 8 years ago they were still selling 486s as embedded processors) but mostly it doesn't need any special support (except possibly on the binary size front and even

Re: Tidy auto [Was: Re: @disable]

2010-01-17 Thread Lutger
On 01/17/2010 11:53 AM, bearophile wrote: This discussion clearly shows that the current semantics of the auto is not clean enough and it needs to be improved. To improve it D needs to adopt the strategy of using all attributes in a more tidy and semantically clean way, as Java does. Java

Re: Tidy auto [Was: Re: @disable]

2010-01-17 Thread Lutger
On 01/17/2010 04:35 PM, bearophile wrote: Lutger: huh, you want to ditch type inference? Sorry for my last answer. I'd like to keep the type inference, but I'd like the const/immutable/etc annotations to become orthogonal to the type, that can be given or inferred with auto. (And I'd like

Re: Why it doesn't compile in D 2.0?

2010-01-16 Thread Lutger
On 01/16/2010 02:01 PM, aarti_pl wrote: W dniu 2010-01-16 13:26, Simen kjaeraas pisze: aarti_pl aa...@interia.pl wrote: class Test { string t1 = test; //Ok! char[] t2 = test.dup; //Compile error } void main(char[][] args) { } Error: hello.d(3): Error: cannot evaluate _adDupT((

Re: Why it doesn't compile in D 2.0?

2010-01-16 Thread Lutger
On 01/16/2010 04:18 PM, aarti_pl wrote: W dniu 2010-01-16 15:30, Lutger pisze: Perhaps this is or should be a bug. You can override dup to work in ctfe: char[] dup(string str) { return str.dup; } class Test { string t1 = test; //Ok! char[] t2 = test.dup; //Compile error char[] t3 = test.dup

Re: Getting overloads for non-member functions

2010-01-15 Thread Lutger
On 01/14/2010 11:38 PM, Simen kjaeraas wrote: Is there a way to get a list of overloads for a function name in D? For member functions, there's __traits( getVirtualFunctions, ... ), but that don't work for free functions. I'm afraid there is no way. See also this blog:

Re: Compiler: Size of generated executable file

2010-01-14 Thread Lutger
On 01/14/2010 03:19 PM, retard wrote: To conclude this discussion, it seems that executable size could be reduced dramatically. Unfortunately the compiler fails to use the opportunity in almost all cases. A typical program would be 50% to 99.999% smaller if the libraries (including stdlib) were

Re: D's auto keyword

2010-01-13 Thread Lutger
On 01/13/2010 05:49 PM, Justin Johansson wrote: Happy New Year 2010 Everybody. Having resumed C++ nationality for the last few months, I kind of miss D's auto keyword. I am wondering, though, from an OO/polymorphism perspective, and UML and sound software engineering perspective as well,

Re: D's auto keyword

2010-01-13 Thread Lutger
On 01/13/2010 08:46 PM, retard wrote: Wed, 13 Jan 2010 20:22:02 +0100, Lutger wrote: On 01/13/2010 05:49 PM, Justin Johansson wrote: Happy New Year 2010 Everybody. Having resumed C++ nationality for the last few months, I kind of miss D's auto keyword. I am wondering, though, from an OO

Re: New vim d.vim syntax highlighting script

2010-01-12 Thread Lutger
Thanks!

Re: Variable-length stack allocated arrays

2010-01-12 Thread Lutger
On 01/11/2010 11:33 AM, bearophile wrote: grauzone: Why are you making such proposals, when one of the core developers even thought about removing normal scope? And by the way, in the Python community one of the purposes of PEPs is to act as an archive of refused proposals, so people can

Re: Compiler: Size of generated executable file

2010-01-12 Thread Lutger
On 01/12/2010 12:14 PM, retard wrote: Tue, 12 Jan 2010 05:34:49 -0500, Nick Sabalausky wrote: retardr...@tard.com.invalid wrote in message news:hihgbe$qt...@digitalmars.com... Mon, 11 Jan 2010 19:24:06 -0800, Walter Bright wrote: dsimcha wrote: Vote++. I'm convinced that there's just a

Re: Compiler: Size of generated executable file

2010-01-12 Thread Lutger
On 01/12/2010 11:40 PM, Walter Bright wrote: Steven Schveighoffer wrote: I hope this is not a permanent situation. Shared libraries (not necessarily DLLs) help reduce the memory usage of all the programs on the system that use the same libraries, and the footprint of the binaries. That would

Re: Compiler: Size of generated executable file

2010-01-12 Thread Lutger
On 01/13/2010 12:29 AM, Adam D. Ruppe wrote: On Tue, Jan 12, 2010 at 11:12:33PM +, retard wrote: If they all used static linking, I'm afraid I would have to buy another 32 GB ssd disk only for the binaries. Yes, for large numbers of application, shared libraries save a lot of space.

Re: Compiler: Size of generated executable file

2010-01-09 Thread Lutger
On 01/09/2010 04:36 PM, Ph wrote: Why a generated file is so huge? Size of binraries are big because of typeinfo, standard library and bloat from templates. C++ binaries are probably also much bigger when the std lib is compiled statically and also bloat up pretty fast when you use

Re: Porting C# code

2010-01-07 Thread Lutger
On 01/07/2010 10:50 PM, Brien wrote: Don Wrote: Ok, that's good to know. I assumed because D billed itself as a systems programming language that performance would be paramount. He's talking about his converter program, not about D! Oops, sorry about the misinterpretation. I'm sure I'm

Re: Porting C# code

2010-01-07 Thread Lutger
On 01/07/2010 11:59 PM, Lutger wrote: On 01/07/2010 10:50 PM, Brien wrote: Don Wrote: Ok, that's good to know. I assumed because D billed itself as a systems programming language that performance would be paramount. He's talking about his converter program, not about D! Oops, sorry about

Re: dmd 1.054 and 2.038 release

2010-01-03 Thread Lutger
Thanks a lot everybody. Also special thanks to Don for his increased involvement and stepping up to help with some serious bugfixing! It feels like D2 is becoming more solid and usable every release in spite of major features still being added. Happy new year! It will be an exciting one for

Re: Call diagram generation

2010-01-03 Thread Lutger
On 01/03/2010 04:31 AM, Strt wrote: How can I generate some sort of call diagram from my D code? you can compile with (dmd) -profile and run the executable. This produces a file called trace.log which contains timings for each function and a call graph. It doesn't produce a diagram and has

Re: Function meta information

2009-12-30 Thread Lutger
On 12/25/2009 03:19 PM, Eldar Insafutdinov wrote: Currently we have ParameterTypeTuple for extracting type list of function arguments. This is not enough. There should be a clean way to extract storage classes and default arguments if there are any. Any thoughts? In addition we need to be

Re: What's wrong with D's templates?

2009-12-21 Thread Lutger
Don wrote: Lutger wrote: ... http://en.wikipedia.org/wiki/Duck_typing#Structural_type_systems That Wikipedia page doesn't any make sense to me. Is that *really* what duck typing is? If so, it's a complete misnomer. Because it's totally different to if it looks like a duck, quacks like

Re: What's wrong with D's templates?

2009-12-21 Thread Lutger
retard wrote: snip Thanks for links, that should help.

Re: Go rant

2009-12-21 Thread Lutger
retard wrote: Mon, 21 Dec 2009 18:54:19 +0100, Daniel de Kok wrote: On 2009-12-19 21:04:32 +0100, Andrei Alexandrescu seewebsiteforem...@erdani.org said: This code is shown for its elegance rather than its efficiency. Using ++ in this way is not generally considered good programming

Re: QSort in D: is this best?

2009-12-20 Thread Lutger
downs wrote: Or are there any bugs/optimization opportunities I'm missing? void qsort(T)(T[] array) { if (array.length 2) return; static int i; auto pivot = array[i++%$]; // from is base-0, to is base-1. int from = 0, to = array.length; while (from != to) { if

Re: QSort in D: is this best?

2009-12-20 Thread Lutger
downs wrote: Lutger wrote: downs wrote: Or are there any bugs/optimization opportunities I'm missing? void qsort(T)(T[] array) { if (array.length 2) return; static int i; auto pivot = array[i++%$]; // from is base-0, to is base-1. int from = 0, to = array.length; while

Re: What's wrong with D's templates?

2009-12-20 Thread Lutger
Nick Sabalausky wrote: Lutger lutger.blijdest...@gmail.com wrote in message news:hgl440$tl...@digitalmars.com... Yigal Chripun wrote: The .Net implementation isn't perfect of course and has a few issues that should be resolved, one of these is the problem with using operators. requiring

Re: What's wrong with D's templates?

2009-12-18 Thread Lutger
Yigal Chripun wrote: On 18/12/2009 02:49, Tim Matthews wrote: In a reddit reply: The concept of templates in D is exactly the same as in C++. There are minor technical differences, syntactic differences, but it is essentially the same thing. I think that's understandable since Digital Mars

Re: SciD: the humble beginning

2009-12-15 Thread Lutger
Chad J wrote: dsimcha wrote: ... The other option is to make sure everything is loosely coupled to the GUI lib so it can be easily swapped for another one. The downside is that this has some tradeoffs in terms of simplicity and probably performance that I don't think I want to make and

Re: SciD: the humble beginning

2009-12-15 Thread Lutger
Lutger wrote: Chad J wrote: dsimcha wrote: ... The other option is to make sure everything is loosely coupled to the GUI lib so it can be easily swapped for another one. The downside is that this has some tradeoffs in terms of simplicity and probably performance that I don't think I

Re: Reference Counting Template

2009-12-14 Thread Lutger
What are you planning to with multithreading? With the current type system, is it possible to statically detect inside the template if the refcount is used in shared scenario's, and base the implementation on that information? That would be ideal, if it is indeed possible. std.stdio.File is

Re: Reference Counting Template

2009-12-14 Thread Lutger
Denis Koroskin wrote: On Mon, 14 Dec 2009 11:04:15 +0300, Lutger lutger.blijdest...@gmail.com wrote: What are you planning to with multithreading? With the current type system, is it possible to statically detect inside the template if the refcount is used in shared scenario's, and base

Re: ctfe: .idup on static array and static variables

2009-12-14 Thread Lutger
Thanks, I filed this bug for the .idup issue: http://d.puremagic.com/issues/show_bug.cgi?id=3615

Re: Reference Counting Template

2009-12-13 Thread Lutger
dsimcha wrote: ... Does this sound worthwhile? Yes, we need this.

ctfe: .idup on static array and static variables

2009-12-13 Thread Lutger
i have two question related to ctfe: 1) returning .idup on local static arrays fail but I don't understand why that should be: string foo() { char[1] d; d[0] = 'd'; return d.idup; } pragma(msg, foo()); // Error: cannot evaluate foo() at compile time .idup is not mentioned in the

Re: D2 GUI Libs

2009-12-12 Thread Lutger
retard wrote: Sat, 12 Dec 2009 17:44:34 +, dsimcha wrote: == Quote from retard (r...@tard.com.invalid)'s article Sat, 12 Dec 2009 11:53:50 -0500, Andrei Alexandrescu wrote: Eldar Insafutdinov wrote: Right now we are working on a next QtD version. We dropped support for D1, it is D2

<    1   2   3   4   5   6   7   >