From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/3761 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: embedded newbies site. Date: Fri, 26 Jul 2013 22:50:25 -0400 Message-ID: <20130727025025.GX4284@brightrain.aerifal.cx> References: <1374886708.3031.23@driftwood> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1374893437 22632 80.91.229.3 (27 Jul 2013 02:50:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 27 Jul 2013 02:50:37 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-3765-gllmg-musl=m.gmane.org@lists.openwall.com Sat Jul 27 04:50:39 2013 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1V2uad-0000BV-89 for gllmg-musl@plane.gmane.org; Sat, 27 Jul 2013 04:50:39 +0200 Original-Received: (qmail 30512 invoked by uid 550); 27 Jul 2013 02:50:38 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 30504 invoked from network); 27 Jul 2013 02:50:38 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:3761 Archived-At: On Fri, Jul 26, 2013 at 09:01:48PM -0500, Strake wrote: > On 26/07/2013, Rob Landley wrote: > > On 07/22/2013 07:12:39 PM, Strake wrote: > >> On 21/07/2013, Rob Landley wrote: > >> > What did you have in mind? > >> > >> >> > - efficient (elegant) programming > >> >> > - Why C and scritpting languages, why NOT C++ and autoconf > >> > >> This. Too, why not glib, and other such garbage. > > > > Never having used glib, I'm not qualified to warn people away from it. glib is basically the C++ STL written in C, but lacking exceptions so that there's no way to handle errors. > I used it little, just to hack surf and jumanji, but I found > insanely_long_function_names, poor docs of what allocates or frees > what, wanton type synonyms, and generally a tangled mess. > > I gave up. While debugging the heap-check crash that turned out to be memalign, I dug into the glib and libxml2 code a bit. Just casually inspecting less than 500 lines, I found cases of UB that don't break now but will break down the road with fancier compilers, lack of synchronization where needed, and various other small to medium bugs, not to mention 75%-redundant code in multiple code paths (lack of any proper factoring). Offhand I would guess the whole GNOME family of code has something like 4-10 bugs per 100 LoC.... Rich