Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7649511
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T10:59:07+00:00 2026-05-31T10:59:07+00:00

First, I’m wondering if both feature have the same goal. Secondly, if yes (or

  • 0

First, I’m wondering if both “feature” have the same goal.
Secondly, if yes (or only partially yes), is there any significant limitation in boost proto over
c# expression tree

thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T10:59:08+00:00Added an answer on May 31, 2026 at 10:59 am

    I’m the author of Boost.Proto, and I only recently discovered C# expression trees. AFAICT, they are similar in intent, but different both in implementation and scope.

    C# has language support for capturing a LINQ expression as a dynamically typed tree. This is used by LINQ consumers to optimize the evaluation of queries. A query against an in-memory data structure would be a straightforward evaluation via the LINQ extension methods, but one against a remote database would be more optimally executed by walking the LINQ expression at runtime, computing a T-SQL string, and passing it to the SQL server for remote execution. As it currently stands, C# expression trees are best at these kinds of optimization problems.

    Boost.Proto OTOH has a somewhat broader scope. Proto expression trees are statically typed, allowing complex transformations and code generation to be done at compile-time. More importantly, Proto provides tools for introspecting and transforming trees, and generating custom code from them. That could be useful for optimization, but also for giving expressions completely different domain-specific semantics. So Proto is more accurately thought of as an embedded domain-specific language toolkit.

    The same could be done with C# expression trees, but AFAIK there currently exists no framework for tree transformation and code generation. The ability to do runtime code generation on .NET makes this a compelling possibility. Maybe some enterprising developer (you?) would be willing to write a Proto# on top of C# expression trees. 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First of all there is a question with the same title here on SO
First of all I have seen that there are many questions about unrecognized selector
First, a little background, because there is a lot of interaction going on: I'm
First off, let me clarify the platforms we are using. We have an ASP.NET
First I want to thank you guys here, because your posts have gotten me
First, I have a dbcontext factory which is defined public class DatabaseFactory : Disposable,
First, I have a list of QWidget s that I won't know the length
First, I am a SQL noob, second if there is a better solution that
First let me phrase the proper question: Q: There is a file containing more
First off, I am using Windows XP. I have multiple hard drives and it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.