<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Jan 25, 2016 at 5:08 PM, Michael Van Canneyt <span dir="ltr"><<a href="mailto:michael@freepascal.org" target="_blank">michael@freepascal.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span>On Mon, 25 Jan 2016, silvioprog wrote:<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Many units in Free Pascal and Delphi uses C libraries... when aren't using<br>
a C library (an API system call, an third party library call, etc.), are<br>
using assembly, ie, mostly time Pascal is used as a high-level language to<br>
consume some low-level code written in C or assembly.<br>
</blockquote>
<br></span>
There is a simple reason: Debugging and bugfixing is a lot easier if all the code is in pascal.<br></blockquote><div><br></div><div>I agree. Using external libraries has pros and cons.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Most libraries are a black box. I don't think I've purchased a library/package that didn't contain bugs,<br>
which I had to debug manually and fix.<br></blockquote><div><br></div><div>Sad but true. :-/</div><div><br></div><div>The best advantage is that mostly C libraries have a lot of users and active maintainers. I'm using three of them, and I got bugs on them, but I fixed some of them by myself, and others I got help on theirs bugtracker.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Old timers as X, libc, pthreads and more such oldtimers will generally be bug-free, but there is lots of code out there with a less good track record.</blockquote></div><div><br></div><div>Yes.</div><div><br></div><div>I'm using (and indicating) third party GNU C libraries, but before adopt them, I check theirs ecosystem, how many programmers are involved on theirs development, the commit history, how long an issue remains open, and if the libraries are still active. :-)</div><div><br></div>-- <br><div><div dir="ltr"><div>Silvio Clécio</div></div></div>
</div></div>