Visit site DelphiTools
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), ...
4
votes
Don’t publish your .dproj/.groupproj
DelphiTools
– Just a quick reminder to everyone publishing Delphi projects with source: Please don’t publish your .dproj & .groupproj, only publish the .dpr & .dpk The reason? Those files include machine specific settings, such as paths, DCU/DCP/BPL/EXE output directories, along with your favorite ...
4
votes
What’s coming next…
DelphiTools
– There are several things planned and underway for the next DWScript version, this post will serve as a roadmap of sorts. Of course, there is a wealth of other changes (minor or not) that aren’t mentioned there, but will likely happen. What’s already happening IDE Dialog : thanks to ...
8
votes
Rendering semi-transparent objects in FireMonkey
DelphiTools
– The question has (predictably) popped up several times now, so here is a recapitulative post with workaround. FireMonkey (as of now) doesn’t support rendering semi-transparent objects in 3D. FireMonkey only supports blending of semi-transparent objects (either through the Opacity property or ...
4
votes
Time for DWScript v2.3!
DelphiTools
– Or in other words, Delphi Web Script 2.2 has been branched! “Rich. Small. Fast. Reliable. Choose any Four” With v2.2, DWScript is now aiming for that motto*, and this new release represents a major step forward from 2.1 in terms of language features and robustness. DWScript 2.2.0 (348 ...
October 2011
7
votes
DWScript 2.2 RC1
DelphiTools
– A 7zip for DWScript 2.2 RC1 (345 kB) has been posted, changes since the beta: improved unit tests coverage to 90% overall, core compiler units now above 93% packages separated into compile-time & design-time (thanks Stefan Glienke) fixed several issues related to dynamic arrays of function ...
16
votes
Delphi XE2 VCL Styles and 3D
DelphiTools
– …or when the old/new VCL mule shows it can still kick! I was asked how hard it would be to do yet-another-Cover Flow-clone with VCL+GLScene, and how that would stand vs using FireMonkey on Windows. GLFlow : VCL + OpenGL The new Delphi XE2 Styles allow to get a nice looking UI, allowing to mix ...
7
votes
FireMonkey’s TCube & Tessellation
DelphiTools
– If any of you had a look at FireMonkey’s TCube object, you might have noticed rendering it is quite slow and quite complex. If you were curious enough to look at the code, you might have noticed that TCube is actually a static mesh made up of 452 vertices, 1440 indices and 480 triangles, ...
11
votes
Memory Manager Investigations
DelphiTools
– André Mussche on Google+ investigated the performance of several Memory Managers for Delphi, in single-threaded & multi-threaded situations, with detailed results and charts on performance and memory usage. Great work and interesting findings! A simple multi-threaded MM speed test (D2010, ...
3
votes
DWScript 2.2 beta
DelphiTools
– Delphi Web Script 2.2 is now in “beta”, and a DWS 2.2 Beta zip (337 kb) is available. Changes since 2.2 preview 4: extended “for in” syntax to work on all array types support dynamic arrays new pseudo-method “IndexOf(item[, fromIndex])” extended “in” ...
13
votes
A look at the 3D side of FireMonkey
DelphiTools
– This post was actually written sometime ago, alas XE2 Update 1 didn’t change much. I’ve been looking at FireMonkey 3D side, by that I mean strictly the 3D side, not the UI components, or the 2D. Here are some observations, most born from maintaining and developing 3D software in C++ and ...
3
votes
TdwsRttiConnector: read anything, write anything
DelphiTools
– …or to be more accurate, many things the Delphi RTTI can reach Raw RTTI connectivity for DWS The new TdwsRttiConnector components exposes a new RttiVariant type to DWScript, which can be used to dynamically read and write fields/properties, or call methods of any RTTI-exposed Delphi type. ...
September 2011
3
votes
Taming the Chrome Web Store
DelphiTools
– Well, “taming” is probably too ambitious given the jungle that the Chrome Web Store is, especially as this post is restricted to publishing a standalone DWScript/JavaScript app into the Web Store in a few simple steps. Interestingly enough, it seems that publishing Metro apps for Windows ...
12
votes
Taming the flock with Object Pascal
DelphiTools
– And now for a more interactive demo than last time, this is a full-screen HTML5 Canvas interactive demo with the source in Object Pascal, compiled to JavaScript by the DWScript JS CodeGen. Click below to see it in action and hit F11. Click-me, I'm best seen in action! It illustrates using records, ...




