Re: [Article] Rust Apps on NuttX with QEMU RISC-V Emulator
Thank you so much Sebastien! Yep I promise to explain slowly all the Rust Concepts, sometimes they baffle me too :-) Lup On Mon, Apr 8, 2024 at 5:07 PM Sebastien Lorquet wrote: > Hi, > > I dont want to have anything serious to do with rust, but I like your > article, as it gives a kind of rosetta stone to interop basic rust with > C and the usual toolchains, which I did not see anywhere else (I did not > search for long). > > I'll keep it as a reference doc. > > Thanks, > > Sebastien > > Le 07/04/2024 à 00:56, Lee, Lup Yuen a écrit : > > This article explains the current steps for running barebones Rust Apps > on > > NuttX and the challenges we faced: > > > > (1) How we compile Rust Apps for NuttX > > (2) Running NuttX and Rust Apps on QEMU RISC-V Emulator > > (3) Console Input and Output for Rust on NuttX > > (4) Software vs Hardware Floating-Point and why it’s a problem > > (5) Linking Issues with the Rust Panic Handler > > (6) Standard vs Embedded Rust and why it matters > > (7) Why we’re doing all this for Google Summer of Code (GSoC) > > > > Here's the article: https://lupyuen.codeberg.page/articles/rust3.html > > > > Mr Rushabh Gala is my GSoC Mentee, when the project begins I'll do the > > proper intro. Stay tuned :-) > > > > Lup > > >
Re: [Article] Rust Apps on NuttX with QEMU RISC-V Emulator
Hi, I dont want to have anything serious to do with rust, but I like your article, as it gives a kind of rosetta stone to interop basic rust with C and the usual toolchains, which I did not see anywhere else (I did not search for long). I'll keep it as a reference doc. Thanks, Sebastien Le 07/04/2024 à 00:56, Lee, Lup Yuen a écrit : This article explains the current steps for running barebones Rust Apps on NuttX and the challenges we faced: (1) How we compile Rust Apps for NuttX (2) Running NuttX and Rust Apps on QEMU RISC-V Emulator (3) Console Input and Output for Rust on NuttX (4) Software vs Hardware Floating-Point and why it’s a problem (5) Linking Issues with the Rust Panic Handler (6) Standard vs Embedded Rust and why it matters (7) Why we’re doing all this for Google Summer of Code (GSoC) Here's the article: https://lupyuen.codeberg.page/articles/rust3.html Mr Rushabh Gala is my GSoC Mentee, when the project begins I'll do the proper intro. Stay tuned :-) Lup
Re: [Article] Rust Apps on NuttX with QEMU RISC-V Emulator
Great! I'm looking forward to it! BR, Alan On Sun, Apr 7, 2024 at 12:23 PM Lee, Lup Yuen wrote: > Thanks Alan! Yep our GSoC Project will create Rust Wrappers for the NuttX > POSIX API. So we won't need `extern` and `unsafe` in our Rust Apps. > > We'll borrow the features from the Rustix Project. Though we'll pick a > smaller subset that's easier to maintain. > > Lup > > On Sun, Apr 7, 2024 at 8:39 PM Alan C. Assis wrote: > > > Very nice article! > > > > I think it should be nice to take a look at the Rustix project again, it > > will avoid these 'extern "C" ' for each function on NuttX. > > > > BR, > > > > Alan > > > > On Sat, Apr 6, 2024 at 7:57 PM Lee, Lup Yuen wrote: > > > > > This article explains the current steps for running barebones Rust Apps > > on > > > NuttX and the challenges we faced: > > > > > > (1) How we compile Rust Apps for NuttX > > > (2) Running NuttX and Rust Apps on QEMU RISC-V Emulator > > > (3) Console Input and Output for Rust on NuttX > > > (4) Software vs Hardware Floating-Point and why it’s a problem > > > (5) Linking Issues with the Rust Panic Handler > > > (6) Standard vs Embedded Rust and why it matters > > > (7) Why we’re doing all this for Google Summer of Code (GSoC) > > > > > > Here's the article: https://lupyuen.codeberg.page/articles/rust3.html > > > > > > Mr Rushabh Gala is my GSoC Mentee, when the project begins I'll do the > > > proper intro. Stay tuned :-) > > > > > > Lup > > > > > >
Re: [Article] Rust Apps on NuttX with QEMU RISC-V Emulator
Thanks Alan! Yep our GSoC Project will create Rust Wrappers for the NuttX POSIX API. So we won't need `extern` and `unsafe` in our Rust Apps. We'll borrow the features from the Rustix Project. Though we'll pick a smaller subset that's easier to maintain. Lup On Sun, Apr 7, 2024 at 8:39 PM Alan C. Assis wrote: > Very nice article! > > I think it should be nice to take a look at the Rustix project again, it > will avoid these 'extern "C" ' for each function on NuttX. > > BR, > > Alan > > On Sat, Apr 6, 2024 at 7:57 PM Lee, Lup Yuen wrote: > > > This article explains the current steps for running barebones Rust Apps > on > > NuttX and the challenges we faced: > > > > (1) How we compile Rust Apps for NuttX > > (2) Running NuttX and Rust Apps on QEMU RISC-V Emulator > > (3) Console Input and Output for Rust on NuttX > > (4) Software vs Hardware Floating-Point and why it’s a problem > > (5) Linking Issues with the Rust Panic Handler > > (6) Standard vs Embedded Rust and why it matters > > (7) Why we’re doing all this for Google Summer of Code (GSoC) > > > > Here's the article: https://lupyuen.codeberg.page/articles/rust3.html > > > > Mr Rushabh Gala is my GSoC Mentee, when the project begins I'll do the > > proper intro. Stay tuned :-) > > > > Lup > > >
Re: [Article] Rust Apps on NuttX with QEMU RISC-V Emulator
Very nice article! I think it should be nice to take a look at the Rustix project again, it will avoid these 'extern "C" ' for each function on NuttX. BR, Alan On Sat, Apr 6, 2024 at 7:57 PM Lee, Lup Yuen wrote: > This article explains the current steps for running barebones Rust Apps on > NuttX and the challenges we faced: > > (1) How we compile Rust Apps for NuttX > (2) Running NuttX and Rust Apps on QEMU RISC-V Emulator > (3) Console Input and Output for Rust on NuttX > (4) Software vs Hardware Floating-Point and why it’s a problem > (5) Linking Issues with the Rust Panic Handler > (6) Standard vs Embedded Rust and why it matters > (7) Why we’re doing all this for Google Summer of Code (GSoC) > > Here's the article: https://lupyuen.codeberg.page/articles/rust3.html > > Mr Rushabh Gala is my GSoC Mentee, when the project begins I'll do the > proper intro. Stay tuned :-) > > Lup >
Re: [Article] Rust Apps on NuttX with QEMU RISC-V Emulator
Nice work Lup! Best regards Alin On Sun, 7 Apr 2024, 01:03 Tomek CEDRO, wrote: > On Sun, Apr 7, 2024 at 12:58 AM Lee, Lup Yuen wrote: > > This article explains the current steps for running barebones Rust Apps > on > > NuttX and the challenges we faced: > > Congratulations Lup! Looks like no problem is any challenge for You!! :-) > > -- > CeDeROM, SQ7MHZ, http://www.tomek.cedro.info >
Re: [Article] Rust Apps on NuttX with QEMU RISC-V Emulator
On Sun, Apr 7, 2024 at 12:58 AM Lee, Lup Yuen wrote: > This article explains the current steps for running barebones Rust Apps on > NuttX and the challenges we faced: Congratulations Lup! Looks like no problem is any challenge for You!! :-) -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info