Regarding typedef

2010-08-04 Thread F. Almeida
>From what I understood, typedef is going to be replaced by a templated structure and handle type conversion in that way. This is understandable because 1) the keyword was easily confused with C++ typedef, whose role was taken in D by alias (which is a much less misleading keyword for what it does)

Re: Mac OSX installer for dmd

2010-08-04 Thread Don
Walter Bright wrote: Jacob Carlborg wrote: Am not sure about 1441 and I don't think 2529 is just an implementation issue. 2529 is an implementation issue (and I don't agree with Don, I think his suggestion breaks encapsulation). Maybe it does. I think the bug should be closed as invalid, be

Re: A working backtrace for linux

2010-08-04 Thread Johannes Pfau
On 04.08.2010 07:26, David Bryant wrote: > Ok, > > I've added -L--export-dynamic to dmd.conf and done a copy/modify of > DefaultTraceInfo from runtime.d to include demangling and catch certain > signals. My backtraces now look gorgeous under Linux. > > I've attached the source for the updated mod

Re: A working backtrace for linux

2010-08-04 Thread Rory Mcguire
Thanks!! The code at the start of this thread didn't work at all for me but what you've done works. David Bryant wrote: > Ok, > > I've added -L--export-dynamic to dmd.conf and done a copy/modify of > DefaultTraceInfo from runtime.d to include demangling and catch certain > signals. My backtra

Re: Mac OSX installer for dmd

2010-08-04 Thread Walter Bright
Don wrote: Walter Bright wrote: Jacob Carlborg wrote: Am not sure about 1441 and I don't think 2529 is just an implementation issue. 2529 is an implementation issue (and I don't agree with Don, I think his suggestion breaks encapsulation). Maybe it does. I think the bug should be closed as

Re: D2 and FreeBSD

2010-08-04 Thread Marco Righele
On 08/04/10 07:47, Shin Fujishiro wrote: > Marco Righele wrote: >> Greetings, >> Are there any plans for a FreeBSD release of the D2 DMD compiler ? > > I'm using DMD v2 on my FreeBSD box with these patches: > > - FreeBSD patches for druntime. > http://d.puremagic.com/issues/show_bug.cgi?id=3528

Re: Andrei's Google Talk

2010-08-04 Thread Rory Mcguire
Leandro Lucarella wrote: > BCS, el 3 de agosto a las 16:04 me escribiste: >> The video is up: >> >> http://www.youtube.com/watch?v=RlVpPstLPEc > > Nice talk, I think the guy that asked what is the biggest application > written in D deserved a book. I'm suffering the lack of D applications > for

Re: Andrei's Google Talk

2010-08-04 Thread Rory Mcguire
Andrei Alexandrescu wrote: > BCS wrote: >> The video is up: >> >> http://www.youtube.com/watch?v=RlVpPstLPEc > > Per popular demand, I uploaded the slides here: > http://erdani.com/d/three-cool-things-about-d.pdf > > > Andrei Shouldn't your file copy example have used File.tmpfile()?

Re: Andrei's Google Talk

2010-08-04 Thread Steven Schveighoffer
On Tue, 03 Aug 2010 17:56:44 -0400, Walter Bright wrote: bearophile wrote: 27.50, "transactional file copy": this example was script-like, and as short as possible to fit into one single slide, so in this case I think using enforce() is OK. But in true programs I suggest all D programmers

Re: Andrei's Google Talk

2010-08-04 Thread Steven Schveighoffer
On Tue, 03 Aug 2010 20:21:49 -0400, Adam Ruppe wrote: On 8/3/10, Walter Bright wrote: Andrei put together a benchmark that shows that D compiles 4 times faster than Go. I've found D1 tends to be much faster than D2 as well. The dmd version 1 is so fast that I often think it doesn't even

Re: Regarding typedef

2010-08-04 Thread Trass3r
From what I understood, typedef is going to be replaced by a templated structure and handle type conversion in that way. What do you think? That discussion is kinda at a standstill. Recently I posted a topic titled "library defined typedef" because the current proposed version only supports

Re: std.concurrency and efficient returns

2010-08-04 Thread bearophile
Robert Jacques: > Bartosz recently bloged about > task driven parallelism in three "High Productivity Computing Systems" > languages ( Chapel, X10, Fortress ) and criticized all three regarding > taking the "here be dragons" approach. Even experts wake up the dragons on > a semi-regular bas

Re: Regarding typedef

2010-08-04 Thread bearophile
Trass3r: > But nobody answered. Your ideas seem a starting point. Currently in practical programs a struct+alias this is not able to replace my usages of typedef (in past I have written here several posts showing some usage examples). Bye, bearophile

Re: Andrei's Google Talk

2010-08-04 Thread bearophile
Steven Schveighoffer: > Yes, but as has been discussed and resolved on phobos mailing list, usage > errors should not be handled via uncaught exceptions. Do you have some URL for that discussion? Bye, bearophile

Re: std.concurrency and efficient returns

2010-08-04 Thread dsimcha
== Quote from Robert Jacques (sandf...@jhu.edu)'s article > My experience with data-parallel programming leads me to believe that a > large number of use cases could be covered by extending the D's set of > function/member modifiers (i.e. const/shared/immutable/pure) to cover > delegates. This woul

Re: Andrei's Google Talk

2010-08-04 Thread Arth Lloyd Flores
How I wish I were there... for the book :D That was a nice talk Andrei.. I congratulate you.. -- -Arth

Re: Andrei's Google Talk

2010-08-04 Thread Leandro Lucarella
Rory Mcguire, el 4 de agosto a las 12:37 me escribiste: > Leandro Lucarella wrote: > > > BCS, el 3 de agosto a las 16:04 me escribiste: > >> The video is up: > >> > >> http://www.youtube.com/watch?v=RlVpPstLPEc > > > > Nice talk, I think the guy that asked what is the biggest application > > w

Re: A working backtrace for linux

2010-08-04 Thread Leandro Lucarella
Kagamin, el 3 de agosto a las 22:54 me escribiste: > Leandro Lucarella Wrote: > > > You might be interested in this thread: > > http://thread.gmane.org/gmane.comp.lang.d.phobos/1468 > > > What's a druntime list? A mailing list[1] where the topic is Druntime[2] perhaps? [1] http://lists.puremag

Re: Andrei's Google Talk

2010-08-04 Thread Andrei Alexandrescu
On 08/04/2010 06:38 AM, Steven Schveighoffer wrote: On Tue, 03 Aug 2010 17:56:44 -0400, Walter Bright wrote: bearophile wrote: 27.50, "transactional file copy": this example was script-like, and as short as possible to fit into one single slide, so in this case I think using enforce() is OK.

Re: A working backtrace for linux

2010-08-04 Thread Sean Kelly
Johannes Pfau wrote: > On 04.08.2010 07:26, David Bryant wrote: >> Ok, >> >> I've added -L--export-dynamic to dmd.conf and done a copy/modify of >> DefaultTraceInfo from runtime.d to include demangling and catch > > certain >> signals. My backtraces now look gorgeous under Linux. >> >> I've atta

Re: D2 and FreeBSD

2010-08-04 Thread Sohgo Takeuchi
From: Shin Fujishiro | > Marco Righele wrote: >> Greetings, >> Are there any plans for a FreeBSD release of the D2 DMD compiler ? > > I'm using DMD v2 on my FreeBSD box with these patches: I also have used DMD2 on a FreeBSD 8 box for several month. I hope that these paches will be applied to t

Re: Andrei's Google Talk

2010-08-04 Thread Steven Schveighoffer
On Wed, 04 Aug 2010 09:03:45 -0400, bearophile wrote: Steven Schveighoffer: Yes, but as has been discussed and resolved on phobos mailing list, usage errors should not be handled via uncaught exceptions. Do you have some URL for that discussion? Hm... let me see: http://lists.puremag

Re: Andrei's Google Talk

2010-08-04 Thread Steven Schveighoffer
On Wed, 04 Aug 2010 10:15:29 -0400, Andrei Alexandrescu wrote: On 08/04/2010 06:38 AM, Steven Schveighoffer wrote: On Tue, 03 Aug 2010 17:56:44 -0400, Walter Bright wrote: bearophile wrote: 27.50, "transactional file copy": this example was script-like, and as short as possible to fit in

Re: Andrei's Google Talk

2010-08-04 Thread Rory Mcguire
Leandro Lucarella wrote: > Rory Mcguire, el 4 de agosto a las 12:37 me escribiste: >> Leandro Lucarella wrote: >> >> > BCS, el 3 de agosto a las 16:04 me escribiste: >> >> The video is up: >> >> >> >> http://www.youtube.com/watch?v=RlVpPstLPEc >> > >> > Nice talk, I think the guy that asked w

Re: Andrei's Google Talk

2010-08-04 Thread Nick Sabalausky
"Leandro Lucarella" wrote in message news:20100804132228.gg21...@llucax.com.ar... > Rory Mcguire, el 4 de agosto a las 12:37 me escribiste: >> Leandro Lucarella wrote: >> >> > BCS, el 3 de agosto a las 16:04 me escribiste: >> >> The video is up: >> >> >> >> http://www.youtube.com/watch?v=RlVpPs

Re: D2 and FreeBSD

2010-08-04 Thread Marco Righele
On 08/04/10 12:30, Marco Righele wrote: > Finally I was unable to compile phobos, as I encountered errors in > different modules, including references to freebsd related files that > aren't in the zip I downloaded. > Am I supposed to use a different version of the compiler/libraries ? > If so, is

Where is stdout?

2010-08-04 Thread Andrej Mitrovic
>From TDPL, page 161: import std.conv; void writeln(T...)(T args) { foreach (arg; args) { stdout.rawWrite(to!string(arg)); } stdout.rawWrite('\n'); stdout.flush(); } void main() { writeln("test"); } test.d(10): Error: undefined identifier stdout

Re: Andrei's Google Talk

2010-08-04 Thread Tomek Sowiński
Andrei Alexandrescu napisał: > I tested on two laptops (Ubuntu and Mac OSX). I compiled the two > languages' standard libraries by using the provided makefiles, after > touching all .go and all .d files involved. Then I divided the > compilation times by the line counts of *.go/*.d files as wc has

Re: Where is stdout?

2010-08-04 Thread Jonathan M Davis
On Wednesday, August 04, 2010 11:38:28 Andrej Mitrovic wrote: > From TDPL, page 161: > > import std.conv; > > void writeln(T...)(T args) > { > foreach (arg; args) > { > stdout.rawWrite(to!string(arg)); > } > stdout.rawWrite('\n'); > stdout.flush(); > } > > void main()

Re: Where is stdout?

2010-08-04 Thread Andrej Mitrovic
Okay, this works: import std.conv, std.stdio; void writeln(T...)(T args) { foreach (arg; args) { stdout.rawWrite(to!string(arg)); } stdout.rawWrite("\n"); stdout.flush(); } void main() { writeln("test"); } But I had to replace '\n' with "\n", otherwise I get some

Re: Mac OSX installer for dmd

2010-08-04 Thread Walter Bright
Michel Fortin wrote: As a side note, my D plugin for Xcode expects DMD to be available at /usr/local/bin/{dmd,dmd1,dmd2} and the runtime libraries should be in /usr/local/lib. It won't work if the files can't be found there, although I might change that if an official distribution of DMD instal

Re: Mac OSX installer for dmd

2010-08-04 Thread Andrei Alexandrescu
Walter Bright wrote: Michel Fortin wrote: As a side note, my D plugin for Xcode expects DMD to be available at /usr/local/bin/{dmd,dmd1,dmd2} and the runtime libraries should be in /usr/local/lib. It won't work if the files can't be found there, although I might change that if an official dist

Re: Mac OSX installer for dmd

2010-08-04 Thread Walter Bright
Andrei Alexandrescu wrote: Walter Bright wrote: Michel Fortin wrote: As a side note, my D plugin for Xcode expects DMD to be available at /usr/local/bin/{dmd,dmd1,dmd2} and the runtime libraries should be in /usr/local/lib. It won't work if the files can't be found there, although I might cha

Re: Andrei's Google Talk

2010-08-04 Thread Andrei Alexandrescu
On 08/04/2010 01:38 PM, Tomek Sowiński wrote: Andrei Alexandrescu napisał: I tested on two laptops (Ubuntu and Mac OSX). I compiled the two languages' standard libraries by using the provided makefiles, after touching all .go and all .d files involved. Then I divided the compilation times by th

Re: Andrei's Google Talk

2010-08-04 Thread Leandro Lucarella
Rory Mcguire, el 4 de agosto a las 18:38 me escribiste: > >> What type of apps are you looking for? > > > > Anything that can be automatically run for benchmarking, if they do > > intensive use of the GC or need small pauses, much better. But if it's > > D2, I'm sorry but is too late, I'll stick

Re: Andrei's Google Talk

2010-08-04 Thread Leandro Lucarella
Nick Sabalausky, el 4 de agosto a las 12:51 me escribiste: > >> What type of apps are you looking for? > > > > Anything that can be automatically run for benchmarking, if they do > > intensive use of the GC or need small pauses, much better. But if it's > > D2, I'm sorry but is too late, I'll stic

Re: Documentation generation

2010-08-04 Thread bearophile
Brad Roberts: > I've been avoiding saying this for a while, but I suspect a lot of people have > thought it at one time or another. You probably ought to find a word other > than > 'can' to use. Of course he's capable of... whatever. Perhaps you meant to > make > it a suggestion? You are righ

Re: Andrei's Google Talk

2010-08-04 Thread bearophile
Leandro Lucarella: > Yes, I borrowed some deliberately GC-intensive benchmarks done by him, > most notably the voronoi generator[1], which made me sweat[2] more than > once :) On my site you can find four other Olden benchmarks: em3d tsp bisort bh http://bit.ly/cYlQUe And I hope to add one or two

Re: D2 and FreeBSD

2010-08-04 Thread Shin Fujishiro
Marco Righele wrote: > Thanks, I didn't realize that the zip comes with the full source :D. > The patches apply cleanly, but I found number of issues though. > > (The DMD version I used is 2.047, the one downloadable from the site, > while my box is running FreeBSD 8.1/x86) Thanks for testing!

Re: Andrei's Google Talk

2010-08-04 Thread Nick Sabalausky
"Leandro Lucarella" wrote in message news:20100804192922.gm21...@llucax.com.ar... > Nick Sabalausky, el 4 de agosto a las 12:51 me escribiste: >> >> What type of apps are you looking for? >> > >> > Anything that can be automatically run for benchmarking, if they do >> > intensive use of the GC o

Re: Andrei's Google Talk

2010-08-04 Thread Robert Clipsham
On 04/08/10 00:18, Leandro Lucarella wrote: BCS, el 3 de agosto a las 16:04 me escribiste: The video is up: http://www.youtube.com/watch?v=RlVpPstLPEc Nice talk, I think the guy that asked what is the biggest application written in D deserved a book. I'm suffering the lack of D applications

Re: Andrei's Google Talk

2010-08-04 Thread bearophile
Steven Schveighoffer: > Hm... let me see: > http://lists.puremagic.com/pipermail/phobos/2010-July/001480.html > I think this is what started the discussion. Thank you for the link. I have read all the long thread and this time my hero is Leandro Lucarella :-) Bye, bearophile

Re: Mac OSX installer for dmd

2010-08-04 Thread Leandro Lucarella
Walter Bright, el 4 de agosto a las 12:41 me escribiste: > Andrei Alexandrescu wrote: > >Walter Bright wrote: > >>Michel Fortin wrote: > >>>As a side note, my D plugin for Xcode expects DMD to be > >>>available at /usr/local/bin/{dmd,dmd1,dmd2} and the runtime > >>>libraries should be in /usr/loca

Re: Andrei's Google Talk

2010-08-04 Thread Leandro Lucarella
bearophile, el 4 de agosto a las 16:25 me escribiste: > Leandro Lucarella: > > Yes, I borrowed some deliberately GC-intensive benchmarks done by him, > > most notably the voronoi generator[1], which made me sweat[2] more than > > once :) > > On my site you can find four other Olden benchmarks: >

Re: Andrei's Google Talk

2010-08-04 Thread bearophile
Leandro Lucarella: > Thanks, that would be the xxx01.d I guess, right? Right, generally. Inside each zip there is usually a text file that explains what each file/version is, and more. Some of those readme contain enough material to write a paper about :-) Bye, bearophile

Re: Mac OSX installer for dmd

2010-08-04 Thread Michel Fortin
On 2010-08-04 15:31:32 -0400, Walter Bright said: Michel Fortin wrote: As a side note, my D plugin for Xcode expects DMD to be available at /usr/local/bin/{dmd,dmd1,dmd2} and the runtime libraries should be in /usr/local/lib. It won't work if the files can't be found there, although I might

DMD1 binaries a lot bigger than DMD2 due to weird zero blocks?

2010-08-04 Thread Vladimir Panteleev
Consider a simple "Hello, world" program: import std.c.stdio; void main() { printf("Hello, world!\n"); } When compiled with DMD 1.062 and DMD 2.047: C:\Downloads\dmd.1.062\dmd\windows\bin> dmd hello.d C:\Downloads\dmd.1.062\dmd\windows\bin> ls -l hello.exe -rwxrwxrwx 1 Vladimir 0 1771

Re: Mac OSX installer for dmd

2010-08-04 Thread Michel Fortin
On 2010-08-04 17:56:31 -0400, Leandro Lucarella said: I'd say: dmd /usr/local/bin That makes a lot of sense. I agree that /usr/local/{bin,lib,man} is the right place. But you can't install dmd1 and dmd2 side by side this way (because of dmd.conf). That's why the D for Xcode installer

Re: Andrei's Google Talk

2010-08-04 Thread Leandro Lucarella
Robert Clipsham, el 4 de agosto a las 22:16 me escribiste: > On 04/08/10 00:18, Leandro Lucarella wrote: > >BCS, el 3 de agosto a las 16:04 me escribiste: > >>The video is up: > >> > >>http://www.youtube.com/watch?v=RlVpPstLPEc > > > >Nice talk, I think the guy that asked what is the biggest appl

Re: Andrei's Google Talk

2010-08-04 Thread Jeff Nowakowski
On 08/04/2010 05:16 PM, Robert Clipsham wrote: I know of several large apps written in D, they're all D1/Tango. The incomplete state of D2 has to be the most embarrassing question that could have been asked at Andrei's talk, but then you'd have to be familiar with D to ask that question. And

Sharing Ref Counted Containers

2010-08-04 Thread dsimcha
I noticed that std.container.Array uses completely unsynchronized reference counting. Does that mean that it's basically impossible to share it across threads without introducing race conditions into the reference counting code, even if you synchronize on other updates? Are there any plans to mak

Re: Andrei's Google Talk

2010-08-04 Thread Andrei Alexandrescu
On 08/04/2010 07:25 PM, Jeff Nowakowski wrote: On 08/04/2010 05:16 PM, Robert Clipsham wrote: I know of several large apps written in D, they're all D1/Tango. The incomplete state of D2 has to be the most embarrassing question that could have been asked at Andrei's talk, but then you'd have t

Re: Sharing Ref Counted Containers

2010-08-04 Thread Andrei Alexandrescu
On 08/04/2010 08:02 PM, dsimcha wrote: I noticed that std.container.Array uses completely unsynchronized reference counting. Does that mean that it's basically impossible to share it across threads without introducing race conditions into the reference counting code, even if you synchronize on o

Re: Sharing Ref Counted Containers

2010-08-04 Thread Jonathan M Davis
On Wednesday 04 August 2010 18:20:36 Andrei Alexandrescu wrote: > On 08/04/2010 08:02 PM, dsimcha wrote: > > I noticed that std.container.Array uses completely unsynchronized > > reference counting. Does that mean that it's basically impossible to > > share it across threads without introducing ra

Re: Andrei's Google Talk

2010-08-04 Thread bearophile
Andrei Alexandrescu: > Walter is more silent than usual because he's working very hard on the > 64-bit compiler. He hopes to have one by the end of this month. His next > big goal is shared library support. I am sorry to say this, but I think porting the current back-end to 64 bit is a waste of

Re: Andrei's Google Talk

2010-08-04 Thread Adam Ruppe
On 8/4/10, bearophile wrote: > I am sorry to say this, but I think porting the current back-end to 64 bit > is a waste of time because it will not be used for professional usages. I > think LLVM will be the main back-end for professional usages of D2 Get back to me when LDC starts to actually /wo

Re: Andrei's Google Talk

2010-08-04 Thread bearophile
Adam Ruppe: > Get back to me when LDC starts to actually /work/. It is *completely > unusable* in its current state and its developers don't seem to care. Go back to read my post again, it doesn't contain the name "LDC". Bye, bearophile

Re: Sharing Ref Counted Containers

2010-08-04 Thread dsimcha
== Quote from Jonathan M Davis (jmdavisp...@gmail.com)'s article > On Wednesday 04 August 2010 18:20:36 Andrei Alexandrescu wrote: > > On 08/04/2010 08:02 PM, dsimcha wrote: > > > I noticed that std.container.Array uses completely unsynchronized > > > reference counting. Does that mean that it's b

Re: Andrei's Google Talk

2010-08-04 Thread Petr Janda
> Go back to read my post again, it doesn't contain the name "LDC". But LDC is the D frontend for LLVM right, so wouldn't it be more useful to talk about LDC rather than LLVM?

Re: Andrei's Google Talk

2010-08-04 Thread dsimcha
== Quote from bearophile (bearophileh...@lycos.com)'s article > Andrei Alexandrescu: > > Walter is more silent than usual because he's working very hard on the > > 64-bit compiler. He hopes to have one by the end of this month. His next > > big goal is shared library support. > I am sorry to say th

Re: Andrei's Google Talk

2010-08-04 Thread BCS
Hello bearophile, Andrei Alexandrescu: Walter is more silent than usual because he's working very hard on the 64-bit compiler. He hopes to have one by the end of this month. His next big goal is shared library support. I am sorry to say this, but I think porting the current back-end to 64 bi

Re: Sharing Ref Counted Containers

2010-08-04 Thread Michel Fortin
On 2010-08-04 21:55:33 -0400, Jonathan M Davis said: I would have thought that sharing pretty much _any_ type more complex than a primitive type without it being synchronized would be a bad idea. And since the standard containers obviously aren't going to be synchronized, I would expect you to

Re: Sharing Ref Counted Containers

2010-08-04 Thread Andrei Alexandrescu
Michel Fortin wrote: On 2010-08-04 21:55:33 -0400, Jonathan M Davis said: I would have thought that sharing pretty much _any_ type more complex than a primitive type without it being synchronized would be a bad idea. And since the standard containers obviously aren't going to be synchronized

Re: Andrei's Google Talk

2010-08-04 Thread Norbert Nemec
On 03/08/10 22:56, Walter Bright wrote: bearophile wrote: 27.50, "transactional file copy": this example was script-like, and as short as possible to fit into one single slide, so in this case I think using enforce() is OK. But in true programs I suggest all D programmers to use DesignByContract