klotz: micropython* + python*

0 bookmark(s) - Sort by: Date ↓ / Title / - Bookmarks from other users for this tag

  1. Simon Willison explores his latest approach to running untrusted Python code safely within applications by utilizing MicroPython inside a WebAssembly (WASM) sandbox. The project addresses the security risks of plugin systems where code normally executes with full privileges, potentially leading to data leaks or system compromise. By leveraging wasmtime and an alpha package called micropython-wasm, Willison demonstrates how to enforce memory and CPU limits while providing controlled access to host functions through a custom thread-based request queue for persistent interpreter state.

    Main topics:
    - Security challenges in Python plugin systems
    - Advantages of WebAssembly as a sandboxing technology
    - Building the micropython-wasm alpha package
    - Implementation details for persistent state and host functions
    - Integration with Datasette Agent to execute code via LLMs
  2. MicroPython, a Python interpreter for microcontrollers, has released version 1.23 with several improvements. Notably, it now supports creating custom USB devices on multiple levels and has received improvements for OpenAMP, an inter-core communication protocol.
  3. how to write memory-efficient classes in Python, focusing on three techniques: using slots, optimizing the use of class attributes, and minimizing object creation within loops.
  4. 2019-04-17 Tags: , , , , , , by klotz
  5. 2018-10-16 Tags: , , , , by klotz

Top of the page

First / Previous / Next / Last / Page 1 of 0 SemanticScuttle - klotz.me: Tags: micropython + python

About - Propulsed by SemanticScuttle