From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-io1-f47.google.com (mail-io1-f47.google.com [209.85.166.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 20A8E2FAE for ; Mon, 19 Jul 2021 18:25:03 +0000 (UTC) Received: by mail-io1-f47.google.com with SMTP id l5so21110058iok.7 for ; Mon, 19 Jul 2021 11:25:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=fPn5ImHjkZXlJR+Dg3JAFTE7p5JMahnNswTb1G5+hds=; b=iu3ohQY3EzAIgPpXV3W6/Sk+ANjrwyRaRZQJoGfJznSF0SUZBS256nmDkYUbmiLask YR5ksUty72TrnNGMUd+bajPeeHj/a3nSys23PB6LG5XZ5+aBUt6gmV95Dv/DCDYYqD9C 3DoVO3unBznRzbboTfzVq46sELuj9y1jlaoy1jaB6UhHsRPKzADGpRB1iBpxXZamKCIy JpuBTl2BQmF55FZCGvsDcKq+sKhGjwSsllbw5BC50Yi4d14oF0Q/PBnP8HL5Av8PwtsM 9gMS9+zPCL2NA8A6qWP7+F1goSAxcYlIpKKHiLsFNG1uOoHkStBvt17d1vDHktsni/Ds nlbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=fPn5ImHjkZXlJR+Dg3JAFTE7p5JMahnNswTb1G5+hds=; b=JQ5f4642RQnBKo8N3WUIFldQTZnvf7fHiyJachqP7EV3sLeOrM+tY/NhGdvgBtYicH 1WsWhSJVR0WeeKIyKxaXb8WAofAiOzVv8/YYvMJKOOwOaMfEqzcPUEfpCawv5tewmRAa 7QF1T6Y/dUiu+9SBbQotYc8e/pxjO3msoQ1ESAVrb9iHhLMEV8YhHk24yNf5CfLGDbwa xzODNj80AfdsyvGrvqESVH6zAZ6XveF1m4hzGOfM/8rHZczhsDo5bVtkJETHoY+n8uVX qpqrwX2rEMqh7nX5JoAMd5bJKhU9Axr0UtZVVTwUyIbtSjl4hMwRF0B2ZTWJqU9TOAcW RTXg== X-Gm-Message-State: AOAM532xBHLQ9tFI6P2QES29U0lebo/AXz/Z0lu0OpEbwa2AqyfFs9VG nqSUrT+ADAq1AwdofOK4A/RLiNE3+QSLsLkTJUs= X-Google-Smtp-Source: ABdhPJxtzG4qIc0WDD8n+vXDmdpKFVrQsA/L2a1JMGKN4X7+Zw5pQXPuenkmV2iHN+Y38Q+oS/HtbE1RKnKOP/yF6MI= X-Received: by 2002:a5d:8c9a:: with SMTP id g26mr19968030ion.121.1626719102359; Mon, 19 Jul 2021 11:25:02 -0700 (PDT) Precedence: bulk X-Mailing-List: ksummit@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20210707203827.GI18396@quack2.suse.cz> In-Reply-To: From: Miguel Ojeda Date: Mon, 19 Jul 2021 20:24:51 +0200 Message-ID: Subject: Re: [TECH TOPIC] Rust for Linux To: Geert Uytterhoeven Cc: Arnd Bergmann , Wedson Almeida Filho , Linus Walleij , Greg KH , Bartosz Golaszewski , Kees Cook , Jan Kara , James Bottomley , Julia Lawall , Laurent Pinchart , Roland Dreier , ksummit@lists.linux.dev, Viresh Kumar Content-Type: text/plain; charset="UTF-8" On Mon, Jul 19, 2021 at 4:43 PM Geert Uytterhoeven wrote: > > Turns out "a..b" in Rust does mean "range from a to b-1". > That's gonna be hard to (un)learn... It may help to think about it as the usual `for` loop in C, typically written with `<` and the "size" (instead of `<=` and the "size - 1"), i.e.: for i in 0..N for (i = 0; i < N; ++i) Cheers, Miguel