Re: Video of my LDC talk @ FOSDEM'14

2014-05-27 Thread Arjan via Digitalmars-d-announce
Enjoy! Besides the noise, I did! Great talk! And thanks for your efforts to make LDC a success.

Re: Dconf 2014 talks - when to be available

2014-05-27 Thread Joakim via Digitalmars-d-announce
On Tuesday, 27 May 2014 at 02:51:51 UTC, Nick B wrote: Hi Can any one advise when we can expect the conference talks (and perhaps the slides as well) to available to download or via Utube ? I saw some of the streamed talks, but would love to view the rest. The MC said initially that

Re: DirectX bindings

2014-05-27 Thread evilrat via Digitalmars-d-announce
On Sunday, 3 November 2013 at 05:27:24 UTC, evilrat wrote: https://github.com/evilrat666/directx-d this is it. i think i can't continue on this one anymore, nor do i have time, nor passion. i've made a lot of work and meet (almost) no interest. i will be stay in contact, so any pull request

Re: My D book is now officially coming soon

2014-05-27 Thread Szymon Gatner via Digitalmars-d-announce
On Tuesday, 6 May 2014 at 19:58:10 UTC, Nick Sabalausky wrote: On 5/6/2014 9:11 AM, Adam D. Ruppe wrote: On Tuesday, 6 May 2014 at 12:40:48 UTC, Szymon Gatner wrote: Any way to see the TOC? Hmm, not on the website yet but here it is. [snip] Sounds awesome! Jus got mail from PacktPub: D

Re: Video of my LDC talk @ FOSDEM'14

2014-05-27 Thread Leandro Lucarella via Digitalmars-d-announce
Walter Bright, el 26 de May a las 11:09 me escribiste: On 5/26/2014 10:30 AM, w0rp wrote: On Monday, 26 May 2014 at 17:06:27 UTC, Walter Bright wrote: Youtube has solved all these problems - why not use it? You can view .webm directly in recent Firefox or Chrome versions on Windows, you an

Re: My D book is now officially coming soon

2014-05-27 Thread Chris via Digitalmars-d-announce
On Tuesday, 27 May 2014 at 10:00:01 UTC, Szymon Gatner wrote: On Tuesday, 6 May 2014 at 19:58:10 UTC, Nick Sabalausky wrote: On 5/6/2014 9:11 AM, Adam D. Ruppe wrote: On Tuesday, 6 May 2014 at 12:40:48 UTC, Szymon Gatner wrote: Any way to see the TOC? Hmm, not on the website yet but here it

Re: Video of my LDC talk @ FOSDEM'14

2014-05-27 Thread bearophile via Digitalmars-d-announce
Kai Nacke: In the same folder are also the videos of the other LLVM related talk. I have appreciated the An approach for energy consumption analysis of programs using LLVM talk, they even have an annotation that statically enforces a certain function to consume less than a specified amount

Re: My D book is now officially coming soon

2014-05-27 Thread Kozzi via Digitalmars-d-announce
On Tuesday, 27 May 2014 at 10:00:01 UTC, Szymon Gatner wrote: On Tuesday, 6 May 2014 at 19:58:10 UTC, Nick Sabalausky wrote: On 5/6/2014 9:11 AM, Adam D. Ruppe wrote: On Tuesday, 6 May 2014 at 12:40:48 UTC, Szymon Gatner wrote: Any way to see the TOC? Hmm, not on the website yet but here it

Re: My D book is now officially coming soon

2014-05-27 Thread Adam D. Ruppe via Digitalmars-d-announce
On Tuesday, 27 May 2014 at 11:43:32 UTC, Kozzi wrote: I am reading it now, but there is a lot of errata :(. What do you mean?

Re: My D book is now officially coming soon

2014-05-27 Thread Mattcoder via Digitalmars-d-announce
On Tuesday, 27 May 2014 at 11:43:32 UTC, Kozzi wrote: I am reading it now, but there is a lot of errata :(. Well that's a good thing about PDF, because you can fix it and update the version online. Matheus.

Re: My D book is now officially coming soon

2014-05-27 Thread Daniel Kozak via Digitalmars-d-announce
I mean there is a lot of typo (for e.g. multiple ';' chars at the end of line, import std.stdio : writeln;;;) on page 2,6,8,10,14 ... On page 19: static Vector fromPoint(float[2] point) { import std.math; Vector v; float x = point[0]; float y= point[1]; v.magnitude = sqrt(x ^^ 2 + y ^^ 2);

Re: My D book is now officially coming soon

2014-05-27 Thread Adam D. Ruppe via Digitalmars-d-announce
On Tuesday, 27 May 2014 at 11:57:05 UTC, Daniel Kozak via Digitalmars-d-announce wrote: I mean there is a lot of typo (for e.g. multiple ';' chars at the end of line, import std.stdio : writeln;;;) Blargh, the code got screwed up something nasty through the revision process (chapter 6

Re: Video of my LDC talk @ FOSDEM'14

2014-05-27 Thread Tommi via Digitalmars-d-announce
On Monday, 26 May 2014 at 05:59:35 UTC, Kai Nacke wrote: [..] http://video.fosdem.org/2014/K4401/Sunday/LDC_the_LLVMbased_D_compiler.webm I can't watch this on my iPhone.

Re: My D book is now officially coming soon

2014-05-27 Thread Chris via Digitalmars-d-announce
On Tuesday, 27 May 2014 at 12:05:43 UTC, Adam D. Ruppe wrote: On Tuesday, 27 May 2014 at 11:57:05 UTC, Daniel Kozak via Digitalmars-d-announce wrote: I mean there is a lot of typo (for e.g. multiple ';' chars at the end of line, import std.stdio : writeln;;;) Blargh, the code got screwed up

Re: My D book is now officially coming soon

2014-05-27 Thread Szymon Gatner via Digitalmars-d-announce
On Tuesday, 27 May 2014 at 12:59:59 UTC, Chris wrote: On Tuesday, 27 May 2014 at 12:05:43 UTC, Adam D. Ruppe wrote: On Tuesday, 27 May 2014 at 11:57:05 UTC, Daniel Kozak via Digitalmars-d-announce wrote: I mean there is a lot of typo (for e.g. multiple ';' chars at the end of line, import

Re: My D book is now officially coming soon

2014-05-27 Thread Adam D. Ruppe via Digitalmars-d-announce
On Tuesday, 27 May 2014 at 13:27:56 UTC, Szymon Gatner wrote: Will epub version be available too? Yeah, I think it is already on the packt website.

Re: Dconf 2014 talks - when to be available

2014-05-27 Thread Suliman via Digitalmars-d-announce
apparently to stay on top of reddit for awhile. Explain plz

Scott Meyers' DConf 2014 keynote The Last Thing D Needs

2014-05-27 Thread Andrei Alexandrescu via Digitalmars-d-announce
http://www.reddit.com/r/programming/comments/26m8hy/scott_meyers_dconf_2014_keynote_the_last_thing_d/ https://news.ycombinator.com/newest (search that page, if not found click More and search again) https://www.facebook.com/dlang.org/posts/855022447844771

Re: Dconf 2014 talks - when to be available

2014-05-27 Thread Andrei Alexandrescu via Digitalmars-d-announce
On 5/27/14, 12:41 AM, Nick B wrote: On Tuesday, 27 May 2014 at 07:14:54 UTC, Joakim wrote: The MC said initially that they'd have them up in a day or two most likely, then Andrei said he wanted to stagger their release over a couple weeks like he did last time, apparently to stay on top of

Re: Scott Meyers' DConf 2014 keynote The Last Thing D Needs

2014-05-27 Thread Nick Sabalausky via Digitalmars-d-announce
On 5/27/2014 12:42 PM, Andrei Alexandrescu wrote: http://www.reddit.com/r/programming/comments/26m8hy/scott_meyers_dconf_2014_keynote_the_last_thing_d/ https://news.ycombinator.com/newest (search that page, if not found click More and search again)

Re: Scott Meyers' DConf 2014 keynote The Last Thing D Needs

2014-05-27 Thread via Digitalmars-d-announce
On Tuesday, 27 May 2014 at 16:42:35 UTC, Andrei Alexandrescu wrote: http://www.reddit.com/r/programming/comments/26m8hy/scott_meyers_dconf_2014_keynote_the_last_thing_d/ Thanks, is it possible to put it on Youtube as well? Ustream stutters every second from where I am which makes me feel

Re: My D book is now officially coming soon

2014-05-27 Thread John via Digitalmars-d-announce
On Tuesday, 6 May 2014 at 16:38:51 UTC, Andrei Alexandrescu wrote: http://www.packtpub.com/discover-advantages-of-programming-in-d-cookbook/book I just agreed with Packt to write a foreword for the book. -- Andrei I just read the foreword. It's great!

Re: Scott Meyers' DConf 2014 keynote The Last Thing D Needs

2014-05-27 Thread Mattcoder via Digitalmars-d-announce
Great, but I think this should be on youtube too, reasons for this is the possibility to change resolution and other features like subtitles for foreigners etc. Matheus.

Re: Scott Meyers' DConf 2014 keynote The Last Thing D Needs

2014-05-27 Thread w0rp via Digitalmars-d-announce
That was brilliant. I think Scott made two very good points. D needs people like himself to educate others, and that D should focus on behaviour which makes sense not only in a particular context, but with respect to the other contexts. (Which is what C++ lacks greatly.)

Re: Scott Meyers' DConf 2014 keynote The Last Thing D Needs

2014-05-27 Thread Andrew Edwards via Digitalmars-d-announce
On 5/27/14, 2:57 PM, w0rp wrote: That was brilliant. I think Scott made two very good points. D needs people like himself to educate others, and that D should focus on behaviour which makes sense not only in a particular context, but with respect to the other contexts. (Which is what C++ lacks

Re: Scott Meyers' DConf 2014 keynote The Last Thing D Needs

2014-05-27 Thread Steven Schveighoffer via Digitalmars-d-announce
On Tue, 27 May 2014 14:57:46 -0400, w0rp devw...@gmail.com wrote: That was brilliant. I think Scott made two very good points. D needs people like himself to educate others I think you misunderstood that point ;) He was saying to make D so that we DON'T need specialists like himself that

Re: Scott Meyers' DConf 2014 keynote The Last Thing D Needs

2014-05-27 Thread Brian Schott via Digitalmars-d-announce
On Tuesday, 27 May 2014 at 19:44:01 UTC, Andrew Edwards wrote: Really? What I got out of it was that D doesn't need people like him because his job is to explain the inconsistencies of the language. By designing a consistent language in the first place, people can readily understand it in all

Re: Scott Meyers' DConf 2014 keynote The Last Thing D Needs

2014-05-27 Thread Steven Schveighoffer via Digitalmars-d-announce
On Tue, 27 May 2014 16:11:12 -0400, w0rp devw...@gmail.com wrote: On Tuesday, 27 May 2014 at 19:43:57 UTC, Steven Schveighoffer wrote: On Tue, 27 May 2014 14:57:46 -0400, w0rp devw...@gmail.com wrote: That was brilliant. I think Scott made two very good points. D needs people like himself

Re: Scott Meyers' DConf 2014 keynote The Last Thing D Needs

2014-05-27 Thread Chris Nicholson-Sauls via Digitalmars-d-announce
On Tuesday, 27 May 2014 at 20:11:13 UTC, w0rp wrote: On Tuesday, 27 May 2014 at 19:43:57 UTC, Steven Schveighoffer wrote: On Tue, 27 May 2014 14:57:46 -0400, w0rp devw...@gmail.com wrote: That was brilliant. I think Scott made two very good points. D needs people like himself to educate

Re: Scott Meyers' DConf 2014 keynote The Last Thing D Needs

2014-05-27 Thread w0rp via Digitalmars-d-announce
On Tuesday, 27 May 2014 at 21:16:34 UTC, Chris Nicholson-Sauls wrote: On Tuesday, 27 May 2014 at 20:11:13 UTC, w0rp wrote: On Tuesday, 27 May 2014 at 19:43:57 UTC, Steven Schveighoffer wrote: On Tue, 27 May 2014 14:57:46 -0400, w0rp devw...@gmail.com wrote: That was brilliant. I think Scott

Re: Scott Meyers' DConf 2014 keynote The Last Thing D Needs

2014-05-27 Thread Walter Bright via Digitalmars-d-announce
On 5/27/2014 2:22 PM, w0rp wrote: I'm actually a native speaker of 25 years and I didn't get it at first. Natural language communicates ideas approximately. What bugs me is when people say: I could care less. when they mean: I couldn't care less. and: If you think that, you have

Re: Scott Meyers' DConf 2014 keynote The Last Thing D Needs

2014-05-27 Thread Nick Sabalausky via Digitalmars-d-announce
On 5/27/2014 6:10 PM, Johannes Totz wrote: On 27/05/2014 18:43, Ola Fosheim Grøstad ola.fosheim.grostad+dl...@gmail.com wrote: On Tuesday, 27 May 2014 at 16:42:35 UTC, Andrei Alexandrescu wrote:

Re: Dconf 2014 talks - when to be available

2014-05-27 Thread Leandro Lucarella via Digitalmars-d-announce
Ali Çehreli, el 27 de May a las 10:40 me escribiste: On 05/27/2014 09:18 AM, Suliman wrote: apparently to stay on top of reddit for awhile. Explain plz A benefit of releasing the presentations slowly is to enable constant exposure to DConf in the coming weeks, as opposed to making all

Re: Dconf 2014 talks - when to be available

2014-05-27 Thread Adam D. Ruppe via Digitalmars-d-announce
On Tuesday, 27 May 2014 at 23:08:01 UTC, Leandro Lucarella wrote: I think they should be uploaded all ASAP and then you can do official announcements in reddit or wherever you thinks it's best to promote the language. Aye, we could also, if we want some new thing to post to reddit each time,

Re: Dconf 2014 talks - when to be available

2014-05-27 Thread currysoup via Digitalmars-d-announce
On Tuesday, 27 May 2014 at 23:08:01 UTC, Leandro Lucarella wrote: Ali Çehreli, el 27 de May a las 10:40 me escribiste: On 05/27/2014 09:18 AM, Suliman wrote: apparently to stay on top of reddit for awhile. Explain plz A benefit of releasing the presentations slowly is to enable constant

Re: Scott Meyers' DConf 2014 keynote The Last Thing D Needs

2014-05-27 Thread Leandro Lucarella via Digitalmars-d-announce
Brian Schott, el 27 de May a las 20:03 me escribiste: On Tuesday, 27 May 2014 at 19:44:01 UTC, Andrew Edwards wrote: Really? What I got out of it was that D doesn't need people like him because his job is to explain the inconsistencies of the language. By designing a consistent language in the

Re: Scott Meyers' DConf 2014 keynote The Last Thing D Needs

2014-05-27 Thread John via Digitalmars-d-announce
On Tuesday, 27 May 2014 at 22:10:02 UTC, Johannes Totz wrote: Thanks, is it possible to put it on Youtube as well? Ustream stutters every second from where I am which makes me feel sorry for the speaker… http://rg3.github.io/youtube-dl/ helps with the stutter. +1

Re: Dconf 2014 talks - when to be available

2014-05-27 Thread Saurabh Das via Digitalmars-d-announce
On Tuesday, 27 May 2014 at 23:48:44 UTC, currysoup wrote: On Tuesday, 27 May 2014 at 23:08:01 UTC, Leandro Lucarella wrote: Ali Çehreli, el 27 de May a las 10:40 me escribiste: On 05/27/2014 09:18 AM, Suliman wrote: apparently to stay on top of reddit for awhile. Explain plz A benefit of

Re: Scott Meyers' DConf 2014 keynote The Last Thing D Needs

2014-05-27 Thread Jesse Phillips via Digitalmars-d-announce
On Tuesday, 27 May 2014 at 16:42:35 UTC, Andrei Alexandrescu wrote: http://www.reddit.com/r/programming/comments/26m8hy/scott_meyers_dconf_2014_keynote_the_last_thing_d/ https://news.ycombinator.com/newest (search that page, if not found click More and search again)

Re: Scott Meyers' DConf 2014 keynote The Last Thing D Needs

2014-05-27 Thread Philippe Sigaud via Digitalmars-d-announce
I did a translation of most of the code in the slides. http://dpaste.dzfl.pl/72b5cfcb72e4 I'm planning to transform it into blog post (or series). Right now it just has some scratch notes. Feel free to let me know everything I got wrong. That's a good idea. I think most of us did that while

Re: Scott Meyers' DConf 2014 keynote The Last Thing D Needs

2014-05-27 Thread Jesse Phillips via Digitalmars-d-announce
On Wednesday, 28 May 2014 at 05:30:18 UTC, Philippe Sigaud via Digitalmars-d-announce wrote: I did a translation of most of the code in the slides. http://dpaste.dzfl.pl/72b5cfcb72e4 I'm planning to transform it into blog post (or series). Right now it just has some scratch notes. Feel free

Re: Dev. Collaboration

2014-05-27 Thread simendsjo via Digitalmars-d
On 05/27/2014 02:12 AM, chuck wrote: Would anyone be interested in a collaboration forum? I am thinking of starting one on Proboards to aid in development/collaboration between developers on D and libraries/bindings. Reading through the posts, I have seen that several people have created small

Re: Dev. Collaboration

2014-05-27 Thread Rikki Cattermole via Digitalmars-d
On 27/05/2014 6:48 p.m., simendsjo wrote: On 05/27/2014 02:12 AM, chuck wrote: Would anyone be interested in a collaboration forum? I am thinking of starting one on Proboards to aid in development/collaboration between developers on D and libraries/bindings. Reading through the posts, I have

Re: New pointer type for GC

2014-05-27 Thread via Digitalmars-d
On Tuesday, 27 May 2014 at 02:52:48 UTC, Etienne Cimon wrote: I've been looking at the GC and found that the main problem is that there's no clear information about the pointers. At least smart pointers have some info inside them but GC pointers are completely plain 4-8 bytes and nothing else.

Does D support plugins with dll written in D ?

2014-05-27 Thread chmike via Digitalmars-d
Hello, note that D is still very new to me. The documentation for http://dlang.org/phobos/core_runtime.html#.Runtime.loadLibrary is a bit too terse to answer my question. I would like to know if it would allow to use Object.factory() with the classes defined in the loaded library and if

Re: Member function pointers

2014-05-27 Thread d coder via Digitalmars-d
On Mon, Jun 10, 2013 at 10:13 PM, Jacob Carlborg d...@me.com wrote: On 2013-06-10 18:34, Manu wrote: On 11 June 2013 02:26, Jacob Carlborg d...@me.com mailto:d...@me.com wrote: On 2013-06-10 17:40, David Nadlinger wrote: Let me try to summarize it in code: ---

Questions about the scope/Exception machinery

2014-05-27 Thread Qox via Digitalmars-d
Hello dear D fellows :D, The problem boils down to this. I try to write a Software which should be as compact as possible. This means that i don't like to use any exception handling (which appears to be hardly integrated into the language, not that good for demoscene/OS dev stuff). So i ran

Re: Questions about the scope/Exception machinery

2014-05-27 Thread Qox via Digitalmars-d
ok I found a old thread about it, just delete this thread please

Re: Questions about the scope/Exception machinery

2014-05-27 Thread Daniel Kozak via Digitalmars-d
Dne Tue, 27 May 2014 14:02:04 +0200 Qox via Digitalmars-d digitalmars-d@puremagic.com napsal(a): ok I found a old thread about it, just delete this thread please This is mail list so it is not possible to delete thread. Btw, can you post link to the thread which you find.

Re: Questions about the scope/Exception machinery

2014-05-27 Thread Qox via Digitalmars-d
The thread is http://forum.dlang.org/thread/dtcxszysceiopzwew...@forum.dlang.org?page=1 Title scope(exit) without exception handling?

Re: Member function pointers

2014-05-27 Thread d coder via Digitalmars-d
https://github.com/D-Programming-Language/dmd/pull/3181 Daniel asked me to use this. And it works. Use something like: union U { void delegate(int) dg; struct { void* ptr; void function(int) funcptr; } } U u; u.dg = dg; u.funcptr = ...; u.ptr = ...; Regards - Puneet

Re: Questions about the scope/Exception machinery

2014-05-27 Thread Qox via Digitalmars-d
nothrow doesn't seem to work with the recent dmd compiler :( I know it because _d_local_unwind2() is still called. Seems as if I need another more ugly (but still nicer than C++) solution. Mixins which jump on an error to a label...hell I love low level languages (Java is in this sense crap

Re: Questions about the scope/Exception machinery

2014-05-27 Thread Qox via Digitalmars-d
Ofcourse this doesn't look that maintainable to me...well, then the C++ struct destructor way???

Re: Questions about the scope/Exception machinery

2014-05-27 Thread Mike Parker via Digitalmars-d
On 5/27/2014 9:07 PM, Daniel Kozak via Digitalmars-d wrote: Dne Tue, 27 May 2014 14:02:04 +0200 Qox via Digitalmars-d digitalmars-d@puremagic.com napsal(a): ok I found a old thread about it, just delete this thread please This is mail list so it is not possible to delete thread. Btw, can

Re: Questions about the scope/Exception machinery

2014-05-27 Thread Mike Parker via Digitalmars-d
On 5/27/2014 9:43 PM, Qox wrote: nothrow doesn't seem to work with the recent dmd compiler :( I know it because _d_local_unwind2() is still called. notrhow doesn't turn off exception handling. It just doesn't allow you to throw from a particular function. From inside a nothrow function, you

System level language, GC, allocation and typeinfo

2014-05-27 Thread via Digitalmars-d
The terms system level programming and garbage collection are mutually exclusive, but I see the value in GC. However, I cannot really come up with a single situation where I don't know what kind of allocator I have used when accessing a pointer. I think it makes a lot of sense to think in the

Re: Questions about the scope/Exception machinery

2014-05-27 Thread Qox via Digitalmars-d
sounds a bit like C++ handling to me, for me *personally* it misses also the point about nothrow, because it gurantues nothing...which is like in C++ and imho bad...

Re: New pointer type for GC

2014-05-27 Thread Idan Arye via Digitalmars-d
On Tuesday, 27 May 2014 at 03:26:33 UTC, Etienne Cimon wrote: On 2014-05-26 23:19, Daniel Murphy wrote: Etienne Cimon wrote in message news:lm0um0$tgh$1...@digitalmars.com... I think everything everywhere would have to change for this to be possible. Sounds like never gonna happen. In

Re: New pointer type for GC

2014-05-27 Thread Etienne via Digitalmars-d
On 2014-05-27 3:56 AM, Ola Fosheim Grøstad ola.fosheim.grostad+dl...@gmail.com wrote: On 64 bit platform 8 bytes is sufficient if you control the allocator: 1. Avoid allocating non-GC memory from specific address range. 2. Set a max-size for GC allocated objects. Then the test becomes this:

Re: New pointer type for GC

2014-05-27 Thread Etienne via Digitalmars-d
On 2014-05-27 9:52 AM, Idan Arye wrote: Please, no apostrophe. It'll mess syntax highlighters, and possible indenters. How about #? void# ptr; void## ptr2 = ptr; assert(sizeof(ptr) == size_t + 3); assert(szptr_t == sizeof(ptr)); szptr_t ptr2Val = cast(szptr_t) ptr; char magicNum =

Re: New pointer type for GC

2014-05-27 Thread via Digitalmars-d
On Tuesday, 27 May 2014 at 13:58:26 UTC, Etienne wrote: That's true, though you still need the thread ID for references to pointers and you need to be able to pass those pointers to C. I am not really sure how useful references to gc-pointers is. I certainly would trade them in for multiple

Re: Associative Arrays max length? 32bit/64bit

2014-05-27 Thread Steven Schveighoffer via Digitalmars-d
On Mon, 26 May 2014 19:03:22 -0400, H. S. Teoh via Digitalmars-d digitalmars-d@puremagic.com wrote: On Sat, May 24, 2014 at 11:54:47PM -0700, Steven Schveighoffer via Digitalmars-d wrote: On Sat, 24 May 2014 21:39:14 -0700, H. S. Teoh via Digitalmars-d digitalmars-d@puremagic.com wrote: On

Re: New pointer type for GC

2014-05-27 Thread Etienne via Digitalmars-d
On 2014-05-27 10:18 AM, Ola Fosheim Grøstad ola.fosheim.grostad+dl...@gmail.com wrote: On Tuesday, 27 May 2014 at 13:58:26 UTC, Etienne wrote: That's true, though you still need the thread ID for references to pointers and you need to be able to pass those pointers to C. I am not really sure

Re: Questions about the scope/Exception machinery

2014-05-27 Thread Meta via Digitalmars-d
On Tuesday, 27 May 2014 at 13:24:08 UTC, Qox wrote: sounds a bit like C++ handling to me, for me *personally* it misses also the point about nothrow, because it gurantues nothing...which is like in C++ and imho bad... It guarantees at compile time that your function will not throw an

Re: New pointer type for GC

2014-05-27 Thread via Digitalmars-d
On Tuesday, 27 May 2014 at 14:42:34 UTC, Etienne wrote: I think the GC is the future of D considering it's embedded to the very core of the language, and compatibility with C code is ... elementary. Well, but then I think you should be required to do manual tracking while it is being

Voldemort declarations inside structs with ctor initialization

2014-05-27 Thread via Digitalmars-d
Considering something like this: auto stuff = [1, 2, 3]; struct Foo { typeof(stuff.filter!(a != 2)) foo; this(int = 0) { // assume we must initialize foo in ctor, // for instance because it needs ctor args; // in this

Re: Voldemort declarations inside structs with ctor initialization

2014-05-27 Thread bearophile via Digitalmars-d
Luís Marques: If the language allowed foo to be declared using auto (which would be deduced from the assignment in the ctor), that would be nice, right? This is a kind of flow typing, it's rather useful but it introduces several complexities, so I think it's now too much late to add it to

Re: Thanks for a great DConf

2014-05-27 Thread Bastiaan Veelo via Digitalmars-d
On Saturday, 24 May 2014 at 23:37:44 UTC, aliyome wrote: On Saturday, 24 May 2014 at 20:34:03 UTC, monarch_dodra wrote: On Saturday, 24 May 2014 at 17:40:29 UTC, Nick Sabalausky wrote: I'm looking forward to the YouTube reruns for the talks I still missed. (I still can't believe I missed

Re: Voldemort declarations inside structs with ctor initialization

2014-05-27 Thread via Digitalmars-d
On Tuesday, 27 May 2014 at 15:06:53 UTC, bearophile wrote: BTW, why doesn't this example work with lambdas (a = a != 2) instead of a string mixin (a != 2)? I think lambda instantiations defines a different type. So it's incompatible. Incompatible with what? I meant changing it in both the

Re: Voldemort declarations inside structs with ctor initialization

2014-05-27 Thread Idan Arye via Digitalmars-d
On Tuesday, 27 May 2014 at 15:40:04 UTC, Luís Marques wrote: On Tuesday, 27 May 2014 at 15:06:53 UTC, bearophile wrote: BTW, why doesn't this example work with lambdas (a = a != 2) instead of a string mixin (a != 2)? I think lambda instantiations defines a different type. So it's

Re: New pointer type for GC

2014-05-27 Thread Etienne via Digitalmars-d
On 2014-05-27 10:54 AM, Ola Fosheim Grøstad ola.fosheim.grostad+dl...@gmail.com wrote: On Tuesday, 27 May 2014 at 14:42:34 UTC, Etienne wrote: I think the GC is the future of D considering it's embedded to the very core of the language, and compatibility with C code is ... elementary. Well,

Re: New pointer type for GC

2014-05-27 Thread via Digitalmars-d
On Tuesday, 27 May 2014 at 16:47:38 UTC, Etienne wrote: You're right, it's obviously easier to keep it as the same pointer syntax but hijack the stdlib malloc functions to forcibly go through the GC. That is an option, and having a hijacked malloc would probably also make it possible to

Re: System level language, GC, allocation and typeinfo

2014-05-27 Thread Etienne via Digitalmars-d
On 2014-05-27 9:06 AM, Ola Fosheim Grøstad ola.fosheim.grostad+dl...@gmail.com wrote: I think it makes a lot of sense to think in the direction of the post of Etienne and have allocator based pointer types. With a template heavy coding style it becomes less problematic than in a language like C.

Re: Voldemort declarations inside structs with ctor initialization

2014-05-27 Thread via Digitalmars-d
On Tuesday, 27 May 2014 at 15:06:53 UTC, bearophile wrote: Luís Marques: If the language allowed foo to be declared using auto (which would be deduced from the assignment in the ctor), that would be nice, right? This is a kind of flow typing, it's rather useful but it introduces several

Re: Voldemort declarations inside structs with ctor initialization

2014-05-27 Thread Andrei Alexandrescu via Digitalmars-d
On 5/27/14, 6:26 AM, Idan Arye wrote: On Tuesday, 27 May 2014 at 15:40:04 UTC, Luís Marques wrote: On Tuesday, 27 May 2014 at 15:06:53 UTC, bearophile wrote: BTW, why doesn't this example work with lambdas (a = a != 2) instead of a string mixin (a != 2)? I think lambda instantiations defines

Re: Voldemort declarations inside structs with ctor initialization

2014-05-27 Thread via Digitalmars-d
On Tuesday, 27 May 2014 at 17:23:24 UTC, Marc Schütz wrote: Not necessarily. The first assignment of a member in a constructor is already treated as special, so I guess we're halfway there. That's what I was thinking. *crosses fingers*

Re: Voldemort declarations inside structs with ctor initialization

2014-05-27 Thread Meta via Digitalmars-d
On Tuesday, 27 May 2014 at 17:22:43 UTC, Andrei Alexandrescu wrote: I think there was either or both a discussion and a bug report on this, but can't find either. Basically we need to clarify what it means to compare two function literals for equality. -- Andrei I remember the thread where

Re: System level language, GC, allocation and typeinfo

2014-05-27 Thread MachMit via Digitalmars-d
On Tuesday, 27 May 2014 at 13:06:10 UTC, Ola Fosheim Grøstad wrote: ...However, I cannot really come up with a single situation where I don't know what kind of allocator I have used when accessing a pointer Heap allocation in D is up to the user. Can you imagine something like

Re: Voldemort declarations inside structs with ctor initialization

2014-05-27 Thread Andrei Alexandrescu via Digitalmars-d
On 5/27/14, 7:51 AM, Meta wrote: On Tuesday, 27 May 2014 at 17:22:43 UTC, Andrei Alexandrescu wrote: I think there was either or both a discussion and a bug report on this, but can't find either. Basically we need to clarify what it means to compare two function literals for equality. -- Andrei

Re: System level language, GC, allocation and typeinfo

2014-05-27 Thread Andrei Alexandrescu via Digitalmars-d
On 5/27/14, 7:59 AM, MachMit wrote: On Tuesday, 27 May 2014 at 13:06:10 UTC, Ola Fosheim Grøstad wrote: ...However, I cannot really come up with a single situation where I don't know what kind of allocator I have used when accessing a pointer Heap allocation in D is up to the user. Can

Re: Voldemort declarations inside structs with ctor initialization

2014-05-27 Thread H. S. Teoh via Digitalmars-d
On Tue, May 27, 2014 at 08:17:26AM -1000, Andrei Alexandrescu via Digitalmars-d wrote: On 5/27/14, 7:51 AM, Meta wrote: On Tuesday, 27 May 2014 at 17:22:43 UTC, Andrei Alexandrescu wrote: I think there was either or both a discussion and a bug report on this, but can't find either. Basically

Re: System level language, GC, allocation and typeinfo

2014-05-27 Thread Wyatt via Digitalmars-d
On Tuesday, 27 May 2014 at 18:19:14 UTC, Andrei Alexandrescu wrote: On 5/27/14, 7:59 AM, MachMit wrote: On Tuesday, 27 May 2014 at 13:06:10 UTC, Ola Fosheim Grøstad wrote: ...However, I cannot really come up with a single situation where I don't know what kind of allocator I have used when

Re: System level language, GC, allocation and typeinfo

2014-05-27 Thread via Digitalmars-d
On Tuesday, 27 May 2014 at 18:19:14 UTC, Andrei Alexandrescu wrote: Is there a white paper available for FastMM? Couldn't find any. http://sourceforge.net/p/fastmm/code/HEAD/tree/FastMM4_Readme.txt

Re: Voldemort declarations inside structs with ctor initialization

2014-05-27 Thread Idan Arye via Digitalmars-d
On Tuesday, 27 May 2014 at 18:54:05 UTC, H. S. Teoh via Digitalmars-d wrote: Honestly, I don't see the need even for alpha-renaming -- I can't imagine a use case where you'd want to do something like that. I think straight up hashing of the function body is Good Enough(tm). T Hashing the

Re: System level language, GC, allocation and typeinfo

2014-05-27 Thread MachMit via Digitalmars-d
On Tuesday, 27 May 2014 at 18:19:14 UTC, Andrei Alexandrescu wrote: On 5/27/14, 7:59 AM, MachMit wrote: On Tuesday, 27 May 2014 at 13:06:10 UTC, Ola Fosheim Grøstad wrote: ...However, I cannot really come up with a single situation where I don't know what kind of allocator I have used when

Re: Voldemort declarations inside structs with ctor initialization

2014-05-27 Thread Meta via Digitalmars-d
On Tuesday, 27 May 2014 at 19:39:23 UTC, Idan Arye wrote: Hashing the function body is not enough - you must also consider the closure! template Template(alias func){ bool Template=func(); } void foo(){ int a; writeln(Template!(()=is(typeof(a) : char)));

Re: auto-tester hardware donations

2014-05-27 Thread Jerry via Digitalmars-d
Brad Roberts via Digitalmars-d digitalmars-d@puremagic.com writes: On 5/25/14, 7:54 AM, monarch_dodra via Digitalmars-d wrote: On Saturday, 24 May 2014 at 17:58:08 UTC, Brad Roberts via Digitalmars-d wrote: As discussed a little at the conference, the auto-tester is almost always hardware

Re: auto-tester hardware donations

2014-05-27 Thread Brad Roberts via Digitalmars-d
On 5/27/14, 1:41 PM, Jerry via Digitalmars-d wrote: Brad Roberts via Digitalmars-d digitalmars-d@puremagic.com writes: On 5/25/14, 7:54 AM, monarch_dodra via Digitalmars-d wrote: On Saturday, 24 May 2014 at 17:58:08 UTC, Brad Roberts via Digitalmars-d wrote: As discussed a little at the

Re: isUniformRNG

2014-05-27 Thread Nick Sabalausky via Digitalmars-d
On 5/24/2014 5:19 PM, Joseph Rushton Wakeling via Digitalmars-d wrote: On 24/05/14 19:46, Nick Sabalausky via Digitalmars-d wrote: An initial PR for Hash_DRBG being struct-based and directly part of std.random I think that's up to you. I don't want to hold you back here, but equally, I feel

Re: Fixing More Warnings in DMD?

2014-05-27 Thread andro via Digitalmars-d
On Monday, 26 May 2014 at 20:58:22 UTC, Nordlöw wrote: I've recent fixed a few warnings in D here: https://github.com/D-Programming-Language/dmd/pull/3543 At the end of the thread I asked: Should I continue fixing GLUE, BACK and ROOT or focus on remaining warnings in DMD? but Walter has

Re: Voldemort declarations inside structs with ctor initialization

2014-05-27 Thread Idan Arye via Digitalmars-d
On Tuesday, 27 May 2014 at 20:02:34 UTC, Meta wrote: On Tuesday, 27 May 2014 at 19:39:23 UTC, Idan Arye wrote: Hashing the function body is not enough - you must also consider the closure! template Template(alias func){ bool Template=func(); } void foo(){ int a;

Re: auto-tester hardware donations

2014-05-27 Thread Walter Bright via Digitalmars-d
On 5/24/2014 10:57 AM, Brad Roberts via Digitalmars-d wrote: At this point, I'd MUCH rather have hardware that doesn't live in my house. I've got too many already. That's why god made garages :-)

Re: Dev. Collaboration

2014-05-27 Thread chuck via Digitalmars-d
I like the specs. idea. The forum is at http://d-language-and-libs.proboards.com

Re: Voldemort declarations inside structs with ctor initialization

2014-05-27 Thread Meta via Digitalmars-d
On Tuesday, 27 May 2014 at 23:18:12 UTC, Idan Arye wrote: Well, it won't work for the example that opened this thread(converted to use lambdas). As for limiting the delegate version to ones that use @pure and @nogc, take another look at my example. The lambdas don't allocate anything so

D Language Version 3

2014-05-27 Thread Suminda Dharmasena via Digitalmars-d
Hi, D2 has been out for a while. Looking to see what the roadmap is like towards D3? Suminda

Re: D Language Version 3

2014-05-27 Thread Daniel Murphy via Digitalmars-d
Suminda Dharmasena wrote in message news:dgufafcodplrxrqcg...@forum.dlang.org... Hi, D2 has been out for a while. Looking to see what the roadmap is like towards D3? Suminda No.

Re: radical ideas about GC and ARC : need to be time driven?

2014-05-27 Thread Kagamin via Digitalmars-d
On Thursday, 15 May 2014 at 12:28:47 UTC, Marc Schütz wrote: But as long as there can be false pointers, no matter how improbable, there can be no guaranteed destruction, which was my point. Maybe it becomes acceptable at very low probabilities, but it's still a gamble... A couple of not

Re: Does D support plugins with dll written in D ?

2014-05-27 Thread Kagamin via Digitalmars-d
http://wiki.dlang.org/Win32_DLLs_in_D - maybe, it's of some help

Re: Does D support plugins with dll written in D ?

2014-05-27 Thread Olivier Pisano via Digitalmars-d
Hello :) AFAIK, Higher-level library support is planned for next release (v2.066) [1]. Meanwhile, you'll have to rely on your own exported factory functions to create objects instead of Object.factory(). 1 : http://wiki.dlang.org/Agenda#high-level_shared_library_support

Re: Programming a Game in D? :D

2014-05-27 Thread David via Digitalmars-d-learn
On Saturday, 24 May 2014 at 08:54:53 UTC, ponce wrote: Hi David, Learning programming, learning D and learning 3D are 3 significant endeavours. You might want to begin with http://www.basic4gl.net/ which will get you going with 3D, quite a topic in itself. Then learn D regardless :) So,

  1   2   >