Re: std.container and classes

2011-12-17 Thread Jonathan M Davis
On Sunday, December 18, 2011 00:15:40 Andrei Alexandrescu wrote: > On 12/17/11 7:52 PM, Jonathan M Davis wrote: > > The only reason that I can think of to use a reference-counted struct > > instead of a class is becuse then it's easier to avoid the GC heap > > entirely. Almost all of a container's

Re: Java > Scala

2011-12-17 Thread Jonathan M Davis
On Sunday, December 18, 2011 06:17:22 Russel Winder wrote: > The problem here is that educators forgot the importance of learning > multiple languages and especially multiple paradigms. Java was used for > all teaching and students suffered. If they had used Java and Haskell > and Prolog things wou

Re: Java > Scala

2011-12-17 Thread Russel Winder
On Sat, 2011-12-17 at 23:09 -0800, Walter Bright wrote: [...] > I find this an odd statement because the Java VM is written in C, so > therefore > it is on the same or fewer platforms than C. It's the indirection thing again: rather than provide a C toolchain for each platform, you load Java (o

Re: Java > Scala

2011-12-17 Thread Russel Winder
On Sun, 2011-12-18 at 00:38 -0600, Caligo wrote: [...] > In my experience professors only get to choose what to wear to class, lol. :-) > It's interesting how many professors choose the same exact text book for > the same courses they teach. And it's also interesting how those textbooks > cost 1

Re: Java > Scala

2011-12-17 Thread Walter Bright
On 12/17/2011 10:36 PM, Russel Winder wrote: In all of this, the issue of portability of code has seemingly been missed. One of the main reasons for Java in 1995 (other than the trendiness of Web browser programming) was portability across all platforms. This made the sys admin of provision of

Re: Java > Scala

2011-12-17 Thread Caligo
On Sat, Dec 17, 2011 at 11:01 PM, Jonathan M Davis wrote: > In my experience, it's the professors who get to choose what they're > teaching > and the main reason that Java is used is a combination of its simplicitly > and > the fact that it's heavily used in the industry. C and C++ have a lot more

Re: Java > Scala

2011-12-17 Thread Russel Winder
On Sat, 2011-12-17 at 21:01 -0800, Jonathan M Davis wrote: [...] > In my experience, it's the professors who get to choose what they're teaching > and the main reason that Java is used is a combination of its simplicitly and > the fact that it's heavily used in the industry. C and C++ have a lot

Re: std.container and classes

2011-12-17 Thread Andrei Alexandrescu
On 12/17/11 7:52 PM, Jonathan M Davis wrote: The only reason that I can think of to use a reference-counted struct instead of a class is becuse then it's easier to avoid the GC heap entirely. Almost all of a container's memory is going to end up on the heap regardless, because the elements almos

Re: Java > Scala

2011-12-17 Thread Russel Winder
On Sat, 2011-12-17 at 22:45 -0600, Caligo wrote: [...] I thought this thread had finished, but... > > That's like saying people should take Coke and Pepsi more seriously because > they have bigger market shares when in reality all you need is water. > Money isn't real, you know? Taking that para

Re: Double Checked Locking

2011-12-17 Thread Jonathan M Davis
On Saturday, December 17, 2011 22:16:38 Michel Fortin wrote: > On 2011-12-17 23:10:19 +, Andrei Alexandrescu > > said: > > On 12/17/11 5:03 PM, Jonathan M Davis wrote: > >> Well, you learn something new every day I guess. I'd never even heard > >> of > >> double-checked locking before this. I

Re: Java > Scala

2011-12-17 Thread Jonathan M Davis
On Saturday, December 17, 2011 22:45:51 Caligo wrote: > On Fri, Dec 2, 2011 at 2:19 AM, Russel Winder wrote: > > Java is the main language of development just now. D is a tiny little > > backwater in the nether regions of obscurity. If any language is a joke > > here, it is D since it is current

Re: std.container and classes

2011-12-17 Thread Jonathan M Davis
On Saturday, December 17, 2011 22:57:46 Caligo wrote: > On Tue, Dec 13, 2011 at 9:08 PM, Jonathan M Davis wrote: > > Is the plan for std.container still to have all of its containers be > > final classes (classes so that they're reference types and final so > > that their functions are inlinable)?

Re: std.container and classes

2011-12-17 Thread Caligo
On Tue, Dec 13, 2011 at 9:08 PM, Jonathan M Davis wrote: > Is the plan for std.container still to have all of its containers be final > classes (classes so that they're reference types and final so that their > functions are inlinable)? Or has that changed? I believe that Andrei said > something r

Re: dfeed/gravatar issue

2011-12-17 Thread Caligo
On Sun, Dec 11, 2011 at 3:03 PM, Andrei Alexandrescu < seewebsiteforem...@erdani.org> wrote: > I'm finding myself unable to set up my own Gravatar picture with dfeed. > This is because I post on this newsgroup as seewebsiteforem...@erdani.org, > which is a non-existent email address. Gravatar, how

Re: Java > Scala

2011-12-17 Thread Caligo
On Fri, Dec 2, 2011 at 2:19 AM, Russel Winder wrote: > Java is the main language of development just now. D is a tiny little > backwater in the nether regions of obscurity. If any language is a joke > here, it is D since it is currently unable to claim any serious market > share in the world of

Re: Double Checked Locking

2011-12-17 Thread Michel Fortin
On 2011-12-17 23:10:19 +, Andrei Alexandrescu said: On 12/17/11 5:03 PM, Jonathan M Davis wrote: Well, you learn something new every day I guess. I'd never even heard of double-checked locking before this. I came up with it on my own in an attempt to reduce how much the mutex was used. Is

Re: std.container and classes

2011-12-17 Thread Jonathan M Davis
On Saturday, December 17, 2011 17:31:46 Andrei Alexandrescu wrote: > On 12/13/11 9:08 PM, Jonathan M Davis wrote: > > Is the plan for std.container still to have all of its containers be > > final classes (classes so that they're reference types and final so > > that their functions are inlinable)?

Re: d future or plans for d3

2011-12-17 Thread Jonathan M Davis
On Sunday, December 18, 2011 04:09:21 Ruslan Mullakhmetov wrote: > I want to ask you about D future It will be years before we seriously start looking at D3, and while there are ideas for what we might like to do with it, it's far too early to say what's likely to happen with it. D2 needs to b

Re: CURL Wrapper: Vote Thread

2011-12-17 Thread Jonathan M Davis
On Saturday, December 17, 2011 14:36:15 dsimcha wrote: > The time has come to vote on the inclusion of Jonas Drewsen's CURL > wrapper in Phobos. > > > Code: https://github.com/jcd/phobos/blob/curl-wrapper/etc/curl.d > Docs: http://freeze.steamwinter.com/D/web/phobos/etc_curl.html > > > For thos

Re: std.container and classes

2011-12-17 Thread Vladimir Panteleev
On Saturday, 17 December 2011 at 23:31:47 UTC, Andrei Alexandrescu wrote: Safety is also an issue. I was hoping I'd provide safety as a policy, e.g. one may choose for a given container whether they want safe or not (and presumably fast). I think it's best to postpone that policy and focus for

Re: Double Checked Locking

2011-12-17 Thread Jonathan M Davis
On Saturday, December 17, 2011 17:10:19 Andrei Alexandrescu wrote: > On 12/17/11 5:03 PM, Jonathan M Davis wrote: > > Well, you learn something new every day I guess. I'd never even heard of > > double-checked locking before this. I came up with it on my own in an > > attempt to reduce how much the

Re: Program size, linking matter, and static this()

2011-12-17 Thread Jonathan M Davis
On Saturday, December 17, 2011 13:20:33 Andrei Alexandrescu wrote: > On 12/17/11 6:34 AM, so wrote: > > If you are using singleton in your C++/D (or any other M-P language) > > code, do yourself a favor and trash that book you learned it from. > > > > --- > > class A { > > static A make(); > > } >

Re: Program size, linking matter, and static this()

2011-12-17 Thread Jonathan M Davis
On Saturday, December 17, 2011 19:44:28 deadalnix wrote: > Very good point. CTFE is improving with each version of dmd, and is a > real alternative to static this(); It should be considered when > apropriate, it has many benefices. I think that in general, the uses for static this fall into one of

Re: d future or plans for d3

2011-12-17 Thread Timon Gehr
On 12/18/2011 02:42 AM, a wrote: Ruslan Mullakhmetov Wrote: Currently, after introducing C++11 i see the only advantages of D over C++11 except syntax sugare is garbage collector and modules. So you are saying that sane templates, range based standard library and concurrency improvements (t

Re: d future or plans for d3

2011-12-17 Thread a
Ruslan Mullakhmetov Wrote: > Currently, after > introducing C++11 i see the only advantages of D over C++11 except > syntax sugare is garbage collector and modules. So you are saying that sane templates, range based standard library and concurrency improvements (thread local variables, immuta

Re: std.container and classes

2011-12-17 Thread Peter Alexander
On 17/12/11 11:31 PM, Andrei Alexandrescu wrote: The most important thing I noticed is that people expect standard containers to have sophisticated memory management. Many ask not about containers as much as "containers with custom allocators". Second, containers tend to be large memory users by

Re: Second Round CURL Wrapper Review

2011-12-17 Thread Jonathan M Davis
On Saturday, December 17, 2011 09:21:42 Justin C Calvarese wrote: > On Sat, Dec 17, 2011 at 5:56 AM, jdrewsen wrote: > > On Thursday, 15 December 2011 at 07:46:56 UTC, Jonathan M Davis wrote: > >>> ... > > > > I'd argue that the acronyms should be in all caps if camelcasing would > > > >> req

Re: Second Round CURL Wrapper Review

2011-12-17 Thread Jonathan M Davis
On Saturday, December 17, 2011 23:51:08 Jakob Ovrum wrote: > On Saturday, 17 December 2011 at 22:25:10 UTC, jdrewsen wrote: > > On Saturday, 17 December 2011 at 20:38:46 UTC, Jakob Ovrum > > > > wrote: > >> On Saturday, 17 December 2011 at 11:56:04 UTC, jdrewsen wrote: > >>> AutoConnect sounds lik

Re: Second Round CURL Wrapper Review

2011-12-17 Thread Jonathan M Davis
On Saturday, December 17, 2011 23:10:00 jdrewsen wrote: > On Thursday, 15 December 2011 at 08:51:29 UTC, Jonathan M Davis > > wrote: > > Line# 235 is identical to line# 239. Shouldn't line# 235 be > > creating an Http object, not an Ftp object? That mistake > > definitely makes it look like downlo

Re: Second Round CURL Wrapper Review

2011-12-17 Thread Jonathan M Davis
On Saturday, December 17, 2011 12:56:02 jdrewsen wrote: > On Thursday, 15 December 2011 at 07:46:56 UTC, Jonathan M Davis > > > I'd argue that the acronyms should be in all caps if > > camelcasing would require that the first letter of the acronym > > be capitalized and all lower case if camelcasi

Re: std.container and classes

2011-12-17 Thread Peter Alexander
On 18/12/11 12:06 AM, Jesse Phillips wrote: But as to whether this should be what is implemented in the standard library, I don't know. You make mention of custom allocators and such. Is this interest going to be of benefit, or is it just something people are use to having from C++? If it makes s

Re: d future or plans for d3

2011-12-17 Thread Timon Gehr
On 12/18/2011 01:09 AM, Ruslan Mullakhmetov wrote: Hi all, I want to ask you about D future, i mean next big iteration of D and propose some new feature, agent-based programming. Currently, after introducing C++11 i see the only advantages of D over C++11 except syntax sugare is garbage collecto

Re: LLVM talks 1: Clang for Chromium

2011-12-17 Thread Walter Bright
On 12/17/2011 2:54 AM, bearophile wrote: Walter: x = x++; Define order of evaluation as rvalue, then lvalue. So I presume your desire is to define the semantics of all code like that, and statically refuse no cases like that. This is an acceptable solution. The advantage of this solution i

Re: std.container and classes

2011-12-17 Thread Jesse Phillips
On Sat, 17 Dec 2011 17:31:46 -0600, Andrei Alexandrescu wrote: > The second decision is classes vs. structs. Walter correctly pointed out > that the obvious choice for defining a reference type in D - whether the > type is momonorphic or polymorphic - is making it a class. If containers > aren't c

d future or plans for d3

2011-12-17 Thread Ruslan Mullakhmetov
Hi all, I want to ask you about D future, i mean next big iteration of D and propose some new feature, agent-based programming. Currently, after introducing C++11 i see the only advantages of D over C++11 except syntax sugare is garbage collector and modules. I recentrly attended student

Re: Double Checked Locking

2011-12-17 Thread Sean Kelly
Both concurrent execution and a compiler that assumes a single threaded execution model can do really weird things in the name of optimization. Sent from my iPhone On Dec 17, 2011, at 3:03 PM, Jonathan M Davis wrote: > On Saturday, December 17, 2011 09:50:26 Andrei Alexandrescu wrote: >> On 1

Re: CURL Wrapper: Vote Thread

2011-12-17 Thread Jesse Phillips
On Sat, 17 Dec 2011 14:36:15 -0500, dsimcha wrote: > The time has come to vote on the inclusion of Jonas Drewsen's CURL > wrapper in Phobos. > > > Code: https://github.com/jcd/phobos/blob/curl-wrapper/etc/curl.d Docs: > http://freeze.steamwinter.com/D/web/phobos/etc_curl.html > > > For those o

Re: Export and Protected Scoping in Dynamic Libraries

2011-12-17 Thread Adam Wilson
On Sat, 17 Dec 2011 11:50:39 -0800, Walter Bright wrote: On 12/17/2011 11:22 AM, Adam Wilson wrote: On Sat, 17 Dec 2011 01:33:33 -0800, Walter Bright wrote: On 12/16/2011 9:01 PM, Adam Wilson wrote: On Fri, 16 Dec 2011 01:34:32 -0800, Walter Bright wrote: On 12/14/2011 11:41 AM, A

Re: std.container and classes

2011-12-17 Thread Andrei Alexandrescu
On 12/13/11 9:08 PM, Jonathan M Davis wrote: Is the plan for std.container still to have all of its containers be final classes (classes so that they're reference types and final so that their functions are inlinable)? Or has that changed? I believe that Andrei said something recently about discu

Re: CURL Wrapper: Vote Thread

2011-12-17 Thread Jimmy Cao
YES! Finally an easy way to do SMTP.

Re: Export and Protected Scoping in Dynamic Libraries

2011-12-17 Thread Andrei Alexandrescu
On 12/17/11 5:14 PM, Adam Wilson wrote: This is a fantastic idea Andrei, I'll see what I can come up with. It shouldn't be that hard, mostly i'll just have document the process, talk about the limitations of dynamic libraries, and make sure that the scoping issues are clearly defined and explaine

Re: Export and Protected Scoping in Dynamic Libraries

2011-12-17 Thread Adam Wilson
On Sat, 17 Dec 2011 14:27:12 -0800, Andrei Alexandrescu wrote: On 12/17/11 1:22 PM, Adam Wilson wrote: I know DLL's are relatively new to D so not much documentation exists about how they work in D. I think this would be something good to document, especially the special behaviors for Windows.

Re: Double Checked Locking

2011-12-17 Thread Andrei Alexandrescu
On 12/17/11 5:03 PM, Jonathan M Davis wrote: Well, you learn something new every day I guess. I'd never even heard of double-checked locking before this. I came up with it on my own in an attempt to reduce how much the mutex was used. Is the problem with it that the write isn't actually atomic? W

Re: Double Checked Locking

2011-12-17 Thread Jonathan M Davis
On Saturday, December 17, 2011 09:50:26 Andrei Alexandrescu wrote: > On 12/17/11 1:56 AM, Andrew Wiley wrote: > > On Sat, Dec 17, 2011 at 1:47 AM, Andrew Wiley wrote: > >> I was looking through Jonathan Davis's pull request to remove static > >> constructors from std.datetime, and I realized that

Re: Second Round CURL Wrapper Review

2011-12-17 Thread Jakob Ovrum
On Saturday, 17 December 2011 at 22:25:10 UTC, jdrewsen wrote: On Saturday, 17 December 2011 at 20:38:46 UTC, Jakob Ovrum wrote: On Saturday, 17 December 2011 at 11:56:04 UTC, jdrewsen wrote: AutoConnect sounds like a command to connection automatically which might be confusing since that is no

Re: CURL Wrapper: Vote Thread

2011-12-17 Thread maarten van damme
yes

Re: CURL Wrapper: Vote Thread

2011-12-17 Thread Andrei Alexandrescu
On 12/17/11 1:36 PM, dsimcha wrote: The time has come to vote on the inclusion of Jonas Drewsen's CURL wrapper in Phobos. Code: https://github.com/jcd/phobos/blob/curl-wrapper/etc/curl.d Docs: http://freeze.steamwinter.com/D/web/phobos/etc_curl.html For those of you on Windows, a libcurl bina

Re: Export and Protected Scoping in Dynamic Libraries

2011-12-17 Thread Andrei Alexandrescu
On 12/17/11 1:22 PM, Adam Wilson wrote: I know DLL's are relatively new to D so not much documentation exists about how they work in D. I think this would be something good to document, especially the special behaviors for Windows. I have to admit that, coming from a C# and C++ background, I've b

Re: CURL Wrapper: Vote Thread

2011-12-17 Thread Damian Ziemba
Yes

Re: Second Round CURL Wrapper Review

2011-12-17 Thread Andrei Alexandrescu
On 12/2/11 10:26 PM, dsimcha wrote: I volunteered ages ago to manage the review for the second round of Jonas Drewsen's CURL wrapper. After the first round it was decided that, after a large number of minor issues were fixed, a second round would be necessary. Significant open issues: 1. Should

Re: Second Round CURL Wrapper Review

2011-12-17 Thread jdrewsen
On Saturday, 17 December 2011 at 20:38:46 UTC, Jakob Ovrum wrote: On Saturday, 17 December 2011 at 11:56:04 UTC, jdrewsen wrote: AutoConnect sounds like a command to connection automatically which might be confusing since that is not what it does. Therefore I went with AutoConnection which I st

Re: Second Round CURL Wrapper Review

2011-12-17 Thread jdrewsen
On Thursday, 15 December 2011 at 08:51:29 UTC, Jonathan M Davis wrote: Line# 235 is identical to line# 239. Shouldn't line# 235 be creating an Http object, not an Ftp object? That mistake definitely makes it look like download hasn't been properly tested. It has been tested as you can see by

Re: CURL Wrapper: Vote Thread

2011-12-17 Thread Mirko Pilger
The time has come to vote on the inclusion of Jonas Drewsen's CURL wrapper in Phobos. yes.

Re: CURL Wrapper: Vote Thread

2011-12-17 Thread Max Klyga
On 2011-12-17 22:36:15 +0300, dsimcha said: The time has come to vote on the inclusion of Jonas Drewsen's CURL wrapper in Phobos. Code: https://github.com/jcd/phobos/blob/curl-wrapper/etc/curl.d Docs: http://freeze.steamwinter.com/D/web/phobos/etc_curl.html For those of you on Windows, a li

Re: Program size, linking matter, and static this()

2011-12-17 Thread Jakob Ovrum
On Saturday, 17 December 2011 at 21:02:58 UTC, so wrote: On Sat, 17 Dec 2011 21:20:33 +0200, Andrei Alexandrescu wrote: On 12/17/11 6:34 AM, so wrote: If you are using singleton in your C++/D (or any other M-P language) code, do yourself a favor and trash that book you learned it from. ---

Re: Program size, linking matter, and static this()

2011-12-17 Thread so
On Sat, 17 Dec 2011 21:20:33 +0200, Andrei Alexandrescu wrote: On 12/17/11 6:34 AM, so wrote: If you are using singleton in your C++/D (or any other M-P language) code, do yourself a favor and trash that book you learned it from. --- class A { static A make(); } class B; B makeB(); --- What

Re: Second Round CURL Wrapper Review

2011-12-17 Thread Jakob Ovrum
On Saturday, 17 December 2011 at 11:56:04 UTC, jdrewsen wrote: AutoConnect sounds like a command to connection automatically which might be confusing since that is not what it does. Therefore I went with AutoConnection which I still believe is better. How about something completely different

Re: Second Round CURL Wrapper Review

2011-12-17 Thread Jakob Ovrum
The docs for onReceiveHeader, http://freeze.steamwinter.com/D/web/phobos/etc_curl.html#onReceiveHeader explicitly says that the const string parameters are not valid after the function returns. This is all well and good; but a minor improvement would be to change the signature to: @property

Re: Export and Protected Scoping in Dynamic Libraries

2011-12-17 Thread Walter Bright
On 12/17/2011 11:22 AM, Adam Wilson wrote: On Sat, 17 Dec 2011 01:33:33 -0800, Walter Bright wrote: On 12/16/2011 9:01 PM, Adam Wilson wrote: On Fri, 16 Dec 2011 01:34:32 -0800, Walter Bright wrote: On 12/14/2011 11:41 AM, Adam Wilson wrote: Hello Everyone, I want to start this conversat

Re: auto testing

2011-12-17 Thread Brad Roberts
On 12/17/2011 4:56 AM, Robert Clipsham wrote: > On 17/12/2011 06:40, Brad Roberts wrote: >> On 12/16/2011 1:29 PM, Brad Anderson wrote: >>> On Thu, Dec 15, 2011 at 6:43 PM, Brad >>> Robertsmailto:bra...@puremagic.com>> wrote: >>> >>> >>> Left to do: >>> >>> 1) deploy changes to the tes

Re: CURL Wrapper: Vote Thread

2011-12-17 Thread dsimcha
On 12/17/2011 2:36 PM, dsimcha wrote: The time has come to vote on the inclusion of Jonas Drewsen's CURL wrapper in Phobos. Code: https://github.com/jcd/phobos/blob/curl-wrapper/etc/curl.d Docs: http://freeze.steamwinter.com/D/web/phobos/etc_curl.html For those of you on Windows, a libcurl bi

CURL Wrapper: Vote Thread

2011-12-17 Thread dsimcha
The time has come to vote on the inclusion of Jonas Drewsen's CURL wrapper in Phobos. Code: https://github.com/jcd/phobos/blob/curl-wrapper/etc/curl.d Docs: http://freeze.steamwinter.com/D/web/phobos/etc_curl.html For those of you on Windows, a libcurl binary built by DMC is available at htt

Re: 64-bit DMD for windows?

2011-12-17 Thread Adam Wilson
On Sat, 17 Dec 2011 11:14:51 -0800, torhu wrote: On 17.12.2011 19:05, Andrej Mitrovic wrote: Windows still ships with edit, which has more features than notepad. Heheh. cmd.exe /c edit Makes me wonder what it's for, can you run a Windows server without the GUI? Starting with Windows S

Re: Export and Protected Scoping in Dynamic Libraries

2011-12-17 Thread Adam Wilson
On Sat, 17 Dec 2011 01:33:33 -0800, Walter Bright wrote: On 12/16/2011 9:01 PM, Adam Wilson wrote: On Fri, 16 Dec 2011 01:34:32 -0800, Walter Bright wrote: On 12/14/2011 11:41 AM, Adam Wilson wrote: Hello Everyone, I want to start this conversation by pointing out that I come from a

Re: Program size, linking matter, and static this()

2011-12-17 Thread Andrei Alexandrescu
On 12/17/11 6:34 AM, so wrote: If you are using singleton in your C++/D (or any other M-P language) code, do yourself a favor and trash that book you learned it from. --- class A { static A make(); } class B; B makeB(); --- What A.make can do makeB can not? (Other than creating objects of two

Re: 64-bit DMD for windows?

2011-12-17 Thread torhu
On 17.12.2011 18:21, Bane wrote: Trass3r Wrote: > DOS software can be more productive, since it's often keyboard-only. How is that different from a Windows console app? No Solitare, Facebook... much more productive! Most likely they're running the DOS app in a window in Windows, but th

Re: Any plans to make it possible to call C++ functions that reside in a namespace?

2011-12-17 Thread Dejan Lekic
On Thursday, 15 December 2011 at 08:16:52 UTC, deadalnix wrote: That would be great. ATM, I just create dumb function in the global namespace and thoses functions forward to the function within the namespace. That is what I do as well, but when I have thousands functions to add it takes time.

Re: Any plans to make it possible to call C++ functions that reside in a namespace?

2011-12-17 Thread Dejan Lekic
On Friday, 16 December 2011 at 00:44:07 UTC, Walter Bright wrote: I hadn't planned to, but it's a good idea. I suggest adding it as an enhancement request on bugzilla. I will do as you suggested. Thanks Walter.

Re: 64-bit DMD for windows?

2011-12-17 Thread torhu
On 17.12.2011 19:05, Andrej Mitrovic wrote: Windows still ships with edit, which has more features than notepad. Heheh. cmd.exe /c edit Makes me wonder what it's for, can you run a Windows server without the GUI?

Re: Program size, linking matter, and static this()

2011-12-17 Thread deadalnix
Le 17/12/2011 02:39, Andrei Alexandrescu a écrit : On 12/16/11 6:54 PM, Jonathan M Davis wrote: By contrast, we could have a simple feature that was explained in the documenation along with static constructors which made it easy to tell the compiler that the order doesn't matter - either by sayi

Re: Program size, linking matter, and static this()

2011-12-17 Thread Somedude
Le 16/12/2011 22:45, Andrei Alexandrescu a écrit : > On 12/16/11 3:38 PM, Trass3r wrote: >> A related issue is phobos being an intermodule dependency monster. >> A simple hello world pulls in almost 30 modules! >> And std.stdio is supposed to be just a simple wrapper around C FILE. > > In fact it

Re: Program size, linking matter, and static this()

2011-12-17 Thread Somedude
Le 17/12/2011 00:18, maarten van damme a écrit : > how did other languages solve this issue? I can't imagine D beeing the > only language with static constructors, do they have that problem too? AFAIK, I believe like in D, it's best practice to avoid static constructors as much as possible in Java

Re: 64-bit DMD for windows?

2011-12-17 Thread Andrej Mitrovic
Windows still ships with edit, which has more features than notepad. Heheh. cmd.exe /c edit

Re: 64-bit DMD for windows?

2011-12-17 Thread Bane
Trass3r Wrote: > > DOS software can be more productive, since it's often keyboard-only. > > How is that different from a Windows console app? No Solitare, Facebook... much more productive!

Re: 64-bit DMD for windows?

2011-12-17 Thread torhu
On 17.12.2011 17:59, torhu wrote: On 17.12.2011 16:37, Trass3r wrote: DOS software can be more productive, since it's often keyboard-only. How is that different from a Windows console app? From an interface point of view, it's basically the same thing. They both support character graphi

Re: 64-bit DMD for windows?

2011-12-17 Thread torhu
On 17.12.2011 16:37, Trass3r wrote: DOS software can be more productive, since it's often keyboard-only. How is that different from a Windows console app? From an interface point of view, it's basically the same thing. They both support character graphics (like ncurses). Internally, they

Re: Double Checked Locking

2011-12-17 Thread Andrei Alexandrescu
On 12/17/11 1:56 AM, Andrew Wiley wrote: On Sat, Dec 17, 2011 at 1:47 AM, Andrew Wiley wrote: I was looking through Jonathan Davis's pull request to remove static constructors from std.datetime, and I realized that I don't know whether Double Checked Locking is legal under D's memory model, and

D Style Guide (was Re: Second Round CURL Wrapper Review )

2011-12-17 Thread Justin C Calvarese
== Quote from jdrewsen (jdrew...@nospam.com)'s article > On Thursday, 15 December 2011 at 07:46:56 UTC, Jonathan M Davis > wrote: ... > > I'd argue that the acronyms should be in all caps if > > camelcasing would require that the first letter of the acronym > > be capitalized and all lower case if

D Style Guide (was Re: Second Round CURL Wrapper Review )

2011-12-17 Thread Justin C Calvarese
== Quote from jdrewsen (jdrew...@nospam.com)'s article > On Thursday, 15 December 2011 at 07:46:56 UTC, Jonathan M Davis > wrote: ... > > I'd argue that the acronyms should be in all caps if > > camelcasing would require that the first letter of the acronym > > be capitalized and all lower case if

Re: Second Round CURL Wrapper Review

2011-12-17 Thread Justin C Calvarese
On Sat, Dec 17, 2011 at 5:56 AM, jdrewsen wrote: > On Thursday, 15 December 2011 at 07:46:56 UTC, Jonathan M Davis wrote: > >> >>> ... > > I'd argue that the acronyms should be in all caps if camelcasing would >> require that the first letter of the acronym be capitalized and all lower >> case

Re: 64-bit DMD for windows?

2011-12-17 Thread Trass3r
DOS software can be more productive, since it's often keyboard-only. How is that different from a Windows console app?

Re: Double Checked Locking

2011-12-17 Thread Sean Kelly
No. The most efficient thing would be to use core.atomic atomicLoad!msync.acq() for the read and atomicStore!msync.rel() for the write. Use a temporary to construct the instance, etc. I think Andrei outlined the proper approach in a series of articles a while back. Sent from my iPhone On Dec

Re: auto testing

2011-12-17 Thread Robert Clipsham
On 17/12/2011 06:40, Brad Roberts wrote: On 12/16/2011 1:29 PM, Brad Anderson wrote: On Thu, Dec 15, 2011 at 6:43 PM, Brad Robertsmailto:bra...@puremagic.com>> wrote: Left to do: 1) deploy changes to the tester hosts (it's on 2 already) done 2) finish the ui very ugly

Re: Program size, linking matter, and static this()

2011-12-17 Thread so
On Sat, 17 Dec 2011 01:50:51 +0200, Jonathan M Davis wrote: On Friday, December 16, 2011 17:13:49 Andrei Alexandrescu wrote: Maybe there's an issue with the design. Maybe Singleton (the most damned of all patterns) is not the best choice here. Or maybe the use of an inheritance hierarchy wit

Re: 64-bit DMD for windows?

2011-12-17 Thread torhu
On 17.12.2011 04:26, Trass3r wrote: My girlfriend is interviewing for a job at a major government company here in Norway, and was told that she'd need to use DOS at work. Likely some ancient software that no-one's ever wanted to try and upgrade. What is wrong with this world? ;) DOS softwa

Re: Second Round CURL Wrapper Review

2011-12-17 Thread jdrewsen
On Thursday, 15 December 2011 at 07:46:56 UTC, Jonathan M Davis wrote: On Friday, December 02, 2011 23:26:10 dsimcha wrote: I volunteered ages ago to manage the review for the second round of Jonas Drewsen's CURL wrapper. After the first round it was decided that, after a large number of minor

Re: LLVM talks 1: Clang for Chromium

2011-12-17 Thread bearophile
Walter: > > x = x++; > > Define order of evaluation as rvalue, then lvalue. So I presume your desire is to define the semantics of all code like that, and statically refuse no cases like that. This is an acceptable solution. The advantage of this solution is that it gives no restrictions on th

Re: SDC & ddmd

2011-12-17 Thread dolive
Bernard Helyer Wrote: > We intend to be compatible with DMD to a point. Where we are not, > will be through omission. Off the top of my head: > > *delete will not be implemented. > *scope classes will not be implemented. > *complex numbers will not be implemented. > *version/debug levels will no

Re: LLVM talks 1: Clang for Chromium

2011-12-17 Thread Walter Bright
On 12/17/2011 2:04 AM, Kagamin wrote: The back end will evaluate them in different orders, as it is more efficient to evaluate varargs functions from right-to-left, and others from left-to-right. It's not an insurmountable problem, it just needs to be worked on. Are you taking about push vs mo

Re: LLVM talks 1: Clang for Chromium

2011-12-17 Thread Kagamin
The back end will evaluate them in different orders, as it is more efficient to evaluate varargs functions from right-to-left, and others from left-to-right. It's not an insurmountable problem, it just needs to be worked on. Are you taking about push vs mov? By default gcc preallocates space

Re: Export and Protected Scoping in Dynamic Libraries

2011-12-17 Thread Walter Bright
On 12/16/2011 9:01 PM, Adam Wilson wrote: On Fri, 16 Dec 2011 01:34:32 -0800, Walter Bright wrote: On 12/14/2011 11:41 AM, Adam Wilson wrote: Hello Everyone, I want to start this conversation by pointing out that I come from a C/C++/C# background and my ideas and frustrations in this post wi