Re: [Article] Rust Apps on NuttX with QEMU RISC-V Emulator

2024-04-08 Thread Lee, Lup Yuen
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

2024-04-08 Thread Sebastien Lorquet

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

2024-04-07 Thread Alan C. Assis
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

2024-04-07 Thread Lee, Lup Yuen
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

2024-04-07 Thread Alan C. Assis
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

2024-04-06 Thread Alin Jerpelea
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

2024-04-06 Thread Tomek CEDRO
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