Update: should now be available, BitBucket staff was very responsive, and Sophos AV as well. Two false positives remain by VBA32 and Cylance, which do not appear to have proper mechanisms to report false positive (not very professional for an AV vendor IMHO).
Just a quick note: the DWScript repository on BitBucket is currently down (as are my other BitBucket repositories), as the account was suspended because some antivirus started flagging one of the older zips from 2017 as malware.
The issue is currently escalating and the antivirus vendor is hopefully being notified of the false positive, but if the issue cannot be resolved, the repository will be moved elsewhere.
This is going to be a work in progress over a few weeks, in part because the JS implementation is rather bare-bones with few support functions, and in part because with the BigInt type, the JS designers did away with some automated and implicit casting (uh?).
While refactoring a bit the way some “special” functions were handled in DWScript, I came about a case where the compiler started accepting strings as Math functions parameters.
While this comes naturally as an “interesting” side-effects of automatic typecasts, it left a feeling of “wrongness”, accepting literal code like Abs(“foo”) and then failing at run-time is asking for trouble.
Just a quick notice that the DWScript source code has begun a transition to Delphi 10.2.3 up from Delphi XE.
The goal is to target Win32 and Win64 compilers, mobile platforms and Delphi Linux are currently not in the scope.
Find beneath this paragraph a spring mishmash of recent happenings from the DWScript repository!
Overview Dialog, Lambdas and Templates.
A belated Happy New Year and Best Wishes for 2017!
This site and news have been neglected for much of 2016, this year’s resolution will be to try and revive it a bit.
In particular announcements and articles have fallen way behind the code as far as DWScript is concerned. So I will start the year by attempting to rectify that.
DWScript now has support for the BigInteger type, which supports numbers with as many decimals as the memory allows.
This support comes in two flavors, either through a MPIR dll (a GMP fork) or through Rudy Velthui’s BigIntegers unit.
PhantomJS is a “headless Webkit” browser which can be used for various automation tasks, among which is the generation of thumbnails for BeginEnd.net 🙂
This article is a quick illustration of how it can be controlled from a DWScript WebServer.
Associate Arrays (aka dictionary) are now in experimental form in the DWScript repository.
Support for floating point modulus has been added to DWScript, it extends the “mod” operator to accept floats.