CodeDelphiNews

Fast Inverse Square Root in Delphi's Object Pascal

Does Delphi make you a better programmer? Is Object Pascal code more readable? There is an algorithm with a mystery constant that rose to fame in John Carmack’s Quake III Arena C code for quickly estimating the inverse square root of a 32-bit floating-point number. float Q_rsqrt( float number ) { long i; float x2, y; const float threehalfs = 1.5F; x2 = number * 0.5F; y =…
Read more
CodeDatabaseDelphiRAD Studio

Quickly Learn How To Debug And Monitor Your FireDAC Connection In Delphi

TheMoniLayerClientssample shows you how to use the FireDACtracing and monitoringcapabilities to show how an application is communicating with a FireDAC monitor client. To this end, the sample uses two different FireDAC monitor clients: FlatFile-client and Remote-client. To use both monitor clients, the sample uses two client link components: the TFDMoniFlatFileClientLink…
Read more
CodeDatabaseDelphiRAD Studio

Learn How To Customize The ListView Detail Text In A List Item With Delphi

The Sample is using the “Custom” list view item appearance value and configuring the appearance properties of list view items at design time. It also shows how to do this at run time. When you run the application, it shows a list view. Each list item shows a detail text under its main label. Tap theSet Propertiesbutton to change the appearance of the list view at run…
Read more
CodeDelphiRAD Studio

High-Performance FastMath Library For Math-Intensive Applications On iOS, macOS, Android, And Windows

FastMath is a Delphi math library created by Erik van Bilsen, Co-Founder and Software Developer at Grijjy, Inc. It is optimized for speed, but that speed is sometimes at the expense of accuracy due to insufficient error checking. According to the library, it achieves good performance by using hand-optimized assembly code. One way it differs from what is built into the Delphi RTL is that accuracy…
Read more