Wednesday, June 22, 2016
When 64 cores are not enough
Following two branches just sprung to life:
https://github.com/gabr42/OmniThreadLibrary/tree/numa
https://github.com/gabr42/FastMM4-MP/tree/numa
Plus I started planning OTL&FastMM changes:
https://docs.google.com/document/d/1dHiJyHj80TJ2oFAOtFxNtXLMrAhzm7F5SoczBl5ssxM
Feel free to comment on that Google Docs document.
Friday, June 10, 2016
OmniXML Official Repository
In case you are wondering which of the many github (and even bitbucket) omnixml repos is the official one (as www.omnixml.com is still pointing to the old googlecode storage), this is it: https://github.com/mremec/omnixml.
www.omnixml.com should be pointing to the correct repository “real soon now” ;)
Wednesday, May 25, 2016
RAD Studio Berlin 10.1 Notes and Links
In case you are already using RAD Studio Berlin 10.1 or are merely looking into it, these links and notes may help you.
- What’s New in RAD Studio 10.1 Berlin
- Using C++ lambdas with Parallel Programming Library
- Marco Cantu on [weak] and [unsafe] attributes
- My [weak] vs. [unsafe] demo
- FireUI preview
- Bookmark stack
- Selection expansion (which is my totaly favourite new feature!)
- TBufferedFileStream
- DataSnap Hotfix
- Samsung Galaxy Hotfix
- Samples are installed in c:\Users\Public\Documents\Embarcadero\Studio\18.0\Samples.
- New installer stores files to c:\Users\<user>\Documents\Embarcadero\Studio\18.0\CatalogRepository.
- FireUI Preview source can be found in c:\Program Files (x86)\Embarcadero\Studio\18.0\source\Tools\FireUIAppPreview.
YouTube videos
- Introducing 10.1 Berlin
- FireUI Preview demo starts at 32:20
- New installer
- ListView Item Designer
Thursday, May 19, 2016
RAD Studio 10.1 Berlin presentation in Ljubljana
Next week (Wednesday 25th) I’ll be presenting the new and shiny 10.1 release in Ljubljana.
For more info click here.
Tuesday, March 01, 2016
Defensive Programming and Advanced Debugging
Next Wednesday (9th) I’ll be holding a presentation in Ljubljana. Topic: defensive programming, maintaining a clean code, and debugging tips and tricks. Presentation will be applicable to both Delphi and C++Builder programmers.
As usual, I’ll be presenting in Slovenian language.
Sunday, February 21, 2016
Finding Memory Allocation Bottlenecks with FastMM4
Recently, I had to find bottlenecks in one of our applications that does all sorts of things related to DVB and is handling real-time reading and sending of data streams over IP with bitrates up to 80 Mb/s (in our lab; in real life maybe even more). Our customer created a configuration which essentially brought the app to the crawl and I had to fix it.
It quickly turned out that although the program was not able to handle the load, the CPU was not very busy. The busiest core was only using about 30% CPU. So I suspected the thread contention problems in FastMM, switched it for SapMM and indeed - the problem went away. CPU load went up and application could again handle the load.
Crisis averted, I took time to find the real problem - excessive get/freemem calls in this program. As far as I could tell, there existed no tool to find that so in a true DIY manner I created my own ;)
Wednesday, November 18, 2015
Connect Your Applications with REST – Links
The materials for my “Connect your applications with REST” workshop are now available online (in Slovenian language).
Below you can find all the interesting DELPHI- and REST-related links I have collected during the preparation of this workshop.
Thursday, November 12, 2015
Connect Your Applications with REST
As usual, I’ll be presenting in Slovenian language.
Register here!
Sunday, October 18, 2015
Simplify Parallel Programming with Patterns
My CodeRage X session on parallel programming with patterns is now available on YouTube.
Friday, October 16, 2015
Recording Webinars – My Workflow
Each time I have to record a webinar, I have trouble remembering how exactly did I do it last time, so I decided to document my workflow. Maybe this will help somebody else besides me …
If you have any ideas on how to improve my workflow or if you have a different way of solving same problems, then please post it in the comment section. Thanks!
[v 1.01: Added screenshots of CamStudio and Filmora settings and few words on Audacity settings.]
[v 1.02: Added appendix A with some time&space information.]
Updating a Progress Bar From a Parallel For Loop (Plus Two Bonuses)
During the Q&A part of my Simplify Parallel Programming with Patterns presentation on CodeRage X, I’ve promised the listeners to publish a demo for updating a progress bar from a parallel for loop.
In this article I’ll try to explain few different approaches that all solve this problem. I’ve also put together a demo project which demonstrates all techniques.
Thursday, September 24, 2015
Links for 10 Seattle Presentation in Ljubljana
Firstly, thanks to everybody who visited my RAD Studio 10 Seattle presentation! I’m sorry I had to improvise because of bad video drivers, but on the other hand RAD Studio performed great!
Secondly, here is a bunch of links I’ve promised.
OmniThreadLibrary Spotlight now On-line
My short spotlight presentation about high-level OmniThreadLibrary patterns is now available on YouTube.
Wednesday, September 23, 2015
Conditional Compilation with Features
EDIT: Make sure you read this post to the very end!
Are you developing a code that must work in different Delphi versions? Are you sick of writing code like
{$IF CompilerVersion >= 22}
class function Mapper<T1,T2>: IMapper<T1,T2>;
{$ENDIF}as you a) never know when some feature was introduced into Delphi and b) constantly wonder which version of Delphi has CompilerVersion equal to 22?
Then maybe you could use this simple include file.
Wednesday, September 16, 2015
Learn All About RAD Studio 10 “Seattle” in Ljubljana
Next Thursday (24th) I’ll be presenting new RAD Studio 10 Seattle in Ljubljana. This is announcement for Slovenian readers.
Naslednji četrtek (24.) se mi pridružite v kristalni palači na predstavitvi novega RAD Studia 10 Seattle, ki je po mnenju mnogih (in tudi mojem), ena boljših različic tega programskega orodja v zadnjih letih.
Predstavil vam bom izboljšano podporo za Windows 10 (v VCL in FMX), nove vizualne gradnike, izboljšave v IDE, novo podporo za mobilna okolja (razhroščevanje iOS 64-bit programov, pisanje sistemskih storitev za Android), novosti in izboljšave v sistemskih knjižnicah RTL, pa tudi novosti v prevajalnikih za C++ in še marsikaj.
Več podatkov o dogodku najdete tu.
Monday, September 07, 2015
OmniThreadLibrary 3.05
Hear, hear, OmniThreadLibrary 3.05 has just been released!
What’s new? Not much.
- Added Delphi 10 Seattle packages and projects. OmniThreadLibrary now supports Delphis from 2007 to 10 Seattle.
- Setting IOmniThreadPool.MinWorkers property will start up idle worker threads if total number of threads managed by the thread pool is lower than the new value.
There were, however, many quite important bug fixes. You are strongly advised to update to this version!
Monday, August 31, 2015
OmniThreadLibrary on Delphinus
OmniThreadLibrary now supports the Delphinus package installer. If you are using Delphi XE or newer, you can install Delphinus, select OmniThreadLibrary, and click Install. Delphinus will do the same steps GetIt does: download OTL, recompile and install package, and add proper paths to the search and browsing path. Source will be installed to c:\Users\Public\Documents\Embarcadero\Studio\<release>\Comps\.
Friday, August 28, 2015
Spotlight on OmniThreadLibrary
If you are not using OmniThreadLibrary yet, or if you are only using its low-level parts (CreateTask and company), I’m kindly inviting you to a 20-minute presentation “Simple Parallel Programming with Patterns and OmniThreadLibrary”, which will be transmitted as a part of the Embarcadero Technology Partner Spotlights series on September 3rd.
There are three timeslots to chose from so I’m sure everybody can find a suitable time. After the first two presentations I’ll be handling Questions and Answers and Jim McKeeth has kindly offered to do the job for the third presentation as it will be around 02.25 AM here when it is finished.
If you want to see something interesting and new, register here!
[Slides, code, and video will be available on my blog after the presentation.]
Thursday, August 27, 2015
OmniThreadLibrary 3.04b on XE8
Just a quick note – OmniThreadLibrary 3.04b is now available on XE8 via GetIt.
Thursday, August 20, 2015
Book Update: Miscellaneous
I have updated the Parallel Programming with OmniThreadLibrary book with the Miscellaneous chapter. The book is now almost complete!
Changelog:
- Documented TOmniMessageQueue.
- Documented TOmniTwoWayChannel.
- Documented TOmniValueContainer.
- Documented TOmniCounter.
- Documented TGp4AlignedInt and TGp8AlignedInt.
- Documented TOmniRecordWrapper.
- Documented IOmniAutoDestroyObject.
- Documented IOmniEnvironment.
- Documented examples.