Re: Template makefile for your D project

2011-12-12 Thread bioinfornatics
Le dimanche 11 décembre 2011 à 15:07 +0100, Mike Wey a écrit : On 12/11/2011 01:35 AM, bioinfornatics wrote: With Dav1d help we have have do a build system using make. project is here: https://github.com/bioinfornatics/MakefileForD Any feedback are welcome this build system support

Re: Release: MinGW GCC 4.6.1 GDC 1.070/2,.055

2011-12-12 Thread Andrej Mitrovic
This is great, the binaries now work. Thanks for your hard work Daniel. Btw, it seems GDMD is hardcoded to D1? -fd-version is always 1, there's a -v1 switch for GDMD but no -v2 switch. Should I file this?

Re: Release: MinGW GCC 4.6.1 GDC 1.070/2,.055

2011-12-12 Thread Andrej Mitrovic
Here's what I can add on line 434 in GDMD to make it work: } elsif ( $arg =~ m/^-v2$/ ) { push @out, '-v2';

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

2011-12-12 Thread Stewart Gordon
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.

Re: If I had my way

2011-12-12 Thread Robert Clipsham
On 12/12/2011 03:58, Walter Bright wrote: On 12/11/2011 10:34 AM, Paulo Pinto wrote: In my experience programming embedded systems in highly constrained environments usually means assembly or at most a C compiler using lots of compiler specific extensions for the target environment. I fail to

Re: If I had my way

2011-12-12 Thread Danni Coy
Some of us essentially want C++ done right D does is currently the closest thing to this that I am aware of. On Mon, Dec 12, 2011 at 4:34 AM, Paulo Pinto pj...@progtools.org wrote: Am 11.12.2011 19:18, schrieb Manu: On 11 December 2011 15:15, maarten van damme maartenvd1...@gmail.com

Re: Comma operator = broken design

2011-12-12 Thread Regan Heath
On Fri, 09 Dec 2011 15:39:09 -, Timon Gehr timon.g...@gmx.ch wrote: On 12/09/2011 04:37 PM, Regan Heath wrote: On Fri, 09 Dec 2011 14:54:16 -, Timon Gehr timon.g...@gmx.ch wrote: What you might be missing is that assert(false) is not compiled out in release mode. It emits a 'hlt'

Re: Second Round CURL Wrapper Review

2011-12-12 Thread Somedude
Le 05/12/2011 22:36, Jonas Drewsen a écrit : Anyway - I _have_ said that I will add a data availability poll functionality so I guess your initial concern is also covered. /Jonas Just an idea: would it be possible/useful to use the signals/slots mechanism for this kind of synch ?

Re: Second Round CURL Wrapper Review

2011-12-12 Thread Somedude
Le 12/12/2011 01:53, dsimcha a écrit : Actually, that leads to another question: Should this module really be named etc.curl/std.curl/std.net.curl, or should the fact that it currently uses Curl as a backend be relegated to an implementation detail? I think it's good to remind that this is

Re: Second Round CURL Wrapper Review

2011-12-12 Thread Somedude
Le 03/12/2011 05:26, dsimcha a écrit : 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:

Re: Fixing const arrays

2011-12-12 Thread Max Samukha
On 12/12/2011 12:33 AM, deadalnix wrote: I think you misunderstood the idea. The point was to remove constness of something passed by value, as long as it possible (native types, pointer (but not pointee), slices (but not what is in the slice), structs as long as they have no indirection in

Re: A benchmark, mostly GC

2011-12-12 Thread Timon Gehr
On 12/12/2011 03:56 AM, dsimcha wrote: On 12/11/2011 9:41 PM, Timon Gehr wrote: On 12/11/2011 11:37 PM, dsimcha wrote: On 12/11/2011 4:26 PM, Timon Gehr wrote: We are talking about supporting precise GC, not about custom runtime reflection. There is no way to get precise GC right without

Re: Comma operator = broken design

2011-12-12 Thread bearophile
Regan Heath: http://d-programming-language.org/expression.html#AssertExpression I found that :p .. but nothing about behaviour in release/debug/etc. It's a known little wart of D2. We discussed about it some time ago. I have asked for a specific and clean way to do it, but D designers

Re: Second Round CURL Wrapper Review

2011-12-12 Thread bearophile
Somedude: 1. Should libcurl be bundled with DMD on Windows? Yes. This is a must. I agree it's better to have this battery included. Bye, bearophile

Re: How to stop DMD from linking against phobos

2011-12-12 Thread Martin Nowak
On Fri, 09 Dec 2011 10:17:00 +0100, mta`chrono chr...@mta-international.net wrote: Is there a way to stop dmd from linking against phobos? (Most preferred would be some command line parameters to dmd) We should fix defaultlib and debuglib to accept empty values. Can you make a bug report

Re: D1 to be discontinued on December 31, 2012

2011-12-12 Thread Jacob Carlborg
On 2011-12-10 22:19, Andrei Alexandrescu wrote: Hello everyone, This is the end of the year, a good time to look both back and forward. Walter and I have had a long discussion about our strategy going forth. But before that, let's take a quick look at this year. By all accounts, 2011 has been

Re: A benchmark, mostly GC

2011-12-12 Thread bearophile
dsimcha: My optimizations make very little difference on this benchmark, but for good reason: It's not a very good GC benchmark. I ran it with my GC profiling code enabled and it only spends around 10% of its execution time in GC. We need to figure out why else this benchmark may be so

Re: If I had my way

2011-12-12 Thread Manu
On 12 December 2011 05:58, Walter Bright newshou...@digitalmars.com wrote: On 12/11/2011 10:34 AM, Paulo Pinto wrote: In my experience programming embedded systems in highly constrained environments usually means assembly or at most a C compiler using lots of compiler specific extensions

Re: If I had my way

2011-12-12 Thread Jacob Carlborg
On 2011-12-10 22:32, Walter Bright wrote: On 12/10/2011 12:53 PM, maarten van damme wrote: Could also someone shed some light on creating shared library's on linux? there was some news about -fPIC beeing fixed but no real confirmation. Turns out there was a bug where EBX was not set correctly

Re: Fixing const arrays

2011-12-12 Thread Max Samukha
On 12/11/2011 11:24 PM, Jonathan M Davis wrote: On Sunday, December 11, 2011 14:54:27 Tobias Pankrath wrote: Specifically: Properties should behave as if they are fields; if the method cannot, it should not be changed to a property. Methods are better than properties in the following

Re: Package manager - interacting with the compiler

2011-12-12 Thread jdrewsen
On Sunday, 11 December 2011 at 21:22:37 UTC, Jacob Carlborg wrote: On 2011-12-10 22:17, jdrewsen wrote: On Saturday, 10 December 2011 at 08:55:57 UTC, Jacob Carlborg wrote: I think I've come so far in my development of a package manager that it's time to think how it should interact with the

Re: dfeed

2011-12-12 Thread Regan Heath
On Sun, 11 Dec 2011 00:13:43 -, Vladimir Panteleev vladi...@thecybershadow.net wrote: On Saturday, 10 December 2011 at 22:44:03 UTC, Andrei Alexandrescu wrote: One idea for Vladimir's dfeed: it would be great to automatically post the tweets of D_language to digitalmars.D.announce.

Re: d-programming-language.com

2011-12-12 Thread Jacob Carlborg
On 2011-12-11 05:14, Adam D. Ruppe wrote: Andrei Alexandrescu Wrote: Anything automated rox. cool. I updated the program today to handle the new site. Take a look at the output: http://arsdnet.net/d-web-site/std_stdio.html Biggest improvement imo is anchors work better:

Re: d-programming-language.com

2011-12-12 Thread Jacob Carlborg
On 2011-12-11 07:52, Andrei Alexandrescu wrote: On 12/10/11 10:14 PM, Adam D. Ruppe wrote: Andrei Alexandrescu Wrote: Anything automated rox. cool. I updated the program today to handle the new site. Take a look at the output: http://arsdnet.net/d-web-site/std_stdio.html [snip] Yah,

Re: Second Round CURL Wrapper Review

2011-12-12 Thread jdrewsen
On Monday, 12 December 2011 at 10:26:52 UTC, Somedude wrote: Le 05/12/2011 22:36, Jonas Drewsen a écrit : Anyway - I _have_ said that I will add a data availability poll functionality so I guess your initial concern is also covered. /Jonas Just an idea: would it be possible/useful to use

Re: Second Round CURL Wrapper Review

2011-12-12 Thread jdrewsen
On Monday, 12 December 2011 at 00:53:14 UTC, dsimcha wrote: Here's my review. Remember, review ends on December 16. Overall, this library has massively improved due to the rounds of review it's been put through. I only found a few minor nitpicks. However, a recurring pattern is minor

Re: Fixing const arrays

2011-12-12 Thread torhu
On 11.12.2011 22:24, Jonathan M Davis wrote: ... It was debated some time ago, and it ended up being a property. The fact that save is an action verb and not a noun automatically disqualifies it as a property IMHO, but it was made into a property, and we're pretty much stuck with it at some

Re: Second Round CURL Wrapper Review

2011-12-12 Thread jdrewsen
On Monday, 12 December 2011 at 01:05:25 UTC, Jonathan M Davis wrote: On Sunday, December 11, 2011 19:55:28 dsimcha wrote: On 12/11/2011 7:53 PM, dsimcha wrote: Should the protocol detection be case-insensitive, i.e. ftp://; == FTP://? Oh, one more thing: Factor the protocol detection out

Re: Fixing const arrays

2011-12-12 Thread Jakob Ovrum
On Monday, 12 December 2011 at 12:24:53 UTC, torhu wrote: On 11.12.2011 22:24, Jonathan M Davis wrote: ... It was debated some time ago, and it ended up being a property. The fact that save is an action verb and not a noun automatically disqualifies it as a property IMHO, but it was made into

Re: Fixing const arrays

2011-12-12 Thread Manu
On 12 December 2011 14:24, torhu no@spam.invalid wrote: On 11.12.2011 22:24, Jonathan M Davis wrote: ... It was debated some time ago, and it ended up being a property. The fact that save is an action verb and not a noun automatically disqualifies it as a property IMHO, but it was made

Re: .dmg installer for OSX?

2011-12-12 Thread Heywood Floyd
On 12/11/11 22:29 , Andrei Alexandrescu wrote: That would be an OSX .dmg. Is a member of the community interested in taking up such a project? I must take this opportunity and proclaim that a MacPorts package would be even more fantastic, to the point of giggleingly exciting even! Rant

Re: Why D const is annoying

2011-12-12 Thread Steven Schveighoffer
On Sun, 11 Dec 2011 12:07:37 -0500, Mafi m...@example.org wrote: Am 10.12.2011 21:25, schrieb Walter Bright: On 12/10/2011 11:03 AM, Mehrdad wrote: So how are you supposed to implement opApply on a container (or e.g. here, a matrix)? Copy/paste the code for const- and non-const versions?

Re: .dmg installer for OSX?

2011-12-12 Thread Jacob Carlborg
On 2011-12-11 22:29, Andrei Alexandrescu wrote: There's something missing from the download page (to which I just added some nice logos): http://www.d-programming-language.org/download.html That would be an OSX .dmg. Is a member of the community interested in taking up such a project?

Re: If I had my way

2011-12-12 Thread Paulo Pinto
Sure, I just am not connected to the Internet all the time. Regarding the Cell processor, many game studios in Germany actually do code the SPE directly in assembly instead of C with intrinsics, as they even do code rewriting tricks. But there is a research JVM for it, hence a GC enabled

Re: Fixing const arrays

2011-12-12 Thread Michel Fortin
On 2011-12-12 12:38:09 +, Jakob Ovrum jakobov...@gmail.com said: Furthermore, there weren't even a way to enforce the property syntax until lately, and it's still not enabled by default. If we change it right now, people still have time to adapt before the backwards-compatibility argument

Some standard protocols in Phobos

2011-12-12 Thread bearophile
I think it will eventually become important to have some standard protocols in Phobos, like one for images like this: http://www.python.org/dev/peps/pep-0368/ Do you like? and similar ones for: - matrices - basic 2D pixel-oriented graphics. - basic database usage Bye, bearophile

Re: Templated Struct Constructor

2011-12-12 Thread Steven Schveighoffer
On Sat, 10 Dec 2011 02:42:30 -0500, Andrew Wiley wiley.andre...@gmail.com wrote: On Sat, Dec 10, 2011 at 1:23 AM, Andrew Wiley wiley.andre...@gmail.com wrote: Is there a syntax that allows me to specify arguments to a templated constructor for a struct? The intuitive way looks like this,

Re: .dmg installer for OSX?

2011-12-12 Thread Michel Fortin
On 2011-12-12 12:45:10 +, Heywood Floyd soul...@gmail.com said: On 12/11/11 22:29 , Andrei Alexandrescu wrote: That would be an OSX .dmg. Is a member of the community interested in taking up such a project? I must take this opportunity and proclaim that a MacPorts package would be even

Re: Non-null analysis in Java

2011-12-12 Thread bearophile
Somedude: Just for the record, non-null static and runtime analysis is implemented in a number of Java projects. http://eclipseandjazz.blogspot.com/2011/12/inter-procedural-null-analysis-using.html Anotation based Static analysis for eclipse It looks very nice. Instead of that Java

Re: Some standard protocols in Phobos

2011-12-12 Thread Somedude
Le 12/12/2011 13:55, bearophile a écrit : I think it will eventually become important to have some standard protocols in Phobos, like one for images like this: http://www.python.org/dev/peps/pep-0368/ Do you like? and similar ones for: - matrices - basic 2D pixel-oriented graphics. -

Re: .dmg installer for OSX?

2011-12-12 Thread Heywood Floyd
On 12/12/11 14:11 , Michel Fortin wrote: The only downside to MacPorts is that it is not installed by default. Having to install MacPorts before installing dmd adds an extra barrier to those who don't already have MacPorts installed. A MacPorts package would be great indeed, but I think there

Re: What can be done to reduce executable size?

2011-12-12 Thread Jacob Carlborg
On 2011-12-11 23:55, Jonathan M Davis wrote: On Sunday, December 11, 2011 17:28:58 Adam Ruppe wrote: Jacob Carlborg Wrote: As long as the runtime and standard library is statically linked the executables will be bigger than the corresponding C/C++ executable. I just want to say it's very

Re: Fixing const arrays

2011-12-12 Thread Steven Schveighoffer
On Sun, 11 Dec 2011 06:16:33 -0500, Mehrdad wfunct...@hotmail.com wrote: On 12/11/2011 2:56 AM, David Nadlinger wrote: On 12/11/11 10:04 AM, Mehrdad wrote: On 12/11/2011 12:57 AM, Andrei Alexandrescu wrote: I think you should write: auto copy = this.save; Ah good point, I forgot about

Re: Second Round CURL Wrapper Review

2011-12-12 Thread Jacob Carlborg
On 2011-12-12 01:53, dsimcha wrote: Here's my review. Remember, review ends on December 16. What is the use case for exposing struct Curl? I prefer if this were unexposed because we'll obviously be unable to provide a replacement if/when the backend to this library is rewritten in pure D.

Re: Second Round CURL Wrapper Review

2011-12-12 Thread Jakob Ovrum
On Monday, 12 December 2011 at 12:24:26 UTC, jdrewsen wrote: I think it should have curl in the name. I do not believe that a native D network library should have the same API as this module. It is limited by the design of libcurl and should be improved by a native D net library. I agree

Re: Fixing const arrays

2011-12-12 Thread Steven Schveighoffer
On Sun, 11 Dec 2011 16:34:34 -0500, Jonathan M Davis jmdavisp...@gmx.com wrote: On Sunday, December 11, 2011 10:34:40 Andrei Alexandrescu wrote: On 12/11/11 9:46 AM, dsimcha wrote: On 12/10/2011 4:47 PM, Andrei Alexandrescu wrote: We decided to fix this issue by automatically shedding the

Re: If I had my way

2011-12-12 Thread Manu
On 12 December 2011 14:52, Paulo Pinto pj...@progtools.org wrote: Sure, I just am not connected to the Internet all the time. Regarding the Cell processor, many game studios in Germany actually do code the SPE directly in assembly instead of C with intrinsics, as they even do code rewriting

Re: Java Scala

2011-12-12 Thread Jacob Carlborg
On 2011-12-12 07:54, Andrej Mitrovic wrote: On 12/7/11, Andrej Mitrovicandrej.mitrov...@gmail.com wrote: That's what the theming API is for on Windows. OSX might have something similar. Harmonia uses the theming API, for OSX/Linux you can take a look at Qt and how they skin their widgets.

Re: Package manager - interacting with the compiler

2011-12-12 Thread Jacob Carlborg
On 2011-12-12 04:08, Chad J wrote: On 12/10/2011 03:55 AM, Jacob Carlborg wrote: I think I've come so far in my development of a package manager that it's time to think how it should interact with the compiler. ... o.O I've read what I could find and I think I like where this is going. I'm

Re: If I had my way

2011-12-12 Thread Steven Schveighoffer
On Sun, 11 Dec 2011 16:17:20 -0500, Timon Gehr timon.g...@gmx.ch wrote: On 12/11/2011 10:12 PM, Timon Gehr wrote: On 12/11/2011 06:49 PM, Paulo Pinto wrote: Am 11.12.2011 17:40, schrieb so: On Sun, 11 Dec 2011 18:33:07 +0200, Paulo Pinto pj...@progtools.org wrote: Really? Tell that to all

Re: What can be done to reduce executable size?

2011-12-12 Thread Andrea Fontana
You can try with upx :) Il giorno lun, 12/12/2011 alle 14.42 +0100, Jacob Carlborg ha scritto: On 2011-12-11 23:55, Jonathan M Davis wrote: On Sunday, December 11, 2011 17:28:58 Adam Ruppe wrote: Jacob Carlborg Wrote: As long as the runtime and standard library is statically linked the

Re: dfeed

2011-12-12 Thread Steven Schveighoffer
On Sat, 10 Dec 2011 17:44:05 -0500, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: One idea for Vladimir's dfeed: it would be great to automatically post the tweets of D_language to digitalmars.D.announce. Please don't involve twitter on the newsgroups. If I wanted to follow D

Re: Package manager - interacting with the compiler

2011-12-12 Thread Jacob Carlborg
On 2011-12-12 01:36, Martin Nowak wrote: On Sun, 11 Dec 2011 22:15:26 +0100, Jacob Carlborg d...@me.com wrote: On 2011-12-10 22:13, J Arrizza wrote: Jacob, On Sat, Dec 10, 2011 at 12:55 AM, Jacob Carlborg d...@me.com mailto:d...@me.com wrote: Currently I see two use cases: 1. When the

Re: Fixing const arrays

2011-12-12 Thread Jacob Carlborg
On 2011-12-11 13:46, Michel Fortin wrote: On 2011-12-11 07:16:28 +, Andrei Alexandrescu seewebsiteforem...@erdani.org said: On 12/10/11 5:20 PM, Michel Fortin wrote: Also seems strange to me that class references aren't included in that list, but then I though about how tail-const still

Re: Fixing const arrays

2011-12-12 Thread Andrei Alexandrescu
On 12/12/11 6:24 AM, torhu wrote: save being a property is a stupid inconsistency. I'm not so sure. Andrei

Re: Second Round CURL Wrapper Review

2011-12-12 Thread Andrei Alexandrescu
On 12/12/11 6:25 AM, jdrewsen wrote: On Monday, 12 December 2011 at 01:05:25 UTC, Jonathan M Davis wrote: On Sunday, December 11, 2011 19:55:28 dsimcha wrote: On 12/11/2011 7:53 PM, dsimcha wrote: Should the protocol detection be case-insensitive, i.e. ftp://; == FTP://? Oh, one more

Re: Fixing const arrays

2011-12-12 Thread Andrei Alexandrescu
On 12/12/11 6:49 AM, Manu wrote: I think every opportunity should be taken to make important breaking changes while the community is as small as it is. Changing from r.save to r.save() is NOT an important change. It makes no semantic difference, marks no progress, and has no consequence.

Re: Why D const is annoying

2011-12-12 Thread Timon Gehr
On 12/12/2011 01:50 PM, Steven Schveighoffer wrote: On Sun, 11 Dec 2011 12:07:37 -0500, Mafi m...@example.org wrote: Am 10.12.2011 21:25, schrieb Walter Bright: On 12/10/2011 11:03 AM, Mehrdad wrote: So how are you supposed to implement opApply on a container (or e.g. here, a matrix)?

Re: Fixing const arrays

2011-12-12 Thread Adam D. Ruppe
On Monday, 12 December 2011 at 12:38:10 UTC, Jakob Ovrum wrote: Furthermore, there weren't even a way to enforce the property syntax until lately, and it's still not enabled by default. The real WTF is that someone decided @property should be used for anything more than disambiguation.

Re: Package manager - interacting with the compiler

2011-12-12 Thread Jacob Carlborg
On 2011-12-12 12:45, jdrewsen wrote: On Sunday, 11 December 2011 at 21:22:37 UTC, Jacob Carlborg wrote: I would say that the preferred way is to use a build tool then there is no problem. The build tool just asks the package manager which import paths to use for the given packages and pass the

Re: .dmg installer for OSX?

2011-12-12 Thread Andrei Alexandrescu
On 12/12/11 7:11 AM, Michel Fortin wrote: On 2011-12-12 12:45:10 +, Heywood Floyd soul...@gmail.com said: On 12/11/11 22:29 , Andrei Alexandrescu wrote: That would be an OSX .dmg. Is a member of the community interested in taking up such a project? I must take this opportunity and

Re: If I had my way

2011-12-12 Thread Timon Gehr
On 12/12/2011 03:00 PM, Steven Schveighoffer wrote: On Sun, 11 Dec 2011 16:17:20 -0500, Timon Gehr timon.g...@gmx.ch wrote: On 12/11/2011 10:12 PM, Timon Gehr wrote: On 12/11/2011 06:49 PM, Paulo Pinto wrote: Am 11.12.2011 17:40, schrieb so: On Sun, 11 Dec 2011 18:33:07 +0200, Paulo Pinto

Re: d-programming-language.com

2011-12-12 Thread Adam D. Ruppe
On Monday, 12 December 2011 at 12:10:29 UTC, Jacob Carlborg wrote: Wouldn't it be better if ddoc generate the correct HTML from the beginning. I touched upon this in another post... I say both yes and no. Yes because it'd be nice. A table of contents seems generally useful, and correct

Re: .dmg installer for OSX?

2011-12-12 Thread Jacob Carlborg
On 2011-12-12 13:45, Heywood Floyd wrote: On 12/11/11 22:29 , Andrei Alexandrescu wrote: That would be an OSX .dmg. Is a member of the community interested in taking up such a project? I must take this opportunity and proclaim that a MacPorts package would be even more fantastic, to the

Re: Why D const is annoying

2011-12-12 Thread Timon Gehr
On 12/12/2011 03:46 PM, Timon Gehr wrote: On 12/12/2011 01:50 PM, Steven Schveighoffer wrote: On Sun, 11 Dec 2011 12:07:37 -0500, Mafi m...@example.org wrote: Am 10.12.2011 21:25, schrieb Walter Bright: On 12/10/2011 11:03 AM, Mehrdad wrote: So how are you supposed to implement opApply on a

Re: Fixing const arrays

2011-12-12 Thread Jakob Ovrum
On Monday, 12 December 2011 at 14:46:17 UTC, Andrei Alexandrescu wrote: On 12/12/11 6:49 AM, Manu wrote: I think every opportunity should be taken to make important breaking changes while the community is as small as it is. Changing from r.save to r.save() is NOT an important change. It

Re: Fixing const arrays

2011-12-12 Thread torhu
On 12.12.2011 15:43, Andrei Alexandrescu wrote: On 12/12/11 6:24 AM, torhu wrote: save being a property is a stupid inconsistency. I'm not so sure. Andrei Why? As far as I can tell, it's inconsistent with what properties are used like in other programming languages. Saving something is

Re: Fixing const arrays

2011-12-12 Thread Andrei Alexandrescu
On 12/12/11 9:07 AM, Jakob Ovrum wrote: If the programmer sees just r.save, he doesn't know whether it's a field or a property, and he shouldn't need to know, it should be fast and cheap, and return a consistent value. As far as I know, this isn't always true for save Why? Save does behave

Re: Fixing const arrays

2011-12-12 Thread Adam D. Ruppe
On Monday, 12 December 2011 at 15:07:16 UTC, Jakob Ovrum wrote: The old situation where you could write complete nonsense code like `std.file.read = foo.txt;` is far worse. If we start removing features because someone can use them when deliberately obfuscating their code, we might as well

Re: Fixing const arrays

2011-12-12 Thread Andrei Alexandrescu
On 12/12/11 9:09 AM, torhu wrote: On 12.12.2011 15:43, Andrei Alexandrescu wrote: On 12/12/11 6:24 AM, torhu wrote: save being a property is a stupid inconsistency. I'm not so sure. Andrei Why? As far as I can tell, it's inconsistent with what properties are used like in other programming

Re: A benchmark, mostly GC

2011-12-12 Thread Robert Jacques
On Mon, 12 Dec 2011 01:06:14 -0500, Brad Anderson e...@gnuk.net wrote: On Sun, Dec 11, 2011 at 10:55 PM, Robert Jacques sandf...@jhu.edu wrote: Second, being a systems language means that D can not implement a lot of GC algorithms including copying, generational and the good concurrent

Re: Fixing const arrays

2011-12-12 Thread Andrei Alexandrescu
On 12/12/11 9:07 AM, Jakob Ovrum wrote: The old situation where you could write complete nonsense code like `std.file.read = foo.txt;` is far worse. We could have defined a system much better than both. Andrei

Re: Why D const is annoying

2011-12-12 Thread Timon Gehr
On 12/12/2011 04:08 PM, Timon Gehr wrote: On 12/12/2011 03:46 PM, Timon Gehr wrote: On 12/12/2011 01:50 PM, Steven Schveighoffer wrote: On Sun, 11 Dec 2011 12:07:37 -0500, Mafi m...@example.org wrote: Am 10.12.2011 21:25, schrieb Walter Bright: On 12/10/2011 11:03 AM, Mehrdad wrote: So how

Re: Fixing const arrays

2011-12-12 Thread Jakob Ovrum
On Monday, 12 December 2011 at 15:16:56 UTC, Adam D. Ruppe wrote: On Monday, 12 December 2011 at 15:07:16 UTC, Jakob Ovrum wrote: The old situation where you could write complete nonsense code like `std.file.read = foo.txt;` is far worse. If we start removing features because someone can use

Re: Fixing const arrays

2011-12-12 Thread Jakob Ovrum
On Monday, 12 December 2011 at 15:14:02 UTC, Andrei Alexandrescu wrote: On 12/12/11 9:07 AM, Jakob Ovrum wrote: If the programmer sees just r.save, he doesn't know whether it's a field or a property, and he shouldn't need to know, it should be fast and cheap, and return a consistent value. As

Re: Fixing const arrays

2011-12-12 Thread Jakob Ovrum
On Monday, 12 December 2011 at 15:21:31 UTC, Andrei Alexandrescu wrote: On 12/12/11 9:07 AM, Jakob Ovrum wrote: The old situation where you could write complete nonsense code like `std.file.read = foo.txt;` is far worse. We could have defined a system much better than both. Andrei I

Re: Fixing const arrays

2011-12-12 Thread Timon Gehr
On 12/12/2011 04:29 PM, Jakob Ovrum wrote: On Monday, 12 December 2011 at 15:14:02 UTC, Andrei Alexandrescu wrote: On 12/12/11 9:07 AM, Jakob Ovrum wrote: If the programmer sees just r.save, he doesn't know whether it's a field or a property, and he shouldn't need to know, it should be fast

Re: Fixing const arrays

2011-12-12 Thread Jakob Ovrum
On Monday, 12 December 2011 at 15:29:26 UTC, Jakob Ovrum wrote: On Monday, 12 December 2011 at 15:14:02 UTC, Andrei Alexandrescu wrote: On 12/12/11 9:07 AM, Jakob Ovrum wrote: If the programmer sees just r.save, he doesn't know whether it's a field or a property, and he shouldn't need to

Re: A benchmark, mostly GC

2011-12-12 Thread Timon Gehr
On 12/12/2011 04:17 PM, Robert Jacques wrote: On Mon, 12 Dec 2011 01:06:14 -0500, Brad Anderson e...@gnuk.net wrote: On Sun, Dec 11, 2011 at 10:55 PM, Robert Jacques sandf...@jhu.edu wrote: Second, being a systems language means that D can not implement a lot of GC algorithms including

Re: .dmg installer for OSX?

2011-12-12 Thread Jacob Carlborg
On 2011-12-12 15:59, Andrei Alexandrescu wrote: On 12/12/11 6:51 AM, Jacob Carlborg wrote: On 2011-12-11 22:29, Andrei Alexandrescu wrote: There's something missing from the download page (to which I just added some nice logos): http://www.d-programming-language.org/download.html That would

Re: Fixing const arrays

2011-12-12 Thread torhu
On 12.12.2011 16:16, Andrei Alexandrescu wrote: On 12/12/11 9:09 AM, torhu wrote: On 12.12.2011 15:43, Andrei Alexandrescu wrote: On 12/12/11 6:24 AM, torhu wrote: save being a property is a stupid inconsistency. I'm not so sure. Andrei Why? As far as I can tell, it's inconsistent

Re: A benchmark, mostly GC

2011-12-12 Thread Manu
On 12 December 2011 17:44, Timon Gehr timon.g...@gmx.ch wrote: On 12/12/2011 04:17 PM, Robert Jacques wrote: On Mon, 12 Dec 2011 01:06:14 -0500, Brad Anderson e...@gnuk.net wrote: On Sun, Dec 11, 2011 at 10:55 PM, Robert Jacques sandf...@jhu.edu wrote: Second, being a systems language

Re: Fixing const arrays

2011-12-12 Thread Andrei Alexandrescu
On 12/12/11 9:29 AM, Jakob Ovrum wrote: On Monday, 12 December 2011 at 15:14:02 UTC, Andrei Alexandrescu wrote: On 12/12/11 9:07 AM, Jakob Ovrum wrote: If the programmer sees just r.save, he doesn't know whether it's a field or a property, and he shouldn't need to know, it should be fast and

Re: A benchmark, mostly GC

2011-12-12 Thread Jakob Ovrum
On Monday, 12 December 2011 at 16:00:04 UTC, Manu wrote: Totally off topic... I have a question. If I pass a pointer to a C library... how does the GC know when it's safe to collect? It doesn't, you should add it to the GC with GC.addRoot or GC.addRange unless you're absolutely sure the

Re: .dmg installer for OSX?

2011-12-12 Thread Andrei Alexandrescu
On 12/12/11 9:44 AM, Jacob Carlborg wrote: On 2011-12-12 15:59, Andrei Alexandrescu wrote: Would you consider authoring a pull request for D-Programming-Language/Installer? The installer is already THERE and it's still working (I just tried it on DMD 1.072). I understand. The thing is, if

Re: Fixing const arrays

2011-12-12 Thread Jakob Ovrum
On Monday, 12 December 2011 at 16:09:03 UTC, Andrei Alexandrescu wrote: On 12/12/11 9:29 AM, Jakob Ovrum wrote: On Monday, 12 December 2011 at 15:14:02 UTC, Andrei Alexandrescu wrote: On 12/12/11 9:07 AM, Jakob Ovrum wrote: If the programmer sees just r.save, he doesn't know whether it's a

Re: Why D const is annoying

2011-12-12 Thread Steven Schveighoffer
On Mon, 12 Dec 2011 10:21:35 -0500, Timon Gehr timon.g...@gmx.ch wrote: On 12/12/2011 04:08 PM, Timon Gehr wrote: On 12/12/2011 03:46 PM, Timon Gehr wrote: On 12/12/2011 01:50 PM, Steven Schveighoffer wrote: On Sun, 11 Dec 2011 12:07:37 -0500, Mafi m...@example.org wrote: Am 10.12.2011

Re: dfeed/gravatar issue

2011-12-12 Thread Vladimir Panteleev
On Monday, 12 December 2011 at 06:15:02 UTC, Nick Sabalausky wrote: Spam filters (much like just about anything Google is big into) are a fundamentally broken approach. From a practical perspective, the hassle of being paranoid about spam is overweighted by the insignificant inconveniences of

Re: If I had my way

2011-12-12 Thread Steven Schveighoffer
On Mon, 12 Dec 2011 10:00:28 -0500, Timon Gehr timon.g...@gmx.ch wrote: On 12/12/2011 03:00 PM, Steven Schveighoffer wrote: On Sun, 11 Dec 2011 16:17:20 -0500, Timon Gehr timon.g...@gmx.ch wrote: On 12/11/2011 10:12 PM, Timon Gehr wrote: On 12/11/2011 06:49 PM, Paulo Pinto wrote: Am

Re: d-programming-language.com

2011-12-12 Thread Vladimir Panteleev
On Monday, 12 December 2011 at 06:57:52 UTC, Walter Bright wrote: On 12/11/2011 9:46 PM, Vladimir Panteleev wrote: Yes, that was what I was going to do. However, the layout of files generated for d-programming-language.org differs substantially from those included in the zip file, so I'm

Re: .dmg installer for OSX?

2011-12-12 Thread Russel Winder
On Mon, 2011-12-12 at 08:57 -0600, Andrei Alexandrescu wrote: [...] Totally agreed. In fact I myself don't have MacPorts installed. Furthermore, I've had some trouble installing it and gave up. Now whenever I see a MacPorts-installable program I'm curious about, I just move on. Conversely,

Re: Some standard protocols in Phobos

2011-12-12 Thread Simen Kjærås
On Mon, 12 Dec 2011 13:55:53 +0100, bearophile bearophileh...@lycos.com wrote: I think it will eventually become important to have some standard protocols in Phobos, like one for images like this: http://www.python.org/dev/peps/pep-0368/ Do you like? and similar ones for: - matrices -

Re: Why D const is annoying

2011-12-12 Thread Timon Gehr
On 12/12/2011 05:46 PM, Steven Schveighoffer wrote: On Mon, 12 Dec 2011 10:21:35 -0500, Timon Gehr timon.g...@gmx.ch wrote: On 12/12/2011 04:08 PM, Timon Gehr wrote: On 12/12/2011 03:46 PM, Timon Gehr wrote: On 12/12/2011 01:50 PM, Steven Schveighoffer wrote: On Sun, 11 Dec 2011 12:07:37

Re: d-programming-language.com

2011-12-12 Thread Hans Uhlig
On 12/11/2011 1:26 PM, Peter Alexander wrote: On 11/12/11 1:52 AM, Walter Bright wrote: On 12/10/2011 4:46 PM, Peter Alexander wrote: I think either would be fine, but having to use the command line for anything on Windows is a no-no these days in terms of usability. Since dmd is a command

D kicks ass.

2011-12-12 Thread Bane
Sorry, but it's true. Compared to C++, it has much friendlier syntax, important built in types and all the goodies. And let us not forget - big standard library ready to go. But it is still rough on the edges, needs polishing and fixing little bugs. Now it needs tender care to grow big (and

Re: Why D const is annoying

2011-12-12 Thread Steven Schveighoffer
On Mon, 12 Dec 2011 12:49:11 -0500, Timon Gehr timon.g...@gmx.ch wrote: On 12/12/2011 05:46 PM, Steven Schveighoffer wrote: I still am uneasy with allowing applying a wildcard to a reference underneath to mutable references. I know it doesn't work for const. There is nothing being applied,

Re: d-programming-language.com

2011-12-12 Thread Manu
On 12 December 2011 20:09, Hans Uhlig hans.uh...@teamaol.com wrote: On 12/11/2011 1:26 PM, Peter Alexander wrote: On 11/12/11 1:52 AM, Walter Bright wrote: On 12/10/2011 4:46 PM, Peter Alexander wrote: I think either would be fine, but having to use the command line for anything on

Re: d-programming-language.com

2011-12-12 Thread Hans Uhlig
On 12/10/2011 9:52 PM, Adam D. Ruppe wrote: Jonathan M Davis Wrote: In fact, as much of the documentation- generation as possible should be in ddoc IMHO. That way, anyone can get reasonable documentation for their own projects. I agree to an extent, but at the same time, I like keeping ddoc

Re: If I had my way

2011-12-12 Thread F i L
On Saturday, 10 December 2011 at 19:23:02 UTC, Andrei Alexandrescu wrote: Sure, we can label Mehrdad as a whiny baby, but I suspect his experience is representative for the out-of-the-box experience of many others: they see D's cool features, they download the compiler to try it out on their

Re: d-programming-language.com

2011-12-12 Thread Adam D. Ruppe
On Monday, 12 December 2011 at 18:43:43 UTC, Hans Uhlig wrote: Actually it might be nice instead of ddoc creating HTML if it created an intermediate XML or JSON format of documentation that could be transformed via XSLT+CSS into the final product be it html, chm, manpages etc. The macro

  1   2   3   >