kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* Wouldn't Zig be more suitable than rust? In the Linux kernel
@ 2024-09-23 21:07 Manuel Quintero Fonseca
  2024-09-24  0:11 ` Joshua Rose
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Manuel Quintero Fonseca @ 2024-09-23 21:07 UTC (permalink / raw)
  To: kernelnewbies

The Zig compiler is compatible with C, Zig code is cleaner than Rust,
and they are both equally secure.

What do you think?

Note: I'm not an expert, it's just what you read in articles on the internet :D

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Wouldn't Zig be more suitable than rust? In the Linux kernel
  2024-09-23 21:07 Wouldn't Zig be more suitable than rust? In the Linux kernel Manuel Quintero Fonseca
@ 2024-09-24  0:11 ` Joshua Rose
  2024-09-24  0:58 ` Jeffrey Walton
  2024-09-27 11:56 ` Richard
  2 siblings, 0 replies; 4+ messages in thread
From: Joshua Rose @ 2024-09-24  0:11 UTC (permalink / raw)
  To: Manuel Quintero Fonseca; +Cc: kernelnewbies

> The Zig compiler is compatible with C
So is Rust.

> Zig code is cleaner than Rust,
The standard library is a bit more readable, sure, but the overall 'cleanliness'
of either language is up for debate.

> and they are both equally secure.
If by 'secure' you mean safer, I believe Rust outshines Zig in memory safety.

Again, this is just from my research; I have only ever experimented with Rust so
I may be a bit biased.

--
- Joshua.

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Wouldn't Zig be more suitable than rust? In the Linux kernel
  2024-09-23 21:07 Wouldn't Zig be more suitable than rust? In the Linux kernel Manuel Quintero Fonseca
  2024-09-24  0:11 ` Joshua Rose
@ 2024-09-24  0:58 ` Jeffrey Walton
  2024-09-27 11:56 ` Richard
  2 siblings, 0 replies; 4+ messages in thread
From: Jeffrey Walton @ 2024-09-24  0:58 UTC (permalink / raw)
  To: Manuel Quintero Fonseca; +Cc: kernelnewbies

On Mon, Sep 23, 2024 at 5:08 PM Manuel Quintero Fonseca
<manuel@uas.edu.mx> wrote:
>
> The Zig compiler is compatible with C, Zig code is cleaner than Rust,
> and they are both equally secure.
>
> What do you think?

The kernel needs more than Rust's incomplete x86_64 and i686 support.
Rust would actually have to have Tier 1 support for armel, armv7,
aarch64, loongarch64, mips{64}, powerpc{64}, riscv{64}, sparc{64},
s390x, and a wheelbarrow full of other minor architectures. See
<https://doc.rust-lang.org/nightly/rustc/platform-support.html>.

Zig would have to provide similar support.

I don't believe Rust or Zig would be much help at the moment.

Jeff

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Wouldn't Zig be more suitable than rust? In the Linux kernel
  2024-09-23 21:07 Wouldn't Zig be more suitable than rust? In the Linux kernel Manuel Quintero Fonseca
  2024-09-24  0:11 ` Joshua Rose
  2024-09-24  0:58 ` Jeffrey Walton
@ 2024-09-27 11:56 ` Richard
  2 siblings, 0 replies; 4+ messages in thread
From: Richard @ 2024-09-27 11:56 UTC (permalink / raw)
  To: kernelnewbies


> 
> What do you think?
> 
I'd like to add that sociological and organisational matters are often 
(and I think here too) more important than technical reasons. If one of 
the languages has a bigger community (and more importantly more people 
with the motivation to make it work for linux) that's what will make the 
difference. From what it looks like to me currently Rust has the better 
marketing and the bigger community.

It could also make a big difference if a company came up that champions 
one of the languages and wants to write kernel modules with it

-- Richard

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-09-27 11:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-23 21:07 Wouldn't Zig be more suitable than rust? In the Linux kernel Manuel Quintero Fonseca
2024-09-24  0:11 ` Joshua Rose
2024-09-24  0:58 ` Jeffrey Walton
2024-09-27 11:56 ` Richard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).