Re: DI Generation Needs your Help!

2011-12-21 Thread Jacob Carlborg
On 2011-12-22 08:07, Adam Wilson wrote: The latest DI generation code is now on my Git account and ready for testing. It fixes the following issues: 1. Variables in template functions/classes would be stripped of their initializers. 2. Manifest Constants would lose their initializers. DI genera

Re: Could we use something better than zip for the dmd package?

2011-12-21 Thread Jonathan M Davis
On Thursday, December 22, 2011 02:21:14 Nick Sabalausky wrote: > "Jacob Carlborg" wrote in message > news:jcsk6i$27tq$2...@digitalmars.com... > > > On 2011-12-20 20:57, Trass3r wrote: > >> The ftp is not the fastest one and 7z reduces the size by 40%. > > > > Switching away from zip could break

Re: Proposal for custom time string formatting in std.datetime

2011-12-21 Thread Jacob Carlborg
On 2011-12-22 04:57, Walter Bright wrote: My first thought is that std.datetime is already very large. Few will need a custom date formatter, so it should be in a separate module to: 1. reduce cognitive load on the programmer 2. reduce the overhead pulled in for every program that may want to u

Re: [bindings/win32] Migration from typedef

2011-12-21 Thread Jacob Carlborg
On 2011-12-21 23:56, Vladimir Panteleev wrote: Now that typedef is deprecated in D2, how should libraries that support both D1 and D2 adjust? Should it be simply changed to an alias, or replaced with a string mixin hack? What's the impact of changing typedefs to aliases in a widely-used library?

Re: Could we use something better than zip for the dmd package?

2011-12-21 Thread Nick Sabalausky
"Jacob Carlborg" wrote in message news:jcsk6i$27tq$2...@digitalmars.com... > On 2011-12-20 20:57, Trass3r wrote: >> The ftp is not the fastest one and 7z reduces the size by 40%. > > Switching away from zip could break several installation scripts/tools, it > will break DVM. > Yea, so 7z would

Re: Templated Struct Constructors

2011-12-21 Thread Andrew Wiley
On Wed, Dec 21, 2011 at 10:32 PM, kenji hara wrote: > Please file it into bugzilla, because it is a bug. > I'll post a patch to fix it. > > Kenji Hara > Filed: http://d.puremagic.com/issues/show_bug.cgi?id=7150 Thanks!

Re: Could we use something better than zip for the dmd package?

2011-12-21 Thread Nick Sabalausky
"Andrej Mitrovic" wrote in message news:mailman.1799.1324487482.24802.digitalmar...@puremagic.com... > Everybody is latched on to that because Walter can't get a move on. > Didn't we say a million times already to not pack everything into a > giant zip file? Also, DMD is not distributable +...wit

Re: Could we use something better than zip for the dmd package?

2011-12-21 Thread Nick Sabalausky
"Andrei Alexandrescu" wrote in message news:jctqef$1ac2$1...@digitalmars.com... > On 12/21/11 4:53 PM, Walter Bright wrote: >> On 12/21/2011 12:58 PM, Vladimir Panteleev wrote: >>> Now, to answer your question: according to their website, WinZip >>> starting with >>> version 12 supports creating

Re: DI Generation Needs your Help!

2011-12-21 Thread Adam Wilson
The latest DI generation code is now on my Git account and ready for testing. It fixes the following issues: 1. Variables in template functions/classes would be stripped of their initializers. 2. Manifest Constants would lose their initializers. DI generation is getting close! Every Ph

Re: Could we use something better than zip for the dmd package?

2011-12-21 Thread Jonathan M Davis
On Thursday, December 22, 2011 01:53:00 Nick Sabalausky wrote: > If you're a programmer, or even just a power user, you have absolutely no > excuse not to *already* have a 7z-capable program installed. > > Christ, even the "least-common-denominator" piracy scene has standardized on > rar which has

Re: Proposal for custom time string formatting in std.datetime

2011-12-21 Thread Jonathan M Davis
On Wednesday, December 21, 2011 22:46:37 Walter Bright wrote: > On 12/21/2011 10:36 PM, Jonathan M Davis wrote: > > In general, I agree that that's a good policy. How expensive would you > > consider templated functions which aren't used to be with regards to > > that? They don't cost nothing, sinc

Re: Could we use something better than zip for the dmd package?

2011-12-21 Thread Nick Sabalausky
"Walter Bright" wrote in message news:jcsbja$1pu7$1...@digitalmars.com... > On 12/21/2011 1:31 AM, Andrej Mitrovic wrote: >> I thought the installers were for newbies. 7z is supported by 7zip, >> winrar, and even winzip. >> >> I really don't see how someone can be smart enough to use a systems >>

Re: Proposal for custom time string formatting in std.datetime

2011-12-21 Thread Walter Bright
On 12/21/2011 10:36 PM, Jonathan M Davis wrote: In general, I agree that that's a good policy. How expensive would you consider templated functions which aren't used to be with regards to that? They don't cost nothing, since they still have to be lexed and parsed, but they don't get fully compile

Re: Proposal for custom time string formatting in std.datetime

2011-12-21 Thread Jonathan M Davis
On Wednesday, December 21, 2011 22:22:40 Walter Bright wrote: > On 12/21/2011 8:12 PM, Jonathan M Davis wrote: > > Yes, putting the custom formatting functions in increases the size of > > the > > module, but I think that if we want to do something about the size of > > std.datetime, it would make

Re: Templated Struct Constructors

2011-12-21 Thread kenji hara
Please file it into bugzilla, because it is a bug. I'll post a patch to fix it. Kenji Hara 2011/12/22 Andrew Wiley : > Is this a bug, or are templated struct constructors not allowed to > call other constructors? > > --- > struct A { >    this(T)(T thing, int i) { >        this(thing, i > 0); //

Re: Proposal for custom time string formatting in std.datetime

2011-12-21 Thread Walter Bright
On 12/21/2011 8:12 PM, Jonathan M Davis wrote: Yes, putting the custom formatting functions in increases the size of the module, but I think that if we want to do something about the size of std.datetime, it would make more sense to move some of its existing pieces out than to not put the custom

Templated Struct Constructors

2011-12-21 Thread Andrew Wiley
Is this a bug, or are templated struct constructors not allowed to call other constructors? --- struct A { this(T)(T thing, int i) { this(thing, i > 0); // Error: constructor call must be in a constructor } this(T)(T thing, bool b) { } } void main() { auto a = A(5, 5);

Re: Proposal for custom time string formatting in std.datetime

2011-12-21 Thread Jonathan M Davis
On Thursday, December 22, 2011 05:19:07 Vladimir Panteleev wrote: > On Thursday, 22 December 2011 at 03:42:32 UTC, Jonathan M Davis > > wrote: > > http://jmdavis.github.com/d-programming-language.org/std_datetime.html > > What is the purpose of %nyplus ? It's what the ISO formats use. They put a

Re: Proposal for custom time string formatting in std.datetime

2011-12-21 Thread Vladimir Panteleev
On Thursday, 22 December 2011 at 03:42:32 UTC, Jonathan M Davis wrote: http://jmdavis.github.com/d-programming-language.org/std_datetime.html What is the purpose of %nyplus ? There should be presets for common standard date formats, like here: http://php.net/manual/en/class.datetime.php#date

Re: Proposal for custom time string formatting in std.datetime

2011-12-21 Thread Jonathan M Davis
On Wednesday, December 21, 2011 19:57:28 Walter Bright wrote: > My first thought is that std.datetime is already very large. Few will need a > custom date formatter, so it should be in a separate module to: > > 1. reduce cognitive load on the programmer > > 2. reduce the overhead pulled in for ev

Re: Proposal for custom time string formatting in std.datetime

2011-12-21 Thread Walter Bright
My first thought is that std.datetime is already very large. Few will need a custom date formatter, so it should be in a separate module to: 1. reduce cognitive load on the programmer 2. reduce the overhead pulled in for every program that may want to use an std.datetime function, but not need

Proposal for custom time string formatting in std.datetime

2011-12-21 Thread Jonathan M Davis
Okay. At the moment, the time point types in std.datetime have functions for converting to and from strings of standard formats but not custom formats, so functions for that need to be added. I've come up with a proposal for how they're going to work and would like some feedback on it. Original

Re: good news for vi(m) users?

2011-12-21 Thread Caligo
On Sun, Dec 18, 2011 at 10:21 PM, Andrei Alexandrescu < seewebsiteforem...@erdani.org> wrote: > http://code.google.com/p/vim/**issues/detail?id=34 > > Andrei > Great. I don't use vi, but I may give it a try just because of this. D doesn't have g

FreeBSD update recommendation

2011-12-21 Thread Martin Nowak
Due to a bug in the run-time link-editor it won't be possible to support shared libraries that use TLS with the current FreeBSD production release. People that want to make use of the D's upcoming shared library support should consider updating their system to the RELENG_8(stable/8) or RELEN

Re: Could we use something better than zip for the dmd package?

2011-12-21 Thread Walter Bright
On 12/21/2011 3:45 PM, Vladimir Panteleev wrote: On Wednesday, 21 December 2011 at 23:38:22 UTC, Walter Bright wrote: On 12/21/2011 5:22 AM, Robert Clipsham wrote: There's no excuse for that, there are quite literally hundreds of sites that will host packages for you, including github. Hmm, c

Re: Could we use something better than zip for the dmd package?

2011-12-21 Thread Vladimir Panteleev
On Wednesday, 21 December 2011 at 23:48:57 UTC, Andrei Alexandrescu wrote: On 12/21/11 5:45 PM, Vladimir Panteleev wrote: On Wednesday, 21 December 2011 at 23:38:22 UTC, Walter Bright wrote: Hmm, can you explain more about hosting the zip files on github? 1) Go to a GitHub project 2) Open the

Re: Could we use something better than zip for the dmd package?

2011-12-21 Thread Vladimir Panteleev
On Wednesday, 21 December 2011 at 23:46:12 UTC, Andrei Alexandrescu wrote: On 12/21/11 5:37 PM, Vladimir Panteleev wrote: On Wednesday, 21 December 2011 at 23:34:39 UTC, Andrei Alexandrescu wrote: I just downloaded and re-compressed everything with 7zip, the reduction was not spectacular at all

Re: Could we use something better than zip for the dmd package?

2011-12-21 Thread Andrei Alexandrescu
On 12/21/11 5:45 PM, Vladimir Panteleev wrote: On Wednesday, 21 December 2011 at 23:38:22 UTC, Walter Bright wrote: On 12/21/2011 5:22 AM, Robert Clipsham wrote: There's no excuse for that, there are quite literally hundreds of sites that will host packages for you, including github. Hmm, can

Re: Binary Size: function-sections, data-sections, etc.

2011-12-21 Thread Artur Skawina
On 12/22/11 00:06, Sean Kelly wrote: > http://d.puremagic.com/issues/show_bug.cgi?id=879 Thanks for that link. The exception testcase (from one of the duplicates) seems to work here. (at least w/ gdc, as i don't have dmd here to test) - import std.stdio; /* gcfuncdata2.d is a copy of this mo

Re: Could we use something better than zip for the dmd package?

2011-12-21 Thread Andrei Alexandrescu
On 12/21/11 5:37 PM, Vladimir Panteleev wrote: On Wednesday, 21 December 2011 at 23:34:39 UTC, Andrei Alexandrescu wrote: I just downloaded and re-compressed everything with 7zip, the reduction was not spectacular at all - from 21.8MB to 17.3MB. Bwuh? I'm seeing a reduction to 11.6MB (10.5 wit

Re: Could we use something better than zip for the dmd package?

2011-12-21 Thread Vladimir Panteleev
On Wednesday, 21 December 2011 at 23:38:22 UTC, Walter Bright wrote: On 12/21/2011 5:22 AM, Robert Clipsham wrote: There's no excuse for that, there are quite literally hundreds of sites that will host packages for you, including github. Hmm, can you explain more about hosting the zip files o

Re: Could we use something better than zip for the dmd package?

2011-12-21 Thread Vladimir Panteleev
On Wednesday, 21 December 2011 at 23:34:39 UTC, Andrei Alexandrescu wrote: I just downloaded and re-compressed everything with 7zip, the reduction was not spectacular at all - from 21.8MB to 17.3MB. Bwuh? I'm seeing a reduction to 11.6MB (10.5 with ultra compression).

Re: Could we use something better than zip for the dmd package?

2011-12-21 Thread Walter Bright
On 12/21/2011 5:22 AM, Robert Clipsham wrote: There's no excuse for that, there are quite literally hundreds of sites that will host packages for you, including github. Hmm, can you explain more about hosting the zip files on github?

Re: Could we use something better than zip for the dmd package?

2011-12-21 Thread Andrei Alexandrescu
On 12/21/11 4:53 PM, Walter Bright wrote: On 12/21/2011 12:58 PM, Vladimir Panteleev wrote: Now, to answer your question: according to their website, WinZip starting with version 12 supports creating ZIP archives with LZMA compression - but, of course, to unpack them you need an archiving tool t

Re: Binary Size: function-sections, data-sections, etc.

2011-12-21 Thread Sean Kelly
http://d.puremagic.com/issues/show_bug.cgi?id=879 On Dec 21, 2011, at 2:24 PM, dsimcha wrote: > Indeed, a couple small programs I wrote today behave erratically w/ > gc-sections. This only seems to occur on DMD, but I'm not sure if this is a > bug in DMD or if differences in library build conf

Re: Could we use something better than zip for the dmd package?

2011-12-21 Thread Vladimir Panteleev
On Wednesday, 21 December 2011 at 22:53:06 UTC, Walter Bright wrote: I understand that issue. The idea is to support it, at least for unzipping, in all new versions, and gradually that support will filter out into the community. All new versions of what? There is no "standard" implementation,

[bindings/win32] Migration from typedef

2011-12-21 Thread Vladimir Panteleev
Now that typedef is deprecated in D2, how should libraries that support both D1 and D2 adjust? Should it be simply changed to an alias, or replaced with a string mixin hack? What's the impact of changing typedefs to aliases in a widely-used library?

Re: Could we use something better than zip for the dmd package?

2011-12-21 Thread Walter Bright
On 12/21/2011 12:58 PM, Vladimir Panteleev wrote: Now, to answer your question: according to their website, WinZip starting with version 12 supports creating ZIP archives with LZMA compression - but, of course, to unpack them you need an archiving tool that can understand such ZIP files. It's lik

Re: Binary Size: function-sections, data-sections, etc.

2011-12-21 Thread dsimcha
Indeed, a couple small programs I wrote today behave erratically w/ gc-sections. This only seems to occur on DMD, but I'm not sure if this is a bug in DMD or if differences in library build configurations between compilers (these are workarounds for bugs in GDC and LDC) explain it. On Wednes

Re: More on purity

2011-12-21 Thread bearophile
Timon Gehr: > This particular case should work, because there is no possibility > parameters and return value alias. The good thing is that this case can be fully determined at compile-time. The bad thing is that increases the complexity of D purity for the programmer that has to use it. > H

Re: Could we use something better than zip for the dmd package?

2011-12-21 Thread Vladimir Panteleev
On Wednesday, 21 December 2011 at 19:30:55 UTC, Walter Bright wrote: I often wonder why the zip file format doesn't incorporate 7z. ZIP and 7z are nothing more than a container. The default and usually only supported compression method in .zip files is deflate - the very same one used in gzip

Re: Binary Size: function-sections, data-sections, etc.

2011-12-21 Thread Trass3r
On Wednesday, 21 December 2011 at 19:04:21 UTC, Artur Skawina wrote: gc'ed sections, i notice ld does claim to have removed eg ".text._D11gcfuncdata218_sharedStaticCtor3FZv", which is one of the ctors. The reason things still work is because the code is also inlined in "_D11gcfuncdata215__modsh

Re: More on purity

2011-12-21 Thread Timon Gehr
On 12/21/2011 08:53 PM, bearophile wrote: This was discussed a little in D.learn. Is code like this going to compile in some future DMD versions, like DMD 2.058? I hit situations like this often in my code: int[] foo1(immutable int[] a) pure { return new int[a.length]; } int[] foo2(in

More on purity

2011-12-21 Thread bearophile
This was discussed a little in D.learn. Is code like this going to compile in some future DMD versions, like DMD 2.058? I hit situations like this often in my code: int[] foo1(immutable int[] a) pure { return new int[a.length]; } int[] foo2(in int[] a) pure { return new int[a.length];

Re: Could we use something better than zip for the dmd package?

2011-12-21 Thread Walter Bright
On 12/21/2011 4:41 AM, Jacob Carlborg wrote: On 2011-12-20 20:57, Trass3r wrote: The ftp is not the fastest one and 7z reduces the size by 40%. Switching away from zip could break several installation scripts/tools, it will break DVM. I often wonder why the zip file format doesn't incorporat

Re: Binary Size: function-sections, data-sections, etc.

2011-12-21 Thread Artur Skawina
On 12/21/11 20:13, Kagamin wrote: >> Turned out not to be a good idea, as the compiler silently accepts >> "shared private static this() {...}" and does not emit the dead code anymore. >> But.. this constructor is run together with the un-shared ones, ie possibly >> _after_ them... (this is not sec

Re: Binary Size: function-sections, data-sections, etc.

2011-12-21 Thread Kagamin
Turned out not to be a good idea, as the compiler silently accepts "shared private static this() {...}" and does not emit the dead code anymore. But.. this constructor is run together with the un-shared ones, ie possibly _after_ them... (this is not section-gc specific, happens w/o it too) tr

Re: Binary Size: function-sections, data-sections, etc.

2011-12-21 Thread Artur Skawina
On 12/21/11 17:42, Kagamin wrote: >> Could you elaborate? > > As I remember, these features rely heavily on linker support, namely on how > it merges sections. Each pointer to static ctor (and unittest) is placed in a > section, then these sections are merged by linker and you get an array of >

Re: std.container and classes

2011-12-21 Thread foobar
On Wednesday, 21 December 2011 at 16:39:13 UTC, Andrei Alexandrescu wrote: (Please don't overquote. It took me a million years to scroll all the way down on my phone. Thanks.) This is an alluring proposition but it's a lot more difficult than one might think. The problem is the entire contai

Re: std.container and classes

2011-12-21 Thread foobar
On Wednesday, 21 December 2011 at 07:30:45 UTC, Jonathan M Davis wrote: And if they're classes and not managed by the GC nor in a struct which manages their lifetime, how are they going to be freed? Does the user have to explicitly free them themselves? How is that better than using a ref-count

Re: DI Generation Needs your Help!

2011-12-21 Thread Jakob Ovrum
On Wednesday, 21 December 2011 at 16:42:59 UTC, Adam Wilson wrote: Oops! I mean't a pull on dmd for the new DI code. Sorry for the confusion! Pull requests are always appreciated! :) Remember, it's more like "please-review-and-pull-if-of-acceptable-quality request" :P

Re: Could we use something better than zip for the dmd package?

2011-12-21 Thread Andrej Mitrovic
Everybody is latched on to that because Walter can't get a move on. Didn't we say a million times already to not pack everything into a giant zip file? Also, DMD is not distributable by anyone but Walter, so again we have to wait for his move to host DMD+Phobos binaries somewhere else.

Re: DI Generation Needs your Help!

2011-12-21 Thread Andrei Alexandrescu
On 12/21/11 10:42 AM, Adam Wilson wrote: Oops! I mean't a pull on dmd for the new DI code. Sorry for the confusion! Yes, absolutely! Andrei

Re: Could we use something better than zip for the dmd package?

2011-12-21 Thread Andrei Alexandrescu
On 12/21/11 7:22 AM, Robert Clipsham wrote: On 20/12/2011 19:57, Trass3r wrote: The ftp is not the fastest one and 7z reduces the size by 40%. The size doesn't bother me at all. What bothers me is how long it takes to download... The digitalmars server is incredibly slow. There's no excuse fo

Re: DI Generation Needs your Help!

2011-12-21 Thread Adam Wilson
On Wed, 21 Dec 2011 08:41:43 -0800, Andrei Alexandrescu wrote: On 12/21/11 2:12 AM, Adam Wilson wrote: On Tue, 20 Dec 2011 04:41:11 -0800, Andrei Alexandrescu wrote: On 12/20/11 2:03 AM, Adam Wilson wrote: On Mon, 19 Dec 2011 00:11:25 -0800, Adam Wilson wrote: The latest DI generation

Re: Binary Size: function-sections, data-sections, etc.

2011-12-21 Thread Kagamin
Could you elaborate? As I remember, these features rely heavily on linker support, namely on how it merges sections. Each pointer to static ctor (and unittest) is placed in a section, then these sections are merged by linker and you get an array of pointers to all static ctors and unittests.

Re: DI Generation Needs your Help!

2011-12-21 Thread Andrei Alexandrescu
On 12/21/11 2:12 AM, Adam Wilson wrote: On Tue, 20 Dec 2011 04:41:11 -0800, Andrei Alexandrescu wrote: On 12/20/11 2:03 AM, Adam Wilson wrote: On Mon, 19 Dec 2011 00:11:25 -0800, Adam Wilson wrote: The latest DI generation code is now on my Git account and ready for testing. It fixes the fo

Re: std.container and classes

2011-12-21 Thread Andrei Alexandrescu
On 12/21/11 1:07 AM, foobar wrote: The containers should allow for (disregard the specifics of the syntax): Container a = new(SharedMemAllocator) LinkedList(); Container b = new(MallocAllocator) LinkedList(); Container c = new(GC) LinkedList(); When adding an item to the above containers the re

Re: Could we use something better than zip for the dmd package?

2011-12-21 Thread Kagamin
Pretty much nothing other than zip is Windows friendly. In fact, software support is where linux sucks badly and can only dream about windows level support. If people can live without an archiver, a browser and a cellular, they can live without a computer as well.

Re: Pipe-Syntax?

2011-12-21 Thread Manfred Nowak
Dejan Lekic wrote: > extremely unreadable to an imperative programmer. I sort myself to the imperative programming league. > not to include every possible feature a > functional language might have. Very well put. > If you really, really want something like that, then the D way would > be to us

Re: Java > Scala

2011-12-21 Thread Russel Winder
On Tue, 2011-12-20 at 06:45 -0600, Andrei Alexandrescu wrote: [...] > I was also in the academia, doing PL research no less. The academic > interest was not of commercial nature for the most part - Java _is_ a > clean language great for doing research of both kinds: (a) research that > studies p

Re: Java > Scala

2011-12-21 Thread Russel Winder
On Wed, 2011-12-21 at 08:05 -0800, Isaac Gouy wrote: [...] > That is not true - Groovy had not been ejected. > > Your 6 month failure to contribute a single program was a strong reason > measurements were not made for Groovy programs on the new hardware following > September 2009. The lack of i

Re: Java > Scala

2011-12-21 Thread Russel Winder
On Tue, 2011-12-20 at 10:31 -0800, Isaac Gouy wrote: [...] > Your words are clear - "... designed to show ...". > > Your false accusation is about purpose and intention - you should take back > that accusation. As you have interpreted it, that is true. I take back the accusation you have obser

Re: DI Generation Needs your Help!

2011-12-21 Thread Timon Gehr
On 12/21/2011 04:58 PM, Benjamin Thaut wrote: Am 19.12.2011 09:11, schrieb Adam Wilson: As you may all be aware, I've been trying to improve the automated generation of .di files and I now have something that I feel is testable. Currently the new code only makes the following changes. 1. Functi

Re: Java > Scala

2011-12-21 Thread Isaac Gouy
> From: Russel Winder > Sent: Wednesday, December 21, 2011 1:43 AM > Subject: Re: Java > Scala >> Your "Groovy rewrite effort" didn't contribute a single > program in 6 months ! > > In the interim Groovy had been ejected so there was no point. That is not true - Groovy had not been ejected.

Re: DI Generation Needs your Help!

2011-12-21 Thread Benjamin Thaut
Am 19.12.2011 09:11, schrieb Adam Wilson: As you may all be aware, I've been trying to improve the automated generation of .di files and I now have something that I feel is testable. Currently the new code only makes the following changes. 1. Function Implementations are removed 2. Private Funct

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

2011-12-21 Thread Michal Minich
On 21. 12. 2011 14:22, so wrote: Supporting module nesting in single file wouldn't hurt, would it? module main; module nested { } Kind of... template MyNamespaceImpl () { int i; } alias MyNamespaceImpl!() MyNamespace; void main () { MyNamespace.i = 1; with (MyNamespace) {

Re: Could we use something better than zip for the dmd package?

2011-12-21 Thread Jacob Carlborg
On 2011-12-21 13:42, Elvis Presley wrote: How about self extracting 7zip archive? It kick ass. Or have zip, targz/bz2 and 7zip download archive so chose what you like (repacking script should be more than 10 lines). Or making separate packages for each OS (bit more of a work too) Or making downl

Re: Could we use something better than zip for the dmd package?

2011-12-21 Thread Jacob Carlborg
On 2011-12-21 14:22, Robert Clipsham wrote: On 20/12/2011 19:57, Trass3r wrote: The ftp is not the fastest one and 7z reduces the size by 40%. The size doesn't bother me at all. What bothers me is how long it takes to download... The digitalmars server is incredibly slow. There's no excuse fo

Re: Could we use something better than zip for the dmd package?

2011-12-21 Thread jerro
> In addition, some people don't have rights to install new software on > their system or bring it from home on an USB stick. They can use this: http://portableapps.com/apps/utilities/7-zip_portable , no need to install anything. If they don't have rights to their own executables, they can't us

Re: Pipe-Syntax?

2011-12-21 Thread Somedude
Le 21/12/2011 13:54, Dejan Lekic a écrit : > > Perhaps I should think more about it, but right now I am 100% against it, as > it makes the code extremely unreadable to an imperative programmer. > > > My opinion - we should strive for a good ballance between imperative and > declarative in

Re: std.container and classes

2011-12-21 Thread so
On Wed, 21 Dec 2011 14:56:28 +0200, Froglegs wrote: On Wednesday, 21 December 2011 at 12:50:44 UTC, so wrote: On Wed, 21 Dec 2011 07:37:33 +0200, Andrei Alexandrescu wrote: a great mathematician Name please? I believe he is referring to http://en.wikipedia.org/wiki/Alexander_Stepanov

Re: Could we have mod in std.math?

2011-12-21 Thread Stewart Gordon
On 21/12/2011 06:08, Caligo wrote: assert(mod(-6, 20) == 14); assert(mod( 6, -20) == -14); assert(mod(-6, -20) == -6); I'm hoping to see something like the above mod function in Phobos someday. And perhapse a 'rem' or 'remainder' function that's a wrapper for the % operator, just t

Re: Could we use something better than zip for the dmd package?

2011-12-21 Thread deadalnix
Le 21/12/2011 11:15, Walter Bright a écrit : On 12/21/2011 1:31 AM, Andrej Mitrovic wrote: I thought the installers were for newbies. 7z is supported by 7zip, winrar, and even winzip. I really don't see how someone can be smart enough to use a systems programming language but not have a clue ho

Re: Could we use something better than zip for the dmd package?

2011-12-21 Thread Stewart Gordon
On 20/12/2011 19:57, Trass3r wrote: The ftp is not the fastest one and 7z reduces the size by 40%. Moreover, what zip compressor is being used? Some are stronger than others. 7-zip claims to compress zips better than WinZip/PKZIP. The website http://www.7-zip.org/ gives benchmarks, but it

Re: Could we use something better than zip for the dmd package?

2011-12-21 Thread Robert Clipsham
On 20/12/2011 19:57, Trass3r wrote: The ftp is not the fastest one and 7z reduces the size by 40%. The size doesn't bother me at all. What bothers me is how long it takes to download... The digitalmars server is incredibly slow. There's no excuse for that, there are quite literally hundreds

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

2011-12-21 Thread so
On Wed, 21 Dec 2011 07:34:30 +0200, Jonathan M Davis wrote: On Wednesday, December 21, 2011 06:18:59 Jakob Ovrum wrote: On Wednesday, 21 December 2011 at 02:10:30 UTC, Jonathan M Davis > It's not the only place in Phobos which uses a class as a > namespace. I believe that both std.process an

Re: std.container and classes

2011-12-21 Thread Froglegs
On Wednesday, 21 December 2011 at 12:50:44 UTC, so wrote: On Wed, 21 Dec 2011 07:37:33 +0200, Andrei Alexandrescu wrote: a great mathematician Name please? I believe he is referring to http://en.wikipedia.org/wiki/Alexander_Stepanov

Re: Pipe-Syntax?

2011-12-21 Thread Dejan Lekic
Perhaps I should think more about it, but right now I am 100% against it, as it makes the code extremely unreadable to an imperative programmer. I will have to become a ~100% functional programmer to understand what all those overloaded operators do behind the scenes. To me | is a bitwise OR o

Re: std.container and classes

2011-12-21 Thread so
On Wed, 21 Dec 2011 07:37:33 +0200, Andrei Alexandrescu wrote: a great mathematician Name please?

Re: Could we use something better than zip for the dmd package?

2011-12-21 Thread Elvis Presley
How about self extracting 7zip archive? It kick ass. Or have zip, targz/bz2 and 7zip download archive so chose what you like (repacking script should be more than 10 lines). Or making separate packages for each OS (bit more of a work too) Or making download/upgrade installer (tada!) its fancy and

Re: Could we use something better than zip for the dmd package?

2011-12-21 Thread Jacob Carlborg
On 2011-12-20 20:57, Trass3r wrote: The ftp is not the fastest one and 7z reduces the size by 40%. Switching away from zip could break several installation scripts/tools, it will break DVM. -- /Jacob Carlborg

Re: std.container and classes

2011-12-21 Thread Jacob Carlborg
On 2011-12-21 08:53, Jonathan M Davis wrote: On Wednesday, December 21, 2011 08:44:10 Jacob Carlborg wrote: I thought that one of the problems with the GC and memory was that you can't rely on when/if the destructors are called. With "dispose" it would give the developer a reliable method to cle

Re: Could we use something better than zip for the dmd package?

2011-12-21 Thread so
On Tue, 20 Dec 2011 21:57:28 +0200, Trass3r wrote: The ftp is not the fastest one and 7z reduces the size by 40%. Do we have to choose one over another? No, we can have both.

Re: Could we use something better than zip for the dmd package?

2011-12-21 Thread Trass3r
Am 21.12.2011, 10:31 Uhr, schrieb Andrej Mitrovic : I thought the installers were for newbies. 7z is supported by 7zip, winrar, and even winzip. I really don't see how someone can be smart enough to use a systems programming language but not have a clue how to download an archiver. Even avera

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

2011-12-21 Thread Denis Shelomovskij
21.12.2011 0:22, Walter Bright пишет: First off, dmd most definitely puts 0 initialized static data into the BSS segment. So what's going on here? 1. char data is not initialized to 0, it is initialized to 0xFF. Non-zero data cannot be put in BSS. Sorry, it was because of copying C code in my po

Re: Binary Size: function-sections, data-sections, etc.

2011-12-21 Thread Artur Skawina
On 12/21/11 10:01, Kagamin wrote: >> The one potential problematic case i mentioned in that gdc bug mentioned >> above is this: >> If the D runtime (most likely GC) needs to know the start/end of the data >> and bss >> sections _and_ does it in a way that can confuse it if some unreferenced >> p

Re: initializedArray

2011-12-21 Thread Andrej Mitrovic
Ok just realized I can't use a mixin, lengths are dynamic, heheh. That went over my head. I'll see what else I can do.. On 12/21/11, Andrej Mitrovic wrote: > On 12/21/11, Philippe Sigaud wrote: >> size_t[] arrayLengths(A)(A a) if (isStaticArray!A) >> { >> static if (isStaticArray!(ElementTyp

Re: initializedArray

2011-12-21 Thread Andrej Mitrovic
On 12/21/11, Philippe Sigaud wrote: > size_t[] arrayLengths(A)(A a) if (isStaticArray!A) > { > static if (isStaticArray!(ElementType!A)) > return arrayLengths(a[0]) ~ a.length; > else > return [a.length]; > } That returns an array, but I can't pass an array in place of a va

Re: Could we use something better than zip for the dmd package?

2011-12-21 Thread simendsjo
On 21.12.2011 11:15, Walter Bright wrote: On 12/21/2011 1:31 AM, Andrej Mitrovic wrote: I thought the installers were for newbies. 7z is supported by 7zip, winrar, and even winzip. I really don't see how someone can be smart enough to use a systems programming language but not have a clue how t

Re: Could we use something better than zip for the dmd package?

2011-12-21 Thread Walter Bright
On 12/21/2011 1:31 AM, Andrej Mitrovic wrote: I thought the installers were for newbies. 7z is supported by 7zip, winrar, and even winzip. I really don't see how someone can be smart enough to use a systems programming language but not have a clue how to download an archiver. Even average people

Re: Java > Scala

2011-12-21 Thread Russel Winder
On Tue, 2011-12-20 at 23:13 -0800, Isaac Gouy wrote: > > From: Russel Winder [...] > > Actually I am surprised that Java does so well in this comparison due > > to its start-up time issues. > > Perhaps the start-up time issues are less than you suppose. Very possibly the case, I have only switc

Re: Could we use something better than zip for the dmd package?

2011-12-21 Thread Andrej Mitrovic
I thought the installers were for newbies. 7z is supported by 7zip, winrar, and even winzip. I really don't see how someone can be smart enough to use a systems programming language but not have a clue how to download an archiver. Even average people hate the default zip functionality of Windows a

Re: Binary Size: function-sections, data-sections, etc.

2011-12-21 Thread Kagamin
The one potential problematic case i mentioned in that gdc bug mentioned above is this: If the D runtime (most likely GC) needs to know the start/end of the data and bss sections _and_ does it in a way that can confuse it if some unreferenced parts of these sections disappear and/or are reordere

Re: DI Generation Needs your Help!

2011-12-21 Thread Adam Wilson
On Tue, 20 Dec 2011 04:41:11 -0800, Andrei Alexandrescu wrote: On 12/20/11 2:03 AM, Adam Wilson wrote: On Mon, 19 Dec 2011 00:11:25 -0800, Adam Wilson wrote: The latest DI generation code is now on my Git account and ready for testing. It fixes the following issues: 1. Privates should e

Re: DI Generation Needs your Help!

2011-12-21 Thread Adam Wilson
On Tue, 20 Dec 2011 03:49:35 -0800, Andrej Mitrovic wrote: Derelict works ok now, good work! This is fantastic news! Thanks for helping to test these changes. :-) However, the .di files end up eating newlines. Before: double ALLEGRO_USECS_TO_SECS(long x) { return x / 1e+06; } double ALLE