HISTORY 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492
  1. ***version 3.1 RC 1***
  2. -added new header sqconfig.h for all optional type declarations(unicode, 64bits etc..)
  3. -added sq_setsharedforeignptr sq_getsharedforeignptr
  4. -added sq_setsharedreleasehook sq_getsharedreleasehook
  5. -added escape() in sqstd string library
  6. -added __LINE__ and __FILE__ (thx mingodad)
  7. -widechar support on gcc builds
  8. -now boolean can be used in constants
  9. -reduced dependencies on C runtime library
  10. -newthread and sq_newthread() no longer reinitialize the root table on friend VMs(thx Lucas Cardellini)
  11. -exceptions in the _inherited metamethod are propagated(thx Lucas Cardellini)
  12. -'in' operator performance improvement(thx unagipai and mingodad)
  13. -fixes crash in compiler when trying to write 'base'
  14. -fixed bug in switch statement when using locals as case values (thx mingodad)
  15. -fixed bug in print()(thx Lucas Cardellini)
  16. ***2013-08-30 ***
  17. ***version 3.1 beta 1***
  18. -added new scoping rule(root attached to closures)
  19. -added closure.setroot() closure.getroot()
  20. -added sq_setclosureroot() and sq_getclosureroot()
  21. -added sq_setvmreleasehook() and sq_getvmreleasehook()
  22. -added documentaion for sq_getbase()
  23. -now string.tointeger() accepts an optional parameter 'base'
  24. -now format accepts zeroes in the format string (thx mingodad)
  25. -fixed bug in sqstd_createfile() (thx mingodad)
  26. -minor buxfixes
  27. ***2012-11-10 ***
  28. ***version 3.0.4 stable***
  29. -sq_deleteslot slot now pops the key in case of failure
  30. -fixed bug when _get metamethod throws null
  31. -fixed a bug in rstrip
  32. -added some error handling
  33. -minor bugfixes
  34. ***2012-06-19 ***
  35. ***version 3.1.0 alpha 1***
  36. -changed in and instanceof operator precendence
  37. -root object in closures
  38. -added closure.setroot closure.getroot
  39. -added sq_setclosureroot and sq_getclosureroot
  40. ***version 3.0.3 stable***
  41. -improved error messages for _cmp(when a non integer value is returned) (thx Yexo)
  42. -added class.newmember() built in method (thx Nam)
  43. -added class.rawnewmember() built in method (thx Nam)
  44. -added sq_rawnewmember() (thx Nam)
  45. -added sq_getversion()
  46. -added sq_typeof()
  47. -added sq_getclosurename()
  48. -added file.close() in stdlib
  49. -documented closure.getinfos() built-in method
  50. -fixed string iteration doesn't return negative numbers for characters > 127
  51. -fixed bug in tofloat() when converting a string with scientific notation without a decimal point (thx wr2)
  52. -fixed potential infinite loop in array.sort() when the _cmp function is inconsistent (thx Yexo)
  53. -fixed obscure bug in the compiler(thx yishin)
  54. -fixed some minor bug
  55. ***2011-11-28 ***
  56. ***version 3.0.2 stable***
  57. -added sq_gethash API
  58. -now array.sort() is implemented with heapsort
  59. -now floats in scientific notation also accept numbers with no '.' (eg. 1e+6 or 1e6)
  60. -fixed some warning
  61. -fixed some documentation
  62. -fixed bug in GC
  63. ***2011-09-08 ***
  64. ***version 3.0.1 stable***
  65. -added # as alternative symbol for "line comment"(mostly useful for shell scripts)
  66. -added sq_throwobject() to throw an arbitrary object from the C API
  67. -added alignement flag for userdata types, SQ_ALIGNMENT (thx Shigemasa)
  68. -added rawset() and rawget() to class and instance default delegate
  69. -changed bytecode format now ensures matching integer size and float size
  70. -now inherited classes also inherit userdatasize
  71. -added SQUIRREL_VERSION_NUMBER in squirrel.h and _versionnumber_ global symbol
  72. -fixed sq_getmemberhandle
  73. -fixed sq_getrefcount
  74. -refactored some sqstdio code
  75. -refactored some clone code
  76. -refactored some stuff in the string lib
  77. -added -s and -fno-exceptions in GCC makefile(better performance when using GCC)
  78. ***2011-03-13 ***
  79. ***version 3.0 stable***
  80. -added sq_getcallee()
  81. -sq_getfreevariable() also works for native closures
  82. -minior optimizations
  83. -removed several warning when compiling with GCC 4.x
  84. -fixed some errors in the documentation
  85. -fixed bug when using SQUSEDOUBLE and 32bits intengers
  86. -fixed bug when invoking generators with closure.call() (thx huntercool)
  87. ***2010-12-19 ***
  88. ***version 3.0 release candidate 1(RC 1)***
  89. -improved metamethods error handling
  90. -added parameter 'isstatic' to _newmember metamethod(thx G.Meyer)
  91. -added sq_getrefcount() to return number of refences from C++(thx G.Meyer)
  92. ***2010-11-07 ***
  93. ***version 3.0 beta 3***
  94. -license changed to "MIT license"
  95. -added sq_resurrectunreachable() and resurrectunreachable()
  96. -added callee() built in function, returns the current running closure
  97. -added thread.getstackinfos()
  98. -added sq_objtouserpointer()
  99. -added sq_newtableex()
  100. -various refactoring and optimizations
  101. -fixed several 64bits issues regarding integer to string conversions
  102. -fixed some bugs when SQUSEDOUBLE is used in 32bits systems
  103. ***2010-08-18 ***
  104. ***version 3.0 beta 2.1***
  105. -fixed bug in class constructor
  106. -fixed bug in compound arith
  107. ***2010-08-12 ***
  108. ***version 3.0 beta 2***
  109. -class methods can be added or replaced after the class as been instantiated
  110. -JSON compliant table syntax, this is currently an experimental feature (thx atai)
  111. -sq_getsize() now returns userdatasize for classes and instances
  112. -now setroottable() and setconsttable() return the previous value of the respective table
  113. -fixed bug in compound arith operators when used on a free variable (thx ellon)
  114. -fixed some x64 minor bugs
  115. -fixed minor bug in the compiler
  116. -refactored some VM internals
  117. -documented sq_getmemberhandle, sq_getbyhandle, sq_setbyhandle to set and get value from classes
  118. ***2009-11-15 ***
  119. ***version 3.0 beta 1***
  120. -various refactoring and optimizations
  121. -fixed bug in free variables (thx mokehehe)
  122. -fixed bug in functions with default parameters (thx ara & Yexo)
  123. -fixed bug in exception handling
  124. -improved error propagation in _set and _get metamethods ( and 'throw null' for clean failure)
  125. -added sq_getmemberhandle, sq_getbyhandle, sq_setbyhandle to set and get value from classes
  126. ***2009-06-30 ***
  127. ***version 3.0 alpha 2***
  128. -added real free variables(thx Paul Ruizendaal)
  129. -added refactored function call implementation and compiler(thx Paul Ruizendaal)
  130. -added sq_getfunctioninfo
  131. -added compile time flag SQUSEDOUBLE to use double precision floats
  132. -added global slot _floatsize_ int the base lib to recognize single precision and double precision builds
  133. -sq_wakeupvm can now resume the vm with an exception
  134. -added sqstd_format
  135. -now blobs can be cloned
  136. -generators can now be instantiated by calling sq_call() or closure.call()
  137. -fixed debughook bug
  138. -fixed cooroutine error propagation
  139. ***2008-07-23 ***
  140. ***version 3.0 alpha 1***
  141. -first branch from 2.x source tree
  142. -added 'base' keyword
  143. -removed 'delegate' keyword
  144. -now compiled scripts are vararg functions
  145. -added setdelegate() and getdelegate() table builtin methods
  146. -added <=> 3 ways compare operator
  147. -added lambda expression @(a,b) a + b
  148. -added local function statement
  149. -added array built-in map(),reduce(),apply(),filter() and find()
  150. -generators hold only a weak reference of the enviroment object
  151. -removed 'vargv' and 'vargc' keywords
  152. -now var args are passed as an array called vargv(as a paramter)
  153. -removed 'parent' keyword
  154. -added class getbase() built in method
  155. -instanceof doesn't throw an exception if the left expression is not a class
  156. -lexical scoping for free variables(free variables are no longer in the second parameter list)
  157. -sq_setprintfunc accept error func
  158. -sq_geterrorfunc()
  159. -added sq_arrayremove() and sq_arrayinsert()
  160. -error() built in function(works like print but prints using the errorfunc)
  161. -added native debug hook
  162. ***2008-02-17 ***
  163. ***version 2.2 stable***
  164. -added _newslot metamethod in classes
  165. -added enums added constants
  166. -added sq_pushconsttable, sq_setconsttable
  167. -added default param
  168. -added octal literals(thx Dinosaur)
  169. -fixed debug hook, 'calls' and 'returns' are properly notified in the same number.
  170. -fixed a coroutine bug
  171. ***2007-07-29 ***
  172. ***version 2.1.2 stable***
  173. -new behaviour for generators iteration using foreach
  174. now when a generator is iterated by foreach the value returned by a 'return val' statement
  175. will terminate the iteration but will not be returned as foreach iteration
  176. -added sq_setclassudsize()
  177. -added sq_clear()
  178. -added table.clear(), array.clear()
  179. -fixed sq_cmp() (thx jyuill)
  180. -fixed minor bugs
  181. ***2006-08-21 ***
  182. ***version 2.1.1 stable***
  183. -vm refactoring
  184. -optimized internal function memory layout
  185. -new global symbol _version_ (is the version string)
  186. -code size optimization for float literals(on 32bits float builts)
  187. -now the raw ref API(sq_addref etc...) is fully reentrant.
  188. -fixed a bug in sq_getdelegate() now pushes null if the object doesn't have a delegate(thx MatzeB)
  189. -improved C reference performances in NO_GARBAGE_COLLECTOR builds
  190. -sq_getlocal() now enumerates also outer values.
  191. -fixed regexp library for GCC users.
  192. ***2006-03-19 ***
  193. ***version 2.1 stable***
  194. -added static class fields, new keyword static
  195. -added 64bits architecture support
  196. -added global slot _intsize_ int the base lib to recognize 32bits and 64bits builds
  197. -added functions with fixed environment, closure.bindenv() built-in function
  198. -all types except userdata and null implement the tostring() method
  199. -string concatenation now invokes metamethod _tostring
  200. -new metamethods for class objects _newmember and _inherited
  201. -sq_call() sq_resume() sq_wakeupvm() have a new signature
  202. -new C referencing implementation(scales more with the amount of references)
  203. -refactored hash table
  204. -new api functions sq_newslot(),sq_tobool(),sq_getbase(), sq_instanceof(), sq_bindenv()
  205. -the api func sq_createslot was deprecated but still supported in form of C macro on top of sq_newslot
  206. -sq_setreleasehook() now also works for classes
  207. -stream.readstr() and stream.writestr() have been deprecated(this affects file and blob)
  208. -fixed squirrel.h undeclared api calls
  209. -fixed few minor bugs
  210. -SQChar is now defined as wchar_t
  211. -removed warning when building with -Wall -pedantic for GCC users
  212. -added new std io function writeclosuretofile()
  213. -added new std string functions strip(),rstrip(),lstrip() and split()
  214. -regular expressions operators (+,*) now have more POSIX greedyness behaviour
  215. -class constructors are now invoked as normal functions
  216. ***2005-10-02 ***
  217. ***version 2.0.5 stable***
  218. -fixed some 64bits incompatibilities (thx sarge)
  219. -fixed minor bug in the stdlib format() function (thx Rick)
  220. -fixed a bug in dofile() that was preventing to compile empty files
  221. -added new API sq_poptop() & sq_getfreevariable()
  222. -some performance improvements
  223. ***2005-08-14 ***
  224. ***version 2.0.4 stable***
  225. -weak references and related API calls
  226. -added sq_objtobool()
  227. -class instances memory policies improved(1 mem allocation for the whole instance)
  228. -typetags are now declared as SQUserPointer instead of unsigned int
  229. -first pass for 64bits compatibility
  230. -fixed minor bug in the stdio stream
  231. -fixed a bug in format()
  232. -fixed bug in string.tointeger() and string.tofloat()
  233. ***2005-06-24 ***
  234. ***version 2.0.3 stable***
  235. -dofile() and loadfile() in the iolib now can decode ASCII, UTF8 files UCS2 big-endian and little-endian
  236. -sq_setparamscheck() : now typemesk can check for null
  237. -added string escape sequence \xhhhh
  238. -fixed some C++ standard incompatibilities
  239. ***2005-05-15 ***
  240. ***version 2.0.2 stable***
  241. -performances improvements (expecially for GCC users)
  242. -removed all dependencies from C++ exception handling
  243. -various bugfixes
  244. ***2005-04-12 ***
  245. ***version 2.0.1 stable***
  246. -various bugfixes
  247. -sq_setparamscheck() now allows spaces in the typemask
  248. ***2005-04-03 ***
  249. ***version 2.0 stable***
  250. -added API sq_gettypetag()
  251. -added built-in function to the bool type(tointeger, tostring etc...)
  252. ***2005-02-27 ***
  253. ***version 2.0 release candidate 1(RC 1)***
  254. -added API sq_reseterror()
  255. -modified sq_release()
  256. -now class instances can be cloned
  257. -various bufixes
  258. ***2005-01-26 ***
  259. ***version 2.0 beta 1***
  260. -added bool type
  261. -class properties can be redefined in a derived class
  262. -added ops *= /= and %=
  263. -new syntax for class attributes declaration </ and /> instead of ( and )
  264. -increased the max number of literals per function from 65535 to 16777215
  265. -now free variables have proper lexical scoping
  266. -added API sq_createinstance(), sq_pushbool(), sq_getbool()
  267. -added built-in function type()
  268. -added built-in function obj.rawin(key) in table,class and instance
  269. -sq_rawget() and sq_rawset() now work also on classes and instances
  270. -the VM no longer uses C++ exception handling (more suitable for embedded devices)
  271. -various bufixes
  272. ***2004-12-21 ***
  273. ***version 2.0 alpha 2***
  274. -globals scoping changed, now if :: is omitted the VM automatically falls back on the root table
  275. -various bufixes
  276. -added class level attributes
  277. ***2004-12-12 ***
  278. ***version 2.0 alpha 1***
  279. -codebase branch from version 1.x
  280. -added classes
  281. -added functions with variable number of parameters(vargc & vargv and the ...)
  282. -0 and 0.0 are now considered 'false' by all conditional statements(if,while,for,?,do-while)
  283. -added new api functions sq_newclass() sq_setinstanceup() sq_getinstanceup() sq_getattributes() sq_setattributes()
  284. -modified api sq_settypetag()
  285. ***2004-11-01 ***
  286. ***version 1.0 stable***
  287. -fixed some minor bug
  288. -improved operator 'delete' performances
  289. -added scientific notation for float numbers( eg. 2.e16 or 2.e-2)
  290. ***2004-08-30 ***
  291. ***version 1.0 release candidate 2(RC 2)***
  292. -fixed bug in the vm(thx Pierre Renaux)
  293. -fixed bug in the optimizer(thx Pierre Renaux)
  294. -fixed some bug in the documentation(thx JD)
  295. -added new api functions for raw object handling
  296. -removed nested multiline comments
  297. -reduced memory footprint in C references
  298. ***2004-08-23 ***
  299. ***version 1.0 release candidate 1(RC 1)***
  300. -fixed division by zero
  301. -the 'in' operator and obj.rawget() do not query the default delegate anymore
  302. -added function sq_getprintfunc()
  303. -added new standard library 'auxlib'(implements default error handlers)
  304. ***2004-07-12 ***
  305. ***version 1.0 beta 4***
  306. -fixed a bug in the integer.tochar() built-in method
  307. -fixed unary minus operator
  308. -fixed bug in dofile()
  309. -fixed inconsistency between != and == operators(on float/integer comparison)
  310. -added javascript style unsigned right shift operator '>>>'
  311. -added array(size) constructor built-in function
  312. -array.resize(size,[fill]) built-in function accepts an optional 'fill' value
  313. -improved debug API, added sq_getclosureinfo() and sq_setnativeclosurename()
  314. ***2004-05-23 ***
  315. ***version 1.0 beta 3***
  316. -minor vm bug fixes
  317. -string allocation is now faster
  318. -tables and array memory usage is now less conservative(they shrink)
  319. -added regular expression routines in the standard library
  320. -The 'c' expression now accepts only 1 character(thx irbrian)
  321. -multiline strings <[ ]> have been substituted with C# style verbatim strings (eg. @"string")
  322. -added new keyword 'parent' for accessing the delegate of tables and unserdata
  323. -The metamethod '_clone' has been renamed '_cloned'
  324. -the _delslot metamethod's behaviour and prototype have been changed
  325. -new default function in the integer and float object 'tochar()'
  326. -the built-in function chcode2string has been removed
  327. -the default method [table].getdelegate() has been removed
  328. -new api sq_rawdeleteslot()
  329. -new table built-in method rawdelete(key)
  330. -the dynamic mudule loading has been removed from the standard distribution
  331. -some optimizations in the VM
  332. ***2004-04-21 ***
  333. ***version 1.0 beta 2***
  334. -minor compiler/parser bug fixes
  335. -sq_newclosure has a different prototype, the "paramscheck" of paramter has been moved to the new function sq_setparamscheck()
  336. -sq_setparamscheck allows to add automatic parameters type checking in native closures
  337. -sq_compile() lost the lineinfo parameter
  338. -new api sq_enabledebuginfo() globally sets compiler's debug info generation
  339. -added consistency check on bytecode serialization
  340. -fixed += operator, now works on strings like +
  341. -added global slot in the base lib _charsize_ to recognize unicode builds from ascii builds runtime
  342. -added registry table
  343. -new api call sq_pushregistrytable()
  344. -added type tag to the userdata type sq_settypetag()
  345. -sq_getuserdata now queries the userdata typetag
  346. -the built in function collect_garbage() as been renamed collectgarbage() for consistency reasons
  347. -new standard libraries(sqlibs are now obsolete)
  348. ***2004-02-20 ***
  349. ***version 1.0 beta 1***
  350. -fixed a bug in the compiler (thanks Martin Kofler)
  351. -fixed bug in the switch case statement
  352. -fixed the _unm metamethod
  353. -fixed minor bugs in the API
  354. -fixed automatic stack resizing
  355. -first beta version
  356. first pass code clean up in the VM and base lib
  357. first pass code coverege test has been done on VM and built-in lib
  358. -new VM creation API sq_open() sq_close() (sq_newvm and sq_releasevm are now obsolete)
  359. -new api allows to specifiy a "print" function to output text(sq_printfunc)
  360. -added some small optimizations
  361. -new cooperative multi-threading capabilities in the base library(coroutines), VMs are now a built in type("thread")
  362. -new built in functions have been added for manipulating the new "thread" type
  363. -friend virtual machines share the same root table, error handler and debug hook by default
  364. -new compile time options
  365. ***2004-01-19 ***
  366. ***version 0.9 alpha***
  367. -fixed a garbage collection bug
  368. -fixed some API bugs(thanks to Joshua Jensen)
  369. -fixed tail calls (in the version 0.8 the tail call optimization was erroneously disabled)
  370. -new function parameters semantic, now passing a wrong number of parameters generates an exception
  371. -native closures have now a built in parameter number checking
  372. -sq_rawget and sq_rawset now work also on arrays
  373. -sq_getsize now woks also on userdata
  374. -the userdata release hook prototype is changed(now passes the size of the userdata)
  375. -the lexer reader function now returns an integer instead of a char that allows better error checking on the input(thx Joshua Jensen)
  376. -faster compiler
  377. -try/catch blocks do not cause any runtime memory allocation anymore
  378. ***2003-12-06 ***
  379. ***version 0.8 alpha***
  380. -fixed a bug that was preventing to have callable userdata throught the metamethod _call
  381. -fixed a garbage collection bug
  382. -fixed == operator now can compare correctly different types
  383. -new built in method getstackinfos(level)
  384. -improved line informations precision for the debug hook
  385. -new api call sq_compilebuffer()
  386. -new built-in api function compilestring()
  387. -new syntactic sugar for function declarations inside tables
  388. -the debug API has been finalized
  389. ***2003-11-17 ***
  390. ***version 0.7 alpha***
  391. -fixed critical bug SQInteger the tail call system
  392. -fixed bug in the continue statement code generation
  393. -fixed func call param issue(thanks to Rewoonenco Andrew)
  394. -added _delslot metamethod(thanks to Rewoonenco Andrew)
  395. -new multiline string expression ( delimited by <[ and ]> )
  396. -normal strings ("") do not allow embedded new line anymore
  397. -reduced vm memory footprint(C refs are shared between friend VMs)
  398. -new api method sq_deleteslot()
  399. -new debug hook event 'r' is triggered when a function returns
  400. ***2003-11-04 ***
  401. ***version 0.6 alpha***
  402. -fixed switch statement(was executing the default case after a break)
  403. -sq_call() doesn't pop the closure (just the params)
  404. -the vm execution can be suspended from the C API anytime (micro-threads)
  405. -new api calls sq_suspendvm() sq_wakeupvm() sq_getvmstate() and sq_reservestack()
  406. ***2003-10-13 ***
  407. ***version 0.5 alpha***
  408. -fixed some minor bug
  409. -tested with non ASCII identifiers in unicode mode(I've tried chinese chars)
  410. -added built-in function string.find()
  411. -the built-in function array.sort() optionally accepts a cmp(a,b) function
  412. -the debug hook function now has a new prototype debug_hook(event_type,sourcefile,line,functionname)
  413. -fixed some debug info imprecision
  414. ***2003-10-01 ***
  415. ***version 0.4 alpha***
  416. -faster VM
  417. -sq_call will pop arguments and closure also in case of failure
  418. -fixed a bug in sq_remove
  419. -now the VM detects delegation cycles(and throws an exception)
  420. -new operators ++ and --
  421. -new operator ',' comma operator
  422. -fixed some expression precedence issue
  423. -fixed bug in sq_arraypop
  424. ***2003-09-15 ***
  425. ***version 0.3 alpha***
  426. -fixed a bug in array::insert()
  427. -optional Unicode core(define SQUNICODE or _UNICODE on Win32)
  428. -sq_compiler uses a new reader function SQLEXREADFUNC
  429. -the debug hook passes 'l' instead of 'line' for line callbacks
  430. and 'c' instead of 'call' for call callbacks
  431. -new array.extend() bulit-in function
  432. -new API sq_clone()
  433. ***2003-09-10 ***
  434. ***version 0.2 pre-alpha***
  435. -new completely reentrant VM (sq_open and sq_close are now obsolete)
  436. -sq_newvm() has a new prototype
  437. -allocators are now global and linked in the VM
  438. -_newslot meta method added
  439. -rawset creates a slot if doesn't exists
  440. -the compiler error callback pass the vm handle(thanks Pierre Renaux)
  441. -sq_setforeignptr() sq_getforeingptr() are now public
  442. -sq_resume() now is possible to resume generators from C
  443. -sq_getlasterror() retrieve the last thrown error
  444. -improved docs
  445. ***2003-09-06 ***
  446. ***version 0.1 pre-alpha***
  447. first release