-
Relevant links:
- https://blog.rust-lang.org/2015/05/11/traits.html
- https://boats.gitlab.io/blog/post/zero-cost-abstractions/
-
The EVM has two places where reference types may be stored (storage and memory). Storage is used for values that need to persist indefinitely, while memory is used for values that only need to persist…
-
| | |
|------------------|-----------------|
|Previous ID | SR-10111 |
|Radar | None |
|Original Reporter | @gottesmm …
-
The latest example of this I've seen was posted by @Veedrac to [Hacker News](https://news.ycombinator.com/item?id=15066502) ([try on playground](https://play.rust-lang.org/?gist=b60ec85886eff967b21c7a…
eddyb updated
3 years ago
-
aa18c66a349c8f33ad061e2d6ff655233aa2b762 allowed mocks to be Send/Sync by forcing the user only provide Send closures, and using `Mutex` instead of `RefCell` for the interior mutability of the `MockSt…
nrxus updated
4 years ago
-
Hi,
Some time ago, until the PR #831 was accepted, GSL had 3 configuration options:
* GSL_TERMINATE_ON_CONTRACT_VIOLATION: std::terminate will be called (default)
* GSL_THROW_ON_CONTRACT_VIOLAT…
-
In https://github.com/rust-lang/rust/pull/128861#issuecomment-2292401581 I teased @nnethercote with the promise of more debug info inefficiency. One example is that the .debug_ranges section that spec…
-
[![image](https://github.com/EloiStree/HelloRustBending/assets/20149493/0004e06e-2001-4d9d-aa74-cd6dcee7a0fe)](https://youtu.be/784JWR4oxOI)
https://youtu.be/784JWR4oxOI
- Zero Cost Abstraction …
-
Inline classes are a good way to add compile time type safety to database queries. They would prevent error caused by querying a box with the wrong id type.
```
@Entity
data class EntityA(
v…
-
Hi - I discussed this a bit with @phofl , as I'm aiming to have zero-cost-abstraction around Dask DataFrame in [Narwhals](https://github.com/narwhals-dev/narwhals)
One thing I'd like to check i…