Re: Can we have strcu with destructor have postblit disabled if none is provided ?

2015-09-06 Thread ponce via Digitalmars-d
On Saturday, 5 September 2015 at 22:22:03 UTC, deadalnix wrote: Can we have strcu with destructor have postblit disabled if none is provided ? I also feel like post-blit should be opt-in.

Re: Current state of GUI's

2015-09-06 Thread Jacob Carlborg via Digitalmars-d
On 2015-09-06 01:43, motaito wrote: Bummer... However, I appreciate that you are giving it a shot! But you see my point. An out of the box solution like QT would be worth gold. That's the one thing Microsoft got right. They have awesome developer tools. Or in the words of Steve Ballmer: "Develo

Re: dmd codegen improvements

2015-09-06 Thread Jacob Carlborg via Digitalmars-d
On 2015-09-06 02:54, Walter Bright wrote: It probably is a rampant problem. I notice it with you because Thunderbird gives a line count for a message, and yours are usually in the hundreds of lines while others are like 10 to 20. Usually Thunderbird highlights the quoted part in blue and makes

Re: std.Stream.InputStream convenience functions

2015-09-06 Thread BBasile via Digitalmars-d
On Sunday, 6 September 2015 at 04:48:56 UTC, bitwise wrote: On Sunday, 6 September 2015 at 03:42:20 UTC, BBasile wrote: [...] auto rng = StreamRange!(MemoryStream,long)(instance); auto rng = StreamRange!(FileStream,float)(instance); --- Actually I have nothing against your helper functions (exc

Re: Error reporting is terrible

2015-09-06 Thread Kagamin via Digitalmars-d
On Friday, 4 September 2015 at 22:14:02 UTC, Adam D. Ruppe wrote: On Thursday, 3 September 2015 at 23:56:53 UTC, Prudence wrote: 1. The setup is a much compared to most modern day compilers and software. The most inappropriately kept secret of installing dmd is that you don't have to. Just un

Re: dmd codegen improvements

2015-09-06 Thread via Digitalmars-d
On Friday, 4 September 2015 at 15:45:35 UTC, Luís Marques wrote: On Friday, 4 September 2015 at 14:59:12 UTC, Ola Fosheim Grøstad wrote: Actually, browsers are deprecating NPAPI plugins. Flash is so dead… Could, in principle, Flash be supported through an extension, instead of a media / NPAPI

Re: dmd codegen improvements

2015-09-06 Thread Kagamin via Digitalmars-d
On Saturday, 5 September 2015 at 14:57:58 UTC, Ola Fosheim Grøstad wrote: On Friday, 4 September 2015 at 14:44:46 UTC, Jacob Carlborg wrote: I heard the TypeScript support for Visual Studio Code is really good. I'm crossing my fingers for an OS-X or Linux version of VS. ;) You mean Visual St

Re: dmd codegen improvements

2015-09-06 Thread via Digitalmars-d
On Sunday, 6 September 2015 at 12:31:27 UTC, Kagamin wrote: On Saturday, 5 September 2015 at 14:57:58 UTC, Ola Fosheim Grøstad wrote: On Friday, 4 September 2015 at 14:44:46 UTC, Jacob Carlborg wrote: I heard the TypeScript support for Visual Studio Code is really good. I'm crossing my finger

Re: Current state of GUI's

2015-09-06 Thread motaito via Digitalmars-d
On Sunday, 6 September 2015 at 02:27:42 UTC, Rikki Cattermole wrote: I would very much appreciate people helping out. E.g. Contributing manipulation functions, image loader / exporter. Most importantly unittests. Fix bugs. I'll most likely do the PNG test case infrastructure, but it would mak

Re: std.Stream.InputStream convenience functions

2015-09-06 Thread bitwise via Digitalmars-d
On Sunday, 6 September 2015 at 10:12:39 UTC, BBasile wrote: On Sunday, 6 September 2015 at 04:48:56 UTC, bitwise wrote: On Sunday, 6 September 2015 at 03:42:20 UTC, BBasile wrote: [...] auto rng = StreamRange!(MemoryStream,long)(instance); auto rng = StreamRange!(FileStream,float)(instance); --

AST like coding syntax. Easy upgrade!

2015-09-06 Thread Prudence via Digitalmars-d
template X(Y) { string X = Y.stringof; } auto s = X({int 3;}) Of course, doesn't work!! But having the ability to pass code that isn't contained in a string is very useful!! 1. A new code keyword, similar to alias. Can only be used as template parameters. If you are worried about b

Re: std.Stream.InputStream convenience functions

2015-09-06 Thread BBasile via Digitalmars-d
On Sunday, 6 September 2015 at 18:52:34 UTC, bitwise wrote: On Sunday, 6 September 2015 at 10:12:39 UTC, BBasile wrote: On Sunday, 6 September 2015 at 04:48:56 UTC, bitwise wrote: On Sunday, 6 September 2015 at 03:42:20 UTC, BBasile wrote: [...] auto rng = StreamRange!(MemoryStream,long)(insta

Re: std.Stream.InputStream convenience functions

2015-09-06 Thread bitwise via Digitalmars-d
On Sunday, 6 September 2015 at 20:05:20 UTC, BBasile wrote: On Sunday, 6 September 2015 at 18:52:34 UTC, bitwise wrote: On Sunday, 6 September 2015 at 10:12:39 UTC, BBasile wrote: On Sunday, 6 September 2015 at 04:48:56 UTC, bitwise wrote: On Sunday, 6 September 2015 at 03:42:20 UTC, BBasile w

Re: AST like coding syntax. Easy upgrade!

2015-09-06 Thread Zoadian via Digitalmars-d
On Sunday, 6 September 2015 at 19:32:58 UTC, Prudence wrote: template X(Y) { string X = Y.stringof; } [...] as you'd have to write a parser for other languages why not just use strings? you can already do this: template X(string Y) { enum X = Y; } auto s = X!q{int 3;}; ob

Re: AST like coding syntax. Easy upgrade!

2015-09-06 Thread Adam D. Ruppe via Digitalmars-d
On Sunday, 6 September 2015 at 20:22:23 UTC, Zoadian wrote: obviously X has to be a compiletime js->d compiler. Just a fun fact: my script.d's interpreter is itself CTFEable in modern dmd! import arsd.script; void main() { // script.d is similar to but not identical to javascript

Re: AST like coding syntax. Easy upgrade!

2015-09-06 Thread Prudence via Digitalmars-d
On Sunday, 6 September 2015 at 20:22:23 UTC, Zoadian wrote: On Sunday, 6 September 2015 at 19:32:58 UTC, Prudence wrote: template X(Y) { string X = Y.stringof; } [...] as you'd have to write a parser for other languages why not just use strings? you can already do this: template X

Re: AST like coding syntax. Easy upgrade!

2015-09-06 Thread Prudence via Digitalmars-d
On Sunday, 6 September 2015 at 20:38:44 UTC, Adam D. Ruppe wrote: On Sunday, 6 September 2015 at 20:22:23 UTC, Zoadian wrote: obviously X has to be a compiletime js->d compiler. Just a fun fact: my script.d's interpreter is itself CTFEable in modern dmd! import arsd.script; void main() {

Re: std.Stream.InputStream convenience functions

2015-09-06 Thread BBasile via Digitalmars-d
On Sunday, 6 September 2015 at 20:17:32 UTC, bitwise wrote: On Sunday, 6 September 2015 at 20:05:20 UTC, BBasile wrote: On Sunday, 6 September 2015 at 18:52:34 UTC, bitwise wrote: [...] You should have got that's even not what i was talking about. Basic summary of the conversation: - you: he

Re: std.Stream.InputStream convenience functions

2015-09-06 Thread bitwise via Digitalmars-d
On Sunday, 6 September 2015 at 21:33:36 UTC, BBasile wrote: I don't care about your problem Then I suggest another thread.

Re: Containers

2015-09-06 Thread bitwise via Digitalmars-d
On Saturday, 5 September 2015 at 00:21:42 UTC, Timon Gehr wrote: On 09/05/2015 01:15 AM, Andrei Alexandrescu wrote: My thinking is that significant work in this(this) is poor D style. Eager copying for containers doesn't seem like the best way to go. -- Andrei @disable this(this) for ephemer

Re: AST like coding syntax. Easy upgrade!

2015-09-06 Thread cym13 via Digitalmars-d
On Sunday, 6 September 2015 at 21:16:18 UTC, Prudence wrote: Or, maybe better yet, have the concept of "code strings". which are strings that are suppose to be interpreted as code. This then means the compiler just has to do a syntax check for errors before it does anything else with them(seman

Re: AST like coding syntax. Easy upgrade!

2015-09-06 Thread bitwise via Digitalmars-d
On Sunday, 6 September 2015 at 22:37:16 UTC, cym13 wrote: On Sunday, 6 September 2015 at 21:16:18 UTC, Prudence wrote: [...] There already is a kind of "code string": interpret(q{ var a = 2; var b += a; }); It doesn't do any kind of syntax check, but there again how

Re: AST like coding syntax. Easy upgrade!

2015-09-06 Thread Walter Bright via Digitalmars-d
On 9/6/2015 1:38 PM, Adam D. Ruppe wrote: jsvar.d and script.d can be found here: https://github.com/adamdruppe/arsd I'd always thought Javascript was an ideal extension language for a text editor.

Re: dmd codegen improvements

2015-09-06 Thread Manu via Digitalmars-d
On 6 September 2015 at 18:57, Jacob Carlborg via Digitalmars-d wrote: > On 2015-09-06 02:54, Walter Bright wrote: > >> It probably is a rampant problem. I notice it with you because >> Thunderbird gives a line count for a message, and yours are usually in >> the hundreds of lines while others are

Re: AST like coding syntax. Easy upgrade!

2015-09-06 Thread cym13 via Digitalmars-d
On Sunday, 6 September 2015 at 23:00:21 UTC, bitwise wrote: On Sunday, 6 September 2015 at 22:37:16 UTC, cym13 wrote: On Sunday, 6 September 2015 at 21:16:18 UTC, Prudence wrote: [...] There already is a kind of "code string": interpret(q{ var a = 2; var b += a; });

Re: AST like coding syntax. Easy upgrade!

2015-09-06 Thread anonymous via Digitalmars-d
On Monday 07 September 2015 00:37, cym13 wrote: > There already is a kind of "code string": > > interpret(q{ > var a = 2; > var b += a; > }); > > It doesn't do any kind of syntax check, but there again how do > you want to have syntax check for any language? The D

Re: AST like coding syntax. Easy upgrade!

2015-09-06 Thread cym13 via Digitalmars-d
On Sunday, 6 September 2015 at 23:40:58 UTC, anonymous wrote: On Monday 07 September 2015 00:37, cym13 wrote: There already is a kind of "code string": interpret(q{ var a = 2; var b += a; }); It doesn't do any kind of syntax check, but there again how do you wan

Re: AST like coding syntax. Easy upgrade!

2015-09-06 Thread cym13 via Digitalmars-d
On Sunday, 6 September 2015 at 23:48:30 UTC, cym13 wrote: On Sunday, 6 September 2015 at 23:40:58 UTC, anonymous wrote: On Monday 07 September 2015 00:37, cym13 wrote: There already is a kind of "code string": interpret(q{ var a = 2; var b += a; }); It doesn't d

Re: AST like coding syntax. Easy upgrade!

2015-09-06 Thread Idan Arye via Digitalmars-d
On Sunday, 6 September 2015 at 23:40:58 UTC, anonymous wrote: On Monday 07 September 2015 00:37, cym13 wrote: There already is a kind of "code string": interpret(q{ var a = 2; var b += a; }); It doesn't do any kind of syntax check, but there again how do you wan

Re: AST like coding syntax. Easy upgrade!

2015-09-06 Thread Idan Arye via Digitalmars-d
On Sunday, 6 September 2015 at 23:38:51 UTC, cym13 wrote: On Sunday, 6 September 2015 at 23:00:21 UTC, bitwise wrote: On Sunday, 6 September 2015 at 22:37:16 UTC, cym13 wrote: On Sunday, 6 September 2015 at 21:16:18 UTC, Prudence wrote: [...] There already is a kind of "code string": in

Re: AST like coding syntax. Easy upgrade!

2015-09-06 Thread Adam D. Ruppe via Digitalmars-d
On Monday, 7 September 2015 at 00:34:20 UTC, Idan Arye wrote: Compare it to Ruby's heredoc, where the chosen terminator string can be used as an hint(https://github.com/joker1007/vim-ruby-heredoc-syntax). Or D's heredoc strings, yes, we have them too: http://dlang.org/lex.html (search for "he

Re: AST like coding syntax. Easy upgrade!

2015-09-06 Thread Adam D. Ruppe via Digitalmars-d
On Sunday, 6 September 2015 at 21:16:18 UTC, Prudence wrote: Yeah, but wouldn't it be so much nicer? (and probably debuggable inline) interpret({ var a = 5; a += 2; a; } Not really because that already more-or-less works today (add a q before that { and it will compile). The i

Re: AST like coding syntax. Easy upgrade!

2015-09-06 Thread Adam D. Ruppe via Digitalmars-d
On Sunday, 6 September 2015 at 23:33:17 UTC, Walter Bright wrote: I'd always thought Javascript was an ideal extension language for a text editor. Well, I don't think *ideal*, but indeed, it wouldn't be bad. And my little thing isn't quite JS, I borrow some ideas from D too. So it has string

Re: AST like coding syntax. Easy upgrade!

2015-09-06 Thread anonymous via Digitalmars-d
On Monday 07 September 2015 02:24, Idan Arye wrote: > That's not considered as syntax check - that's an earlier stage > of the compilation process called "lexical > analysis"(https://en.wikipedia.org/wiki/Lexical_analysis) >From the Wikipedia article: "a lexer is generally combined with a parse

Re: dmd codegen improvements

2015-09-06 Thread Walter Bright via Digitalmars-d
On 9/6/2015 4:39 PM, Manu via Digitalmars-d wrote: It didn't happen for me because I changed my gmail settings after Walter requested some time back to only include plain text. My NG experience is much less enjoyable as a result of the change; I prefer the blue quote line, but now I just have a s