Date: Fri, 26 Jul 2013 23:17:51 +0200 From: Pawel Jakub Dawidek <pjd@FreeBSD.org> To: Bruce Evans <brde@optusnet.com.au> Cc: arch@freebsd.org, "Jordan K. Hubbard" <jordan.hubbard@gmail.com> Subject: Re: General purpose library for name/value pairs. Message-ID: <20130726211751.GB1811@garage.freebsd.pl> In-Reply-To: <20130727070531.D4895@besplex.bde.org> 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> <D2E98A8F-F765-4A56-96CD-4410944A2910@turbofuzz.com> <20130725202832.GD1400@garage.freebsd.pl> <20130726175858.Y1061@besplex.bde.org> <20130726181108.GA1811@garage.freebsd.pl> <20130727070531.D4895@besplex.bde.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130726211751.GB1811>