From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eduardo Ochs Newsgroups: gmane.emacs.help Subject: Re: dynamic reload of dynamic module not dynamic? Date: Sun, 17 Apr 2022 15:31:09 -0300 Message-ID: References: <87o810mic0.fsf@zoho.eu> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12730"; mail-complaints-to="usenet@ciao.gmane.io" To: Emanuel Berg , help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 17 21:26:53 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ngAXt-00038G-0a for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 17 Apr 2022 21:26:53 +0200 Original-Received: from localhost ([::1]:59950 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ngAXr-0007xj-AM for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 17 Apr 2022 15:26:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57884) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ng9gE-0000ru-8i for help-gnu-emacs@gnu.org; Sun, 17 Apr 2022 14:31:26 -0400 Original-Received: from mail-lf1-x136.google.com ([2a00:1450:4864:20::136]:41581) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ng9gB-0001vQ-VI for help-gnu-emacs@gnu.org; Sun, 17 Apr 2022 14:31:25 -0400 Original-Received: by mail-lf1-x136.google.com with SMTP id u7so21344578lfs.8 for ; Sun, 17 Apr 2022 11:31:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=vkfH//xC/4l5gzjEZQknl5wef5SSvZ4zPn8eD3lzcbs=; b=bUi/HzikAlMmzNNwsjYvDXMHonTH5DfyQCjKLWmb5u7BxE3x2Hmv8IBKLva584+35R o8TOD4/zZSzy8k4Kpep5PgWfaM/pZmMXYtscSkSMWH0HUOKCjqsoMzcnkmqSjAKe+Zqm W9e+mepMk4d9itsUpRL7I669PSd4ooCrIEsFrvikyrF6S0jXH2VbtkGv+GN02/+A5jB1 h1Xf4KvSOt6oP9e9QM4Ud7Bpk+BqcG4ziAbUN29rOyY6JNB4vDUCzDikPWHXyE2VzKDL iGk95qDlgCKO0sUGsddBHCqLFY41m/AGQTZLI7OOqTSmb+UZdQXvN6MiZ44QhW9O9YAI r5WA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=vkfH//xC/4l5gzjEZQknl5wef5SSvZ4zPn8eD3lzcbs=; b=i81O4wTd0xlYcjmAO7pgaRKG2v7Mk56cioV3ajXim+dycmpO9qc+F2vVAp2JkHDx4J hpL9NS+nc6dq8qbeJg4JeEL1Kj/+P4MISb32om6UvuHLh0iB59vogwIt68JMxxf0CHhe Javp3l/iSok7SjSZDKUZ6121C+z2h/9nYkhtbhZbMTFpkOJPL1y3hzapwg8CipNkTJcF HkjDoF26RzSXAPzgQWko8izTLhXqtlfaFnKRxybT8Nba41Ser2fl5AVLeKbbdlY/nbPK H5bwQXFkbWiI5De5gbjJFpoOcPrEwCOFuhvz+xd4ZkU3KtGWX6gigt4lz2DhIRvD7Rt5 pXJg== X-Gm-Message-State: AOAM5333tdWkYLhsp+nCa9CeT9/RAlke8UMfSLc5zCvQ9QShfbcyvatb +eT+DUK7p/hSF3WBnHVhNfhMN6DWRX6VbTQafSs= X-Google-Smtp-Source: ABdhPJxyPu3IFhz3AHJ+M15EZJ2EOS7TNw9Rn7o4ctIrfkxHOLu3enEncCmXGu3NaSRZqqJmnyZacmbcnbOmsIbiVwo= X-Received: by 2002:a05:6512:32c2:b0:471:91e6:5542 with SMTP id f2-20020a05651232c200b0047191e65542mr1270524lfg.239.1650220281211; Sun, 17 Apr 2022 11:31:21 -0700 (PDT) In-Reply-To: <87o810mic0.fsf@zoho.eu> Received-SPF: pass client-ip=2a00:1450:4864:20::136; envelope-from=eduardoochs@gmail.com; helo=mail-lf1-x136.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:136940 Archived-At: On Sun, 17 Apr 2022 at 14:20, Emanuel Berg via Users list for the GNU Emacs text editor wrote: > > It seems recompiling the C for an Emacs dynamic module and > then loading the new SO file from the same Emacs instance that > loaded the old doesn't get you the new stuff? > > So not so dynamic after all, ey? > > See this example project with screenshots, > > https://dataswamp.org/~incal/emacs-init/random-urandom/ > > -- > underground experts united > https://dataswamp.org/~incal Hi Emanuel, Are you using `load' or `require'? If I remember correctly, when I used (load "/tmp/emlua.so") my module would be reloaded, but when I used (require 'emlua "/tmp/emlua.so") it would not... The full example is here: http://angg.twu.net/emlua/emlua.cpp.html http://angg.twu.net/emlua/emlua.cpp.html#tests-in-tmp https://github.com/edrx/emlua#introduction Cheers, E. ...