Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3061755rwl; Sun, 9 Apr 2023 07:13:05 -0700 (PDT) X-Google-Smtp-Source: AKy350ZrDB6aUWukIBW07NL57Y51WDFsAWyziL2a6JI4rgDlztAKYBao8PHxYIK0sqpc3733VuR8 X-Received: by 2002:a05:6402:1496:b0:4ac:bde4:ff14 with SMTP id e22-20020a056402149600b004acbde4ff14mr6646971edv.42.1681049585259; Sun, 09 Apr 2023 07:13:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681049585; cv=none; d=google.com; s=arc-20160816; b=y+PyO+2jz6mt36NwL3uhvlCctBPo7EmmFKJUCf0duuTkJ0PXtgcv27VvJJ5RZDQTBV WMMxyJx2OSbo2gdPZVPyZhR0OiwbMzbbn+sptUpuG9P8zII9hVWA4iXBf3fwV9YJJf7S 6glowDf+aMn4tPX5iZnCo0uwB80u3myQNzndSV2y6S+8mJ+aU60qWXPV46pE3w/kRt9A pbnH23dZofRElF2d/gJcwCZeMlo8Nd4DpsTSLgeZ5J566ib0OuX59qT1MlcgsXhuSYrn pETAoGiBP56QpjY+0iNFefIUjEB7aLW1IdlSWKgFDlwbHeEs0DwmAGju7naCt+Pg+6YK UlVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=hNWF7t5mKdSYanG/XSGa46whVkxk6jE68Gbv8KQaw+8=; b=LdWz8JbANFYg0CtbtxbO5OPU5E/QM8C/DB5aXCYf3Jau6W6T7zAGDb18MePUt0WMdl 69BRKT62/Uv6/bAoTaipwS2VSdJ4xjnFQiYsnZxObl1xJe/evC4Md6Zc48EvcxzmNLWX bAoH+Tu3jLD/KImxxS4XgWFvhODpovI3CCW6NEMI2nHgIddJ6fgTaMX/lq4KcTqvcom9 mgnO867yuLRvqYikYPOkEHP6FKSGk8MLIK/6b7z3ePogIXaL4kXa2XQJsFFg0OP+YgOa ajH5Qlph5SqE0A7zn7cQq275qDp/qEt7Qxs1jNh/xWG5Qo0WLt8VHDfg2gs17ByE4cvd HMdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=EliufXZ0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bc20-20020a056402205400b005021d19dcdesi92414edb.171.2023.04.09.07.12.40; Sun, 09 Apr 2023 07:13:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=EliufXZ0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229641AbjDIOKu (ORCPT + 99 others); Sun, 9 Apr 2023 10:10:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229654AbjDIOKr (ORCPT ); Sun, 9 Apr 2023 10:10:47 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B53703AA0; Sun, 9 Apr 2023 07:10:45 -0700 (PDT) Received: from [IPv6:2804:14d:72b4:8284:32a8:8167:f815:2895] (unknown [IPv6:2804:14d:72b4:8284:32a8:8167:f815:2895]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: dwlsalmeida) by madras.collabora.co.uk (Postfix) with ESMTPSA id 9437E66020BC; Sun, 9 Apr 2023 15:10:41 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1681049443; bh=0txPfh3mQOMDuJ+08xBvWsHJQq1bTzoilqnXMcIVR0w=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=EliufXZ0A0w2pwwFVoxncNEmmXebULH7xwC8CHk2LysxJsUrHC5qgh5IewIO+b2P4 ICt0YISBFxn7DihYreR5+Fd4cvs119AjCJU61tUuCys5+5toIyZx0U7uHv13jxnDPe WjTlkHqyUxPfQxwjqBcv8ZhGA9japTg5xzwO+/iDtkBhGHi+Ke4Bf0szC9/WZeVYoL ZFaVLY0knzS/QImddsiSZwhybA6WTPm4fPARSi3vHQhwFlz/loRmB8499de6Bgt48A EzHHks9QUaZcos89WSzQBO32/HIceghnL0iWXzD9LJ72fCVW4g2h6pzX0CXE7i4DoY GsEX+ObcibCBw== Message-ID: <0ec4becd05c49e8f0bf214fbd62208ea67c2b4c3.camel@collabora.com> Subject: Re: [PATCH 0/6] Initial Rust V4L2 support From: Daniel Almeida To: Hans Petter Selasky , wedsonaf@gmail.com, ojeda@kernel.org, mchehab@kernel.org, hverkuil@xs4all.nl Cc: rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, kernel@collabora.com Date: Sun, 09 Apr 2023 11:10:28 -0300 In-Reply-To: <441a96cb-7dd1-0885-df64-933ebdb55e9e@selasky.org> References: <20230406215615.122099-1-daniel.almeida@collabora.com> <441a96cb-7dd1-0885-df64-933ebdb55e9e@selasky.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4 MIME-Version: 1.0 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Hans! Thank you for chiming in! There's a few things in your email that I disagree with and that I'd like to address. > I think V4L2 should be written in primarily one language. It is, in C. This series is about adding *bindings* to write *drivers* in Rust *for those interested*. The v4l2 core remains untouched, and I don't think there are any plans to introduce Rust outside of drivers in the kernel at all, last I heard. > You assume that all code is running inside the kernel and needs to be perfect. No I do not assume that. In fact, Rust code is absolutely not guaranteed to be bug free and definitely not "perfect". On the other hand, I would take Rust over C any day. Thus I am contributing some of the infrastructure to make this possible for me and for others. IMHO I think you're approaching this from the wrong angle. It isn't that Linux *needs* Rust. It's more about providing a new and safer choice with modern ergonomics for developers, is all. > I would rather like more drive on that, than flowing down the Rust stream. These two things are not mutually exclusive :) > Rust is cool, Java is cool, VM's are cool. I don't see why Java and virtual machines are being brought into the discussion for this patchset here. And compilation times are a part of life, sadly. Also, can you substantiate your claim that Rust is slow? > Engineering energy would be much more focused, if hardware vendors could agree more about what binary formats to use for their device protocols, I understand, but my patchset is not to blame here. In fact, I have no say at all over these things. > than changing the coding language This simply is not what is happening here. Again this is about giving kernel developers another *option* of programming language, not about ditching C. > that now anyone can be let loose to program in the Linux kernel without risking any damage Who's "anyone"? Plus the review process stays in place, so hardly any changes to code quality here. > I'm glad if not everyone out there can do my job writing C-code for device drivers. We don't need more people to mess around there simply. Ok we differ strongly here. In particular, I am totally neutral to your first statement. The reality is that it isn't up to anyone to say who should or shouldn't become a kernel developer. The resources are out there for anyone to try, and if maintainers take in their patches, then that's the end of the story. -- Daniel