You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@thrift.apache.org by "Adamus, Piotr" <Pi...@brooks.com.INVALID> on 2024/11/06 03:11:54 UTC

Question about Thrift support for plain C and binary image size of the example Zephyr code

Hi All,

I am currently investigating/learning Thrift and wanted to ask whether anyone knew any good Thrift implementation in pure C (if it exists… 😊 )?
If not, does anyone know if there are any plans to introduce it in the near future?

Also, I wanted to ask about binary size when compiling for Zephyr.  After building the example code I realized that the binaries are ~400kB for TCP/IP. Does anyone know any good strategies to minimize the size of the code in this environment?
I tried enabling aggressive size optimization and played with some other settings but only managed to shave ~15kB of space.

I would be very grateful for any help or information.

Best regards
Piotr Adamus

_____________________________________________________________________

This email message, including any attachments, may contain confidential and proprietary information for the sole use of the intended recipient. If you are not the intended recipient, please notify the sender and delete this message from your system, without making any copy or distribution. Our website and email privacy policy is available at https://www.brooks.com/privacy

Re: Question about Thrift support for plain C and binary image size of the example Zephyr code

Posted by Jens Geyer <je...@hotmail.com>.
Very helpful. Thank you.

Sent from mobile device.
________________________________
From: V R <ve...@gmail.com>
Sent: Thursday, November 14, 2024 3:14:00 PM
To: user@thrift.apache.org <us...@thrift.apache.org>
Subject: Re: Question about Thrift support for plain C and binary image size of the example Zephyr code

3 or 4 years ago, I started learning Thrift but I got a lot of problems, no
support at all. It's like a dead project. I gave up and switched to grpc.
Good luck.

Le jeu. 14 nov. 2024, 07 h 02, C Potter <ca...@gmail.com> a écrit :

> unsubscribe
>
> On Thu, Nov 14, 2024, 6:36 AM Jens Geyer <je...@hotmail.com> wrote:
>
> > Hi,
> >
> > I See. Did you try to contact cfried? He's way more an expert in that
> > matter.
> >
> > JensG
> >
> > Sent from mobile device.
> > ________________________________
> > From: Adamus, Piotr <Pi...@brooks.com.INVALID>
> > Sent: Thursday, November 14, 2024 2:01:55 AM
> > To: user@thrift.apache.org <us...@thrift.apache.org>
> > Subject: RE: Question about Thrift support for plain C and binary image
> > size of the example Zephyr code
> >
> > Hi Jens,
> >
> > Thank you for your response.
> >
> > I looked at the the c_glib implementation but it requires Glib (
> > http://www.gtk.org/) and that doesn't seem to be available for zephyr -
> > happy to be corrected here if I missed something.
> >
> > Thank you for the suggestion. I will reach out to Chris.
> >
> > Best regards,
> > Piotr A.
> >
> > Hi,
> >
> > there is a c_glib implementation, did you try that one?
> >
> >  > binary size when compiling for Zephyr [...] Does anyone know any good
> > strategies to minimize [...]
> >
> > You may want to contact https://github.com/cfriedt, he has implemented a
> > bunch of stuff in Apache Thrift for Zephyr.
> >
> > Have fun, JensG
> >
> >
> > Am 06.11.2024 um 04:11 schrieb Adamus, Piotr:
> > > Hi All,
> > >
> > > I am currently investigating/learning Thrift and wanted to ask whether
> > anyone knew any good Thrift implementation in pure C (if it exists… 😊 )?
> > > If not, does anyone know if there are any plans to introduce it in the
> > near future?
> > >
> > > Also, I wanted to ask about binary size when compiling for Zephyr.
> > After building the example code I realized that the binaries are ~400kB
> for
> > TCP/IP. Does anyone know any good strategies to minimize the size of the
> > code in this environment?
> > > I tried enabling aggressive size optimization and played with some
> other
> > settings but only managed to shave ~15kB of space.
> > >
> > > I would be very grateful for any help or information.
> > >
> > > Best regards
> > > Piotr Adamus
> > >
> > > _____________________________________________________________________
> > >
> > > This email message, including any attachments, may contain
> > > confidential and proprietary information for the sole use of the
> > intended recipient. If you are not the intended recipient, please notify
> > the sender and delete this message from your system, without making any
> > copy or distribution. Our website and email privacy policy is available
> > athttps://www.brooks.com/privacy
> > _____________________________________________________________________
> >
> > This email message, including any attachments, may contain confidential
> > and proprietary information for the sole use of the intended recipient.
> If
> > you are not the intended recipient, please notify the sender and delete
> > this message from your system, without making any copy or distribution.
> Our
> > website and email privacy policy is available at
> > https://www.brooks.com/privacy
> >
>

Re: Question about Thrift support for plain C and binary image size of the example Zephyr code

Posted by V R <ve...@gmail.com>.
3 or 4 years ago, I started learning Thrift but I got a lot of problems, no
support at all. It's like a dead project. I gave up and switched to grpc.
Good luck.

Le jeu. 14 nov. 2024, 07 h 02, C Potter <ca...@gmail.com> a écrit :

> unsubscribe
>
> On Thu, Nov 14, 2024, 6:36 AM Jens Geyer <je...@hotmail.com> wrote:
>
> > Hi,
> >
> > I See. Did you try to contact cfried? He's way more an expert in that
> > matter.
> >
> > JensG
> >
> > Sent from mobile device.
> > ________________________________
> > From: Adamus, Piotr <Pi...@brooks.com.INVALID>
> > Sent: Thursday, November 14, 2024 2:01:55 AM
> > To: user@thrift.apache.org <us...@thrift.apache.org>
> > Subject: RE: Question about Thrift support for plain C and binary image
> > size of the example Zephyr code
> >
> > Hi Jens,
> >
> > Thank you for your response.
> >
> > I looked at the the c_glib implementation but it requires Glib (
> > http://www.gtk.org/) and that doesn't seem to be available for zephyr -
> > happy to be corrected here if I missed something.
> >
> > Thank you for the suggestion. I will reach out to Chris.
> >
> > Best regards,
> > Piotr A.
> >
> > Hi,
> >
> > there is a c_glib implementation, did you try that one?
> >
> >  > binary size when compiling for Zephyr [...] Does anyone know any good
> > strategies to minimize [...]
> >
> > You may want to contact https://github.com/cfriedt, he has implemented a
> > bunch of stuff in Apache Thrift for Zephyr.
> >
> > Have fun, JensG
> >
> >
> > Am 06.11.2024 um 04:11 schrieb Adamus, Piotr:
> > > Hi All,
> > >
> > > I am currently investigating/learning Thrift and wanted to ask whether
> > anyone knew any good Thrift implementation in pure C (if it exists… 😊 )?
> > > If not, does anyone know if there are any plans to introduce it in the
> > near future?
> > >
> > > Also, I wanted to ask about binary size when compiling for Zephyr.
> > After building the example code I realized that the binaries are ~400kB
> for
> > TCP/IP. Does anyone know any good strategies to minimize the size of the
> > code in this environment?
> > > I tried enabling aggressive size optimization and played with some
> other
> > settings but only managed to shave ~15kB of space.
> > >
> > > I would be very grateful for any help or information.
> > >
> > > Best regards
> > > Piotr Adamus
> > >
> > > _____________________________________________________________________
> > >
> > > This email message, including any attachments, may contain
> > > confidential and proprietary information for the sole use of the
> > intended recipient. If you are not the intended recipient, please notify
> > the sender and delete this message from your system, without making any
> > copy or distribution. Our website and email privacy policy is available
> > athttps://www.brooks.com/privacy
> > _____________________________________________________________________
> >
> > This email message, including any attachments, may contain confidential
> > and proprietary information for the sole use of the intended recipient.
> If
> > you are not the intended recipient, please notify the sender and delete
> > this message from your system, without making any copy or distribution.
> Our
> > website and email privacy policy is available at
> > https://www.brooks.com/privacy
> >
>

Re: Question about Thrift support for plain C and binary image size of the example Zephyr code

Posted by C Potter <ca...@gmail.com>.
unsubscribe

On Thu, Nov 14, 2024, 6:36 AM Jens Geyer <je...@hotmail.com> wrote:

> Hi,
>
> I See. Did you try to contact cfried? He's way more an expert in that
> matter.
>
> JensG
>
> Sent from mobile device.
> ________________________________
> From: Adamus, Piotr <Pi...@brooks.com.INVALID>
> Sent: Thursday, November 14, 2024 2:01:55 AM
> To: user@thrift.apache.org <us...@thrift.apache.org>
> Subject: RE: Question about Thrift support for plain C and binary image
> size of the example Zephyr code
>
> Hi Jens,
>
> Thank you for your response.
>
> I looked at the the c_glib implementation but it requires Glib (
> http://www.gtk.org/) and that doesn't seem to be available for zephyr -
> happy to be corrected here if I missed something.
>
> Thank you for the suggestion. I will reach out to Chris.
>
> Best regards,
> Piotr A.
>
> Hi,
>
> there is a c_glib implementation, did you try that one?
>
>  > binary size when compiling for Zephyr [...] Does anyone know any good
> strategies to minimize [...]
>
> You may want to contact https://github.com/cfriedt, he has implemented a
> bunch of stuff in Apache Thrift for Zephyr.
>
> Have fun, JensG
>
>
> Am 06.11.2024 um 04:11 schrieb Adamus, Piotr:
> > Hi All,
> >
> > I am currently investigating/learning Thrift and wanted to ask whether
> anyone knew any good Thrift implementation in pure C (if it exists… 😊 )?
> > If not, does anyone know if there are any plans to introduce it in the
> near future?
> >
> > Also, I wanted to ask about binary size when compiling for Zephyr.
> After building the example code I realized that the binaries are ~400kB for
> TCP/IP. Does anyone know any good strategies to minimize the size of the
> code in this environment?
> > I tried enabling aggressive size optimization and played with some other
> settings but only managed to shave ~15kB of space.
> >
> > I would be very grateful for any help or information.
> >
> > Best regards
> > Piotr Adamus
> >
> > _____________________________________________________________________
> >
> > This email message, including any attachments, may contain
> > confidential and proprietary information for the sole use of the
> intended recipient. If you are not the intended recipient, please notify
> the sender and delete this message from your system, without making any
> copy or distribution. Our website and email privacy policy is available
> athttps://www.brooks.com/privacy
> _____________________________________________________________________
>
> This email message, including any attachments, may contain confidential
> and proprietary information for the sole use of the intended recipient. If
> you are not the intended recipient, please notify the sender and delete
> this message from your system, without making any copy or distribution. Our
> website and email privacy policy is available at
> https://www.brooks.com/privacy
>

Re: Question about Thrift support for plain C and binary image size of the example Zephyr code

Posted by Jens Geyer <je...@hotmail.com>.
Hi,

I See. Did you try to contact cfried? He's way more an expert in that matter.

JensG

Sent from mobile device.
________________________________
From: Adamus, Piotr <Pi...@brooks.com.INVALID>
Sent: Thursday, November 14, 2024 2:01:55 AM
To: user@thrift.apache.org <us...@thrift.apache.org>
Subject: RE: Question about Thrift support for plain C and binary image size of the example Zephyr code

Hi Jens,

Thank you for your response.

I looked at the the c_glib implementation but it requires Glib (http://www.gtk.org/) and that doesn't seem to be available for zephyr - happy to be corrected here if I missed something.

Thank you for the suggestion. I will reach out to Chris.

Best regards,
Piotr A.

Hi,

there is a c_glib implementation, did you try that one?

 > binary size when compiling for Zephyr [...] Does anyone know any good strategies to minimize [...]

You may want to contact https://github.com/cfriedt, he has implemented a bunch of stuff in Apache Thrift for Zephyr.

Have fun, JensG


Am 06.11.2024 um 04:11 schrieb Adamus, Piotr:
> Hi All,
>
> I am currently investigating/learning Thrift and wanted to ask whether anyone knew any good Thrift implementation in pure C (if it exists… 😊 )?
> If not, does anyone know if there are any plans to introduce it in the near future?
>
> Also, I wanted to ask about binary size when compiling for Zephyr.  After building the example code I realized that the binaries are ~400kB for TCP/IP. Does anyone know any good strategies to minimize the size of the code in this environment?
> I tried enabling aggressive size optimization and played with some other settings but only managed to shave ~15kB of space.
>
> I would be very grateful for any help or information.
>
> Best regards
> Piotr Adamus
>
> _____________________________________________________________________
>
> This email message, including any attachments, may contain
> confidential and proprietary information for the sole use of the intended recipient. If you are not the intended recipient, please notify the sender and delete this message from your system, without making any copy or distribution. Our website and email privacy policy is available athttps://www.brooks.com/privacy
_____________________________________________________________________

This email message, including any attachments, may contain confidential and proprietary information for the sole use of the intended recipient. If you are not the intended recipient, please notify the sender and delete this message from your system, without making any copy or distribution. Our website and email privacy policy is available at https://www.brooks.com/privacy

RE: Question about Thrift support for plain C and binary image size of the example Zephyr code

Posted by "Adamus, Piotr" <Pi...@brooks.com.INVALID>.
Hi Jens,

Thank you for your response.

I looked at the the c_glib implementation but it requires Glib (http://www.gtk.org/) and that doesn't seem to be available for zephyr - happy to be corrected here if I missed something.

Thank you for the suggestion. I will reach out to Chris.

Best regards,
Piotr A.

Hi,

there is a c_glib implementation, did you try that one?

 > binary size when compiling for Zephyr [...] Does anyone know any good strategies to minimize [...]

You may want to contact https://github.com/cfriedt, he has implemented a bunch of stuff in Apache Thrift for Zephyr.

Have fun, JensG


Am 06.11.2024 um 04:11 schrieb Adamus, Piotr:
> Hi All,
>
> I am currently investigating/learning Thrift and wanted to ask whether anyone knew any good Thrift implementation in pure C (if it exists… 😊 )?
> If not, does anyone know if there are any plans to introduce it in the near future?
>
> Also, I wanted to ask about binary size when compiling for Zephyr.  After building the example code I realized that the binaries are ~400kB for TCP/IP. Does anyone know any good strategies to minimize the size of the code in this environment?
> I tried enabling aggressive size optimization and played with some other settings but only managed to shave ~15kB of space.
>
> I would be very grateful for any help or information.
>
> Best regards
> Piotr Adamus
>
> _____________________________________________________________________
>
> This email message, including any attachments, may contain 
> confidential and proprietary information for the sole use of the intended recipient. If you are not the intended recipient, please notify the sender and delete this message from your system, without making any copy or distribution. Our website and email privacy policy is available athttps://www.brooks.com/privacy
_____________________________________________________________________

This email message, including any attachments, may contain confidential and proprietary information for the sole use of the intended recipient. If you are not the intended recipient, please notify the sender and delete this message from your system, without making any copy or distribution. Our website and email privacy policy is available at https://www.brooks.com/privacy

Re: Question about Thrift support for plain C and binary image size of the example Zephyr code

Posted by Jens Geyer <je...@hotmail.com>.
Hi,

there is a c_glib implementation, did you try that one?

 > binary size when compiling for Zephyr [...] Does anyone know any good 
strategies to minimize [...]

You may want to contact https://github.com/cfriedt, he has implemented a 
bunch of stuff in Apache Thrift for Zephyr.

Have fun, JensG


Am 06.11.2024 um 04:11 schrieb Adamus, Piotr:
> Hi All,
>
> I am currently investigating/learning Thrift and wanted to ask whether anyone knew any good Thrift implementation in pure C (if it exists… 😊 )?
> If not, does anyone know if there are any plans to introduce it in the near future?
>
> Also, I wanted to ask about binary size when compiling for Zephyr.  After building the example code I realized that the binaries are ~400kB for TCP/IP. Does anyone know any good strategies to minimize the size of the code in this environment?
> I tried enabling aggressive size optimization and played with some other settings but only managed to shave ~15kB of space.
>
> I would be very grateful for any help or information.
>
> Best regards
> Piotr Adamus
>
> _____________________________________________________________________
>
> This email message, including any attachments, may contain confidential and proprietary information for the sole use of the intended recipient. If you are not the intended recipient, please notify the sender and delete this message from your system, without making any copy or distribution. Our website and email privacy policy is available athttps://www.brooks.com/privacy