April 06, 2009
Reply to Baas,

>> But if your parser isn't already using a tree-like structure
>> internally, you're doing something wrong.
>> 
>> And if it is, there's absolutely no reason to use XML as some weird
>> sort of intermediary stage.
> 

[...]

I saw nothing in your description that in any way would be made simpler by using XML. A properly done tree structure can do (or be used to do) everything you described with ease. If you are mucking with XML as text, they you are just flat crazy and if you are not then you are using a tree structure anyway and even one that is not specialized for your cases at that.


April 06, 2009
Baas wrote:
>> No. Just .. no.
>>
>> On the off chance that you're serious about that - XML is a data format that encodes tree-like hierarchical information.
>>
>> But if your parser isn't already using a tree-like structure internally, you're doing something wrong.
>>
>> And if it is, there's absolutely no reason to use XML as some weird sort of intermediary stage.
> 
> I've used the "Analysis-Synthesis Model" for the overall design (to "re-invent the wheel" :) ), as I've done lots of times in the past.
> 
> The Analysis-Synthesis Model is clearly based on a tree-structure.
> - Lexical Analysis
> - Parsing/Syntax Analysis
> - Semantic Analysis
> - Intermediate Code Generator
> - Code Optimizer
> - Code Generator
> Lexical- and Syntax Analysis is handled in a single pass. (just a reminder)
> 
> Instead of writing a lot of additional code to work with and to identify the source/tokens, I simply dump all the tokens into a xml format using Regular Expressions search/replace. This takes up to 30 passes for completion and, yes, this is where most of the time is used.
> From there on it's straight forward to do any kind of analysis with the code/tokens.
> The key is when it gets to the phase of optimization. In this case, the compiler (or should I be fair and call it "the converter"), has a complete "engine" behind it which takes care of all the information in a proper manner.
> Cutting, moving, merging, passing referenses and occasionally adding additional code is done with ease.
> It's already possible at that stage to systematically assign (and measure) a "Unit of Fitness" (Genetic Analysis), if I may call it that, to the individual code blocks.
> By measuring the fitness, the converter knows where to focus to improve performance.
> After optimization, converting it to HLA obviously opens a Pandora's box of a different kind. You know the rest...
> 
> To summarize, optimization is taken care of even before convertion to HLA takes place, and that's why I use xml (it's a matter of preference).
> 
> Technically, thats the basic overview of the operation, and yes, I AM SERIOUS ABOUT THIS!
> 
> So, be positive... :)
> 


I'll be positive, but only if you promise you didn't sacrifice nesting comments in the process. Also, if you haven't already, you should trash D's cyclic dependency policy.
April 07, 2009
Tom S wrote:
> How is compilar formed? How is compilar formed? How executable get maked?

They need to do way> instain programer, who wriet thier compilars, just becuase these compilars cant get debuged?

It was on the newsgroup this mroing, a programer in d.D who had rewrite D compilar. They are taking the compilar back to teh net, too vapour too warez. My pary are with the programers who use compilar, I am truley sorry for your lots
April 07, 2009
On Mon, Apr 6, 2009 at 10:13 PM, Christopher Wright <dhasenan@gmail.com> wrote:
> Tom S wrote:
>>
>> How is compilar formed? How is compilar formed? How executable get maked?
>
> They need to do way> instain programer, who wriet thier compilars, just becuase these compilars cant get debuged?
>
> It was on the newsgroup this mroing, a programer in d.D who had rewrite D compilar. They are taking the compilar back to teh net, too vapour too warez. My pary are with the programers who use compilar, I am truley sorry for your lots

I am gobsmacked that I didn't think to do this earlier.  Thank you so much.  :D
April 07, 2009
Bass wrote:
> Tom S Wrote:
> 
>> How is compilar formed? How is compilar formed? How executable get maked?
> 
> Well, it (the D code) is simply converted to HLA (High Level Assembler) files.
> HLA take it from there and compile it into .obj files.
> From there you can bassically choose your favourite linker to create exe etc.

..and HLA uses NASM,FASM,... to create the obj files, right ?

I would call it Managed D.

Björn
April 07, 2009
Christopher Wright wrote:
> Tom S wrote:
>> How is compilar formed? How is compilar formed? How executable get maked?
> 
> They need to do way> instain programer, who wriet thier compilars, just becuase these compilars cant get debuged?
> 
> It was on the newsgroup this mroing, a programer in d.D who had rewrite D compilar. They are taking the compilar back to teh net, too vapour too warez. My pary are with the programers who use compilar, I am truley sorry for your lots

LOL, awesome!

I love it! :D
April 07, 2009
Christopher Wright wrote:
> Tom S wrote:
>> How is compilar formed? How is compilar formed? How executable get maked?
> 
> They need to do way> instain programer, who wriet thier compilars, just becuase these compilars cant get debuged?
> 
> It was on the newsgroup this mroing, a programer in d.D who had rewrite D compilar. They are taking the compilar back to teh net, too vapour too warez. My pary are with the programers who use compilar, I am truley sorry for your lots

I don't understand this.
April 07, 2009
grauzone wrote:
> Christopher Wright wrote:
>> Tom S wrote:
>>> How is compilar formed? How is compilar formed? How executable get maked?
>>
>> They need to do way> instain programer, who wriet thier compilars, just becuase these compilars cant get debuged?
>>
>> It was on the newsgroup this mroing, a programer in d.D who had rewrite D compilar. They are taking the compilar back to teh net, too vapour too warez. My pary are with the programers who use compilar, I am truley sorry for your lots
> 
> I don't understand this.

Ask the web search engine of your choice about "HOW IS BABBY FORMED".
April 07, 2009
Alexander Pánek wrote:
> grauzone wrote:
>> Christopher Wright wrote:
>>> Tom S wrote:
>>>> How is compilar formed? How is compilar formed? How executable get maked?
>>>
>>> They need to do way> instain programer, who wriet thier compilars, just becuase these compilars cant get debuged?
>>>
>>> It was on the newsgroup this mroing, a programer in d.D who had rewrite D compilar. They are taking the compilar back to teh net, too vapour too warez. My pary are with the programers who use compilar, I am truley sorry for your lots
>>
>> I don't understand this.
> 
> Ask the web search engine of your choice about "HOW IS BABBY FORMED".

I know about this phrase, but I don't understand Christopher's posting. Yeah, some joke about internet memes, but...?
April 07, 2009
grauzone wrote:
> Alexander Pánek wrote:
>> grauzone wrote:
>>> Christopher Wright wrote:
>>>> Tom S wrote:
>>>>> How is compilar formed? How is compilar formed? How executable get maked?
>>>>
>>>> They need to do way> instain programer, who wriet thier compilars, just becuase these compilars cant get debuged?
>>>>
>>>> It was on the newsgroup this mroing, a programer in d.D who had rewrite D compilar. They are taking the compilar back to teh net, too vapour too warez. My pary are with the programers who use compilar, I am truley sorry for your lots
>>>
>>> I don't understand this.
>>
>> Ask the web search engine of your choice about "HOW IS BABBY FORMED".
> 
> I know about this phrase, but I don't understand Christopher's posting. Yeah, some joke about internet memes, but...?

Christopher changed the response’s sense to match with Tom’s question.

http://www.youtube.com/watch?v=Ll-lia-FEIY
1 2 3
Next ›   Last »