From owner-freebsd-arch@FreeBSD.ORG Fri Jul 26 21:17:15 2013 Return-Path: Delivered-To: arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 87F112DA for ; Fri, 26 Jul 2013 21:17:15 +0000 (UTC) (envelope-from pawel@dawidek.net) Received: from mail.dawidek.net (garage.dawidek.net [91.121.88.72]) by mx1.freebsd.org (Postfix) with ESMTP id 4C35120B7 for ; Fri, 26 Jul 2013 21:17:14 +0000 (UTC) Received: from localhost (89-73-195-149.dynamic.chello.pl [89.73.195.149]) by mail.dawidek.net (Postfix) with ESMTPSA id EC5335A5; Fri, 26 Jul 2013 23:12:09 +0200 (CEST) Date: Fri, 26 Jul 2013 23:17:51 +0200 From: Pawel Jakub Dawidek To: Bruce Evans Subject: Re: General purpose library for name/value pairs. Message-ID: <20130726211751.GB1811@garage.freebsd.pl> References: <20130705195255.GB25842@garage.freebsd.pl> <60317.1373055040@critter.freebsd.dk> <20130708150308.GE1383@garage.freebsd.pl> <717D098F-D07E-45B0-B9F0-8D8BCEF06923@mail.turbofuzz.com> <20130708213351.GB1405@garage.freebsd.pl> <20130725202832.GD1400@garage.freebsd.pl> <20130726175858.Y1061@besplex.bde.org> <20130726181108.GA1811@garage.freebsd.pl> <20130727070531.D4895@besplex.bde.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="DKU6Jbt7q3WqK7+M" Content-Disposition: inline In-Reply-To: <20130727070531.D4895@besplex.bde.org> X-OS: FreeBSD 10.0-CURRENT amd64 User-Agent: Mutt/1.5.21 (2010-09-15) Cc: arch@freebsd.org, "Jordan K. Hubbard" X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Jul 2013 21:17:15 -0000 --DKU6Jbt7q3WqK7+M Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jul 27, 2013 at 07:13:51AM +1000, Bruce Evans wrote: > On Fri, 26 Jul 2013, Pawel Jakub Dawidek wrote: >=20 > > On Fri, Jul 26, 2013 at 06:04:15PM +1000, Bruce Evans wrote: > >> On Thu, 25 Jul 2013, Pawel Jakub Dawidek wrote: > >> > >>> Returning to this thread after a short break. I removed all > >>> {,u}int{8,16.32.64} types and implemented only 'number' type which is > >>> uint64_t. Looks much nicer now. > >> > >> The numeric type should be floating point. Or better yet, bignum. Or > >> more practically, uintmax_t. > > > > The uintmax_t in theory can change in the future, which would make > > sending numeric type from system with larger uintmax_t to system with > > smaller uintmax_t problematic. >=20 > Using uint64_t is especially broken then, since uint64_t is too small to > represent numbers on the system with larger uintmax_t. [...] At least the user is aware of the size and is not surprised by some undefined behaviour. > [...] But how is the > data sent across systems by your API? By nvlist_send(sock, nvl). --=20 Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer http://www.FreeBSD.org Am I Evil? Yes, I Am! http://mobter.com --DKU6Jbt7q3WqK7+M Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (FreeBSD) iEYEARECAAYFAlHy538ACgkQForvXbEpPzR3NwCg1QMaWepCetNaiW60cquHB1az JBQAn0OL/eKto6mR2+TNT/kJbdzOggFC =s8bc -----END PGP SIGNATURE----- --DKU6Jbt7q3WqK7+M--