From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Amirouche Boubekki Newsgroups: gmane.lisp.guile.devel Subject: =?UTF-8?B?UmU6IEZvciBhIGNoZWFwZXIg4oCYYnl0ZXZlY3Rvci0+cG9pbnRlcuKAmQ==?= Date: Mon, 25 Nov 2019 07:26:03 +0100 Message-ID: References: <87zhglzgue.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="144831"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Andy Wingo , Guile Devel To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Nov 25 07:26:54 2019 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iZ7pl-000bXi-E1 for guile-devel@m.gmane.org; Mon, 25 Nov 2019 07:26:53 +0100 Original-Received: from localhost ([::1]:40630 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iZ7pj-0002WN-Op for guile-devel@m.gmane.org; Mon, 25 Nov 2019 01:26:51 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38664) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iZ7pC-0002U0-Bw for guile-devel@gnu.org; Mon, 25 Nov 2019 01:26:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iZ7pB-0006Xg-6V for guile-devel@gnu.org; Mon, 25 Nov 2019 01:26:18 -0500 Original-Received: from mail-vs1-xe29.google.com ([2607:f8b0:4864:20::e29]:37624) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iZ7p9-0006WQ-0V; Mon, 25 Nov 2019 01:26:15 -0500 Original-Received: by mail-vs1-xe29.google.com with SMTP id u6so9283967vsp.4; Sun, 24 Nov 2019 22:26:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=VBVas/DmLNCqrtT2QP7qCk7EV2XeekLVaHUPTnV1/7s=; b=IbHa3BwJ+8HJGtw6j4kf27sRFdnTzDkc7R6hw5mCB0RA2L8NTmeAb149j8rTQjN13d z4MNd/60xD57k4NCWOSr+g+3QURORdCklO/2qPjEAoN9ByCie9OJeeXFRgetq6jGie07 JS0GYDa7VFr3mVFlbK3+XP8isr98mmIm3C8SbM65hHPJqxvtw6aoaeVF/zUOs9TPlimX D9X36CveuxRUi1D20rQCsA91HNLhCDganiyPFHXsUct/GsGrsMjt66sXiwNww+ep9nUU ys7b0KiMDjSm+WTPM+POW2d9BelYeYCWv0GOqH8NSpGoA7pcM080A5ZPeEaKm/cGmOv+ f8yw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=VBVas/DmLNCqrtT2QP7qCk7EV2XeekLVaHUPTnV1/7s=; b=ItxgZ0PvOS7gJ4ygvQRbdnWacJhGDva/zgu7UmrAxNRUk7gfNMhw51eXh/hMFv1CMk r9jdEPzVHuPgRr8JBPCgWgun1cO0mVRJHZBHcEWMAfKSpZvbU8/CZKhGDhSI8DLsNH1M R8KfWNiACOQOLWuRC+bYISQlz8IN4x826FjVqY+cvkj0g/X5wmZhfvxa3K1gRWsJG6El mFJ85t8veDI3DYRgNGB3pA5o5/FTt59r6NYnzIgbnD6jV4NaVG3YnjPq29MSJfpYQuNA K/3AgC+rL3lBTHgy7lHkOart0stZH4k386SOtE6Fn7/+7lyqzgKDBX0/nRhtzzcB9E96 Gx2w== X-Gm-Message-State: APjAAAUUgAsoNMXlueL36iO8UmrEGFN8Qy4l6V2hLlZsmFha44taz+B3 jtTi1svn7P5X2OHalVwuYnOJvNWt1FjElBfkVKYe1A== X-Google-Smtp-Source: APXvYqxYJoIhcO6REx3oitwCgaFfV7QJtU0IgGu90oxl8p4ALKSHUicgCrpYqh9THYdJ9c77URmub95ESTOEeEND+Xk= X-Received: by 2002:a67:8716:: with SMTP id j22mr7956491vsd.177.1574663174009; Sun, 24 Nov 2019 22:26:14 -0800 (PST) In-Reply-To: <87zhglzgue.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::e29 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: "guile-devel" Xref: news.gmane.org gmane.lisp.guile.devel:20161 Archived-At: Le dim. 24 nov. 2019 =C3=A0 11:53, Ludovic Court=C3=A8s a = =C3=A9crit : > > Hello! > > A few days ago David was explaining on #guile how =E2=80=98bytevector->po= inter=E2=80=99 > was generating too much garbage for his use case. An idea we came up > with was to embed the pointer object in the bytevector. I would be very happy to have a more performant bytevector->pointer for my OKVS work. > > The patch below does that but it leads to segfaults because I=E2=80=99m g= uessing > there=E2=80=99s generated bytecode somewhere that still uses the wrong of= fset; I > adjusted code that emits =E2=80=98pointer-ref/immediate=E2=80=99, what el= se did I miss? > > Also, since we disable internal pointers, we=E2=80=99d need to register a= n > additional displacement, and I=E2=80=99m not sure if this is a good idea. > > Thoughts? > > Thanks, > Ludo=E2=80=99. > --=20 Amirouche ~ https://hyper.dev