From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Marko Rauhamaa Newsgroups: gmane.lisp.guile.user Subject: Re: Guile bugs Date: Fri, 21 Jul 2017 20:12:50 +0300 Message-ID: <87wp71btnx.fsf@elektro.pacujo.net> References: <87lgtajpkc.fsf@web.de> <87h8y7ruuz.fsf_-_@gnu.org> <877ez384eu.fsf@elektro.pacujo.net> <87k2333qx9.fsf@gmail.com> <87pocvc5ya.fsf@elektro.pacujo.net> <87eft94umh.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1500657203 21050 195.159.176.226 (21 Jul 2017 17:13:23 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 21 Jul 2017 17:13:23 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) Cc: Ludovic =?utf-8?Q?Court=C3=A8s?= , guile-user@gnu.org To: taylanbayirli@gmail.com (Taylan Ulrich =?utf-8?Q?=22Bay=C4=B1rl=C4=B1?= =?utf-8?Q?=2FKammer=22?=) Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Fri Jul 21 19:13:16 2017 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dYbUG-00053R-34 for guile-user@m.gmane.org; Fri, 21 Jul 2017 19:13:12 +0200 Original-Received: from localhost ([::1]:44156 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dYbUL-00033p-Fb for guile-user@m.gmane.org; Fri, 21 Jul 2017 13:13:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48482) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dYbTz-00033j-BF for guile-user@gnu.org; Fri, 21 Jul 2017 13:12:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dYbTy-0006dD-Bk for guile-user@gnu.org; Fri, 21 Jul 2017 13:12:55 -0400 Original-Received: from [2001:1bc8:1a0:5384:7a2b:cbff:fe9f:e508] (port=45150 helo=pacujo.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dYbTy-0006Zh-3C; Fri, 21 Jul 2017 13:12:54 -0400 Original-Received: from elektro.pacujo.net (192.168.1.200) by elektro.pacujo.net; Fri, 21 Jul 2017 20:12:50 +0300 Original-Received: by elektro.pacujo.net (sSMTP sendmail emulation); Fri, 21 Jul 2017 20:12:50 +0300 In-Reply-To: <87eft94umh.fsf@gmail.com> ("Taylan Ulrich =?utf-8?Q?=5C=22Ba?= =?utf-8?Q?y=C4=B1rl=C4=B1=2FKammer=5C=22=22's?= message of "Fri, 21 Jul 2017 18:33:58 +0200") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2001:1bc8:1a0:5384:7a2b:cbff:fe9f:e508 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.org gmane.lisp.guile.user:13971 Archived-At: taylanbayirli@gmail.com (Taylan Ulrich "Bay=C4=B1rl=C4=B1/Kammer"): > Marko Rauhamaa writes: >> I wonder, though, if doing that is fast enough in Scheme code. > > Since Guile supports syntax-case, the "macro API" of the library can > be used so the library itself adds absolutely zero runtime overhead. No doubt it's as fast as Guile can be for the API. However, you'll need to have the encoding/decoding machinery ultimately executed in Scheme. Compare this with Python's struct.(un)pack(), for example, which lets the "machine code" handle the bulk encoding/decoding of a record. Instead of binary, one could use S-expressions, of course, but then you'd need to know the maximum length of the encoding up front. Heck, maybe your bulk RAM store should be implemented with straight non-GC malloc... Marko