From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alex Corcoles Newsgroups: gmane.emacs.devel Subject: Re: Interest in a Cosmopolitan build? Date: Fri, 10 Nov 2023 11:10:27 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31696"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Evolution 3.40.4 (3.40.4-9.el9) Cc: emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Nov 10 11:11:20 2023 Return-path: Envelope-to: ged-emacs-devel@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 1r1OTv-00087O-N0 for ged-emacs-devel@m.gmane-mx.org; Fri, 10 Nov 2023 11:11:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r1OTE-0006S7-40; Fri, 10 Nov 2023 05:10:36 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r1OTC-0006RO-K3 for emacs-devel@gnu.org; Fri, 10 Nov 2023 05:10:34 -0500 Original-Received: from mail-wr1-f46.google.com ([209.85.221.46]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r1OT9-0005EG-Jq; Fri, 10 Nov 2023 05:10:34 -0500 Original-Received: by mail-wr1-f46.google.com with SMTP id ffacd0b85a97d-32dc9ff4a8fso1010782f8f.1; Fri, 10 Nov 2023 02:10:30 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699611029; x=1700215829; h=content-transfer-encoding:mime-version:user-agent:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=09zwOjZ1fuVFkZhFrcIksBWwVaDPWfpV7kKNdvwsNoY=; b=YNj+SI9D5gZ70Yd3oDkyHfpD8reOJFz3ZoPgFPZoAoIY3i4+D/Avp2EIylbUWMWxBL KyG14Wy8QD+kfqAGuhAJVcPjlWoWavO5W3BeNE4M7P8SkbRgYT+BqRUG8ZCKOTOCGVQq 8xJWuSO9XkYhLBjOQ+ljqzjlsfbUgXknFdiKpIyQS/XTiuvPSoODjpz15y2LbVlxiNDK qYCoZMJBb/wFFKg2MwkNXHPiBqhpZAl/cYBPC7d7acTroNTj0Cfuyuld5PZALataB0b6 bynAfHMCCusbzeusx4+Y/NqtIaazY2192wk+W13GF2JpEdmFTYh6waMAGSCSwpwXJH3C yikQ== X-Gm-Message-State: AOJu0YynPYZ2Q4VY3v7dCdH3yBjY9do7GzcQRuDDksvZAmTRaFBGjghP RVwM7Rjt57aEL7hfpqUPya+waJ/4PlW77A== X-Google-Smtp-Source: AGHT+IHB9v09eEBSKqcmUXU3DpVV6LOBr9dZHHkZtMwAtNAwkLsJYDs7gtUv7PFoTugu1QcansGwcg== X-Received: by 2002:a05:6000:144e:b0:32d:9d99:d0a5 with SMTP id v14-20020a056000144e00b0032d9d99d0a5mr5944366wrx.5.1699611028845; Fri, 10 Nov 2023 02:10:28 -0800 (PST) Original-Received: from molly.mad.int.pdp7.net ([79.116.36.51]) by smtp.gmail.com with ESMTPSA id m8-20020a056000024800b003197869bcd7sm1596779wrz.13.2023.11.10.02.10.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Nov 2023 02:10:28 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=209.85.221.46; envelope-from=koalillo@gmail.com; helo=mail-wr1-f46.google.com X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:312469 Archived-At: Hi, >   > If I understand correctly, they found a way to make something > that fits >   > all executable formats that major OSs support, plus they embed a > zip >   > with binaries and dependencies (e.g. parts of /usr/ for Emacs), > plus >   > they even convinced the POSIX stewards to loosen up the > definition of >   > what's an executable. Plus a new libc... > > Could you possibly explain concretely what "a new libc" means in > this context?  In what sense is it "new"?  In what ways is it > different from the existing libc that any POSIX system would have? I am afraid I am a novice about systems programming, C, and portability. I can quote parts from their README: > Please note that the Cosmopolitan build configuration doesn't link > any C/C++ library dependencies by default, so you still have the  > flexibility to choose the one provided by your system. If you'd  > prefer Cosmopolitan, just add $(LIBC) and $(CRT) to your linker >arguments. > The Cosmopolitan Library exports only the most stable canonical > system calls for all supported operating systems, regardless of which > platform is used for compilation. We polyfill many of the APIs, e.g. > read(), write() so they work consistently everywhere while other  > apis, e.g. CreateWindowEx(), might only work on one platform, in > which case they become no-op functions on others. > Please note that, unlike Cygwin or MinGW, Cosmopolitan does not > achieve broad support by bolting on a POSIX emulation layer. We do > nothing more than (in most cases) stateless API translations that get > you 90% of the way there in a fast lightweight manner. We therefore  > can't address some of the subtle differences, such as the nuances of > absolute paths on Windows. I can provide you further links, although they host their code on GitHub. I'm happy to push it to some other Git forge, or host a tarball of the source on a system of my own. I'm also happy to answer any other question, although really I don't feel qualified for this discussion. Not sure, though, if this remains on-topic for this list. Happy to continue this discussion in some other place if needed. Cheers, Álex