Category: optimization
My FTP provider (fasthosts) only allows 150MB maximum usage per database created. This is big enough for most personal usages. However, the other day, after I logined to the …
May 31, 2013
compiler, delphi, floating point, implementation, interpreter / compiler, math, object pascal, optimization, programming languages, technical, tricks, windows
In Delphi, you can use the keyword absolute to force the union variable. e.g. Two variables share the same memory location, which is good to do some tricky things, for example, …
April 23, 2013
base64, beginner, HTML5, http, I/O File, implementation, optimization, php, programming languages, SEO, tricks
Sometimes you want to distribute your HTML application (*.hta) or a pure HTML file (*.html) without any external images. However, it would be nice to include some images, such …
I was reading the source code of the FastMM4 and this short function came to my eyes. function GetThreadID: Cardinal; {$ifdef 32Bit} asm mov eax, FS: end; {$else} begin Result …
April 22, 2013
64 bit, assembly language, bug fixes, code, compiler, delphi, implementation, interpreter / compiler, optimization, programming languages, technical, tricks, windows
I came across a very strange problem when I tried to use Copy function in Delphi XE3. The Copy function behaves differently for string when compiled into 32bit and 64bit using Delphi …