Buffered files (for faster disk access)

Windows file caching is very effective, especially if you are using Vista or later. TFileStream is a loose wrapper around the Windows ReadFile() and WriteFile() API functions and for many use cases the only thing faster is a memory mapped file. However, there is one common scenario where TFileStream becomes a performance bottleneck. That is … Read more

Recommendations for a scripting or plugin language for highly math-dependent user coding? [closed]

According to your needs, here are some guidelines: Make a distinction between language and library – you can have mathematical languages (like MATLAB) or mathematical libraries called from an high-level language (like Python); The language (or library) should be designed by mathematicians, for mathematicians; The used language should be an existing one (do not reinvent … Read more

Why can a WideString not be used as a function return value for interop?

In regular Delphi functions, the function return is actually a parameter passed by reference, even though syntactically it looks and feels like an ‘out’ parameter. You can test this out like so (this may be version dependent): function DoNothing: IInterface; begin if Assigned(Result) then ShowMessage(‘result assigned before invocation’) else ShowMessage(‘result NOT assigned before invocation’); end; … Read more