From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from forward500a.mail.yandex.net (forward500a.mail.yandex.net [IPv6:2a02:6b8:c0e:500:1:45:d181:d500]) by sourceware.org (Postfix) with ESMTPS id C466F3858D1E for ; Thu, 11 Apr 2024 12:12:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C466F3858D1E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=yandex.ru Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=yandex.ru ARC-Filter: OpenARC Filter v1.0.0 sourceware.org C466F3858D1E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a02:6b8:c0e:500:1:45:d181:d500 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712837564; cv=none; b=EUDmFHkZ0NyRUHVbINpnnuPBz5eVS8vimE+xFXOiSyp6bEVaBMW2uqcUh4WpyO37K5sjnsEpYPZP3tN/iOpAjyTQCwEnpXyUn3c+9Tdx2YXNzWyLMBU0Dr2ZMb/sgi8dY5N0i5qXv+yCAu8EVKcXH3r0ebdSfgGMpJ33jiT/CCk= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712837564; c=relaxed/simple; bh=opUGGA/YbZcCKmbQX/F0sPXNXyypJ7x/Mtv9I8Q3/Xc=; h=DKIM-Signature:Message-ID:Subject:From:To:Date:MIME-Version; b=T9J63xMlByvsMbAxHQf2aFeLEcGCE8n44eKe0VmtaOj1zQ5corvmCc1v5e/xed1kauz0QQ6IcCGvcvqM/PEIRE47tt9qi2fQK9ZYx820ggimAsmJ5LjdtxTMfKyZsPnv6GDwMSDaewU0Bm78Lq3R8eMaGp5Df1FD39kb6haRav0= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from mail-nwsmtp-smtp-production-main-84.vla.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-84.vla.yp-c.yandex.net [IPv6:2a02:6b8:c0d:409f:0:640:f1f0:0]) by forward500a.mail.yandex.net (Yandex) with ESMTPS id 602CD61566; Thu, 11 Apr 2024 15:12:40 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-84.vla.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id dCaLZ48Lm0U0-727YSHqP; Thu, 11 Apr 2024 15:12:40 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1712837560; bh=opUGGA/YbZcCKmbQX/F0sPXNXyypJ7x/Mtv9I8Q3/Xc=; h=References:Date:In-Reply-To:Cc:To:From:Subject:Message-ID; b=w0MMzOtGYgnGG3IbiuiqstGz3fiMx2d/XCLDUZfKlgBg+uPqtKk1Wi4JhuCnPZvRG Ab9uNO05pLy++FNGUDwz/SOrpPRETz9R6iOUk3pPAJr7gVfYjQNM5GG0y3vaBOgsxi g/rSluhBMLAR0OEGHPTr4xDGwW0Hy2+j4ZHe0Gjk= Authentication-Results: mail-nwsmtp-smtp-production-main-84.vla.yp-c.yandex.net; dkim=pass header.i=@yandex.ru Message-ID: <6dbc66feec4a383213cf2bdcc1b3bc2b4cba3948.camel@yandex.ru> Subject: Re: Richard M. Stallman says GNU/Linux, but Rust lang ecosystem is growing. From: Konstantin Kharlamov To: =?UTF-8?Q?=E9=A6=AC_=E5=86=B0?= , Adhemerval Zanella Cc: "rms@gnu.org" , "libc-help@sourceware.org" , "help-bash@gnu.org" Date: Thu, 11 Apr 2024 15:12:39 +0300 In-Reply-To: References: <6638e6b32ae3c4710fec18831d0e5ec84a99d1e0.camel@yandex.ru> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.52.0 MIME-Version: 1.0 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Thu, 2024-04-11 at 12:05 +0000, =E9=A6=AC =E5=86=B0 wrote: >=20 > "it's just an adapter from internal API to one operating on `int`s, > i.e. > `Ok()` will be converted to `0`, and an error will be converted to > another number", it may cost more memory if using 2 type systems > simultaneously. Rust Result can use Box to allocate errors with > unknown size on heap, whereas int is fixed-size, they may be > incompatible due to unknown size and fixed-size. Are you seriously motivated enough to start rewriting POSIX and other standards and convincing people to break backward compatibility just to save 8 bytes? Well=E2=80=A6 good luck