Re: New Russian site about D Programming Language

2013-05-24 Thread Suliman
Huge update. Replaced terrible bb-code editor. Old one was really buggy. added Mozilla Persona integration and a lot of other improves! -- http://dlang.ru

Re: dmd 2.063 beta 5

2013-05-24 Thread Jacob Carlborg
On 2013-05-24 02:01, Walter Bright wrote: Don has an excellent point. His case is bolstered by this causing Tango2 to fail to compile with error messages that have no obvious relationship with this change. Worse, as Don points out, this can result in silent breakage. Not everyone writes code

Re: DConf 2013 Day 1 Talk 6: Concurrent Garbage Collection for D by Leandro Lucarella

2013-05-24 Thread Diggory
On Tuesday, 21 May 2013 at 20:08:16 UTC, Leandro Lucarella wrote: I'm interested in what you're describing, but I don't know how can you achieve this without fork()ing (or clone()ing in Linux). What does remap shared memory using COW in a context where fork() doesn't happen? Why do you even

Re: dmd 2.063 beta 5

2013-05-24 Thread Iain Buclaw
On 23 May 2013 22:46, Walter Bright newshou...@digitalmars.com wrote: On 5/23/2013 4:07 AM, Iain Buclaw wrote: On 21 May 2013 21:36, Walter Bright newshou...@digitalmars.com wrote: Join the dmd beta mailing list to keep up with the betas. This one is pretty much good to go, unless

Re: dmd 2.063 beta 5

2013-05-24 Thread Vladimir Panteleev
On Thursday, 23 May 2013 at 22:25:18 UTC, Andrej Mitrovic wrote: On 5/23/13, Vladimir Panteleev vladi...@thecybershadow.net wrote: 2) it doesn't know which file is the main program file (the file which must be present for the test script to succeed), if there is one. Does

Re: dmd 2.063 beta 5

2013-05-24 Thread Dicebot
On Thursday, 23 May 2013 at 16:01:56 UTC, Don wrote: That's better, but it's still not a convincing example. I don't see why you cannot remove the intializer, and write: this(bool IPv6) { if (!IPv6) etherType = 0x0800; else etherType = 0x86DD; ... } Because then you

Re: DConf 2013 Day 1 Talk 6: Concurrent Garbage Collection for D by Leandro Lucarella

2013-05-24 Thread Vladimir Panteleev
On Thursday, 23 May 2013 at 23:49:20 UTC, Diggory wrote: You'd either have to distribute a separate .exe for the GC process or embed the second .exe inside the first and extract it at runtime to a temporary location, or call the same .exe with some flag which tells it to turn into a GC. None

Re: dmd 2.063 beta 5

2013-05-24 Thread Dicebot
I like it. A lot, probably. When semantics of something does change it makes a lot sense to decouple deprecation of old behavior and introduction of new. I may even say it is worth using as a default approach for a semantics change in similar cases ;) On Friday, 24 May 2013 at 00:01:20 UTC,

Re: DConf 2013 Day 1 Talk 6: Concurrent Garbage Collection for D by Leandro Lucarella

2013-05-24 Thread Vladimir Panteleev
On Friday, 24 May 2013 at 06:52:19 UTC, Diggory wrote: On Tuesday, 21 May 2013 at 20:08:16 UTC, Leandro Lucarella wrote: I'm interested in what you're describing, but I don't know how can you achieve this without fork()ing (or clone()ing in Linux). What does remap shared memory using COW in a

Re: dmd 2.063 beta 5

2013-05-24 Thread Regan Heath
On Thu, 23 May 2013 19:52:14 +0100, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: On 5/23/13 2:08 PM, Marco Leise wrote: Am Thu, 23 May 2013 13:06:44 -0400 schrieb Andrei Alexandrescuseewebsiteforem...@erdani.org: TDPL 8.4 discusses a raw/cooked model of construction. The same

Re: DConf 2013 Day 1 Talk 6: Concurrent Garbage Collection for D by Leandro Lucarella

2013-05-24 Thread Diggory
On Friday, 24 May 2013 at 07:48:49 UTC, Vladimir Panteleev wrote: I don't know why you say that. The satellite process would be the same executable file as the main process, but started with a special switch (or environment variable), which will be handled by the D runtime. Since the two

Re: DConf 2013 Day 1 Talk 6: Concurrent Garbage Collection for D by Leandro Lucarella

2013-05-24 Thread Diggory
On Friday, 24 May 2013 at 09:56:25 UTC, Diggory wrote: The only time I've been able to get it to not show a console window is when using WinMain... OK, nvm, it seems it's just that the SUBSYSTEM setting in VisualD has no effect, you have to set it through a .def file.

Re: DConf 2013 Day 1 Talk 6: Concurrent Garbage Collection for D by Leandro Lucarella

2013-05-24 Thread Vladimir Panteleev
On Friday, 24 May 2013 at 09:56:25 UTC, Diggory wrote: I'm fairly sure windows only shares memory between instances of the same DLL, not executables. Oh? I thought Windows treats all modules in the same way. Do you have a source? You're still executing part of the user's code and it's going

Re: dmd 2.063 beta 5

2013-05-24 Thread Artur Skawina
On 05/24/13 02:33, Steven Schveighoffer wrote: On Thu, 23 May 2013 19:03:25 -0400, Artur Skawina art.08...@gmail.com wrote: On 05/23/13 23:06, Steven Schveighoffer wrote: compiles: struct S { const int x; this(int n) { x = n; } } It's the 'const int x = 42;' case

DConf 2013 Day 2 Talk 1: GDC by Iain Buclaw

2013-05-24 Thread Andrei Alexandrescu
It's there! http://www.reddit.com/r/programming/comments/1eyq5z/dconf_2013_day_2_talk_1_gdc_by_iain_buclaw/ Andrei

Re: dmd 2.063 beta 5

2013-05-24 Thread Andrei Alexandrescu
On 5/24/13 5:09 AM, Regan Heath wrote: On Thu, 23 May 2013 19:52:14 +0100, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: On 5/23/13 2:08 PM, Marco Leise wrote: Am Thu, 23 May 2013 13:06:44 -0400 schrieb Andrei Alexandrescuseewebsiteforem...@erdani.org: TDPL 8.4 discusses a

Re: DConf 2013 Day 1 Talk 6: Concurrent Garbage Collection for D by Leandro Lucarella

2013-05-24 Thread Artur Skawina
On 05/24/13 08:52, Diggory wrote: After doing some further investigation I think I've found a fairly awesome way of doing garbage collection on windows, hopefully linux has a similar mechanism. It doesn't require memory mapped files or anything special, it can be done retroactively, and it

Re: dmd 2.063 beta 5

2013-05-24 Thread TommiT
On Friday, 24 May 2013 at 11:57:53 UTC, Don wrote: On Friday, 24 May 2013 at 10:55:09 UTC, Artur Skawina wrote: Hence, you are arguing for a change in behavior. And the arguments for that are extremely weak. The goal should be to allow const initialization to happen exactly once. I agree.

Re: dmd 2.063 beta 5

2013-05-24 Thread Dicebot
On Friday, 24 May 2013 at 11:57:53 UTC, Don wrote: ... I have finally understood your point about default initializer vs changing T.init :) It was not that easy because there are no similar terms in other languages. Anyway, it does make sense. Somehow separating concept of compile-time

Re: DConf 2013 Day 1 Talk 5: Using D Alongside a Game Engine by Manu Evans

2013-05-24 Thread Max Samukha
On Thursday, 23 May 2013 at 20:19:28 UTC, Nick Sabalausky wrote: On Thu, 23 May 2013 23:09:54 +1000 Manu turkey...@gmail.com wrote: On 23 May 2013 22:56, Max Samukha maxsamu...@gmail.com wrote: You have module constructors in mixins. How did you solve the circular imports problem? Banned

Re: DConf 2013 Day 1 Talk 5: Using D Alongside a Game Engine by Manu Evans

2013-05-24 Thread Max Samukha
On Thursday, 23 May 2013 at 16:30:28 UTC, Manu wrote: Pretty much. I anticipate the problem arising, but it hasn't come up. The codebase is fairly hierarchical it seems... I'd really rather not do it with module constructors though. There might be other solutions, like module locals executing

Re: dmd 2.063 beta 5

2013-05-24 Thread deadalnix
On Thursday, 23 May 2013 at 16:44:03 UTC, deadalnix wrote: On Tuesday, 21 May 2013 at 20:36:20 UTC, Walter Bright wrote: Join the dmd beta mailing list to keep up with the betas. This one is pretty much good to go, unless something disastrous crops up.

Interesting talk on ParaSails approach to Memory.

2013-05-24 Thread Zz
Region-Based Storage Management: ParaSailing without a (Garbage) Chute https://air.mozilla.org/region-based-storage-management-parasailing-without-a-garbage-chute/ Home Page http://parasail-programming-language.blogspot.com Zz

Re: dmd 2.063 beta 5

2013-05-24 Thread deadalnix
On Friday, 24 May 2013 at 13:06:03 UTC, deadalnix wrote: Solved, but now I fail on : Error: template std.utf.decodeFront does not match any function template declaration. Candidates are: ... // Many candidates. So I fixed it, now I have another regression (or a new feature) : Foo is not a

Re: dmd 2.063 beta 5

2013-05-24 Thread Steven Schveighoffer
On Fri, 24 May 2013 07:57:51 -0400, Don turnyourkidsintoc...@nospam.com wrote: On Friday, 24 May 2013 at 10:55:09 UTC, Artur Skawina wrote: On 05/24/13 02:33, Steven Schveighoffer wrote: On Thu, 23 May 2013 19:03:25 -0400, Artur Skawina art.08...@gmail.com wrote: On 05/23/13 23:06,

Re: dmd 2.063 beta 5

2013-05-24 Thread Steven Schveighoffer
On Fri, 24 May 2013 09:54:20 -0400, Dicebot m.stras...@gmail.com wrote: On Friday, 24 May 2013 at 13:46:49 UTC, Steven Schveighoffer wrote: This was ALWAYS the case. struct S { int x = 5; // sets S.init.x to 5 } As far as I understand Don, this behavior should be considered misleading

Re: dmd 2.063 beta 5

2013-05-24 Thread Dicebot
On Friday, 24 May 2013 at 13:58:32 UTC, Steven Schveighoffer wrote: Being able to dictate the .init data is very powerful and useful. You can't remove that feature. Sure, I completely agree, thus the idea adding of CTFE-able constructor which will become the T.init for structs. But the

Re: DConf 2013 Day 1 Talk 6: Concurrent Garbage Collection for D by Leandro Lucarella

2013-05-24 Thread Diggory
On Friday, 24 May 2013 at 10:20:12 UTC, Vladimir Panteleev wrote: Leandro wasn't using Windows ;) True but assuming windows isn't completely degenerate the overhead of a page fault is going to be pretty close to identical on the same cpu architecture. On Friday, 24 May 2013 at 11:15:21 UTC,

Re: DConf 2013 Day 2 Talk 1: GDC by Iain Buclaw

2013-05-24 Thread nazriel
On Friday, 24 May 2013 at 11:02:52 UTC, Andrei Alexandrescu wrote: It's there! http://www.reddit.com/r/programming/comments/1eyq5z/dconf_2013_day_2_talk_1_gdc_by_iain_buclaw/ Awesome presentation. The most instructive so far. Details of Internal representation of GCC - I never even heard of

Facebook Engineering blog entry on DConf 2013 by Ben Gertzfield

2013-05-24 Thread Andrei Alexandrescu
https://www.facebook.com/notes/facebook-engineering/speaking-a-whole-new-language-dconf-2013-at-facebook/10151468799633920 Andrei

Re: Talha Zekeriya Durmuş's D project takes first place in TÜBİTAK competition

2013-05-24 Thread Walter Bright
On 5/24/2013 10:32 AM, Ali Çehreli wrote: TÜBİTAK (The Scientific and Technological Research Council of Turkey) holds a yearly competition for high school research projects. Zekeriya is the winner of the first place award for computer technologies. He has been designing and implementing Rhodeus

Re: Facebook Engineering blog entry on DConf 2013 by Ben Gertzfield

2013-05-24 Thread Walter Bright
On 5/24/2013 11:22 AM, Andrei Alexandrescu wrote: https://www.facebook.com/notes/facebook-engineering/speaking-a-whole-new-language-dconf-2013-at-facebook/10151468799633920 Wow! Best summary yet of the conference!

Re: DConf 2013 Day 1 Talk 6: Concurrent Garbage Collection for D by Leandro Lucarella

2013-05-24 Thread Juan Manuel Cabo
On Monday, 20 May 2013 at 12:50:23 UTC, Andrei Alexandrescu wrote: On reddit: http://www.reddit.com/r/programming/comments/1eovfu/dconf_2013_day_1_talk_6_concurrent_garbage/ Enjoy! Discuss!! Vote!!! Andrei I know that this is slightly offtopic, since the topic lately seems to be how to

Re: Talha Zekeriya Durmuş's D project takes first place in TÜBİTAK competition

2013-05-24 Thread Ali Çehreli
On 05/24/2013 11:34 AM, Walter Bright wrote: On 5/24/2013 10:32 AM, Ali Çehreli wrote: TÜBİTAK (The Scientific and Technological Research Council of Turkey) holds a yearly competition for high school research projects. Zekeriya is the winner of the first place award for computer technologies.

Re: Facebook Engineering blog entry on DConf 2013 by Ben Gertzfield

2013-05-24 Thread Nick Sabalausky
On Fri, 24 May 2013 14:22:57 -0400 Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: https://www.facebook.com/notes/facebook-engineering/speaking-a-whole-new-language-dconf-2013-at-facebook/10151468799633920 Andrei That's a very nice article. Something good to pass along when

Re: Talha Zekeriya Durmuş's D project takes first place in TÜBİTAK competition

2013-05-24 Thread Walter Bright
On 5/24/2013 11:45 AM, Ali Çehreli wrote: On 05/24/2013 11:34 AM, Walter Bright wrote: On 5/24/2013 10:32 AM, Ali Çehreli wrote: TÜBİTAK (The Scientific and Technological Research Council of Turkey) holds a yearly competition for high school research projects. Zekeriya is the winner of the

Re: DConf 2013 Day 1 Talk 6: Concurrent Garbage Collection for D by Leandro Lucarella

2013-05-24 Thread Jonathan M Davis
On Friday, May 24, 2013 20:30:54 Juan Manuel Cabo wrote: I know that this is slightly offtopic, since the topic lately seems to be how to make the GC run generationally or with small footprint (don't stop the world, etc.). I'd like to know if there is interest in a precise garbage

Re: Facebook Engineering blog entry on DConf 2013 by Ben Gertzfield

2013-05-24 Thread Andrei Alexandrescu
On 5/24/13 2:55 PM, Nick Sabalausky wrote: On Fri, 24 May 2013 14:22:57 -0400 Andrei Alexandrescuseewebsiteforem...@erdani.org wrote: https://www.facebook.com/notes/facebook-engineering/speaking-a-whole-new-language-dconf-2013-at-facebook/10151468799633920 Andrei That's a very nice

Re: Facebook Engineering blog entry on DConf 2013 by Ben Gertzfield

2013-05-24 Thread Steven Schveighoffer
On Fri, 24 May 2013 17:13:22 -0400, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: Can it be seen without a Facebook account? Yes. -Steve

Re: Facebook Engineering blog entry on DConf 2013 by Ben Gertzfield

2013-05-24 Thread Mr. Anonymous
On Friday, 24 May 2013 at 21:13:23 UTC, Andrei Alexandrescu wrote: On 5/24/13 2:55 PM, Nick Sabalausky wrote: On Fri, 24 May 2013 14:22:57 -0400 Andrei Alexandrescuseewebsiteforem...@erdani.org wrote:

Re: DConf 2013 Day 2 Talk 1: GDC by Iain Buclaw

2013-05-24 Thread Iain Buclaw
On 24 May 2013 12:02, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: It's there! http://www.reddit.com/r/programming/comments/1eyq5z/dconf_2013_day_2_talk_1_gdc_by_iain_buclaw/ Andrei Errata: David Nadlinger - the way it determines whether or not to emulate TLS is at the

Re: DConf 2013 Day 2 Talk 1: GDC by Iain Buclaw

2013-05-24 Thread David Nadlinger
On Friday, 24 May 2013 at 22:20:54 UTC, Iain Buclaw wrote: Errata: David Nadlinger - the way it determines whether or not to emulate TLS is at the configure stage, where it tests if the assembler has support for it. If no, then TLS is emulated. So the correct answer would be: It's not

Re: DConf 2013 Day 2 Talk 1: GDC by Iain Buclaw

2013-05-24 Thread David Nadlinger
On Friday, 24 May 2013 at 22:45:35 UTC, David Nadlinger wrote: We (LDC) use the GNU as on MinGW as well, as the LLVM integrated assembler doesn't support emitting the Dwarf EH tables into COFF files yet. So, you should be good to go in theory, although the target config handling code you

Re: DConf 2013 Day 1 Talk 6: Concurrent Garbage Collection for D by Leandro Lucarella

2013-05-24 Thread Diggory
On 64-bit windows there is also the GetWriteWatch function which lets you access the dirty flag in the page table = no page faults = super efficient concurrent generational GC. Just a shame it doesn't exist on 32-bit systems for some reason.

Re: dmd 2.063 beta 5

2013-05-24 Thread Ellery Newcomer
On Tuesday, 21 May 2013 at 20:36:20 UTC, Walter Bright wrote: Join the dmd beta mailing list to keep up with the betas. This one is pretty much good to go, unless something disastrous crops up. http://ftp.digitalmars.com/dmd2beta.zip Remaining regressions:

Re: dmd 2.063 beta 5

2013-05-24 Thread deadalnix
On Friday, 24 May 2013 at 14:04:33 UTC, Dicebot wrote: On Friday, 24 May 2013 at 13:58:32 UTC, Steven Schveighoffer wrote: Being able to dictate the .init data is very powerful and useful. You can't remove that feature. Sure, I completely agree, thus the idea adding of CTFE-able constructor