Hi there, As we all know that OBHost is just supporting Pawn scripts, I would like to provide some suggestions and or points about the Squirrel Programming language;
Introduction(Short):
Squirrel is a high level imperative, object-oriented programming language, designed to be a light-weight scripting language that fits in the size, memory bandwidth, and real-time requirements of applications like video games. Although Squirrel offers a wide range of features like:
A short Overview:
Open Source MIT licence
dynamic typing
delegation
classes & inheritance
higher order functions
lexical scoping
generators
cooperative threads(coroutines)
tail recursion
exception handling
automatic memory management (CPU bursts free; mixed approach ref counting/GC)
both compiler and virtual machine fit together in about 7k lines of C++ code and add only around 100kb-150kb the executable size.
optional 16bits characters strings
powerful embedding api
eg. function/classes can be defined by scripts or in C
eg. objects can fully exist in the VM or be bound to native code
eg. classes created in C can be extended by scripts or vice-versa
and more
Squirrel is inspired by languages like Python,Javascript and especially Lua(The API is very similar and the table code is based on the Lua one)...
squirrel's syntax is similar to C/C++/Java etc... but the language has a very dynamic nature like Python/Lua etc...
Squirrel uses a C-like syntax.
VC:MP unofficial forum and SQ support official forum
Squirrel language voted as the best language in VC:MP Servers(Taken from Vice City official forums)
SQ has many functions it can also create a module, like here a module has been designed by C++ and a bit of SQ to add boots in VC:MP(Taken from Vice City official forums)
Only 1% servers of VC:MP are written in Pawn 1% C++ and 98% servers are written in Squirrel.
I hope you add the support of Squirrel Language
Introduction(Short):
Squirrel is a high level imperative, object-oriented programming language, designed to be a light-weight scripting language that fits in the size, memory bandwidth, and real-time requirements of applications like video games. Although Squirrel offers a wide range of features like:
A short Overview:
Open Source MIT licence
dynamic typing
delegation
classes & inheritance
higher order functions
lexical scoping
generators
cooperative threads(coroutines)
tail recursion
exception handling
automatic memory management (CPU bursts free; mixed approach ref counting/GC)
both compiler and virtual machine fit together in about 7k lines of C++ code and add only around 100kb-150kb the executable size.
optional 16bits characters strings
powerful embedding api
eg. function/classes can be defined by scripts or in C
eg. objects can fully exist in the VM or be bound to native code
eg. classes created in C can be extended by scripts or vice-versa
and more
Squirrel is inspired by languages like Python,Javascript and especially Lua(The API is very similar and the table code is based on the Lua one)...
squirrel's syntax is similar to C/C++/Java etc... but the language has a very dynamic nature like Python/Lua etc...
Squirrel uses a C-like syntax.
- Code:
local table = {
a = "10"
subtable = {
array = [1,2,3]
},
[10 + 123] = "expression index"
}
local array=[ 1, 2, 3, { a = 10, b = "string" } ];
foreach (i,val in array)
{
::print("the type of val is"+typeof val);
}
/////////////////////////////////////////////
class Entity
{
constructor(etype,entityname)
{
name = entityname;
type = etype;
}
x = 0;
y = 0;
z = 0;
name = null;
type = null;
}
function Entity::MoveTo(newx,newy,newz)
{
x = newx;
y = newy;
z = newz;
}
class Player extends Entity {
constructor(entityname)
{
base.constructor("Player",entityname)
}
function DoDomething()
{
::print("something");
}
}
local newplayer = Player("da playar");
newplayer.MoveTo(100,200,300);
VC:MP unofficial forum and SQ support official forum
Squirrel language voted as the best language in VC:MP Servers(Taken from Vice City official forums)
SQ has many functions it can also create a module, like here a module has been designed by C++ and a bit of SQ to add boots in VC:MP(Taken from Vice City official forums)
Only 1% servers of VC:MP are written in Pawn 1% C++ and 98% servers are written in Squirrel.
I hope you add the support of Squirrel Language
Fri Oct 31, 2014 8:17 am by xCubic
» SERVER REQUEST {SAMP}
Wed Oct 01, 2014 8:58 am by Aditya
» my app
Wed Sep 17, 2014 8:48 pm by Ossi Baba
» Server App
Tue Sep 16, 2014 9:59 pm by Ossi Baba
» application
Tue Sep 16, 2014 9:59 pm by Ossi Baba
» NEED ROLEPLAY SCRIPT
Tue Sep 16, 2014 9:59 pm by Ossi Baba
» How to upload fraps video fast in youtube
Mon Sep 01, 2014 9:56 pm by Gramatik
» Hello
Wed Aug 06, 2014 4:40 pm by Snake_Eyes[DTBF]
» Application!
Mon Jul 28, 2014 9:07 am by Snake_Eyes[DTBF]