On 09/01/2014, at 12:22 AM, Shayne Fletcher wrote:

> 
> On Wed, Jan 8, 2014 at 8:14 AM, john skaller <skal...@users.sourceforge.net> 
> wrote:
> By inventing some convention, we can do something like:

> (for example .. )
> 
> Slick! :)

Well not really. Interscript was much more powerful and much simpler in some 
sense.
It just said:

@command

executed command, which could be ANY Python you like. So roughly an interscript
file was Python with the "non-@" lines as long strings which by default would
be written to the current tangler.

Actually, I said "was" but interscript still exists and is part of the build 
system.

Both this mini-interscript and the full one suffer from two faults:
they only handle "line by line" macros not "micros" or smaller fragments,
and, they don't play with IDE's or text editors well due to arbitrary
mixing of arbitrary languages, And for the same reason when it gets
complex its very hard to read by a human.

Probably is I can't see an alternative. File systems suck big time as an idea.
They're a property based system i.e.

        filesystem: name -> contents

which necessarily cannot handle relationships. What I mean is you can write,
say, a Makefile for compiling some files to others, but the coupling is
via relative path names, which is instrinsically EVIL because it is
IMPLICIT coupling, breaking the principle of explicit coupling.

In the flx_iscr tool we might fix that by allowing some files to refer to others
(in the same package) using the defined "nick" so that when the files
are extracted the references are set to the actual file names. EG

@make_sh
gcc @{ex1}

that so when you extract ex1 -> example1.c make_sh will read

gcc example1.c

The importance of this is if you say

        flx_iscr stuff.fdoc outputdir

then we would get

        gcc outputdir/example1.c

or something. Very useful for *.fpc files for filling them in to refer to 
libraries where you put them. But not so good, if you first extract
THEN you sudo copy to an install location .. breaking all the linkage.


--
john skaller
skal...@users.sourceforge.net
http://felix-lang.org




------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Felix-language mailing list
Felix-language@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/felix-language

Reply via email to