Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(tracking): cairo native #487

Open
jbcaron opened this issue Feb 3, 2025 · 0 comments
Open

feat(tracking): cairo native #487

jbcaron opened this issue Feb 3, 2025 · 0 comments
Labels
feature Request for new feature or enhancement performance Performance improvements or optimizations research Research and exploration required before implementation
Milestone

Comments

@jbcaron
Copy link
Member

jbcaron commented Feb 3, 2025

Cairo Native

Integration of Cairo Native.

Description

Context and Motivation

Cairo Native offers AOT compilation that could significantly improve execution performance. This PR aims to discuss and design the best approach for this integration.

Key Points to Address

1. Compilation Strategy

a) Compilation Pipeline
We need a robust and isolated compilation process. Discussion points:

  • How should we handle compilation failures?
  • Should compilation be synchronous or asynchronous?
  • What's the best approach for resource management during compilation?
  • How do we handle compilation priority for different contracts?

2. Execution Strategy

a) Contract Selection Criteria
We need to define clear criteria for when to use native execution vs interpreted execution:

  • What metrics should influence this decision?
  • Should we implement a learning mechanism to improve selection over time?
  • How do we handle edge cases and special contracts?
  • What's the optimal threshold for switching between execution modes?

b) Fallback Mechanism
Need to design a robust fallback system:

  • What should trigger a fallback?
  • How do we ensure seamless transition between execution modes?
  • How do we monitor and log fallback events?
  • What's the performance impact of fallback mechanisms?

3. Isolation and Security

a) Compilation Security
Discussion needed on isolation approach:

  • Container-based vs OS-level isolation?
  • Resource limits and their configuration
  • Security boundaries and potential vulnerabilities
  • Monitoring and logging requirements

b) Execution Security
Need to define security parameters for native execution:

  • What isolation level is required?
  • How to handle malicious or buggy contracts?
  • What security metrics should we track?
  • How to implement secure state management?

Let's discuss these points and align on the best approach forward. Your input on any of these aspects would be valuable for shaping the final implementation.

@jbcaron jbcaron added feature Request for new feature or enhancement performance Performance improvements or optimizations research Research and exploration required before implementation labels Feb 3, 2025
@jbcaron jbcaron added this to the V0.13.4 milestone Feb 3, 2025
@jbcaron jbcaron added this to Madara Feb 3, 2025
@jbcaron jbcaron changed the title feat(tracking): Cairo native feat(tracking): cairo native Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Request for new feature or enhancement performance Performance improvements or optimizations research Research and exploration required before implementation
Projects
Status: No status
Development

No branches or pull requests

1 participant