Operator precedence changes
Here is a summary of recent DWScript changes, the major one is a change in operator precedence to something similar to Delphi and FreePascal.
Other changes are related to sets and bug fixes.
Here is a summary of recent DWScript changes, the major one is a change in operator precedence to something similar to Delphi and FreePascal.
Other changes are related to sets and bug fixes.
Following a recent post by A. Bouchez about an optimized CRC32 hash, I took it as an opportunity to re-run a small String Hashing Shootout on the worst hash function collision torture test I know: ZIP codes in UTF-16 (Delphi’s default String format).
Long time, no post here, but not no happenings on the DWScript front 🙂
Behold a “cleaned up old logo” for DWScript, which will replace the old one until a better one is made

In a Google+ comment to my recent article about inlining in XE6, Leif Uneus posted results from Scimark.
It appears that XE6 is about 30% slower than previous versions at least from XE5 to XE for 32bits floating point.
Note that Scimark does not make use of inlining, but does make heavy use of floating-point computations, loops and arrays.
Edit: issue discussed here was reported in QC 124652 (now marked as resolved)
(more…)
First noticed by dewresearch, Delphi XE6 introduced a new optimization for inlined functions that return a floating-point value.
Here is an exploration of what was improved… and what was not improved.
(more…)
A new pre-compiled release v2014.04.04 for the DWS WebServer is available from the downloads page, it is compiled from the latest source.
Besides the usual demo sites, it has been used to serve a crypto-currency block-chain explorer website that peaked at 1600 page views / hour after some successful tweets went viral.
We’ve all encoutered reCAPTCHA, as it’s one of the few effective ways to protect form submissions from bots on the internet.
Acquired by google in 2009, it comes with multiple plugins for various web environment, here is a plugin for DWScript.
As Google Code no longer allows downloads, I will incrementally relocate the DWScript downloads on this website.
The first of the new downloads is an updated binary installer for the DWS Web Server.
Here is a small snippet to illustrate how you can perform a conditional HTTP 301 redirection in DWScript, and can serve as an illustration on serving “special” HTTP responses.
This is useful when a website is moved from one domain to another, but the server is not, ie. if both old and new domains are hosted by the same server.