Leaderboard
Popular Content
Showing content with the highest reputation on 03/07/19 in Posts
-
Recursive anonymous functions
Lars Fosdal replied to Primož Gabrijelčič's topic in Algorithms, Data Structures and Class Design
You should read this post -
Recursive anonymous functions
Dalija Prasnikar replied to Primož Gabrijelčič's topic in Algorithms, Data Structures and Class Design
var [weak] fib: TFunc<integer,int64>; Marking it as weak breaks the cycle. However, there was a bug with weak that is only recently fixed (not sure whether in 10.3 or 10.3.1) -
10.3.1 has been released
Dalija Prasnikar replied to Martin Sedgewick's topic in Delphi IDE and APIs
Error Insight has always been Error Inside. It never worked properly, and was always lagging behind. -
Recursive anonymous functions
Primož Gabrijelčič posted a topic in Algorithms, Data Structures and Class Design
Yes, they work 🙂 (and why wouldn't they?). program RecursiveAnon; {$APPTYPE CONSOLE} {$R *.res} uses System.SysUtils; function MakeFib: TFunc<integer,int64>; var fib: TFunc<integer,int64>; begin fib := function (value: integer): int64 begin if value < 3 then Result := 1 else Result := fib(value - 1) + fib(value -2); end; Result := fib; end; begin var fib := MakeFib; for var i := 1 to 10 do Write(fib(i), ' '); Readln; end. -
Ah, a white box on a white background with a light grey caption. Thanks, Angus
-
Recursive anonymous functions
Sherlock replied to Primož Gabrijelčič's topic in Algorithms, Data Structures and Class Design
I see what you did there, @Lars Fosdal 😉 -
Automatically order, download and install SSL/TLS certificates
Angus Robertson posted a topic in ICS - Internet Component Suite
ICS V8.58 added a new TSslX509Certs component allowing ICS servers to automatically order, download and install SSL/TLS certificates from various suppliers, including free certificates from Let's Encrypt, and commercial certificates for DigiCert, Comodo, Thawte and GeoTrust from CertCentre AG. It also acts as a private CA to issue local certificates. The TSslWSocketServer, TSslHttpServer, TSslHttpAppSrv, TIcsProxy and TIcsHttpProxy components can assign a TSslX509Certs component to support automatic certificate ordering of domain validated certificates with very little extra code. There is a new sample project OverbyteIcsX509CertsTst to demonstrate the TSslX509Certs component, which may be used as a standalone application to order X509 certificates from Let's Encrypt and CertCentre AG, and monitor the certificate orders database, and to issue own CA certificates. http://wiki.overbyte.eu/wiki/index.php/FAQ_Order_SSL_Certificates I'm about to revisit the TSslX509Certs component to support some Let's Encrypt changes like the new SSL challenge, so am interested in any feedback or suggestions from those that have used it, Even just the sample application which can be used to order certificates for other web servers or applications. Angus -
Best site/source for SQL Server questions?
Attila Kovacs replied to Lars Fosdal's topic in Databases
I see, I'd check then "Row Versioning". I never used it yet but I'll try it myself when I find some time. -
So, let's just rename it to Insight Errors...
-
They would have a ton of other bugs to fix before adding this new feature...all in all it is a waste of time and energy, just scrap it and invest said time and energy into more crucial parts of the IDE.
-
best practise sharing : 2 buttons with mrOK on a form
Remy Lebeau replied to bernhard_LA's topic in VCL
There is no way to differentiate which control set the ModalResult if they both set it to the same value. ShowModal() will close the Form when any non-zero value is assigned to ModalResult, you are not limited to the handful of constants that the RTL defines, use whatever values you want. -
Lockfree approach on a Single reader, Multiple Writer queue
Primož Gabrijelčič replied to kokoslolos's topic in Algorithms, Data Structures and Class Design
Indeed, I got the "obvious" part from Hoare 🙂 The parallel part is all mine though. And I stand behind it. If one writes a unit test which tests the specification in full, it can in theory prove that a single-threaded unit complies with the specification. Throwing parallel processing in the mix, however, prevents us from even that result. At most one can say is that the unit probably works as expected inside one test environment on one computer. -
Lockfree approach on a Single reader, Multiple Writer queue
Rudy Velthuis replied to kokoslolos's topic in Algorithms, Data Structures and Class Design
Aw come one, you got that somewhere else. <g> Ah. here it is: " There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult." -- C.A.R. Hoare And: "Program testing can be used to show the presence of bugs, but never to show their absence!" -- Edsger W. Dijkstra. After all, I still have this quotes file I use for XanaNews. <g> -
Lockfree approach on a Single reader, Multiple Writer queue
Primož Gabrijelčič replied to kokoslolos's topic in Algorithms, Data Structures and Class Design
Indeed. In single-threaded code, good unit tests will show that the code obviously has no errors. In multi-threaded code, good unit tests will show that the code has no obvious errors. IOW, unit tests can only prove that your multi-threaded code doesn't work, not that it does. -
SDTimes Industry Watch: The developer transformation
Lars Fosdal replied to Lars Fosdal's topic in Project Planning and -Management
It is waste if you spend time continuously fixing the same broken code, instead of buying or rebuilding something that can replace it and reduce "daily" maintenance chores? -
Lockfree approach on a Single reader, Multiple Writer queue
Anders Melander replied to kokoslolos's topic in Algorithms, Data Structures and Class Design
You have a problem so you decide to use threads. you problems.2 have Now -
@Uwe Raabe found two main form entries, no clue how that could have happened, possibly the compiler migration? Cleaned it up in any case. this is a project started on XE7, which I've taken to 10.3 (no copy, just compile as is). Uninstalled all addons (MMX, CNPack, GExperts) to isolate the problem. It also seems I have located the culprit to be the "background compilation" option. Had it enabled since XE7 due to large cycles / long compilation, which have since gone down drastically to a point where the background compilation is no longer really needed. This is reproducible on a fresh 10.3.1 project, maybe add a button and an OnClick event. the current steps to reproduce: - have background compilation on - full build, just in case - build passes successfully - introduce syntax error, don't save - compile without saving - compilation passes successfully (incorrect behavior) to fix: - disable background compilation - remove syntax error - save and full build, just in case - compilation passes successfully - introduce syntax error, don't save - compile without saving - compilation fails (correct behavior)