Visit site DelphiTools
February 2012
9
votes
Meanwhile, in the DWScript SVN…
DelphiTools
– This summary of recent DWS changes is coming a bit late, and there is quite a bit to cover. Here is a quick, partial roundup of what changed since the last update. Language changes: Initial support for overloads (currently limited to standalone functions/procedures). New operator “sar” ...
January 2012
10
votes
What do you think of functions overloads?
DelphiTools
– In Delphi, you can overload functions, but doing so requires using the overload directive explicitly, f.i. the following code declares two functions with the same name, one that will be invoked if you pass an integer, another that will be invoked you pass a string: function MyFunc(a : Integer) : ...
7
votes
Closures in DWScript / OP4JS
DelphiTools
– Closures, also known as “anonymous methods” in Delphi, are now supported by DWScript for the JavaScript CodeGen, with the same syntax as in Delphi: myObject.MyEvent := procedure (Sender : TObject); begin ... end; There are of ...
4
votes
SOPA blackout day
DelphiTools
– Great SOPA blackout page from Wikipedia, being one the top worldwide site, this should generate more awareness than any other! Wikipedia's SOPA blackout page I usually avoid posting non-technical stuff, let SOPA be the exception that confirms the rule! As for a description of the problems of SOPA, ...
9
votes
Good Practices for JavaScript “asm” sections in DWS/OP4JS
DelphiTools
– The compiler supports writing “asm” aka JavaScript section in the middle of Object Pascal, there are a few good practices as well as tips to keep in mind, let’s review the menu: Name conflicts and obfuscation support Do you really need an “asm” section? Don’t ...
7
votes
OP4JS: “How do I…”
DelphiTools
– Jon Lennart Aasenden just posted on G+ several links to new “How do I” entries in the OP4JS Documentation: Working with controls, the boxing model Using the TW3HttpRequest object Add a new form to my application Create and use a timer object Rotate a control by X degrees Plot pixels on ...
0
votes
DelphiTools.info relocated
DelphiTools
– The DelphiTools.info website has just been relocated, it also transitioned from a Linux host to a Windows one. There were a few glitches with WordPress during the transfer, but they should hopefully have been solved, if not, feel free to post about them here!
December 2011
15
votes
SynEdit performance bragging rights?
DelphiTools
– Committed another round of speedups in the SynEdit SVN, and AFAICT SynEdit is now amongst the fastest text and highlighting editors out there! To benchmark it yourself, if you don’t have a large text file hanging around, you can make a “meaningful” one easily: just go to ...
11
votes
Christmas present for SynEdit users
DelphiTools
– Just committed to the SynEdit SVN a few enhancements: much improved performance for long & large files, still not quite notepad++-class just yet, but my profiler tells me there are many juicy low-hanging candies left improvements to the TSynGeneralSyn highlighter (single & double quote ...
11
votes
DWS news + OP4JS aka SmartMobileStudio
DelphiTools
– A quick news roundup before Christmas. OP4JS Alpha aka SmartMobileStudio is in the wild Jørn Einar Angeltveit - Dec 21, 2011 - Public We’ve now sent “Smart Mobile Studio” Alpha version to 50 testers. Did you miss the beta invite? Visit www.SmartMobileStudio.com to participate. ...
4
votes
Zero-based Strings?
DelphiTools
– In a now infamous and enormous thread I won’t name, Allen Bauer dropped a bomb: <bomb>Oh, and strings may become immutable and 0-based …</bomb> Currently Oxygene has zero-based strings, I was considering it for DWScript too, but the backward-compatibility implications are a ...
11
votes
Pimp your random numbers with XorShift!
DelphiTools
– A 64bit XorShift is now used to generate random numbers in DWScript, and there is a now a separate random number generator per-execution, which is auto-randomized when an execution is created. Previously, the RTL random generator was used, this was “okay” when you had only one script ...
7
votes
DWS news roundup
DelphiTools
– Here is a quick summary of recent additions to DWScript: exit, break and continue are now reserved keyword (and highlighted as such), previously they weren’t (as in Delphi), but having variables or functions named that way just “breaks” (pun intended) those language features (as ...
November 2011
16
votes
Fixing TCriticalSection
DelphiTools
– TCriticalSection (along with TMonitor) suffers from a severe design flaw in which entering/leaving different TCriticalSection instances can end up serializing your threads, and the whole can even end up performing worse than if your threads had been serialized. This is because it’s a small, ...
4
votes
Compile-time evaluations, ‘&’ prefix, internal changes
DelphiTools
– Here is a summary of recent changes for DWScript in the SVN: support for compile-time evaluation of constant records and static arrays. support for the ‘&’ escape prefix to allow using reserved words as identifiers. fledgling math extensions (TComplex, TVector & TMatrix), ...




