Re: Tkd - Cross platform GUI toolkit based on Tcl/Tk

2014-05-06 Thread Suliman via Digitalmars-d-announce
Am I right understand that before using Tkd I should install Tcl/Tk ? I tried to build simple project with dub and got error that system do not have tcl86.DLL

Re: Tkd - Cross platform GUI toolkit based on Tcl/Tk

2014-05-06 Thread Gary Willoughby via Digitalmars-d-announce
On Tuesday, 6 May 2014 at 07:33:55 UTC, Suliman wrote: Am I right understand that before using Tkd I should install Tcl/Tk ? I tried to build simple project with dub and got error that system do not have tcl86.DLL Yes. All is explained in the dependencies section in the readme text.

Re: My D book is now officially coming soon

2014-05-06 Thread Adam D. Ruppe via Digitalmars-d-announce
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. Each one is shown through examples (with a few exceptions where I couldn't think of a good example but wanted to discuss the principle behind it anyway):

Re: My D book is now officially coming soon

2014-05-06 Thread Szymon Gatner via Digitalmars-d-announce
On Tuesday, 6 May 2014 at 13:12:01 UTC, 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. Each one is shown through examples (with a few exceptions where I couldn't think of a good example

Re: My D book is now officially coming soon

2014-05-06 Thread Adam D. Ruppe via Digitalmars-d-announce
On Tuesday, 6 May 2014 at 13:19:09 UTC, Szymon Gatner wrote: Holy s**t, that is a lot! How did you manage to fit all this in 337 pages?! Each individual item tended to only be about 3 pages, some shorter, a few longer (I had a fair chunk to say about ranges and reflection, not so much to say

Re: My D book is now officially coming soon

2014-05-06 Thread Chris via Digitalmars-d-announce
On Tuesday, 6 May 2014 at 13:12:01 UTC, 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. Each one is shown through examples (with a few exceptions where I couldn't think of a good example

Re: My D book is now officially coming soon

2014-05-06 Thread Szymon Gatner via Digitalmars-d-announce
On Tuesday, 6 May 2014 at 13:39:51 UTC, Adam D. Ruppe wrote: On Tuesday, 6 May 2014 at 13:19:09 UTC, Szymon Gatner wrote: Holy s**t, that is a lot! How did you manage to fit all this in 337 pages?! Each individual item tended to only be about 3 pages, some shorter, a few longer (I had a fair

Re: My D book is now officially coming soon

2014-05-06 Thread Adam D. Ruppe via Digitalmars-d-announce
On Tuesday, 6 May 2014 at 15:28:01 UTC, Szymon Gatner wrote: Everything sounds great, really can't wait. Coming from C++ I am really interested in resource management. I still can't find myself in non-deterministic d-tor / GC world (and recent discussion on removal of d-tors entirely isn't

Re: My D book is now officially coming soon

2014-05-06 Thread Andrei Alexandrescu via Digitalmars-d-announce
On 3/3/14, 8:37 AM, Adam D. Ruppe wrote: As some of you might know, I've been working on a D book over the last few months. It is now available as coming soon on the publisher's website: http://www.packtpub.com/discover-advantages-of-programming-in-d-cookbook/book I just agreed with Packt to

Re: My D book is now officially coming soon

2014-05-06 Thread via Digitalmars-d-announce
On Monday, 5 May 2014 at 12:34:18 UTC, Adam D. Ruppe wrote: We're publishing in about two weeks now so it won't be long until the real thing is out anyway! Just preordered the ebook, waiting to read that :)

Re: Tkd - Cross platform GUI toolkit based on Tcl/Tk

2014-05-06 Thread Gary Willoughby via Digitalmars-d-announce
On Monday, 5 May 2014 at 16:17:34 UTC, Nick Sabalausky wrote: I did find file a couple issues though: https://github.com/nomad-software/tcltk/issues/4 https://github.com/nomad-software/tkd/issues/11 Fixed.

Re: My D book is now officially coming soon

2014-05-06 Thread Nick Sabalausky via Digitalmars-d-announce
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!

Re: Tkd - Cross platform GUI toolkit based on Tcl/Tk

2014-05-06 Thread Rémy Mouëza via Digitalmars-d-announce
tile-qt with Qt 4.8+ uses invalid pixmaps. My fix: adding in generic/tileQt_QApp.cpp line 60, 1st line of TileQt_CreateQApp() : QApplication::setGraphicsSystem(native); The native theme is not used on the scrollbars nor on the menus (and a few other widgets). On 05/05/2014 12:03 AM,

Re: Running Phobos unit tests in threads: I have data

2014-05-06 Thread Atila Neves via Digitalmars-d
https://issues.dlang.org/show_bug.cgi?id=12708 On Sunday, 4 May 2014 at 16:07:30 UTC, Andrei Alexandrescu wrote: On 5/4/14, 1:44 AM, Atila Neves wrote: On Saturday, 3 May 2014 at 22:46:03 UTC, Andrei Alexandrescu wrote: On 5/3/14, 2:42 PM, Atila Neves wrote: gdc gave _very_ different results.

Re: More radical ideas about gc and reference counting

2014-05-06 Thread HaraldZealot via Digitalmars-d
I have to say that all this discussion (more precisely the understanding on the side of key developers) make me very upset. It's good that Andrei agreed with impossibility of the harebrained disallowing of the class destructors. But I was very surprise, that so thought go to such head,

Re: Report generator for D

2014-05-06 Thread Rikki Cattermole via Digitalmars-d
On Tuesday, 6 May 2014 at 04:34:26 UTC, Sergey wrote: Please, help... I want to use D (Vibe.d) to create a web client to access the database of medical institutions. Tell me, please, what about the reports (report generator)? I need to upload reports in DOC and XLS. Thanks in advance.

Re: A new trait to retrieve doc comments (if available).

2014-05-06 Thread Jacob Carlborg via Digitalmars-d
On 06/05/14 02:49, Mason McGill wrote: **I'm fairly new to D, so let me know if this belongs in another thread.** I'd like to contribute a new feature to the DMD front-end, and I'd appreciate some feedback on the design before I start on a pull request. Feature: `__traits(comment,

Re: FYI - mo' work on std.allocator

2014-05-06 Thread Marco Leise via Digitalmars-d
Am Mon, 05 May 2014 21:13:10 +0400 schrieb Dmitry Olshansky dmitry.o...@gmail.com: 05-May-2014 20:57, Marco Leise пишет: That sounds like a more complicated topic than anything I had in mind. I think a »std.virtualmemory« module should already implement all the primitives in a portable

Re: More radical ideas about gc and reference counting

2014-05-06 Thread Jacob Carlborg via Digitalmars-d
On 06/05/14 05:51, HaraldZealot wrote: Manu, can you direct me what is ARC? This abbreviation is very misgooglly. Automatic Reference Counting. Like regular RC but the compiler automatically inserts calls to release/free. -- /Jacob Carlborg

Re: Report generator for D

2014-05-06 Thread simendsjo via Digitalmars-d
On 05/06/2014 08:08 AM, Rikki Cattermole wrote: On Tuesday, 6 May 2014 at 04:34:26 UTC, Sergey wrote: Please, help... I want to use D (Vibe.d) to create a web client to access the database of medical institutions. Tell me, please, what about the reports (report generator)? I need to upload

Re: More radical ideas about gc and reference counting

2014-05-06 Thread Jacob Carlborg via Digitalmars-d
On 06/05/14 08:07, HaraldZealot wrote: I notice that I view only part of problem, can anybody link or describe me completely state and problems of current garbage collection and other resource management? It help me in finding of existence solution (at least theoretical). The major issue with

Porting DMD compiler to haiku OS

2014-05-06 Thread iridium via Digitalmars-d
Good day. Sorry for my bad english. I'm trying to build the dmd compiler to Haiku OS. At compile time get the following error: http://itmages.ru/image/view/1652327/b501e37b What could be the reason? Thanks.

Re: More radical ideas about gc and reference counting

2014-05-06 Thread Manu via Digitalmars-d
On 6 May 2014 14:09, Andrei Alexandrescu via Digitalmars-d digitalmars-d@puremagic.com wrote: On 5/5/14, 8:19 PM, Manu via Digitalmars-d wrote: On 5 May 2014 14:09, Andrei Alexandrescu via Digitalmars-d digitalmars-d@puremagic.com wrote: This is nice, but on the face of it it's just this:

Re: More radical ideas about gc and reference counting

2014-05-06 Thread via Digitalmars-d
On Tuesday, 6 May 2014 at 06:07:41 UTC, HaraldZealot wrote: I notice that I view only part of problem, can anybody link or describe me completely state and problems of current garbage collection and other resource management? It help me in finding of existence solution (at least theoretical).

Re: Report generator for D

2014-05-06 Thread Rikki Cattermole via Digitalmars-d
On Tuesday, 6 May 2014 at 06:28:20 UTC, simendsjo wrote: On 05/06/2014 08:08 AM, Rikki Cattermole wrote: On Tuesday, 6 May 2014 at 04:34:26 UTC, Sergey wrote: Please, help... I want to use D (Vibe.d) to create a web client to access the database of medical institutions. Tell me, please,

Re: More radical ideas about gc and reference counting

2014-05-06 Thread Manu via Digitalmars-d
On 6 May 2014 16:28, Jacob Carlborg via Digitalmars-d digitalmars-d@puremagic.com wrote: On 06/05/14 05:51, HaraldZealot wrote: Manu, can you direct me what is ARC? This abbreviation is very misgooglly. Automatic Reference Counting. Like regular RC but the compiler automatically inserts

Re: Report generator for D

2014-05-06 Thread Sergey via Digitalmars-d
On Tuesday, 6 May 2014 at 06:36:40 UTC, Rikki Cattermole wrote: On Tuesday, 6 May 2014 at 06:28:20 UTC, simendsjo wrote: On 05/06/2014 08:08 AM, Rikki Cattermole wrote: On Tuesday, 6 May 2014 at 04:34:26 UTC, Sergey wrote: Please, help... I want to use D (Vibe.d) to create a web client to

Re: Report generator for D

2014-05-06 Thread Sergey via Digitalmars-d
I found this http://xlslib.sourceforge.net/. Also, it hasn't been updated in over about two and a half years.

Re: Report generator for D

2014-05-06 Thread Rikki Cattermole via Digitalmars-d
On Tuesday, 6 May 2014 at 06:51:07 UTC, Sergey wrote: I found this http://xlslib.sourceforge.net/. Also, it hasn't been updated in over about two and a half years. Well in worse case scenario [0] its not like its not implementable from scratch :) Although I'd say have a go with the libs I gave

Re: Report generator for D

2014-05-06 Thread Daniel Kozák via Digitalmars-d
V Tue, 06 May 2014 06:51:02 + Sergey via Digitalmars-d digitalmars-d@puremagic.com napsáno: I found this http://xlslib.sourceforge.net/. Also, it hasn't been updated in over about two and a half years. This one does not work properly for large files.

Re: More radical ideas about gc and reference counting

2014-05-06 Thread via Digitalmars-d
On Tuesday, 6 May 2014 at 06:39:19 UTC, Ola Fosheim Grøstad wrote: a GC friendly set of D constructs where FFI is followed by programmer guaranteed postconditions (specified by library authors). Btw postcondition is the wrong term. In order to be robust need to specify how far into the GC

Re: More radical ideas about gc and reference counting

2014-05-06 Thread Paulo Pinto via Digitalmars-d
On Tuesday, 6 May 2014 at 03:40:47 UTC, Manu via Digitalmars-d wrote: On 3 May 2014 18:49, Benjamin Thaut via Digitalmars-d digitalmars-d@puremagic.com wrote: Am 30.04.2014 22:21, schrieb Andrei Alexandrescu: Walter and I have had a long chat in which we figured our current offering of

Re: Porting DMD compiler to haiku OS

2014-05-06 Thread Paulo Pinto via Digitalmars-d
On Tuesday, 6 May 2014 at 06:33:51 UTC, iridium wrote: Good day. Sorry for my bad english. I'm trying to build the dmd compiler to Haiku OS. At compile time get the following error: http://itmages.ru/image/view/1652327/b501e37b What could be the reason? Thanks. Have you already updated all

Re: Report generator for D

2014-05-06 Thread Sergey via Digitalmars-d
On Tuesday, 6 May 2014 at 07:06:09 UTC, Rikki Cattermole wrote: On Tuesday, 6 May 2014 at 06:51:07 UTC, Sergey wrote: I found this http://xlslib.sourceforge.net/. Also, it hasn't been updated in over about two and a half years. Well in worse case scenario [0] its not like its not

Re: More radical ideas about gc and reference counting

2014-05-06 Thread bearophile via Digitalmars-d
Paulo Pinto: Java Azul VM GC was already handling 1 TB in 2010. http://qconsf.com/sf2010/dl/qcon-sanfran-2010/slides/GilTene_GCNirvanaHighThroughputAndLowLatencyTogether.pdf GC is not the only way of doing automatic memory management, but this ongoing discussion steams more from D's current

Re: API

2014-05-06 Thread bearophile via Digitalmars-d
Brad Anderson: I like Adam's input range idea. It gives you the best of both worlds, I think. It clears the conflict between ints and lengths using an interface. I don't like it a lot. I think I'd like two differently named functions. I am not sure. One last thought. If array() accepted

Re: A new trait to retrieve doc comments (if available).

2014-05-06 Thread bearophile via Digitalmars-d
Mason McGill: Other implementations can choose to always evaluate it to . Other implementations have to give the ddostring as well. In D modules too have a ddoc string. Regarding comments on single variables, like this, I think they can be ignored for the moment, and added later with the

Re: Scenario: OpenSSL in D language, pros/cons

2014-05-06 Thread Timon Gehr via Digitalmars-d
On 05/05/2014 12:41 PM, Jonathan M Davis via Digitalmars-d wrote: Regardless, there's nothing fundamentally limited about @safe except for operations which are actually unsafe with regards to memory What does 'actually unsafe' mean? @safe will happily ban statements that will never 'actually'

Re: More radical ideas about gc and reference counting

2014-05-06 Thread Paulo Pinto via Digitalmars-d
On Tuesday, 6 May 2014 at 07:34:13 UTC, bearophile wrote: Paulo Pinto: Java Azul VM GC was already handling 1 TB in 2010. http://qconsf.com/sf2010/dl/qcon-sanfran-2010/slides/GilTene_GCNirvanaHighThroughputAndLowLatencyTogether.pdf GC is not the only way of doing automatic memory management,

Re: More radical ideas about gc and reference counting

2014-05-06 Thread HaraldZealot via Digitalmars-d
That experimental package idea that was discussed months ago comes to my mind again. Add that thing as exp.rational and have people report bugs or shortcomings to the original author. When it seems to be usable by everyone interested it can move into Phobos proper after the formal review (that

Re: Scenario: OpenSSL in D language, pros/cons

2014-05-06 Thread Jonathan M Davis via Digitalmars-d
On Tue, 06 May 2014 09:56:11 +0200 Timon Gehr via Digitalmars-d digitalmars-d@puremagic.com wrote: On 05/05/2014 12:41 PM, Jonathan M Davis via Digitalmars-d wrote: Regardless, there's nothing fundamentally limited about @safe except for operations which are actually unsafe with regards to

Julia vs. D?

2014-05-06 Thread Chris via Digitalmars-d
I recently came across this article http://www.wired.com/2014/02/julia/. On the Julia homepage there are some benchmarks times relative to C. I know that bearophile has mentioned Julia several times on this forum. Has anyone compared D's vs Julia's performance as well as design features?

Re: More radical ideas about gc and reference counting

2014-05-06 Thread HaraldZealot via Digitalmars-d
The major issue with the garbage collector is that it's not guaranteed to run a collection. When a collection is run the GC will call the destructors for the objects it collects. If there's no guarantee a collection is run there can be no guarantee that destructors are called. A collection

Re: Porting DMD compiler to haiku OS

2014-05-06 Thread iridium via Digitalmars-d
On Tuesday, 6 May 2014 at 07:23:47 UTC, Paulo Pinto wrote: On Tuesday, 6 May 2014 at 06:33:51 UTC, iridium wrote: Good day. Sorry for my bad english. I'm trying to build the dmd compiler to Haiku OS. At compile time get the following error: http://itmages.ru/image/view/1652327/b501e37b What

Re: Scenario: OpenSSL in D language, pros/cons

2014-05-06 Thread JR via Digitalmars-d
On Monday, 5 May 2014 at 15:01:05 UTC, Andrei Alexandrescu wrote: On 5/5/14, 2:32 AM, JR wrote: On Sunday, 4 May 2014 at 21:18:24 UTC, Daniele M. wrote: And then comes my next question: except for that malloc-hack, would it have been possible to write it in @safe D? I guess that if not,

Re: Scenario: OpenSSL in D language, pros/cons

2014-05-06 Thread Rikki Cattermole via Digitalmars-d
On Monday, 5 May 2014 at 14:59:13 UTC, Etienne wrote: On 2014-05-04 4:34 AM, Daniele M. wrote: I have read this excellent article by David A. Wheeler: http://www.dwheeler.com/essays/heartbleed.html And since D language was not there, I mentioned it to him as a possible good candidate due to

Re: FYI - mo' work on std.allocator

2014-05-06 Thread via Digitalmars-d
On Tuesday, 6 May 2014 at 00:30:10 UTC, Brian Schott wrote: On Sunday, 27 April 2014 at 05:43:07 UTC, Andrei Alexandrescu wrote: Added SbrkRegion, SimpleBlocklist, and Blocklist. http://erdani.com/d/phobos-prerelease/std_allocator.html#.SbrkRegion

Re: More radical ideas about gc and reference counting

2014-05-06 Thread via Digitalmars-d
On Tuesday, 6 May 2014 at 06:07:41 UTC, HaraldZealot wrote: I have to say that all this discussion (more precisely the understanding on the side of key developers) make me very upset. It's good that Andrei agreed with impossibility of the harebrained disallowing of the class destructors. But

Re: Enforced @nogc for dtors?

2014-05-06 Thread via Digitalmars-d
On Monday, 5 May 2014 at 18:32:30 UTC, Brian Rogoff wrote: On Monday, 5 May 2014 at 17:46:35 UTC, Orvid King via Digitalmars-d wrote: Destructors and finalizers are the same thing. That is exactly the point that I am arguing against. That they are confused in D (or 'unified', if you think is

Re: More radical ideas about gc and reference counting

2014-05-06 Thread Manu via Digitalmars-d
On 6 May 2014 16:33, Jacob Carlborg via Digitalmars-d digitalmars-d@puremagic.com wrote: On 06/05/14 08:07, HaraldZealot wrote: I notice that I view only part of problem, can anybody link or describe me completely state and problems of current garbage collection and other resource management?

Re: Why not memory specific destructors?

2014-05-06 Thread via Digitalmars-d
On Monday, 5 May 2014 at 18:08:22 UTC, Frustrated wrote: So, instead of removing destructors why not have multiple types? If the object is manually allocated then we can guarantee the destructor will be called when the object is free'ed. But basically, since they would be different types of

Re: Julia vs. D?

2014-05-06 Thread bearophile via Digitalmars-d
Paulo Pinto: You can think of Julia as a dynamic language similar to Python, with optional typing and for such a young language, a quite good JIT compiler backed by the LLVM backend. Unlike dynamic languages, at running time all variables are strongly typed. Bye, bearophile

Re: Julia vs. D?

2014-05-06 Thread Paulo Pinto via Digitalmars-d
On Tuesday, 6 May 2014 at 09:11:30 UTC, Chris wrote: I recently came across this article http://www.wired.com/2014/02/julia/. On the Julia homepage there are some benchmarks times relative to C. I know that bearophile has mentioned Julia several times on this forum. Has anyone compared D's vs

Re: Julia vs. D?

2014-05-06 Thread Chris via Digitalmars-d
On Tuesday, 6 May 2014 at 11:20:33 UTC, Paulo Pinto wrote: On Tuesday, 6 May 2014 at 09:11:30 UTC, Chris wrote: I recently came across this article http://www.wired.com/2014/02/julia/. On the Julia homepage there are some benchmarks times relative to C. I know that bearophile has mentioned

Re: More radical ideas about gc and reference counting

2014-05-06 Thread Manu via Digitalmars-d
On 6 May 2014 17:16, Paulo Pinto via Digitalmars-d digitalmars-d@puremagic.com wrote: On Tuesday, 6 May 2014 at 03:40:47 UTC, Manu via Digitalmars-d wrote: Java Azul VM GC was already handling 1 TB in 2010. Is D compatible with this GC? And how does it go in an environment with 128mb of ram,

Re: Enforced @nogc for dtors?

2014-05-06 Thread via Digitalmars-d
On Monday, 5 May 2014 at 18:32:30 UTC, Brian Rogoff wrote: On Monday, 5 May 2014 at 17:46:35 UTC, Orvid King via Digitalmars-d wrote: Destructors and finalizers are the same thing. That is exactly the point that I am arguing against. That they are confused in D (or 'unified', if you think is

Re: More radical ideas about gc and reference counting

2014-05-06 Thread Paulo Pinto via Digitalmars-d
On Tuesday, 6 May 2014 at 10:58:14 UTC, Manu via Digitalmars-d wrote: On 6 May 2014 16:33, Jacob Carlborg via Digitalmars-d digitalmars-d@puremagic.com wrote: On 06/05/14 08:07, HaraldZealot wrote: I notice that I view only part of problem, can anybody link or describe me completely state and

Re: More radical ideas about gc and reference counting

2014-05-06 Thread Manu via Digitalmars-d
On 6 May 2014 21:39, Paulo Pinto via Digitalmars-d digitalmars-d@puremagic.com wrote: On Tuesday, 6 May 2014 at 10:58:14 UTC, Manu via Digitalmars-d wrote: On 6 May 2014 16:33, Jacob Carlborg via Digitalmars-d digitalmars-d@puremagic.com wrote: On 06/05/14 08:07, HaraldZealot wrote: I

Re: More radical ideas about gc and reference counting

2014-05-06 Thread Wyatt via Digitalmars-d
On Tuesday, 6 May 2014 at 06:39:45 UTC, Manu via Digitalmars-d wrote: The Obj-C thing as an example. Granted, it's a huge feature and has extensive implications. The Authors have said themselves that they agree it's not 'ready' for inclusion... so, what? It sits and rots? I think it needs an

Re: More radical ideas about gc and reference counting

2014-05-06 Thread Paulo Pinto via Digitalmars-d
On Tuesday, 6 May 2014 at 12:05:10 UTC, Manu via Digitalmars-d wrote: On 6 May 2014 21:39, Paulo Pinto via Digitalmars-d digitalmars-d@puremagic.com wrote: On Tuesday, 6 May 2014 at 10:58:14 UTC, Manu via Digitalmars-d wrote: On 6 May 2014 16:33, Jacob Carlborg via Digitalmars-d

Re: More radical ideas about gc and reference counting

2014-05-06 Thread Michel Fortin via Digitalmars-d
On 2014-05-06 12:04:55 +, Manu via Digitalmars-d digitalmars-d@puremagic.com said: Notably, I didn't say 'phones'. Although I think they do generally fall into this category, I think they're drifting away. Since they run full OS stack's, it's typical to have unknown amounts of free memory

Re: Enforced @nogc for dtors?

2014-05-06 Thread Orvid King via Digitalmars-d
I actually don't think finalizers are an issue in the GC, but I do agree that there should be a way to ensure that a value is deterministically finalized. The thing is though, that's currently possible by simply declaring the value as a struct, unless it's been heap allocated, in which case we do

Re: More radical ideas about gc and reference counting

2014-05-06 Thread via Digitalmars-d
On Tuesday, 6 May 2014 at 11:35:53 UTC, Manu via Digitalmars-d wrote: Please, make suggestions! It's been years, and I'm still waiting to hear another realistic proposal. 1. Use @nogc and C++ style allocation for hard real time threads (render logic). 2. Use segmented GC for soft real time

Re: API

2014-05-06 Thread Orvid King via Digitalmars-d
On 5/5/14, Adam D. Ruppe via Digitalmars-d digitalmars-d@puremagic.com wrote: On Tuesday, 6 May 2014 at 00:10:36 UTC, Andrei Alexandrescu wrote: 1. Follow the new int[n] convention: 2. Follow the [ literal ] convention: We could combine these pretty easily: struct Length { size_t length; }

Re: Why not memory specific destructors?

2014-05-06 Thread HaraldZealot via Digitalmars-d
Destructors of the first kind are usually called just destructors and are used for resource management, and the second kind are called finalizers. These are useful for implementing weak references, caching, and various other things where you don't require objects to be destroyed at a certain

Re: More radical ideas about gc and reference counting

2014-05-06 Thread via Digitalmars-d
On Tuesday, 6 May 2014 at 12:21:55 UTC, Paulo Pinto wrote: As for the gaming world, I don't really have the required experience to talk much about it. Just doing the heads up that D GC != GC that many of us use. I very much appreciate the links you provide about different GC solutions, and

Re: API

2014-05-06 Thread Steven Schveighoffer via Digitalmars-d
On Mon, 05 May 2014 20:10:35 -0400, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: So I'm looking at creation functions and in particular creation functions for arrays. 1. Follow the new int[n] convention: auto a = allok.make!(int[])(42); assert(a.length == 42);

Re: Julia vs. D?

2014-05-06 Thread Ary Borenszweig via Digitalmars-d
On 5/6/14, 8:23 AM, bearophile wrote: Paulo Pinto: You can think of Julia as a dynamic language similar to Python, with optional typing and for such a young language, a quite good JIT compiler backed by the LLVM backend. Unlike dynamic languages, at running time all variables are strongly

Re: Julia vs. D?

2014-05-06 Thread Chris via Digitalmars-d
On Tuesday, 6 May 2014 at 13:25:56 UTC, Ary Borenszweig wrote: On 5/6/14, 8:23 AM, bearophile wrote: Paulo Pinto: You can think of Julia as a dynamic language similar to Python, with optional typing and for such a young language, a quite good JIT compiler backed by the LLVM backend.

Re: Enforced @nogc for dtors?

2014-05-06 Thread via Digitalmars-d
On Tuesday, 6 May 2014 at 12:36:04 UTC, Orvid King via Digitalmars-d wrote: possible by simply declaring the value as a struct, unless it's been heap allocated, in which case we do the best we can. Best effort is worse than no effort...

Re: Julia vs. D?

2014-05-06 Thread bearophile via Digitalmars-d
Chris: That would increase the security during runtime (plugins, libraries, crackers). Yes, and also gives almost native performance. Bye, bearophile

Re: Scenario: OpenSSL in D language, pros/cons

2014-05-06 Thread Andrei Alexandrescu via Digitalmars-d
On 5/6/14, 2:37 AM, JR wrote: Apologies for the negativity. It's not that much of a deal, but your code will have to be very unreliant upon phobos to be completely @safe. It's a huge deal. Most of phobos should be @safe or @trusted! Please submit everything you find as bugs. Thanks! --

Re: More radical ideas about gc and reference counting

2014-05-06 Thread Andrei Alexandrescu via Digitalmars-d
On 5/5/14, 11:07 PM, HaraldZealot wrote: I have to say that all this discussion (more precisely the understanding on the side of key developers) make me very upset. This is a misunderstanding of the situation. This is brainstorming. There has to be a public place in which ideas can be

Re: Julia vs. D?

2014-05-06 Thread Brian Rogoff via Digitalmars-d
On Tuesday, 6 May 2014 at 11:20:33 UTC, Paulo Pinto wrote: On Tuesday, 6 May 2014 at 09:11:30 UTC, Chris wrote: I recently came across this article http://www.wired.com/2014/02/julia/. On the Julia homepage there are some benchmarks times relative to C. I know that bearophile has mentioned

Re: More radical ideas about gc and reference counting

2014-05-06 Thread John Colvin via Digitalmars-d
On Tuesday, 6 May 2014 at 14:29:01 UTC, Andrei Alexandrescu wrote: On 5/5/14, 11:07 PM, HaraldZealot wrote: I have to say that all this discussion (more precisely the understanding on the side of key developers) make me very upset. This is a misunderstanding of the situation. This is

Re: More radical ideas about gc and reference counting

2014-05-06 Thread HaraldZealot via Digitalmars-d
This is a misunderstanding of the situation. This is brainstorming. There has to be a public place in which ideas can be discussed freely, no matter how radical. This is another misunderstanding :)). Not radicalism upset me, but proposal to create one more hole instead exist hole from man,

Re: More radical ideas about gc and reference counting

2014-05-06 Thread HaraldZealot via Digitalmars-d
This is another misunderstanding :)). Not radicalism upset me, but proposal to create one more hole instead exist hole from man, that touched me solidness in code by his book. It were surprising. But it's only emotion. But yes, It may possible as troll mode in brainstorming.

Re: More radical ideas about gc and reference counting

2014-05-06 Thread Manu via Digitalmars-d
On 6 May 2014 22:30, Michel Fortin via Digitalmars-d digitalmars-d@puremagic.com wrote: On 2014-05-06 12:04:55 +, Manu via Digitalmars-d digitalmars-d@puremagic.com said: Notably, I didn't say 'phones'. Although I think they do generally fall into this category, I think they're drifting

Re: More radical ideas about gc and reference counting

2014-05-06 Thread Manu via Digitalmars-d
On 6 May 2014 22:17, Wyatt via Digitalmars-d digitalmars-d@puremagic.com wrote: On Tuesday, 6 May 2014 at 06:39:45 UTC, Manu via Digitalmars-d wrote: The Obj-C thing as an example. Granted, it's a huge feature and has extensive implications. The Authors have said themselves that they agree

Re: More radical ideas about gc and reference counting

2014-05-06 Thread Andrei Alexandrescu via Digitalmars-d
On 5/5/14, 11:39 PM, Manu via Digitalmars-d wrote: On 6 May 2014 14:09, Andrei Alexandrescu via Digitalmars-d digitalmars-d@puremagic.com wrote: On 5/5/14, 8:19 PM, Manu via Digitalmars-d wrote: On 5 May 2014 14:09, Andrei Alexandrescu via Digitalmars-d So it would be nice if you reviewed

Re: More radical ideas about gc and reference counting

2014-05-06 Thread Andrei Alexandrescu via Digitalmars-d
On 5/6/14, 8:43 AM, Manu via Digitalmars-d wrote: On 6 May 2014 22:17, Wyatt via Digitalmars-d digitalmars-d@puremagic.com wrote: On Tuesday, 6 May 2014 at 06:39:45 UTC, Manu via Digitalmars-d wrote: The Obj-C thing as an example. Granted, it's a huge feature and has extensive implications.

Re: More radical ideas about gc and reference counting

2014-05-06 Thread Andrei Alexandrescu via Digitalmars-d
On 5/6/14, 8:19 AM, HaraldZealot wrote: This is a misunderstanding of the situation. This is brainstorming. There has to be a public place in which ideas can be discussed freely, no matter how radical. This is another misunderstanding :)). Not radicalism upset me, but proposal to create one

Re: Parallel execution of unittests

2014-05-06 Thread Bruno Medeiros via Digitalmars-d
On 30/04/2014 16:43, Andrei Alexandrescu wrote: Hello, A coworker mentioned the idea that unittests could be run in parallel (using e.g. a thread pool). There has been a lot of disagreement in this discussion of whether unittests blocks should run in parallel or not. Not everyone is

Re: More radical ideas about gc and reference counting

2014-05-06 Thread John Colvin via Digitalmars-d
On Tuesday, 6 May 2014 at 15:48:59 UTC, Andrei Alexandrescu wrote: On 5/6/14, 8:43 AM, Manu via Digitalmars-d wrote: On 6 May 2014 22:17, Wyatt via Digitalmars-d digitalmars-d@puremagic.com wrote: On Tuesday, 6 May 2014 at 06:39:45 UTC, Manu via Digitalmars-d wrote: The Obj-C thing as an

Advertising D Cookbook on http://dlang.org or http://wiki.dlang.org/Books

2014-05-06 Thread Andrei Alexandrescu via Digitalmars-d
Hello, Walter and I got asked by Packt Publishing about advertising Adam D. Ruppe's D Cookbook on http://dlang.org/ or http://wiki.dlang.org/Books. They'd be paying 2-5% of the royalties depending on the ads' prominence. I estimate that would be low in absolute numbers, and would probably

Re: Parallel execution of unittests

2014-05-06 Thread Bruno Medeiros via Digitalmars-d
On 30/04/2014 20:23, Dicebot wrote: On Wednesday, 30 April 2014 at 18:19:34 UTC, Jonathan M Davis via Digitalmars-d wrote: On Wed, 30 Apr 2014 17:58:34 + Atila Neves via Digitalmars-d digitalmars-d@puremagic.com wrote: Unit tests though, by definition (and I'm aware there are more than

Re: Parallel execution of unittests

2014-05-06 Thread Bruno Medeiros via Digitalmars-d
On 01/05/2014 18:12, Steven Schveighoffer wrote: On Thu, 01 May 2014 10:01:19 -0400, Atila Neves atila.ne...@gmail.com wrote: On Thursday, 1 May 2014 at 11:44:12 UTC, w0rp wrote: On Thursday, 1 May 2014 at 11:05:55 UTC, Jacob Carlborg wrote: On 2014-04-30 23:35, Andrei Alexandrescu wrote:

Re: Parallel execution of unittests

2014-05-06 Thread Bruno Medeiros via Digitalmars-d
On 01/05/2014 08:18, Dicebot wrote: On Wednesday, 30 April 2014 at 21:49:06 UTC, Jonathan M Davis via Digitalmars-d wrote: On Wed, 30 Apr 2014 21:09:14 +0100 Russel Winder via Digitalmars-d digitalmars-d@puremagic.com wrote: On Wed, 2014-04-30 at 11:19 -0700, Jonathan M Davis via

Re: Advertising D Cookbook on http://dlang.org or http://wiki.dlang.org/Books

2014-05-06 Thread Piotrek via Digitalmars-d
Hi, I see no problem with advertising this book if the publisher's bussness isn't shady and the ad is only a pure (let's keep it the D way) link - I mean no eveil spying tech behind that or something similar. At first look this seems to be a great work and deserves advertising. I hope

Re: API

2014-05-06 Thread Yota via Digitalmars-d
On Tuesday, 6 May 2014 at 00:10:36 UTC, Andrei Alexandrescu wrote: So I'm looking at creation functions and in particular creation functions for arrays. 1. Follow the new int[n] convention: auto a = allok.make!(int[])(42); assert(a.length == 42); assert(a.equal(repeat(0, 42)); 2. Follow the

Re: Julia vs. D?

2014-05-06 Thread Ary Borenszweig via Digitalmars-d
On 5/6/14, 10:41 AM, Chris wrote: On Tuesday, 6 May 2014 at 13:25:56 UTC, Ary Borenszweig wrote: On 5/6/14, 8:23 AM, bearophile wrote: Paulo Pinto: You can think of Julia as a dynamic language similar to Python, with optional typing and for such a young language, a quite good JIT compiler

Re: Advertising D Cookbook on http://dlang.org or http://wiki.dlang.org/Books

2014-05-06 Thread w0rp via Digitalmars-d
On Tuesday, 6 May 2014 at 16:13:34 UTC, Andrei Alexandrescu wrote: Hello, Walter and I got asked by Packt Publishing about advertising Adam D. Ruppe's D Cookbook on http://dlang.org/ or http://wiki.dlang.org/Books. They'd be paying 2-5% of the royalties depending on the ads' prominence. I

Re: More radical ideas about gc and reference counting

2014-05-06 Thread Dicebot via Digitalmars-d
On Tuesday, 6 May 2014 at 15:52:10 UTC, John Colvin wrote: On Tuesday, 6 May 2014 at 15:48:59 UTC, Andrei Alexandrescu I can't seem to find simd on our dub site http://code.dlang.org/search?q=simd. Did you put it there under another name? Andrei I don't think it's there. I would love if it

Re: Advertising D Cookbook on http://dlang.org or http://wiki.dlang.org/Books

2014-05-06 Thread Dejan Lekic via Digitalmars-d
Andrei Alexandrescu wrote: Hello, Walter and I got asked by Packt Publishing about advertising Adam D. Ruppe's D Cookbook on http://dlang.org/ or http://wiki.dlang.org/Books. They'd be paying 2-5% of the royalties depending on the ads' prominence. I estimate that would be low in

Re: Parallel execution of unittests

2014-05-06 Thread Dicebot via Digitalmars-d
On Monday, 5 May 2014 at 18:58:37 UTC, Andrei Alexandrescu wrote: On 5/5/14, 11:47 AM, Dicebot wrote: On Monday, 5 May 2014 at 18:29:40 UTC, Andrei Alexandrescu wrote: My understanding here is you're trying to make dogma out of engineering choices that may vary widely across projects and

Re: API

2014-05-06 Thread Andrei Alexandrescu via Digitalmars-d
On 5/5/14, 5:10 PM, Andrei Alexandrescu wrote: So I'm looking at creation functions and in particular creation functions for arrays. [snip] A few thoughts on the ideas so far (awesome ones, thanks!). Credit is implied to the respective posters. struct Length { size_t length; }

Re: More radical ideas about gc and reference counting

2014-05-06 Thread Manu via Digitalmars-d
On 7 May 2014 01:46, Andrei Alexandrescu via Digitalmars-d digitalmars-d@puremagic.com wrote: On 5/5/14, 11:39 PM, Manu via Digitalmars-d wrote: On 6 May 2014 14:09, Andrei Alexandrescu via Digitalmars-d digitalmars-d@puremagic.com wrote: On 5/5/14, 8:19 PM, Manu via Digitalmars-d wrote:

Re: Julia vs. D?

2014-05-06 Thread Dejan Lekic via Digitalmars-d
bearophile wrote: Chris: That would increase the security during runtime (plugins, libraries, crackers). Yes, and also gives almost native performance. Bye, bearophile One can argue that every modern JIT achieves almost native performance ... -- http://dejan.lekic.org

Re: More radical ideas about gc and reference counting

2014-05-06 Thread Manu via Digitalmars-d
Missed one... _ On 7 May 2014 01:46, Andrei Alexandrescu via Digitalmars-d digitalmars-d@puremagic.com wrote: On 5/5/14, 11:39 PM, Manu via Digitalmars-d wrote: Well, in phobos, just approve 'exp' which has been raised countless times. I've got contributions that should be in exp, but

Re: More radical ideas about gc and reference counting

2014-05-06 Thread ponce via Digitalmars-d
On Tuesday, 6 May 2014 at 15:43:22 UTC, Manu via Digitalmars-d wrote: I think it's safe to attribute this almost entirely to the fact it exists in my fork where nobody will find it, rather than 'exp', where people can still report usage experience, feedback, and keep me on track. As other

  1   2   3   >