Python and C# support in Magic
Starting from today, Magic Cloud has support for both C# and Python. This allows you to "vibe code" C# extensions, or Python scripts. Combined with the already existing terminal bindings, this gives you a fully mature vibe coding platform for the 21st century.
Security
When creating C# or Python code you need to be much more careful than when generating Hyperlambda code. For Hyperlambda to fail such that it brings down your server is almost impossible. However, Hyperlambda runs in a "sandbox", while Python and C# code runs in the context of the currently authenticated operating system user, which is magic.
Due to that it's impossible to execute any code under the context of a root user, our solution for these reasons are probably orders of magnitudes more secure than 99% of similar solutions out there - But it is still procedural code, so please be careful if you do this.
Below you can find our getting started video, and you can clone magic here.
Here is its Docker Compose file.
version: "3.8"
services:
backend:
image: servergardens/magic-backend:latest
platform: linux/amd64
container_name: magic_backend
restart: unless-stopped
ports:
- "4444:4444"
volumes:
- magic_files_etc:/magic/files/etc
- magic_files_data:/magic/files/data
- magic_files_config:/magic/files/config
- magic_files_modules:/magic/files/modules
frontend:
image: servergardens/magic-frontend:latest
container_name: magic_frontend
restart: unless-stopped
depends_on:
- backend
ports:
- "5555:80"
volumes:
magic_files_etc:
magic_files_data:
magic_files_config:
magic_files_modules:
Save the above somewhere, and get started with Magic in seconds!