DCT use cases - draft

2012-05-22 Thread Roman D. Boiko
http://d-coding.com/2012/05/22/dct-use-cases.html

Re: DCT use cases - draft

2012-05-22 Thread Gor Gyolchanyan
On Tue, May 22, 2012 at 6:04 PM, Roman D. Boiko wrote: > http://d-coding.com/2012/05/**22/dct-use-cases.html > Oh, boy! IMO, that's gonna be THE most useful thing related to D so far. -- Bye, Gor Gyolchanyan.

Re: DCT use cases - draft

2012-05-22 Thread Dmitry Olshansky
On 22.05.2012 18:04, Roman D. Boiko wrote: http://d-coding.com/2012/05/22/dct-use-cases.html >>Find parts of code model by a query (this single point will be >>expanded into its own series of posts) Love this idea. Some sort of cool hierarchical pattern syntax would save megatons of boilerp

Re: DCT use cases - draft

2012-05-22 Thread Roman D. Boiko
On Tuesday, 22 May 2012 at 14:42:28 UTC, Dmitry Olshansky wrote: On 22.05.2012 18:04, Roman D. Boiko wrote: http://d-coding.com/2012/05/22/dct-use-cases.html >>Find parts of code model by a query (this single point will be >>expanded into its own series of posts) Love this idea. Some sort of

Re: DCT use cases - draft

2012-05-22 Thread Denis Shelomovskij
22.05.2012 18:04, Roman D. Boiko написал: http://d-coding.com/2012/05/22/dct-use-cases.html Please, please, try to rape dmd to do what you want first because otherwise you (like every other existing parsers in IDE) will fail with templates which are used everywhere in D (I mean std.algorithm)

Re: DCT use cases - draft

2012-05-22 Thread Dmitry Olshansky
On 22.05.2012 18:45, Roman D. Boiko wrote: On Tuesday, 22 May 2012 at 14:42:28 UTC, Dmitry Olshansky wrote: On 22.05.2012 18:04, Roman D. Boiko wrote: http://d-coding.com/2012/05/22/dct-use-cases.html >>Find parts of code model by a query (this single point will be >>expanded into its own ser

Re: DCT use cases - draft

2012-05-22 Thread Roman D. Boiko
On Tuesday, 22 May 2012 at 14:48:49 UTC, Denis Shelomovskij wrote: 22.05.2012 18:04, Roman D. Boiko написал: http://d-coding.com/2012/05/22/dct-use-cases.html Please, please, try to rape dmd to do what you want first because otherwise you (like every other existing parsers in IDE) will fail

Re: DCT use cases - draft

2012-05-22 Thread Roman D. Boiko
On Tuesday, 22 May 2012 at 14:48:49 UTC, Denis Shelomovskij wrote: 22.05.2012 18:04, Roman D. Boiko написал: http://d-coding.com/2012/05/22/dct-use-cases.html Please, please, try to rape dmd to do what you want first because otherwise you (like every other existing parsers in IDE) will fail

Re: DCT use cases - draft

2012-05-22 Thread Roman D. Boiko
On Tuesday, 22 May 2012 at 14:56:42 UTC, Dmitry Olshansky wrote: On 22.05.2012 18:45, Roman D. Boiko wrote: On Tuesday, 22 May 2012 at 14:42:28 UTC, Dmitry Olshansky wrote: On 22.05.2012 18:04, Roman D. Boiko wrote: http://d-coding.com/2012/05/22/dct-use-cases.html >>Find parts of code model

Re: DCT use cases - draft

2012-05-22 Thread Roman D. Boiko
On Tuesday, 22 May 2012 at 15:15:49 UTC, Roman D. Boiko wrote: On Tuesday, 22 May 2012 at 14:56:42 UTC, Dmitry Olshansky wrote: I suggest to go with such kind of improvised notation with more examples until you fell that semantics are crystal clear. This is a possible, although not the only, o

Re: DCT use cases - draft

2012-05-22 Thread Dmitry Olshansky
On 22.05.2012 19:36, Roman D. Boiko wrote: On Tuesday, 22 May 2012 at 15:15:49 UTC, Roman D. Boiko wrote: On Tuesday, 22 May 2012 at 14:56:42 UTC, Dmitry Olshansky wrote: I suggest to go with such kind of improvised notation with more examples until you fell that semantics are crystal clear.

Re: DCT use cases - draft

2012-05-22 Thread Roman D. Boiko
On Tuesday, 22 May 2012 at 16:03:49 UTC, Dmitry Olshansky wrote: In my mind it's encountered rather soon: lex/scan -> postprocess (may be combined with lex) -> populate symbol tables (ditto - with next step/previous step) -> parse to AST -> ... That symbol table should contain all of the rich

Re: DCT use cases - draft

2012-05-22 Thread deadalnix
Le 22/05/2012 16:04, Roman D. Boiko a écrit : http://d-coding.com/2012/05/22/dct-use-cases.html Nice idea but I'll not be nice. What is needed here is design. The needs are not really news nor specific to D. So far, you have ignored all existing project on the subject, and shown that you t

Re: DCT use cases - draft

2012-05-22 Thread Dmitry Olshansky
On 22.05.2012 20:47, Roman D. Boiko wrote: On Tuesday, 22 May 2012 at 16:03:49 UTC, Dmitry Olshansky wrote: In my mind it's encountered rather soon: lex/scan -> postprocess (may be combined with lex) -> populate symbol tables (ditto - with next step/previous step) -> parse to AST -> ... That sy

Re: DCT use cases - draft

2012-05-22 Thread Jacob Carlborg
On Tuesday, 22 May 2012 at 14:04:18 UTC, Roman D. Boiko wrote: http://d-coding.com/2012/05/22/dct-use-cases.html I'm really not sure I understand what this is. Is this use cases for a lexer or some other more high level too?. Because I don't see what projects and workspaces have to do with a

Re: DCT use cases - draft

2012-05-22 Thread Roman D. Boiko
On Tuesday, 22 May 2012 at 16:55:46 UTC, Dmitry Olshansky wrote: On 22.05.2012 20:47, Roman D. Boiko wrote: On Tuesday, 22 May 2012 at 16:03:49 UTC, Dmitry Olshansky wrote: In my mind it's encountered rather soon: lex/scan -> postprocess (may be combined with lex) -> populate symbol tables (d

Re: DCT use cases - draft

2012-05-22 Thread Roman D. Boiko
On Tuesday, 22 May 2012 at 17:06:43 UTC, Jacob Carlborg wrote: On Tuesday, 22 May 2012 at 14:04:18 UTC, Roman D. Boiko wrote: http://d-coding.com/2012/05/22/dct-use-cases.html I'm really not sure I understand what this is. Is this use cases for a lexer or some other more high level too?. Beca

Re: DCT use cases - draft

2012-05-22 Thread Jacob Carlborg
On 2012-05-22 19:14, Roman D. Boiko wrote: This is a draft of use cases for all DCT libraries combined. This seems to be mostly focused on lexing? See below for some ideas. Scope for DCT is to provide semantic analysis, but not code generation (that may become another project some time). Inf

Re: DCT use cases - draft

2012-05-22 Thread Roman D. Boiko
On Tuesday, 22 May 2012 at 18:10:59 UTC, Jacob Carlborg wrote: On 2012-05-22 19:14, Roman D. Boiko wrote: This is a draft of use cases for all DCT libraries combined. This seems to be mostly focused on lexing? See below for some ideas. Yeah, about 50% is lexing. I pay more attention to it be

Re: DCT use cases - draft

2012-05-22 Thread Jacob Carlborg
On 2012-05-22 20:33, Roman D. Boiko wrote: Yes, and even before that I'm going to document some fundamental primitives, like immutability and core data structures. Wouldn't it be better to start with the use cases? You probably already have a fairly good idea about the use cases, but in theor

Re: DCT use cases - draft

2012-05-22 Thread Roman D. Boiko
On Tuesday, 22 May 2012 at 18:59:48 UTC, Jacob Carlborg wrote: On 2012-05-22 20:33, Roman D. Boiko wrote: Yes, and even before that I'm going to document some fundamental primitives, like immutability and core data structures. Wouldn't it be better to start with the use cases? You probably

Re: DCT use cases - draft

2012-05-22 Thread deadalnix
Le 22/05/2012 20:33, Roman D. Boiko a écrit : On Tuesday, 22 May 2012 at 18:10:59 UTC, Jacob Carlborg wrote: On 2012-05-22 19:14, Roman D. Boiko wrote: This is a draft of use cases for all DCT libraries combined. This seems to be mostly focused on lexing? See below for some ideas. Yeah, abo

Re: DCT use cases - draft

2012-05-22 Thread Roman D. Boiko
On Tuesday, 22 May 2012 at 20:31:40 UTC, deadalnix wrote: Le 22/05/2012 20:33, Roman D. Boiko a écrit : On Tuesday, 22 May 2012 at 18:10:59 UTC, Jacob Carlborg wrote: On 2012-05-22 19:14, Roman D. Boiko wrote: This is a draft of use cases for all DCT libraries combined. This seems to be mos

Re: DCT use cases - draft

2012-05-22 Thread Roman D. Boiko
On Tuesday, 22 May 2012 at 20:31:40 UTC, deadalnix wrote: Le 22/05/2012 20:33, Roman D. Boiko a écrit : On Tuesday, 22 May 2012 at 18:10:59 UTC, Jacob Carlborg wrote: On 2012-05-22 19:14, Roman D. Boiko wrote: This is a draft of use cases for all DCT libraries combined. This seems to be mos

Re: DCT use cases - draft

2012-05-23 Thread Roman D. Boiko
On Tuesday, 22 May 2012 at 18:33:38 UTC, Roman D. Boiko wrote: I'm reviewing text right now Posted an updated version, but it is still a draft: http://d-coding.com/2012/05/23/dct-use-cases-revised.html

Re: DCT use cases - draft

2012-05-23 Thread Jacob Carlborg
On 2012-05-23 17:36, Roman D. Boiko wrote: On Tuesday, 22 May 2012 at 18:33:38 UTC, Roman D. Boiko wrote: I'm reviewing text right now Posted an updated version, but it is still a draft: http://d-coding.com/2012/05/23/dct-use-cases-revised.html That's a lot better :) -- /Jacob Carlborg

Re: DCT use cases - draft

2012-07-25 Thread David Piepgrass
On Wednesday, 23 May 2012 at 15:36:59 UTC, Roman D. Boiko wrote: On Tuesday, 22 May 2012 at 18:33:38 UTC, Roman D. Boiko wrote: I'm reviewing text right now Posted an updated version, but it is still a draft: http://d-coding.com/2012/05/23/dct-use-cases-revised.html I think one of the key ch

Re: DCT use cases - draft

2012-07-25 Thread David Piepgrass
On Wednesday, 23 May 2012 at 15:36:59 UTC, Roman D. Boiko wrote: On Tuesday, 22 May 2012 at 18:33:38 UTC, Roman D. Boiko wrote: I'm reviewing text right now Posted an updated version, but it is still a draft: http://d-coding.com/2012/05/23/dct-use-cases-revised.html BTW, have you seen the vi

Re: DCT use cases - draft

2012-07-26 Thread Jacob Carlborg
On 2012-07-26 01:46, David Piepgrass wrote: I think one of the key challenges will be incremental updates. You could perhaps afford to reparse entire source files on each keystroke, assuming DCT runs on a PC*, but you don't want to repeat the whole semantic analysis of several modules on every k

Re: DCT use cases - draft

2012-07-26 Thread Jacob Carlborg
On 2012-07-26 02:03, David Piepgrass wrote: BTW, have you seen the video by Bret Victor entitled "Inventing on Principle"? This should be a use case for DCT: http://vimeo.com/36579366 The most important part for the average (nongraphical) developer is his demo of writing a binary search algori