Re: New homepage design of d-p-l.org is now live. eom

2011-12-16 Thread Stewart Gordon
On 14/12/2011 10:12, Andrei Alexandrescu wrote: On 12/12/11 7:46 PM, Stewart Gordon wrote: On 06/12/2011 05:44, Andrei Alexandrescu wrote: http://d-p-l.org Andrei Why does it have an HTML 4.01 doctype but then go on to use XHTML syntax??? Stewart. I wouldn't know. What needs to be done?

Re: New homepage design of d-p-l.org is now live. eom

2011-12-16 Thread Adam D. Ruppe
On Friday, 16 December 2011 at 13:33:06 UTC, Stewart Gordon wrote: But whatever I try to validate it as, there are errors. Does validation make any positive difference at all? I used to do it, but it prohibits things that are useful and work fine in practice* without offering much, if

Re: dmd 2.057 release

2011-12-16 Thread Christian Manning
On Wednesday, 14 December 2011 at 07:05:25 UTC, Walter Bright wrote: Highlights are use of XMM floating point registers in 64 bit targets, and now supporting OS X 64 as a target. http://www.digitalmars.com/d/2.0/changelog.html http://ftp.digitalmars.com/dmd.2.057.zip A lot of people put a ton

Re: dmd 2.057 release

2011-12-16 Thread Jonathan M Davis
On Friday, December 16, 2011 16:26:11 Christian Manning wrote: On Wednesday, 14 December 2011 at 07:05:25 UTC, Walter Bright wrote: Highlights are use of XMM floating point registers in 64 bit targets, and now supporting OS X 64 as a target.

Re: New homepage design of d-p-l.org is now live. eom

2011-12-16 Thread Walter Bright
On 12/16/2011 5:33 AM, Stewart Gordon wrote: Or that you found it on a lot of webpages and just copied it without any clue of what it means? You can blame me for that, not Andrei.

Re: New homepage design of d-p-l.org is now live. eom

2011-12-16 Thread Nick Sabalausky
Adam D. Ruppe destructiona...@gmail.com wrote in message news:virlzxfnfkylbbcce...@dfeed.kimsufi.thecybershadow.net... On Friday, 16 December 2011 at 13:33:06 UTC, Stewart Gordon wrote: But whatever I try to validate it as, there are errors. Does validation make any positive difference at

Re: New homepage design of d-p-l.org is now live. eom

2011-12-16 Thread Adam D. Ruppe
On Friday, 16 December 2011 at 18:28:07 UTC, Nick Sabalausky wrote: I've started going back to b and i. Why? I find this generally sane, but I can't agree with D. (lol) And seriously, who's going to be applying a custom stylesheet to my pages? My work D project recently brought on a new

Re: D1 dmd 1.072 release

2011-12-16 Thread Jakob Bornecrantz
On Saturday, 10 December 2011 at 23:05:11 UTC, Walter Bright wrote: Highlights are use of XMM floating point registers in 64 bit targets, and now supporting OS X 64 as a target. http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.072.zip The D2 version will follow

Re: New homepage design of d-p-l.org is now live. eom

2011-12-16 Thread Nick Sabalausky
Adam D. Ruppe destructiona...@gmail.com wrote in message news:anfqlbdugtkomnzbu...@dfeed.kimsufi.thecybershadow.net... The important thing though is to make sure the html describes the data well. Once you put in any kind of presentation in there, you break this approach. class=red no no,

Re: dmd 2.057 release

2011-12-16 Thread Christian Manning
On Friday, 16 December 2011 at 16:43:29 UTC, Jonathan M Davis wrote: On Friday, December 16, 2011 16:26:11 Christian Manning wrote: On Wednesday, 14 December 2011 at 07:05:25 UTC, Walter Bright wrote: Highlights are use of XMM floating point registers in 64 bit targets, and now supporting OS

Re: New homepage design of d-p-l.org is now live. eom

2011-12-16 Thread Adam D. Ruppe
On Friday, 16 December 2011 at 21:19:27 UTC, Nick Sabalausky wrote: A. While CSS is acceptable for styling (though I would change some things), it's pure shit for layouts. I wouldn't say that, completely. I do use a html template, but only for the outer layouts; it's a frame of sorts that I

Re: New homepage design of d-p-l.org is now live. eom

2011-12-16 Thread Nick Sabalausky
Adam D. Ruppe destructiona...@gmail.com wrote in message news:dxjkyeeqrhsgsknfh...@dfeed.kimsufi.thecybershadow.net... So iis cool/i, but body color= is probably bad. Yea, I totally agree. C. You may be operating with a workflow where the web designer is CSS-only, but that's not always

Re: dmd 2.057 release

2011-12-16 Thread Jonathan M Davis
On Friday, December 16, 2011 22:37:50 Christian Manning wrote: How about this as a better test case? ubyte[4] a; auto x() { return a; } void main() { auto b = x()[1..$]; } That actually has exactly the same problem. You're slicing a temporary. You can't slice a static array unless

Re: New homepage design of d-p-l.org is now live. eom

2011-12-16 Thread Stewart Gordon
On 16/12/2011 18:26, Nick Sabalausky wrote: snip For example, I have an articles section on my site that (currently) uses TangoCMS. I neither know nor care what doctype TangoCMS is sending out (and I have even less interest in mucking with it's internals to change it), and yet when I want to

Re: New homepage design of d-p-l.org is now live. eom

2011-12-16 Thread Stewart Gordon
On 16/12/2011 15:09, Adam D. Ruppe wrote: On Friday, 16 December 2011 at 13:33:06 UTC, Stewart Gordon wrote: But whatever I try to validate it as, there are errors. Does validation make any positive difference at all? Yes: - it's a useful step in diagnosing problems with a webpage - it

Re: New homepage design of d-p-l.org is now live. eom

2011-12-16 Thread Adam D. Ruppe
On Friday, 16 December 2011 at 22:25:27 UTC, Nick Sabalausky wrote: *snip* I agree pretty much entirely, but meh, when web 2.0 gives you a turd, you make a shit sandwich and you LIKE it!

Re: dmd 2.057 release

2011-12-16 Thread Christian Manning
On Friday, 16 December 2011 at 22:48:21 UTC, Jonathan M Davis wrote: That actually has exactly the same problem. You're slicing a temporary. You can't slice a static array unless it's an actual variable, or you're going to have problems. b points to a slice of a static array which doesn't

Re: dmd 2.057 release

2011-12-16 Thread JoeCoder
On 12/15/2011 2:25 PM, Walter Bright wrote: On 12/15/2011 4:16 AM, Jacob Carlborg wrote: I wonder if we can list breaking changes in a separate sections in the changelog. Any bug fix is a breaking change - code can and does depend on bugs (often inadvertently). I've never seen code depend

Re: New homepage design of d-p-l.org is now live. eom

2011-12-16 Thread Nick Sabalausky
Adam D. Ruppe destructiona...@gmail.com wrote in message news:xhaizhcmeybruijmp...@dfeed.kimsufi.thecybershadow.net... On Friday, 16 December 2011 at 22:25:27 UTC, Nick Sabalausky wrote: *snip* I agree pretty much entirely, but meh, when web 2.0 gives you a turd, you make a shit sandwich and

Re: New homepage design of d-p-l.org is now live. eom

2011-12-16 Thread Nick Sabalausky
Stewart Gordon smjg_1...@yahoo.com wrote in message news:jcgkhi$2ohd$1...@digitalmars.com... On 16/12/2011 18:26, Nick Sabalausky wrote: snip For example, I have an articles section on my site that (currently) uses TangoCMS. I neither know nor care what doctype TangoCMS is sending out (and

Re: D1 to be discontinued on December 31, 2012

2011-12-16 Thread Walter Bright
On 12/15/2011 11:04 PM, Gour wrote: On Thu, 15 Dec 2011 16:42:26 -0800 Walter Brightnewshou...@digitalmars.com wrote: Right. And we make D2 work or we fail completely. Please, make it work! I have every intention to!

Re: Dot syntax to access static variables of functions

2011-12-16 Thread Timon Gehr
On 12/16/2011 12:48 AM, bearophile wrote: In some cases I use a global variable only from a small small number of functions, like foo() and main() here: import std.stdio; __gshared static int x = 10; void foo() { // uses x writeln(foo); } void main() { auto fptr =foo;

Re: What can be done to reduce executable size?

2011-12-16 Thread Andrei Alexandrescu
On 12/16/11 1:12 AM, Jonathan M Davis wrote: Simply making it so that std.file is only imported in std.stdio with version(unittest) cut off _that_ much? Yah, but the matter is more complex. The issue is that std.file pulls std.datetime, which (a) has static this() code, and (b) pulls

The D Lie

2011-12-16 Thread Angie
Pattern of uselessness exhibited by many projects. I am afraid that Walt feels responsible for this fiasco. D is nothing. and not your fault. No one in these groups would fault you for trying and failing. D is not your worth. Trying is of value, but other things count more. Maybe they don't.

I will not be responsible for your leader's death

2011-12-16 Thread Angie
I worry about all the crazies like him. you shut this thing down, and let him live and stop being the virus you are.

Re: 64-bit DMD for windows?

2011-12-16 Thread torhu
On 16.12.2011 00:35, Mehrdad wrote: On 12/15/2011 3:20 PM, Trass3r wrote: dealbreaker - i'd love to use D for my scientific programming, but my datasets often reach several GB... my computer has 16GB and i intend to make use of them. Scientific programming on Windoze? You can't be

Re: What can be done to reduce executable size?

2011-12-16 Thread bearophile
Andrei Alexandrescu: Right now an executable starts at around 218KB, which includes druntime (gc, type info, the works). Importing std.stdio and using writeln() only adds a couple of KBs. Now using ulink the hello world exe becomes 129_564 bytes. Bye, bearophile

Re: 64-bit DMD for windows?

2011-12-16 Thread Jacob Carlborg
On 2011-12-16 10:10, torhu wrote: On 16.12.2011 00:35, Mehrdad wrote: On 12/15/2011 3:20 PM, Trass3r wrote: dealbreaker - i'd love to use D for my scientific programming, but my datasets often reach several GB... my computer has 16GB and i intend to make use of them. Scientific programming

Re: 64-bit DMD for windows?

2011-12-16 Thread Walter Bright
On 12/16/2011 1:17 AM, Jacob Carlborg wrote: On 2011-12-16 10:10, torhu wrote: People coming from Linux are accustomed to a running only 64-bit programs if they have a 64-bit OS. That's simply because Linux is usually distributed through downloading. To limit the download size, they leave out

Re: Export and Protected Scoping in Dynamic Libraries

2011-12-16 Thread Walter Bright
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 will be colored by that history. When I first approached D, the idea of an 'export' confused me. I've

Re: Second Round CURL Wrapper Review

2011-12-16 Thread Jonathan M Davis
Please make sure that you remove trailing whitespace from the file. A lot of the lines have trailing whitespace. Also, make sure that you don't have any tabs in the file. There are a few places where you used tabs. Line# 916 claims that the code there won't work and that it needs to be fixed,

Re: 64-bit DMD for windows?

2011-12-16 Thread Jacob Carlborg
On 2011-12-16 10:24, Walter Bright wrote: On 12/16/2011 1:17 AM, Jacob Carlborg wrote: On 2011-12-16 10:10, torhu wrote: People coming from Linux are accustomed to a running only 64-bit programs if they have a 64-bit OS. That's simply because Linux is usually distributed through downloading.

Re: What can be done to reduce executable size?

2011-12-16 Thread Jonathan M Davis
On Friday, December 16, 2011 02:38:09 Andrei Alexandrescu wrote: On 12/16/11 1:12 AM, Jonathan M Davis wrote: Simply making it so that std.file is only imported in std.stdio with version(unittest) cut off _that_ much? Yah, but the matter is more complex. The issue is that std.file pulls

Re: Export and Protected Scoping in Dynamic Libraries

2011-12-16 Thread Jacob Carlborg
On 2011-12-16 10:34, 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 will be colored by that history. When I first approached D,

Re: 64-bit DMD for windows?

2011-12-16 Thread Jonathan M Davis
On Friday, December 16, 2011 10:10:57 torhu wrote: On 16.12.2011 00:35, Mehrdad wrote: On 12/15/2011 3:20 PM, Trass3r wrote: dealbreaker - i'd love to use D for my scientific programming, but my datasets often reach several GB... my computer has 16GB and i intend to make use of

Re: 64-bit DMD for windows?

2011-12-16 Thread Jakob Ovrum
On Friday, 16 December 2011 at 09:56:47 UTC, Jonathan M Davis wrote: considering that there are no x86 chips sold these days which aren't x86_64, I find it rather baffling that Microsoft even sells a 32-bit version of Windows. This is simply not true. I don't know about processors sold

Re: 64-bit DMD for windows?

2011-12-16 Thread torhu
On 16.12.2011 10:17, Jacob Carlborg wrote: On 2011-12-16 10:10, torhu wrote: On 16.12.2011 00:35, Mehrdad wrote: On 12/15/2011 3:20 PM, Trass3r wrote: dealbreaker - i'd love to use D for my scientific programming, but my datasets often reach several GB... my computer has 16GB and i

Re: 64-bit DMD for windows?

2011-12-16 Thread Jonathan M Davis
On Friday, December 16, 2011 11:09:25 Jakob Ovrum wrote: On Friday, 16 December 2011 at 09:56:47 UTC, Jonathan M Davis wrote: considering that there are no x86 chips sold these days which aren't x86_64, I find it rather baffling that Microsoft even sells a 32-bit version of Windows.

Re: 64-bit DMD for windows?

2011-12-16 Thread Andrea Fontana
Some intel atoms still use 32-bit architecture. Il giorno ven, 16/12/2011 alle 02.48 -0800, Jonathan M Davis ha scritto: On Friday, December 16, 2011 11:09:25 Jakob Ovrum wrote: On Friday, 16 December 2011 at 09:56:47 UTC, Jonathan M Davis wrote: considering that there are no x86

Re: 64-bit DMD for windows?

2011-12-16 Thread a
Jakob Ovrum Wrote: On Friday, 16 December 2011 at 09:56:47 UTC, Jonathan M Davis wrote: considering that there are no x86 chips sold these days which aren't x86_64, I find it rather baffling that Microsoft even sells a 32-bit version of Windows. This is simply not true. I don't know

LLVM talks 1: Clang for Chromium

2011-12-16 Thread bearophile
There are the videos of the 2011 LLVM Developer Meeting: http://www.youtube.com/playlist?list=PL970A5BD02C11F80C Slides too: http://llvm.org/devmtg/2011-11/ As usual the LLVM talks are quite interesting. I have started to see the videos/slides, it will require some time. An interesting talk,

Re: Deprecated typedef

2011-12-16 Thread Don
On 16.12.2011 08:41, Jacob Carlborg wrote: I know that this might be too late but wouldn't it be possible to defer the error message about typedef to later in the compile phase. Making it possible to put a typedef in a version statement, something like: version (D_Version2) {} else { typedef

LLVM talks 2: TESLA

2011-12-16 Thread bearophile
Second interesting thing I've found from the 2011 LLVM Developer Meeting: http://www.youtube.com/playlist?list=PL970A5BD02C11F80C Slides: http://llvm.org/devmtg/2011-11/ In the Integrating LLVM into FreeBSD talk I have seen a reference to TESLA (the talk itself is not interesting). It's not so

Re: 64-bit DMD for windows?

2011-12-16 Thread Jakob Ovrum
On Friday, 16 December 2011 at 12:14:50 UTC, a wrote: Jakob Ovrum Wrote: On Friday, 16 December 2011 at 09:56:47 UTC, Jonathan M Davis wrote: considering that there are no x86 chips sold these days which aren't x86_64, I find it rather baffling that Microsoft even sells a 32-bit version

Re: Deprecated typedef

2011-12-16 Thread bearophile
Don: Why not just change your D1 code to use alias instead of typedef? Walter introduced typedef in D1 for a purpose: it introduces stronger static typing. So if in future you will want to modify/refactor your D1 code, typedefs will help you avoid introducing some bugs. If you replace them

Re: 64-bit DMD for windows?

2011-12-16 Thread Andrea Fontana
Il giorno ven, 16/12/2011 alle 07.14 -0500, a ha scritto: Jakob Ovrum Wrote: On Friday, 16 December 2011 at 09:56:47 UTC, Jonathan M Davis wrote: considering that there are no x86 chips sold these days which aren't x86_64, I find it rather baffling that Microsoft even sells a

Re: Deprecated typedef

2011-12-16 Thread Jacob Carlborg
On 2011-12-16 13:31, Don wrote: On 16.12.2011 08:41, Jacob Carlborg wrote: I know that this might be too late but wouldn't it be possible to defer the error message about typedef to later in the compile phase. Making it possible to put a typedef in a version statement, something like: version

Re: Deprecated typedef

2011-12-16 Thread Trass3r
Why not just change your D1 code to use alias instead of typedef? Walter introduced typedef in D1 for a purpose: it introduces stronger static typing. So if in future you will want to modify/refactor your D1 code, typedefs will help you avoid introducing some bugs. If you replace them

Re: What can be done to reduce executable size?

2011-12-16 Thread Trass3r
Am 16.12.2011, 10:15 Uhr, schrieb bearophile bearophileh...@lycos.com: Andrei Alexandrescu: Right now an executable starts at around 218KB, which includes druntime (gc, type info, the works). Importing std.stdio and using writeln() only adds a couple of KBs. Now using ulink the hello world

Re: What can be done to reduce executable size?

2011-12-16 Thread Trass3r
Am 16.12.2011, 14:52 Uhr, schrieb Trass3r u...@known.com: Am 16.12.2011, 10:15 Uhr, schrieb bearophile bearophileh...@lycos.com: Andrei Alexandrescu: Right now an executable starts at around 218KB, which includes druntime (gc, type info, the works). Importing std.stdio and using writeln()

Re: What can be done to reduce executable size?

2011-12-16 Thread Adam D. Ruppe
On Friday, 16 December 2011 at 09:50:30 UTC, Jonathan M Davis wrote: Well, both std.datetime and core.time need static this() and can't not have it. Why are they necessary? It looks like it sets the time zone... wouldn't it work to put that into DateTime's regular constructor?

2.057 regression and Result structs in std.algorithm

2011-12-16 Thread Torarin
Some code using std.algorithm.filter broke today when I updated dmd. Here's a test case: - import std.stdio, std.algorithm; void main() { writeln(filter!a != 'r'(Merry Christmas!)); }

Re: What can be done to reduce executable size?

2011-12-16 Thread Adam D. Ruppe
What I have in mind is if the timezone was something along the lines of a singleton property, so it still works the same way, except it is lazy loaded on first use. (if this is indeed the right static constructor!)

Re: LLVM talks 1: Clang for Chromium

2011-12-16 Thread Adam D. Ruppe
On Friday, 16 December 2011 at 12:23:25 UTC, bearophile wrote: This code doesn't compile with DMD: if (x = y) {} But this gives no errors: if (x |= y) {} Do you know why DMD forbids assignments as conditions, but it accepts compound assignments there? It looks like a incongruence that's

Re: LLVM talks 1: Clang for Chromium

2011-12-16 Thread Alex Rønne Petersen
On 16-12-2011 13:23, bearophile wrote: There are the videos of the 2011 LLVM Developer Meeting: http://www.youtube.com/playlist?list=PL970A5BD02C11F80C Slides too: http://llvm.org/devmtg/2011-11/ As usual the LLVM talks are quite interesting. I have started to see the videos/slides, it will

Re: LLVM talks 1: Clang for Chromium

2011-12-16 Thread bearophile
Adam D. Ruppe: But I've never myself, nor seen anybody else, actually write += or |= when they meant == or !=. The keys aren't even close (on en-US anyway) so it's not a likely typo, and the concepts are nothing alike so a brain or language mixup isn't likely to cause it. If you write

dmd/druntime/phobos makefile horror

2011-12-16 Thread Trass3r
I've always built my libs like that: cd druntime git pull -v make MODEL=64 -f posix.mak -j2 make MODEL=32 -f posix.mak -j2 cd ../phobos git pull -v make MODEL=64 -f posix.mak -j2 mv generated/linux/release/64/libphobos2.a ../../linux/lib64 make MODEL=32 -f posix.mak -j2 mv

Re: D1 to be discontinued on December 31, 2012

2011-12-16 Thread Jakob Bornecrantz
On Thursday, 15 December 2011 at 20:42:26 UTC, Jacob Carlborg wrote: On 2011-12-15 20:41, Walter Bright wrote: On 12/15/2011 9:49 AM, Robert Clipsham wrote: * Do it all in one go, and DO NOT GET DISTRACTED. The moment you start trying to clean up code as well as finish porting it you

Re: dmd/druntime/phobos makefile horror

2011-12-16 Thread Alex Rønne Petersen
On 16-12-2011 16:48, Trass3r wrote: I've always built my libs like that: cd druntime git pull -v make MODEL=64 -f posix.mak -j2 make MODEL=32 -f posix.mak -j2 cd ../phobos git pull -v make MODEL=64 -f posix.mak -j2 mv generated/linux/release/64/libphobos2.a ../../linux/lib64 make MODEL=32 -f

Re: What can be done to reduce executable size?

2011-12-16 Thread Jonathan M Davis
On Friday, December 16, 2011 16:16:53 Adam D. Ruppe wrote: What I have in mind is if the timezone was something along the lines of a singleton property, so it still works the same way, except it is lazy loaded on first use. (if this is indeed the right static constructor!) That would break

Re: dmd/druntime/phobos makefile horror

2011-12-16 Thread Andrej Mitrovic
Also why does druntime come with .di headers but phobos does not? OTOH I doubt it would save much on compilation time since virtually everything in phobos is a template..

Re: dmd/druntime/phobos makefile horror

2011-12-16 Thread Jonathan M Davis
On Friday, December 16, 2011 17:41:13 Andrej Mitrovic wrote: Also why does druntime come with .di headers but phobos does not? OTOH I doubt it would save much on compilation time since virtually everything in phobos is a template.. It would also kill CTFE for stuff that isn't a template. I'd

Re: What can be done to reduce executable size?

2011-12-16 Thread Adam D. Ruppe
On Friday, 16 December 2011 at 16:35:27 UTC, Jonathan M Davis wrote: That would break purity, so no that doesn't work. The singletons are pure. I'm tempted to say just cast it away, since you aren't actually breaking purity in any meaningful way; the return value is always the same and it

Re: The D Lie

2011-12-16 Thread F i L
wut?

Re: .dmg installer for OSX?

2011-12-16 Thread Sean Kelly
Sounds like most of the apps I actually use wouldn't qualify for the app store. Sent from my iPhone On Dec 15, 2011, at 11:26 PM, Jacob Carlborg d...@me.com wrote: On 2011-12-15 21:53, Sean Kelly wrote: On Dec 15, 2011, at 4:47 AM, Michel Fortin wrote: On 2011-12-15 11:33:15 +, Ruslan

Re: What can be done to reduce executable size?

2011-12-16 Thread Trass3r
Am 16.12.2011, 04:40 Uhr, schrieb Andrei Alexandrescu seewebsiteforem...@erdani.org: https://github.com/D-Programming-Language/phobos/commit/b7f42ec925fb1d64564d48ea419e201bfc65ed53 Yeah one could also use the new (function-)local imports. However, this also shows another problem common to C

Re: What can be done to reduce executable size?

2011-12-16 Thread bearophile
Trass3r: Now using ulink the hello world exe becomes 129_564 bytes. What is its secret? Linkers use grey magic, as you know. And it doesn't use compression. Bye, bearophile

Re: dmd/druntime/phobos makefile horror

2011-12-16 Thread Andrej Mitrovic
On 12/16/11, Jonathan M Davis jmdavisp...@gmx.com wrote: It would also kill CTFE for stuff that isn't a template. I never thought of that.. interesting, so if you want to hide your sources your users won't be able to use CTFE. (I don't mind that, idc about any closed-source D /libraries/).

Re: What can be done to reduce executable size?

2011-12-16 Thread Andrei Alexandrescu
On 12/16/11 3:49 AM, Jonathan M Davis wrote: On Friday, December 16, 2011 02:38:09 Andrei Alexandrescu wrote: On 12/16/11 1:12 AM, Jonathan M Davis wrote: Simply making it so that std.file is only imported in std.stdio with version(unittest) cut off _that_ much? Yah, but the matter is more

Re: LLVM talks 1: Clang for Chromium

2011-12-16 Thread Timon Gehr
On 12/16/2011 06:50 PM, Walter Bright wrote: D2 intends to define the order of evaluation of function arguments as strictly left-to-right. There are some problems implementing this, but that's where we want to go with it. What would be a case where this currently does not hold?

Re: LLVM talks 1: Clang for Chromium

2011-12-16 Thread Walter Bright
On 12/16/2011 4:23 AM, bearophile wrote: This code doesn't compile with DMD: Error: assignment cannot be used as a condition, perhaps == was meant? void main() { int x, y; if (x = y) {} } But this gives no errors: void main() { int x, y; if (x |= y) {} if (x += y) {}

Re: 64-bit DMD for windows?

2011-12-16 Thread Nick Sabalausky
Jonathan M Davis jmdavisp...@gmx.com wrote in message news:mailman.1595.1324029407.24802.digitalmar...@puremagic.com... And considering that there are no x86 chips sold these days which aren't x86_64, I find it rather baffling that Microsoft even sells a 32-bit version of Windows. (Chips

Re: 64-bit DMD for windows?

2011-12-16 Thread Nick Sabalausky
Nick Sabalausky a@a.a wrote in message news:jcg0q8$145v$1...@digitalmars.com... Jonathan M Davis jmdavisp...@gmx.com wrote in message news:mailman.1595.1324029407.24802.digitalmar...@puremagic.com... And considering that there are no x86 chips sold these days which aren't x86_64, I find it

Re: 64-bit DMD for windows?

2011-12-16 Thread Walter Bright
On 12/16/2011 9:59 AM, Nick Sabalausky wrote: Also, the 64-bit versions can't run 16-bit software, and yes, I know that's getting *really*, *really* old, but I wouldn't be surprised if there are people out there (companies, especially) that are still relying on something 16-bit. (In case

Re: 64-bit DMD for windows?

2011-12-16 Thread Adam D. Ruppe
On Friday, 16 December 2011 at 18:01:21 UTC, Nick Sabalausky wrote: No, I'm not personally using Windows's 16-bit compatability for anything.) One of the reasons I like Digital Mars is the compiler still targets 16 bit. (That was hugely important as a newb, and I don't use it much anymore, but

Re: LLVM talks 1: Clang for Chromium

2011-12-16 Thread bearophile
Walter: Given the frequence of bugs caused by the ?: operator, I think something like this will be good to have in D too. I haven't seen the bug every time with this. Surely it's not a bug every time (but maybe was often enough a bug in the Chromium project, that is several millions

Re: dmd/druntime/phobos makefile horror

2011-12-16 Thread Jonathan M Davis
On Friday, December 16, 2011 18:45:01 Andrej Mitrovic wrote: On 12/16/11, Jonathan M Davis jmdavisp...@gmx.com wrote: It would also kill CTFE for stuff that isn't a template. I never thought of that.. interesting, so if you want to hide your sources your users won't be able to use CTFE. (I

Program size, linking matter, and static this()

2011-12-16 Thread Andrei Alexandrescu
Hello, Late last night Walter and I figured a few interesting tidbits of information. Allow me to give some context, discuss them, and sketch a few approaches for improving things. A while ago Walter wanted to enable function-level linking, i.e. only get the needed functions from a given

Re: 64-bit DMD for windows?

2011-12-16 Thread Nick Sabalausky
Walter Bright newshou...@digitalmars.com wrote in message news:jcg1k1$15kk$2...@digitalmars.com... On 12/16/2011 9:59 AM, Nick Sabalausky wrote: Also, the 64-bit versions can't run 16-bit software, and yes, I know that's getting *really*, *really* old, but I wouldn't be surprised if there

Re: 64-bit DMD for windows?

2011-12-16 Thread Robert Jacques
On Thu, 15 Dec 2011 05:47:54 -0500, torhu no@spam.invalid wrote: On 14.12.2011 12:54, dmd.20.browse...@xoxy.net wrote: Hi, Is there a 64-bit version of DMD for windows? The download page offers only an x86 version. Or am I reading too much into that? Cheers, buk There's not much you

Re: What can be done to reduce executable size?

2011-12-16 Thread Jonathan M Davis
On Friday, December 16, 2011 11:45:42 Andrei Alexandrescu wrote: On 12/16/11 3:49 AM, Jonathan M Davis wrote: On Friday, December 16, 2011 02:38:09 Andrei Alexandrescu wrote: On 12/16/11 1:12 AM, Jonathan M Davis wrote: Simply making it so that std.file is only imported in std.stdio with

Re: LLVM talks 1: Clang for Chromium

2011-12-16 Thread Walter Bright
On 12/16/2011 9:52 AM, Timon Gehr wrote: On 12/16/2011 06:50 PM, Walter Bright wrote: D2 intends to define the order of evaluation of function arguments as strictly left-to-right. There are some problems implementing this, but that's where we want to go with it. What would be a case where

Re: LLVM talks 1: Clang for Chromium

2011-12-16 Thread Walter Bright
On 12/16/2011 10:16 AM, bearophile wrote: There is also the problem of code like this, that will require one or more solutions for D2. Defining or refusing or this kind of code are the possibilities (or both of such solutions, in different situations): x = x++; Define order of evaluation as

Re: LLVM talks 1: Clang for Chromium

2011-12-16 Thread Walter Bright
On 12/16/2011 10:43 AM, Walter Bright wrote: x = x++; Define order of evaluation as rvalue, then lvalue. Which, I might add, is a tractable problem. Trying to nail down every case of OOE dependencies is flat out impossible.

Re: graph algorithms library

2011-12-16 Thread Philippe Sigaud
On Thu, Dec 15, 2011 at 02:33, Martin Nowak d...@dawgfoto.de wrote: Actually 'git svn clone svn://foo' is much simpler than having to remember those svn command I forgot two years ago. Hey, good to know, thanks! Still, I'll clone your git repository, just for the fun of using github

Re: DMD 1.072 and DMD 2.057 64bit on Mac OS X

2011-12-16 Thread Nick Sabalausky
Alex Rønne Petersen xtzgzo...@gmail.com wrote in message news:jcdep3$2gs3$1...@digitalmars.com... being on a 32-bit OS from 2001 https://www.semitwist.com/articles/article/view/why-use-a-10-year-old-os-!

Re: dmd/druntime/phobos makefile horror

2011-12-16 Thread Alex Rønne Petersen
On 16-12-2011 19:27, Jonathan M Davis wrote: On Friday, December 16, 2011 18:45:01 Andrej Mitrovic wrote: On 12/16/11, Jonathan M Davisjmdavisp...@gmx.com wrote: It would also kill CTFE for stuff that isn't a template. I never thought of that.. interesting, so if you want to hide your

Re: LLVM talks 1: Clang for Chromium

2011-12-16 Thread Timon Gehr
On 12/16/2011 07:45 PM, Walter Bright wrote: On 12/16/2011 10:43 AM, Walter Bright wrote: x = x++; Define order of evaluation as rvalue, then lvalue. Which, I might add, is a tractable problem. Trying to nail down every case of OOE dependencies is flat out impossible. How can that work

Re: dmd/druntime/phobos makefile horror

2011-12-16 Thread Sean Kelly
On Dec 16, 2011, at 8:45 AM, Jonathan M Davis wrote: On Friday, December 16, 2011 17:41:13 Andrej Mitrovic wrote: Also why does druntime come with .di headers but phobos does not? OTOH I doubt it would save much on compilation time since virtually everything in phobos is a template.. It

Re: What can be done to reduce executable size?

2011-12-16 Thread Sean Kelly
On Dec 15, 2011, at 7:40 PM, Andrei Alexandrescu wrote: On 12/10/11 9:39 AM, Bane wrote: Short term and long term suggestions ? Anything we can do ? I heard it is some problem with linking dead code? import std.stdio; int main(){ writefln(Hello Bloat!); return 0; } dmd -release

Re: What can be done to reduce executable size?

2011-12-16 Thread Andrei Alexandrescu
On 12/16/11 12:40 PM, Jonathan M Davis wrote: On Friday, December 16, 2011 11:45:42 Andrei Alexandrescu wrote: I am pretty sure they don't need static this(). Only last night I removed static this() from core.time. I don't know how you could do that in core.time, since ticksPerSec and

Re: What can be done to reduce executable size?

2011-12-16 Thread Sean Kelly
On Dec 16, 2011, at 11:04 AM, Andrei Alexandrescu wrote: On 12/16/11 12:40 PM, Jonathan M Davis wrote: On Friday, December 16, 2011 11:45:42 Andrei Alexandrescu wrote: I am pretty sure they don't need static this(). Only last night I removed static this() from core.time. I don't know how

Re: What can be done to reduce executable size?

2011-12-16 Thread Jonathan M Davis
On Friday, December 16, 2011 11:07:14 Sean Kelly wrote: On Dec 16, 2011, at 11:04 AM, Andrei Alexandrescu wrote: On 12/16/11 12:40 PM, Jonathan M Davis wrote: On Friday, December 16, 2011 11:45:42 Andrei Alexandrescu wrote: I am pretty sure they don't need static this(). Only last night I

Re: dmd/druntime/phobos makefile horror

2011-12-16 Thread Jonathan M Davis
On Friday, December 16, 2011 18:55:29 Alex Rønne Petersen wrote: On 16-12-2011 19:27, Jonathan M Davis wrote: On Friday, December 16, 2011 18:45:01 Andrej Mitrovic wrote: On 12/16/11, Jonathan M Davisjmdavisp...@gmx.com wrote: It would also kill CTFE for stuff that isn't a template. I

Re: Dot syntax to access static variables of functions

2011-12-16 Thread Sean Kelly
On Dec 15, 2011, at 3:48 PM, bearophile wrote: In some cases I use a global variable only from a small small number of functions, like foo() and main() here: import std.stdio; __gshared static int x = 10; void foo() { // uses x writeln(foo); } void main() { auto fptr =

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

2011-12-16 Thread Nick Sabalausky
Interesting stuff. Andrei Alexandrescu seewebsiteforem...@erdani.org wrote in message news:jcg2lu$17p2$1...@digitalmars.com... We can use lazy initialization instead of compulsively initializing library internals. I think this is often a worthy thing to do in any case (dynamic libraries

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

2011-12-16 Thread Steven Schveighoffer
On Fri, 16 Dec 2011 13:29:18 -0500, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: Hello, Late last night Walter and I figured a few interesting tidbits of information. Allow me to give some context, discuss them, and sketch a few approaches for improving things. A while ago

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

2011-12-16 Thread Jonathan M Davis
On Friday, December 16, 2011 12:29:18 Andrei Alexandrescu wrote: Jonathan, could I impose on you to replace all static cdtors in std.datetime with lazy initialization? I looked through it and it strikes me as a reasonably simple job, but I think you'd know better what to do than me. A

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

2011-12-16 Thread Andrei Alexandrescu
On 12/16/11 1:23 PM, Steven Schveighoffer wrote: I disagree with this assessment. It's good to know the cause of the problem, but let's look at the root issue -- reflection. The only reason to include class information for classes not being referenced is to be able to construct/use classes at

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

2011-12-16 Thread Timon Gehr
On 12/16/2011 08:41 PM, Jonathan M Davis wrote: On Friday, December 16, 2011 12:29:18 Andrei Alexandrescu wrote: Jonathan, could I impose on you to replace all static cdtors in std.datetime with lazy initialization? I looked through it and it strikes me as a reasonably simple job, but I think

  1   2   3   >