On 30/08/2014, at 9:53 AM, Martin DeMello wrote:

> Actually, my somewhat more drastic inclination (you will probably not agree!) 
> is to get rid of the ability to use felix as a systemwide scripting language 
> altogether, embrace the fact that it generates native executables, and let 
> the default be for developers to always install felix as user, set up their 
> dev environment, and use it to create executables which need no reference to 
> the felix compiler to use them. 

Originally the idea is that you can write *platform independent* programs and 
just
run them. No switches. No build steps. No conditional compilation for Windows
vs Linux.   

Actually Ocaml does the last thing quite well up to the limits of the
standard distro: the Felix compiler "just works" on both Windows and Unix
with the only work needed to support this in the compiler being some code
to handle filenames (slash separator vs slosh)

Anyhow if you look at the Felix build process there is quite a lot of using 
flx to generate binary stuff and needing switches to control the build steps,
however the design tries to make the shell commands needed platform
independent. Thats why you do:

        flx --static -c -od . hello.flx

The -od dirname flag is the same on Windows as Unix. 

But then consider this, in "make test":

        ${BUILDROOT}/host/bin/flx --test=${BUILDROOT} \
                --usage=prototype --expect --nonstop \
                --indir=test/regress/rt --regex='.*\.flx' test

It's kind of useful you don't have to specify the output of the exe.
In fact in this case .. there's no --static .. so there's no exe, it actually
makes 

        testcase.dylib

on OSX, .dll on Windows and .so on linux. I really don't want to say
where the binaries go: they go in the cache, i just want to run
and forget.

So really, rather than "forget" the concept of running script,
it provides a useful starting point to use the language without
hassle.

Ultimately, yes, you will need to build components in steps.
Hopefully .. without auto* tools :)

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




------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Felix-language mailing list
Felix-language@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/felix-language

Reply via email to