Looks very interesting, well done to whoever did this. After an admittedly quick and superficial glance at the tutorial, I'm not fan of chapter 6 though. Why so many ways to write calls? With no idiomatic syntax, it means I have to know all these variations if I hope to understand Felix code (since it is ok for anyone to choose whichever style).
I just don't understand why there are both gen and proc functions. Why have a separate kind of thing for functions that don't return anything?
Felix - a fast scripting language
31–40 of 88 posts
Re: Felix - a fast scripting language
#32Why do language designers continue to insist on semi-colon terminated lines?
Re: Felix - a fast scripting language
#33Why do language designers continue to insist on semi-colon terminated lines?
Re: Felix - a fast scripting language
#34The web page rubs me the wrong way. How can you claim to be the fastest anything without a single benchmark? How can you claim to be a "scripting language" when you're statically-typed and compile to C++? What does "scripting language" even mean then? How can you say things like "it will be a bit slow the first time but subsequent runs will load much faster than any VM." Any VM? Are you really "much faster" than: $ t…
[1] I guess it should be faster than hand-written C, which is, of course, possible. ATS supposedly generates C code which is very competitive.
Re: Felix - a fast scripting language
#35I'll stick with Lua. I wouldn't give up the dynamic aspects of a language like Lua just for a bit more speed. LuaJIT is more than enough, and if you are doing the hard number crunching that makes speed an issue there's a good chance it's not trivially harder just to write it in C++ to begin with.
Re: Felix - a fast scripting language
#36Earlier quoted context omitted.
But it's not triviality - it's noise - Signal: Good - Noise: Bad, got it? If you REALLY need end of line markers, any half-way competent text editor can display them for you.
You obviously have no idea what signal-to-noise ratio is about if you think semicolons are noise. Who are you trying to impress?
Re: Felix - a fast scripting language
#37Earlier quoted context omitted.
I just don't understand why there are both gen and proc functions. Why have a separate kind of thing for functions that don't return anything?
Functions aren't supposed to have side effects and procs are. It makes sense since functions without side effects would allow for some nice compiler optimizations. The part that scares me is that the compiler doesn't enforce no side effects. This means you need to be extra careful when using someone else's code.
Re: Felix - a fast scripting language
#38Earlier quoted context omitted.
But it's not triviality - it's noise - Signal: Good - Noise: Bad, got it? If you REALLY need end of line markers, any half-way competent text editor can display them for you.
You obviously have no idea what signal-to-noise ratio is about if you think semicolons are noise. Who are you trying to impress?
Re: Felix - a fast scripting language
#39Earlier quoted context omitted.
But it's not triviality - it's noise - Signal: Good - Noise: Bad, got it? If you REALLY need end of line markers, any half-way competent text editor can display them for you.
You obviously have no idea what signal-to-noise ratio is about if you think semicolons are noise. Who are you trying to impress?
Re: Felix - a fast scripting language
#40I can't remember how many times in my life I've done a link expedition through a website or docs just to see a simple programming example.