Re: Bounty for -minimal compiler flag

2014-02-16 Thread Jacob Carlborg
On Sunday, 16 February 2014 at 02:57:25 UTC, Steven Schveighoffer wrote: New is not the issue. The expectation, when I write my class, that it will be cleaned up by the GC, is the issue. I remember this little nugget of paradox from the documentation of classes: This means that when the

Re: Mono-D v1.5.2 - Completion improvements, dub support fixes

2014-02-16 Thread Rene Zwanenburg
On Saturday, 15 February 2014 at 20:28:03 UTC, Alexander Bothe wrote: 1) On which OS are you working? Windows 7 64 bit 2) What are your include paths? I'm using the default install directory: C:\D\dmd2\src\druntime\import C:\D\dmd2\src\phobos 3) Are those paths put into the 'default'

Re: Bounty for -minimal compiler flag

2014-02-16 Thread Denis Koroskin
On Sunday, 16 February 2014 at 05:27:07 UTC, Steven Schveighoffer wrote: On Sat, 15 Feb 2014 23:53:19 -0500, Denis Koroskin 2kor...@gmail.com wrote: On Sunday, 16 February 2014 at 02:57:25 UTC, Steven Schveighoffer wrote: I think that the best and quickest approach at this time is to

Re: Bounty for -minimal compiler flag

2014-02-16 Thread Jacob Carlborg
On Sunday, 16 February 2014 at 11:43:22 UTC, Jacob Carlborg wrote: In D1 Tango added a new method, dispose, to Object. This method is called when an object is destroyed either when calling delete or when going out of scope for scope declared objects. Forgot to say, other GC objects are

Re: Mono-D v1.5.2 - Completion improvements, dub support fixes

2014-02-16 Thread extrawurst
On Sunday, 16 February 2014 at 11:49:08 UTC, Rene Zwanenburg wrote: I can't seem to find where to add include paths in the project settings.. Since you are using dub, you simply define those in the dub package: http://code.dlang.org/package-format

Re: Mono-D v1.5.2 - Completion improvements, dub support fixes

2014-02-16 Thread Arjan
On Sunday, 16 February 2014 at 11:49:08 UTC, Rene Zwanenburg wrote: On Saturday, 15 February 2014 at 20:28:03 UTC, Alexander Bothe 5) Could you pastebin me your last log file(s) please? (You can open the folder via 'Help' menu - Open Log directory) Parts of the log file is Dutch (OS

Re: Mono-D v1.5.2 - Completion improvements, dub support fixes

2014-02-16 Thread Alexander Bothe
On Sunday, 16 February 2014 at 11:49:08 UTC, Rene Zwanenburg wrote: 5) Could you pastebin me your last log file(s) please? (You can open the folder via 'Help' menu - Open Log directory) Parts of the log file is Dutch (OS language), Xamarin Studio language is set to English but most of the

Re: Bounty for -minimal compiler flag

2014-02-16 Thread Elie Morisse
On Thursday, 13 February 2014 at 23:14:20 UTC, 1100110 wrote: I think it's about time I gave back to this wonderful community. I'm offering a $50 bounty on this. (Preferably Bitcoins, but I'll use bountysource if desired.) rules: Has to be called -minimal Has to fulfill Walter's original post.

Re: Bounty for -minimal compiler flag

2014-02-16 Thread Paulo Pinto
Am 16.02.2014 17:18, schrieb Elie Morisse: On Thursday, 13 February 2014 at 23:14:20 UTC, 1100110 wrote: I think it's about time I gave back to this wonderful community. I'm offering a $50 bounty on this. (Preferably Bitcoins, but I'll use bountysource if desired.) rules: Has to be called

Re: std.serialization

2014-02-16 Thread Orvid King
What features does it support? How does it handle: * Arrays * Slices * Pointers * Reference types * Support for events * Custom serialization * Serialization of third party types Slices are handled as arrays, because of the fact that they need to be handled in such a way that many different

Re: std.serialization

2014-02-16 Thread Jacob Carlborg
On 2014-02-16 18:52, Orvid King wrote: Slices are handled as arrays, because of the fact that they need to be handled in such a way that many different types of serialization formats can support them, and be inter-operable with implementations in languages other than D. Pointers are not

Re: std.serialization

2014-02-16 Thread Nordlöw
I believe it's worth the try to get Python-style serialization simplicity to D by default. We use Python cpickle at work and its fantastically simple and fast. It handles just about everthing you need by default as long as you have imported the modules that contain the types involved in the

Re: Bounty for -minimal compiler flag

2014-02-16 Thread Steven Schveighoffer
On Sun, 16 Feb 2014 11:18:12 -0500, Elie Morisse syniu...@gmail.com wrote: Isn't this a bit premature? The idea is controversial, if you read the thread Andrei and Walter wanted to postpone it: I convinced Walter of my view on this, so he won't work on it. I trust that at least between

Re: std.serialization

2014-02-16 Thread Andrej Mitrovic
On 2/16/14, Nordlöw per.nord...@gmail.com wrote: I'm however not sure how serialization of base and superclasses should be implemented in the most convenient way. Maybe somehow has a good suggestion for this. One way to do it:

Re: std.serialization

2014-02-16 Thread Jacob Carlborg
On 2014-02-16 21:45, Nordlöw wrote: I believe it's worth the try to get Python-style serialization simplicity to D by default. We use Python cpickle at work and its fantastically simple and fast. It handles just about everthing you need by default as long as you have imported the modules that

Re: std.serialization

2014-02-16 Thread Orvid King
I already have all this in Orange [1], which I'm in progress of adapting to a package for Phobos. ... This requires registering the subclass in some way. In my implementation one needs to call: Serializer.register!(Sub); For full example see [2]. [1]

Re: std.serialization

2014-02-16 Thread Orvid King
Why not? Think of languages like C and C++, they only support pointers. Pointers to basic types are not so interesting but pointers to structs are. Because, by serializing a pointer, you are implying that mechanism that will be deserializing the value both exists on the same machine, and

Re: std.serialization

2014-02-16 Thread Dicebot
On Sunday, 16 February 2014 at 22:41:59 UTC, Orvid King wrote: Why not? Think of languages like C and C++, they only support pointers. Pointers to basic types are not so interesting but pointers to structs are. Because, by serializing a pointer, you are implying that mechanism that will be

Re: std.serialization

2014-02-16 Thread Andrej Mitrovic
On 2/16/14, Dicebot pub...@dicebot.lv wrote: No, it should just serialize the pointed value and make the same difference upon deserialization - if it is a value, write to it, otherwise allocate new instance on heap and assign its address. Speaking of related things like pointers and cyclic

Re: early alpha of D REPL

2014-02-16 Thread Martin Nowak
On 02/14/2014 03:33 PM, Tourist wrote: I can reproduce it every time. Looks like a bug to me. How about reporting a bug? https://github.com/MartinNowak/drepl/issues

Re: early alpha of D REPL

2014-02-16 Thread Martin Nowak
On 02/15/2014 12:29 AM, cal wrote: My target was windows initially, where I guess this won't work currently. Hopefully the situation there will improve soon. Yes, we'll improve the Windows DLL support. At some point shared libraries should work equally well on all platforms. I also had a

Re: Bounty for -minimal compiler flag

2014-02-16 Thread 1100110
On 2/16/14, 10:18, Elie Morisse wrote: IMHO an approach that would not involve making a binary choice between full D and minimal D is to add an option to make the linker strip druntime and Phobos' shared libraries (or any shared library, and it's not specific to D btw) to the lowest common

Re: Bounty for -minimal compiler flag

2014-02-16 Thread inout
On Sunday, 16 February 2014 at 16:18:13 UTC, Elie Morisse wrote: On Thursday, 13 February 2014 at 23:14:20 UTC, 1100110 wrote: I think it's about time I gave back to this wonderful community. I'm offering a $50 bounty on this. (Preferably Bitcoins, but I'll use bountysource if desired.)

DConf 2014 acceptance rate likely under 50%

2014-02-16 Thread Andrei Alexandrescu
Hello, Walter and I are hard at work on reviewing DConf 2014 submissions. We'd like to thank all of you who have submitted. There is not even one submission that we found sub-par or unacceptable. That said, the sheer numbers force us to make hard decisions. Although each and every talk is

Digger - a D archeology tool

2014-02-16 Thread Vladimir Panteleev
https://github.com/CyberShadow/Digger This tool can build arbitrary D revisions from git (currently up to about 2 years ago), and automate git-bisect to find out which pull request changed/broke something. This tool is the continuation of my D-dot-git project, and is meant to be a companion

Re: std.serialization

2014-02-16 Thread Masahiro Nakagawa
On Sunday, 16 February 2014 at 22:48:51 UTC, Andrej Mitrovic wrote: On 2/16/14, Dicebot pub...@dicebot.lv wrote: No, it should just serialize the pointed value and make the same difference upon deserialization - if it is a value, write to it, otherwise allocate new instance on heap and assign

Re: std.serialization

2014-02-16 Thread Rory McGuire
A base class reference is: from your example an A which actually contains a C or B. Honestly I haven't tried this I would have assumed that D still gives you the real type when using reflection but have you tried it? On Mon, Feb 17, 2014 at 12:18 AM, Orvid King blah38...@gmail.com wrote: Why

Re: std.serialization

2014-02-16 Thread Rory McGuire
Do you have a JSON driver for Orange yet? Would be interesting to benchmark Orange against a purpose designed JSON serialization library. If your design is mostly compile time the experiment would be very interesting (I think). On Mon, Feb 17, 2014 at 12:03 AM, Jacob Carlborg d...@me.com

Re: Digger - a D archeology tool

2014-02-16 Thread Rory McGuire
!! nice tool! On Mon, Feb 17, 2014 at 7:29 AM, Vladimir Panteleev vladi...@thecybershadow.net wrote: https://github.com/CyberShadow/Digger This tool can build arbitrary D revisions from git (currently up to about 2 years ago), and automate git-bisect to find out which pull request

Re: DConf 2014 acceptance rate likely under 50%

2014-02-16 Thread Rory McGuire
Great news! In a strange way. Perhaps we could encourage the people that are not accepted to make videos of their submissions by going to local universities and asking if they can do a talk there? Would be an interesting way of promoting D and getting more video media onto the internet about D.

Re: Bounty for -minimal compiler flag

2014-02-16 Thread Paulo Pinto
On Sunday, 16 February 2014 at 23:40:58 UTC, 1100110 wrote: On 2/16/14, 10:18, Elie Morisse wrote: IMHO an approach that would not involve making a binary choice between full D and minimal D is to add an option to make the linker strip druntime and Phobos' shared libraries (or any shared

Re: COMPO

2014-02-16 Thread Steve Teale
On Saturday, 8 February 2014 at 06:03:18 UTC, Steve Teale wrote: I have to take a break from developing it, and write some documentation now. OK, I have made some reasonably complete documentation, and that now replaces the COMPO stuff I had on the web at http://britseyeview.com/compo/.

Re: std.serialization

2014-02-16 Thread Jacob Carlborg
On Sunday, 16 February 2014 at 22:33:07 UTC, Orvid King wrote: The problem with the way your doing it though is that it requires that the library doing the deserialization is fully aware of the semantics used in the serialization implementation, rather than just the syntax and semantics of

Re: std.serialization

2014-02-16 Thread Jacob Carlborg
On Sunday, 16 February 2014 at 22:41:59 UTC, Orvid King wrote: Because, by serializing a pointer, you are implying that mechanism that will be deserializing the value both exists on the same machine, and lies within the same address space, otherwise it will be referencing incorrect data.

Re: std.serialization

2014-02-16 Thread Jacob Carlborg
On Monday, 17 February 2014 at 06:09:35 UTC, Rory McGuire wrote: A base class reference is: from your example an A which actually contains a C or B. Honestly I haven't tried this I would have assumed that D still gives you the real type when using reflection but have you tried it?

Re: std.serialization

2014-02-16 Thread Jacob Carlborg
On Monday, 17 February 2014 at 06:14:51 UTC, Rory McGuire wrote: Do you have a JSON driver for Orange yet? Would be interesting to benchmark Orange against a purpose designed JSON serialization library. If your design is mostly compile time the experiment would be very interesting (I think).

Re: Digger - a D archeology tool

2014-02-16 Thread Andrej Mitrovic
On 2/17/14, Vladimir Panteleev vladi...@thecybershadow.net wrote: https://github.com/CyberShadow/Digger Now I understand how you've managed to find offending pull requests for regressions so fast. Will try the tool as soon as there's a new regression :p. Thanks!