[ANN] Squirrel 1.0 beta 2 released

Started by
14 comments, last by fagiano 19 years, 12 months ago
The forum is up:
http://squirrel.sourceforge.net/forum/

irbrian: sorry but I had installed the forum around 1h after you gave me the idea. I think the one I''ve found is quite good. thx in any case.

brain21: no, squirrel cannot suspend the VM execution based on the numebr of instructions executed. Like lua uses coroutines, you can suspend the execution calling the function suspend().

all: if you have any other questions, use the brand new forum

ciao
Alberto


-----------------------------
The programming language Squirrel
http://squirrel.sourceforge.net
-----------------------------The programming language Squirrelhttp://www.squirrel-lang.org
Advertisement
Squirrel is pretty nice I like what you have done, it compiled without any problems and works great (except that programming in the REPL was a bit awkward). There are some features of the language I haven''t quite figured out yet though but I guess eventually they will make sense :-) Since I never really dug into Lua much I guess it is why I don''t get some of the features.

I wish I had known about your project sooner, but I don''t feel like I wasted my time working on my own stuff. It is very good practice. Maybe I will eventually help out and we can build a translator in the backend to translate Squirrel code to C++ or C and compile native modules to link into the VM. Your code was pretty good (but I dare say, use more whitespace. It is nearly as terse as a Scheme program! :-)

Peace->
Thx PeterTarkus

quote:
Squirrel is pretty nice I like what you have done, it compiled without any problems and works great (except that programming in the REPL was a bit awkward).


the REPL progamming style is there to avoid the user to deal with objects ownership. As far as the objects is in the stack you do not have to worry about who owns what(try to embed python and you''ll understand). Plus in this way the API maps almost 1:1 on the VM so most of the functions directly kick into VM code. That''s faster and avoids reduntant code.

quote:
Maybe I will eventually help out and we can build a translator in the backend to translate Squirrel code to C++ or C and compile native modules to link into the VM


That would be great thx. I''d like to offer more tools for squirrel, is just that I really can''t find the time. Expecially because at the moment I''m focusing on making the core language polished and rock solid.

quote:
Your code was pretty good (but I dare say, use more whitespace. It is nearly as terse as a Scheme program! :-)


Indeed my coding style is a bit compressed The main reason is that initially squirrel wasn''t ment to be released to the public, I was just experimenting. A collegue of mine convinced me to release it. I usually do not code like that in working environment only when I code for myself. I plan to do some reformatting.


-----------------------------
The programming language Squirrel
http://squirrel.sourceforge.net
-----------------------------The programming language Squirrelhttp://www.squirrel-lang.org
hehe, I was VERY much joking. I code equally as terse, in fact I am worse than you :-)

It is a great job you did I congratulate you and thanks for opening up your ideas as many people can learn and evolve from the techniques you presented and it should be very useful to people once it gets more tutorials and people contributing to it.

Peace->out

I am not sure if you are interested but I worked out a scheme to call C functions directly from an interpreter environment.

For instace a C function like

double fact(double a)
{
...
}

I can call them directly. It involved some magic and alot of assembler code. It is extremely fast though as the C function is ''raw'' and there is no need to get into the interpreter or anything.
It should be possible also to link them directly to DLLs and stuff too.

If you are interested in extending squirrel with something like that I can post the general code solution but you will have to work out the details into integrating it into squirrel. The only hard part is really managing the stack in C as you have to do some juggling between assembler and C code in between calling the function.

See yah
Yep, I know the thecnique, I used to be into asm development. The guy that integrated squirrel in my company''s engine implemented something similar to automatically bind C++ virtual interfaces to squirrel. However don''t want to add any asm code in the core lang, is way to difficult to maintain and is not really portable. Squirrel is already fast enough for my pouposes. Maybe an external library like my collegue did, would be a better solution.

ciao
Alberto

-----------------------------
The programming language Squirrel
http://squirrel.sourceforge.net
-----------------------------The programming language Squirrelhttp://www.squirrel-lang.org

This topic is closed to new replies.

Advertisement