TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Rust 1.41

46 pointsby pietroalbiniover 5 years ago

2 comments

qchrisover 5 years ago
The new guarantees for `Box<T>` across the FFI boundary is welcome. I've been trying to working on trying to pass large data structures (image arrays, for instance) between Rust and C, but have had issues because of doing so without access to FFI-incompatible dynamically-sized things like vectors means that I have consistently run into stack overflow errors at a certain point. Since I believe that `Box<T>` allocates memory on the heap instead, it seems like a step in the right direction for passing that kind of data without needing to resort to `unsafe` on the Rust side of things.
cdbattagsover 5 years ago
IMO, the biggest opportunity for this release is the ability for newbies and experimenters to now "hack" against structs using impl as needed.