Streamlit 1.61.0, Rust Polonius Alpha, & Workers gRPC Support
This week's highlights include a new Streamlit release, a major step forward for the Rust borrow checker on nightly, and significant new network capabilities for Cloudflare Workers. These updates offer developers more robust tooling and expanded deployment patterns for their applications.
Streamlit 1.61.0 released (Streamlit)
Streamlit has officially released version 1.61.0, bringing several changes and fixes to the popular Python framework for building data apps. Key breaking changes in this release include the removal of the deprecated `use_column_width` parameter from `st.image`. Developers using this parameter will need to update their code to align with the new usage patterns for image display, ensuring their layouts remain consistent.
Another notable update is the deprecation of string file paths in `st.html` and `st.iframe` in favor of `pathlib.Path`. This shift encourages more robust and Pythonic file handling, reducing potential errors related to path manipulation and improving cross-platform compatibility. While existing string paths may still function, developers are advised to migrate to `pathlib.Path` for future-proof and more reliable applications. These changes underscore Streamlit's continuous effort to refine its API and enhance stability for its growing community of users.
Always good to see routine maintenance and improvements in a core dev framework. The `pathlib.Path` change is a welcome modernization for robustness in Streamlit apps.
Enabling the next iteration of the borrow checker on nightly (Rust Blog)
The Rust Project has announced a significant step in the evolution of its core language features: the next iteration of the borrow checker, dubbed 'Polonius Alpha,' is now enabled on nightly builds. This marks a crucial phase in its preparation for eventual stabilization in the coming months. The borrow checker is fundamental to Rust's promise of memory safety and concurrency without a garbage collector, by enforcing rules about how references (borrows) to data can be used.
Polonius Alpha aims to introduce a more precise and flexible borrow checker, which will allow for more valid Rust programs to compile without requiring developers to write complex or unnecessary lifetime annotations. For Rustaceans, this means the potential to write more ergonomic code, especially in scenarios involving non-lexical lifetimes and conditional borrowing. This nightly rollout provides an opportunity for early adopters to experiment with the new borrow checker, identify potential issues, and provide feedback that will shape its final stable release, ultimately making Rust even more powerful and developer-friendly.
This is huge for Rustaceans! Polonius promises to unlock more ergonomic code, reducing the mental overhead of lifetimes without sacrificing safety. Nightly users should jump on this to provide feedback.
Cloudflare Workers and Containers now support inbound TCP connections and gRPC (Cloudflare Blog)
Cloudflare has announced a major expansion of capabilities for its Workers and Containers platforms: they now support inbound TCP connections via Spectrum, alongside robust gRPC support. This update significantly broadens the types of applications developers can deploy and run on Cloudflare's global network, moving beyond traditional HTTP-only workflows.
Developers can now establish direct socket forwarding to Durable Objects and Containers, enabling a new class of full-duplex, real-time applications directly on the edge. The addition of gRPC support is particularly impactful, facilitating high-performance, low-latency communication between services. This includes the ability to run native gRPC applications or leverage automatic gRPC-to-gRPC forwarding, simplifying the development of modern microservices architectures. This feature empowers Cloudflare Workers to serve as a more comprehensive platform for backend services, opening up new patterns for real-time data processing, IoT, and other latency-sensitive applications previously constrained by HTTP limitations.
Inbound TCP and gRPC support on Workers is a game-changer for building performant microservices and real-time APIs on Cloudflare's edge, unlocking patterns previously only possible with VMs or containers.