Re: Mono-D v1.6 - method override completion

2014-02-14 Thread evilrat
On Friday, 14 February 2014 at 01:26:18 UTC, Alexander Bothe wrote: Okay, just implemented a completion mode for method overrides. I won't explain this over here, as there are screenshots depicting everything properly already :-)

Re: Mono-D v1.6 - method override completion

2014-02-14 Thread extrawurst
On Friday, 14 February 2014 at 08:40:04 UTC, evilrat wrote: On Friday, 14 February 2014 at 01:26:18 UTC, Alexander Bothe wrote: Okay, just implemented a completion mode for method overrides. I won't explain this over here, as there are screenshots depicting everything properly already :-)

Re: std.serialization

2014-02-14 Thread Rory McGuire
Nice, hope the code is prettier than your speech. :D On Fri, Feb 14, 2014 at 12:56 AM, Orvid King blah38...@gmail.com wrote: Well, I wrote the code for this a while back, and although it was originally intended as a replacement for just std.json (thus the repo name), it does have the

Re: std.serialization

2014-02-14 Thread Francesco Cattoglio
On Thursday, 13 February 2014 at 22:56:38 UTC, Orvid King wrote: so I'm releasing it as std.serialization. What does that even mean? I'm pretty sure you should NEVER call a library std.something if it hasn't been approved for inclusion into standard library. Other than that, nice work.

Re: Bounty for -minimal compiler flag

2014-02-14 Thread Daniel Murphy
1100110 wrote in message news:tjgimnoqoflzrcrlw...@forum.dlang.org... I'm offering a $50 bounty on this. (Preferably Bitcoins, but I'll use bountysource if desired.) I'd say just put it on bountysource, because then there's more chance others will add to it. rules: Has to be called

Re: std.serialization

2014-02-14 Thread Daniel Murphy
Orvid King wrote in message news:ntpjdeutsxqicjywt...@forum.dlang.org... (except for float-string conversion, which I don't understand the algorithms enough to implement myself) even going so far as to create an output range based version of to!string(int/uint/long/ulong/etc.).

Re: Bounty for -minimal compiler flag

2014-02-14 Thread 1100110
On 2/14/14, 5:10, Daniel Murphy wrote: 1100110 wrote in message news:tjgimnoqoflzrcrlw...@forum.dlang.org... I'm offering a $50 bounty on this. (Preferably Bitcoins, but I'll use bountysource if desired.) I'd say just put it on bountysource, because then there's more chance others will add

Re: Bounty for -minimal compiler flag

2014-02-14 Thread Francesco Cattoglio
On Friday, 14 February 2014 at 11:28:30 UTC, 1100110 wrote: I thought that would be best, unfortunately. Bitcoins are nice, but bountysource is the way to go. It's both more official and easier to contribute to the bounty. I'd be fine with the switch being name -nodruntime, and honestly I

Re: early alpha of D REPL

2014-02-14 Thread John Colvin
On Friday, 14 February 2014 at 05:32:12 UTC, Asman01 wrote: On Tuesday, 11 February 2014 at 04:46:41 UTC, Martin Nowak wrote: Barely running but already fun and a little useful. Example: D import std.algorithm, std.array, std.file; = std D auto name(T)(T t) { | return t.name; | } = name D

Re: Bounty for -minimal compiler flag

2014-02-14 Thread 1100110
On 2/14/14, 5:45, Daniel Murphy wrote: 1100110 wrote in message news:ldkuku$1sgt$1...@digitalmars.com... I don't think we'll ever please everyone here. All I'm really trying to do by specifying the name is prevent some cutesy annoying name. It's pretty hard to get a pull request in with a

Re: std.serialization

2014-02-14 Thread Jakob Ovrum
On Thursday, 13 February 2014 at 22:56:38 UTC, Orvid King wrote: Wow, that went a bit more towards a salesman-like description than I as aiming for, so I'll just end this here and give you the link, before this ends up looking like a massive, badly written, sales pitch :D

Re: Bounty for -minimal compiler flag

2014-02-14 Thread 1100110
On 2/14/14, 5:42, Francesco Cattoglio wrote: On Friday, 14 February 2014 at 11:28:30 UTC, 1100110 wrote: I thought that would be best, unfortunately. Bitcoins are nice, but bountysource is the way to go. It's both more official and easier to contribute to the bounty. Meh, I just have a lot

Re: Bounty for -minimal compiler flag

2014-02-14 Thread Daniel Murphy
1100110 wrote in message news:ldl2pf$20b0$1...@digitalmars.com... I want a way to disable the GC, and have the compiler verify that no GC allocations may occur. I want a way to disable Exceptions, and have the compiler verify that no Exceptions may occur. Good, this is what I had in

Re: Bounty for -minimal compiler flag

2014-02-14 Thread Mike
On Friday, 14 February 2014 at 12:39:11 UTC, 1100110 wrote: Can you name anything I'm missing? * no module info * no runtime type info * treat TLS as __gshared for single threaded programs Mike

Re: Bounty for -minimal compiler flag

2014-02-14 Thread 1100110
On 2/14/14, 7:09, Daniel Murphy wrote: 1100110 wrote in message news:ldl2pf$20b0$1...@digitalmars.com... I want a way to disable the GC, and have the compiler verify that no GC allocations may occur. I want a way to disable Exceptions, and have the compiler verify that no Exceptions may

Re: early alpha of D REPL

2014-02-14 Thread Martin Nowak
On Friday, 14 February 2014 at 11:58:43 UTC, John Colvin wrote: auto twice = (int a) = 2*a; twice(2); What's wrong with that? Drop the semicolon after twice(2) Yeah, with a semicolon it's a statement, so it doesn't have any result value to print. Without the semicolon it's an expression.

Re: Bounty for -minimal compiler flag

2014-02-14 Thread Daniel Murphy
1100110 wrote in message news:ldl6v6$255r$1...@digitalmars.com... I dont know enough about TLS to comment really. Thoughts? It's probably platform dependent, I guess it should work everywhere that C supports TLS. Dynamic cast can be disabled. Sure, but should it be an error or be

Re: Bounty for -minimal compiler flag

2014-02-14 Thread 1100110
On 2/14/14, 8:07, Daniel Murphy wrote: 1100110 wrote in message news:ldl6v6$255r$1...@digitalmars.com... I dont know enough about TLS to comment really. Thoughts? It's probably platform dependent, I guess it should work everywhere that C supports TLS. Dynamic cast can be disabled. Sure,

Re: Bounty for -minimal compiler flag

2014-02-14 Thread Daniel Murphy
1100110 wrote in message news:ldl9fj$28g6$1...@digitalmars.com... I don't think it's worth throwing out assert over. A runtime that supported assert + Object would be about 8 lines and would IMO be worthwhile. But then where do we stop? This is why I think it's an excellent idea to have

Re: Bounty for -minimal compiler flag

2014-02-14 Thread Steven Schveighoffer
On Fri, 14 Feb 2014 10:46:19 -0500, Adam D. Ruppe destructiona...@gmail.com wrote: On Friday, 14 February 2014 at 15:34:16 UTC, Steven Schveighoffer wrote: I think classes heavily depend on druntime, I believe Walter was indicating they would not be allowed (which trivially excludes class

Re: Bounty for -minimal compiler flag

2014-02-14 Thread Daniel Murphy
Steven Schveighoffer wrote in message news:op.xa929juueav7ka@stevens-macbook-pro.local... static this/~this is tougher. If it is possible for it to work, then it should. I feel that this is more of a language feature. These might work with init sections, but maybe not. No, static

Re: std.serialization

2014-02-14 Thread Orvid King
On Friday, 14 February 2014 at 11:22:22 UTC, Daniel Murphy wrote: Orvid King wrote in message news:ntpjdeutsxqicjywt...@forum.dlang.org... (except for float-string conversion, which I don't understand the algorithms enough to implement myself) even going so far as to create an output range

Re: std.serialization

2014-02-14 Thread Orvid King
On Friday, 14 February 2014 at 10:41:54 UTC, Francesco Cattoglio wrote: On Thursday, 13 February 2014 at 22:56:38 UTC, Orvid King wrote: so I'm releasing it as std.serialization. What does that even mean? I'm pretty sure you should NEVER call a library std.something if it hasn't been approved

Re: Bounty for -minimal compiler flag

2014-02-14 Thread Kagamin
I don't think, everything should be done by the compiler. Most trouble with gc is that its usage can't be traced similar to tls, so the feature will be diagnostics similar to -vtls option, say, -vminimal. The compiler can write the trace of runtime usage in machine-readable format to stdout

Re: std.serialization

2014-02-14 Thread Jacob Carlborg
On 2014-02-13 23:56, Orvid King wrote: Well, I wrote the code for this a while back, and although it was originally intended as a replacement for just std.json (thus the repo name), it does have the framework in place to be a generalized serialization framework, and there is the start of xml,

Re: Bounty for -minimal compiler flag

2014-02-14 Thread Jacob Carlborg
On 2014-02-14 14:50, 1100110 wrote: This does come with a cost. I dont know enough about TLS to comment really. Thoughts? Dynamic cast can be disabled. static this/~this is tougher. If it is possible for it to work, then it should. This requires ModuleInfo, if I recall correctly.

Re: Bounty for -minimal compiler flag

2014-02-14 Thread Jacob Carlborg
On 2014-02-14 15:07, Daniel Murphy wrote: It's probably platform dependent, I guess it should work everywhere that C supports TLS. Well, on OS X it's natively supported on since 10.7 but DMD still uses emulated TLS: Dynamic cast can be disabled. Sure, but should it be an error or be

Re: Bounty for -minimal compiler flag

2014-02-14 Thread Jacob Carlborg
On 2014-02-14 16:42, Steven Schveighoffer wrote: I'm 90% sure that MacOS does not natively support TLS, and uses the core.Thread class to store it. OS X support TLS natively since 10.7, but DMD still uses emulated TLS on OS X. Yes, this also depends on moduleinfo, like static ctor/dtor.

Re: Bounty for -minimal compiler flag

2014-02-14 Thread Steven Schveighoffer
On Fri, 14 Feb 2014 15:39:24 -0500, Jacob Carlborg d...@me.com wrote: On 2014-02-14 16:42, Steven Schveighoffer wrote: I'm 90% sure that MacOS does not natively support TLS, and uses the core.Thread class to store it. OS X support TLS natively since 10.7, but DMD still uses emulated TLS on

Re: Bounty for -minimal compiler flag

2014-02-14 Thread Jacob Carlborg
On 2014-02-14 22:02, Steven Schveighoffer wrote: That's... old. Why doesn't DMD start using it? 10.7 came out in 2011. It wasn't that old until recently, when 10.9 was released. It's the same as with everything else. Someone just have to commit time and implement it. I guess this is a bit

Re: early alpha of D REPL

2014-02-14 Thread cal
On Tuesday, 11 February 2014 at 04:46:41 UTC, Martin Nowak wrote: Barely running but already fun and a little useful. Example: D import std.algorithm, std.array, std.file; = std D auto name(T)(T t) { | return t.name; | } = name D dirEntries(., SpanMode.depth).map!name.join(, ) =

Re: Bounty for -minimal compiler flag

2014-02-14 Thread Denis Koroskin
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-14 Thread Daniel Murphy
Denis Koroskin wrote in message news:wjdvvungwvpemwmxl...@forum.dlang.org... I'll throw in $300 extra (maybe more), but can you please first formalize the requirements (list of flags, and what each flag should mean, required unittests to pass etc). Required unittests are very helpful,

Re: Bounty for -minimal compiler flag

2014-02-14 Thread Adam D. Ruppe
On Saturday, 15 February 2014 at 04:13:49 UTC, 1100110 wrote: 1. Disable Garbage Collector (suggestion: -nogc) https://github.com/D-Programming-Language/dmd/pull/1886 3. Disable ModuleInfo (suggestion: -nomoduleinfo) dmd -betterC though note

Re: Bounty for -minimal compiler flag

2014-02-14 Thread 1100110
On 2/14/14, 22:20, Adam D. Ruppe wrote: On Saturday, 15 February 2014 at 04:13:49 UTC, 1100110 wrote: 1. Disable Garbage Collector (suggestion: -nogc) https://github.com/D-Programming-Language/dmd/pull/1886 Oh dmd! Why won't you build on my computer!? Why!? 3. Disable ModuleInfo

Re: Bounty for -minimal compiler flag

2014-02-14 Thread Adam D. Ruppe
On Saturday, 15 February 2014 at 04:34:30 UTC, 1100110 wrote: Is it just ModuleInfo, or...? Yeah, that's pretty much all it actually does, and it isn't quite complete - array bounds checking for example won't work because they depend on module info. But I don't think they should depend on

Re: Bounty for -minimal compiler flag

2014-02-14 Thread 1100110
On 2/14/14, 22:44, Adam D. Ruppe wrote: On Saturday, 15 February 2014 at 04:34:30 UTC, 1100110 wrote: Is it just ModuleInfo, or...? Yeah, that's pretty much all it actually does, and it isn't quite complete - array bounds checking for example won't work because they depend on module info.

Re: Bounty for -minimal compiler flag

2014-02-14 Thread Adam D. Ruppe
On Saturday, 15 February 2014 at 04:55:32 UTC, 1100110 wrote: Then what I actually want is for -betterC to be cleaned up and renamed (and Documented!) BTW I did *not* actually use -betterC for my minimal.zip. I've been playing with it a bit recently to make an even more minimal thing, but

Re: Bounty for -minimal compiler flag

2014-02-14 Thread Leandro Lucarella
Daniel Murphy, el 14 de February a las 22:10 me escribiste: 1100110 wrote in message news:tjgimnoqoflzrcrlw...@forum.dlang.org... I'm offering a $50 bounty on this. (Preferably Bitcoins, but I'll use bountysource if desired.) I'd say just put it on bountysource, because then there's more