e2b-dev / code-interpreter

Python & JS/TS SDK for adding code interpreting to your AI app
https://e2b.dev
Apache License 2.0
800 stars 48 forks source link

Swift and other programming languages #19

Open mobile-appz opened 2 weeks ago

mobile-appz commented 2 weeks ago

Is it possible to interpret Swift code with this somehow? That would be very useful for mobile app development.

mlejva commented 2 weeks ago

Hey @mobile-appz not right now but we're working on adding more languages but we haven't been planning on adding Swift.

Looking at general Swift support in Jupyter, it looks like it's possible.

But would just general Swift be useful for you without having access to macOS? Our sandboxes are based on Linux you wouldn't be able to used iOS libraries that you need for mobile development

mobile-appz commented 2 weeks ago

Hey @mobile-appz not right now but we're working on adding more languages but we haven't been planning on adding Swift.

Looking at general Swift support in Jupyter, it looks like it's possible.

But would just general Swift be useful for you without having access to macOS? Our sandboxes are based on Linux you wouldn't be able to used iOS libraries that you need for mobile development

Thanks for info. That's good to know it works with Jupyter. Would probably need at least the foundation library for it to be worthwhile, and ideally, SwiftUI library would be good. Presumably there is a way of getting this all ported to macOS though even if it's Linux based. Then app code could be generated in LLM, tested, iterated and improved all before its even output as a solution. It would really increase productivity. The current workflow is: define problem, use Llm to generate code to solve problem, enter code in Xcode, compile code in Xcode, send errors back to Llm and repeat. This could be made much more efficient with a code interpreter before the code reaches Xcode.