From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id 4931249516 for ; Thu, 27 Feb 2025 21:01:58 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 4A2DD68D96D; Thu, 27 Feb 2025 23:01:54 +0200 (EET) Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id B1A9568D129 for ; Thu, 27 Feb 2025 23:01:47 +0200 (EET) Received: by mail.gandi.net (Postfix) with ESMTPSA id DC0BC4414A for ; Thu, 27 Feb 2025 21:01:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1740690107; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=3PhGX8Ih3543OKZpJNQFCGg9ui1AbDstWaCVoeueDs0=; b=PYpekBhjQtg8kh3A/1Gacqq/cYpWuUHStAAUhGrMSE4TJZmHBmbO7jgcQyzetltFobUBsC AAu5pGO28isNc7Q2TojoAGCOWyeHUMIuzW+h2gPQcQ4lw32M8AgRjiuUXJ34BTjJWyvpZo a7OwF3cNWnWesplpjHs1meUTMaXc58NOxw1xCsZeFB1UO/aupkRhd6lXFRe/pdiEZOfRKa yQ3INh8ZaA5vwMWQ0BKl7xRv60qy3QUSg7OOxMRhFpIfCglTWoNkDxv7mOzJvV/HeRrFWz DrtMI0C263gGtb08/uf15Fn82OjQhoiwOMmFANgYONFHmDNCqrSJLdPgUNF2Pg== Date: Thu, 27 Feb 2025 22:01:45 +0100 From: Michael Niedermayer To: FFmpeg development discussions and patches Message-ID: <20250227210145.GH4991@pb2> References: <418474f4-5b38-4a44-822a-8e3c367e673c@gmail.com> <3335060.aeNJFYEL58@basile.remlab.net> <313bfd57b0e976df1845c160eeb60898baf6d0fb.camel@haerdin.se> <20250223215144.GS4991@pb2> <75dfc4639cd6851a60de100d19a8bc4c3bb34a14.camel@haerdin.se> MIME-Version: 1.0 In-Reply-To: <75dfc4639cd6851a60de100d19a8bc4c3bb34a14.camel@haerdin.se> X-GND-State: clean X-GND-Score: -70 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdekkeehtdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfitefpfffkpdcuggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedtudenucesvcftvggtihhpihgvnhhtshculddquddttddmnegfrhhlucfvnfffucdlfedtmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddtudenucfhrhhomhepofhitghhrggvlhcupfhivgguvghrmhgrhigvrhcuoehmihgthhgrvghlsehnihgvuggvrhhmrgihvghrrdgttgeqnecuggftrfgrthhtvghrnhepudetvdfhudeuudegudefgfehhfevvdfggfffkefhvdfgvdetffdtjeekheetfeehnecukfhppeeguddrieeirdeijedruddufeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeeguddrieeirdeijedruddufedphhgvlhhopehlohgtrghlhhhoshhtpdhmrghilhhfrhhomhepmhhitghhrggvlhesnhhivgguvghrmhgrhigvrhdrtggtpdhnsggprhgtphhtthhopedupdhrtghpthhtohepfhhfmhhpvghgqdguvghvvghlsehffhhmphgvghdrohhrgh X-GND-Sasl: michael@niedermayer.cc Subject: Re: [FFmpeg-devel] I've written a filter in Rust X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Content-Type: multipart/mixed; boundary="===============8012112922170365728==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============8012112922170365728== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="NR7hPV07TnEd66Bf" Content-Disposition: inline --NR7hPV07TnEd66Bf Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Feb 26, 2025 at 03:11:13PM +0100, Tomas H=E4rdin wrote: > s=F6n 2025-02-23 klockan 22:51 +0100 skrev Michael Niedermayer: > > Hi > >=20 > > On Sun, Feb 23, 2025 at 10:30:03PM +0100, Tomas H=E4rdin wrote: > > > l=F6r 2025-02-22 klockan 14:57 +0200 skrev R=E9mi Denis-Courmont: > > > > Le perjantaina 21. helmikuuta 2025, 20.02.16 UTC+2 Tomas H=E4rdin a= =E9crit : > > > > > The above said, I'm not against Rust. It has some nice properties= =2E But > > > > > it does not seem very "stable" so far. Perhaps this has changed in > > > > > recent years.. > > > >=20 > > > > IME, it's become very usable for user-space code. Bare metal still = pretty much=20 > > > > requires unstable features, but that's not a problem for FFmpeg. > > >=20 > > > I mean more in terms of ABI, and having to have cargo install specific > > > versions of the Rust compiler and so on. > > >=20 > > > > > If we're in the habit of allowing other languages I'd be in favor= of > > > > > allowing C++, so that we can make use of the STL containers rathe= r than > > > > > rolling our own. > > > >=20 > > > > Yikes. Rust is actually way saner for type-generic programming than= C++. > > >=20 > > > No doubt, but STL is still miles better than rolling our own > > > containers. > > >=20 > >=20 > > > Anyway, rather than shoehorning Rust into this codebase it might make > > > more sense to contribute to NihAV instead. But only if it has a sane > > > parsing framework > >=20 > > That misses the point. FFmpeg should support a "safer" language than C > > because for some modules its the better choice. >=20 > Maybe. We can do a lot by just improving the build system. But if we're > going that route I think we should first try and see how working C++ > into more parts of the code works, because we already have support for > C++ for torch and decklink. Doing so would allow us to toss out lots of > code, especially in lavu, which is always nice. Code is a liability. can some C++ expert explain me why this builds and runs with no warning ? ;) int main(int argc, char **argv) { int *v =3D (int*)(void*) new char; new int; delete v; return *++v; } we have a memleak, a use after free, a aliasing violation, some invalid pointer and a out of array read a safe language should not allow any of this C++ allows all of it, its not safe, switching to C++ doesnt help thx [...] --=20 Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Let us carefully observe those good qualities wherein our enemies excel us and endeavor to excel them, by avoiding what is faulty, and imitating what is excellent in them. -- Plutarch --NR7hPV07TnEd66Bf Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABEKAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCZ8DSsgAKCRBhHseHBAsP qw56AJ0bbltRyA7ruuH7pabzvvLrH1hBLgCfdc+TW8kx4rPH1M++Ir3krqBguyY= =p/HS -----END PGP SIGNATURE----- --NR7hPV07TnEd66Bf-- --===============8012112922170365728== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe". --===============8012112922170365728==--