202 private links
Human feedbacks
Are we web yet? Well yes but with extra work. A lot of work.
The author provides its experience.
All the things I love about Django, could we have those for a Rust web framework so that we can reap the benefits of Rust without having to go needlessly slowly?
An attempt: https://git.sr.ht/~ntietz/newt
One approach for achieving compile-time checks, might be having two different structs for alive and dead player, and have the necessary methods implemented for them respectively.
why it’s bad:
- the API is not clean. We are storing the same fields in both Dead and Alive player, while they are both just Players.
- the end-user has to know when to create an instance of Alive player and Dead player. It might be simple to guess in this example, but imagine much more complex/abstract types. If possible, our API should be responsible for when to use which type, not the end user.
Solution 3 is better with an struct that uses a state! The state determines how is the player and different functions are implemented for a player state.
Note it is similar to typescript with an interface or type such as Player<'alive'>
of type Player<T> = { state: T, ...}
A web browser with emphasis on local-first data storage.
Repository: https://github.com/OkuBrowser/oku.
Discussions: https://discu.eu/q/https://okubrowser.github.io/
A lot of Rust lectures lately. See https://video.infosec.exchange/w/p/aUTyZA8bp5b8EDeT8VaV6M
It is built with Rust from an Haskell rewrite as far as I understand.
how to compile and run JS code in rust through V8
About the explosion of pagers in Lebanon.
On Tuesday things changed. Whoever got admitted at the hospital with a specific kind of injury will end up in some list. Social networks will be traced and new targets will be identified.
The lessons that software developers can learn: Supply chain attacks in the real world happen every day!
I want to insist because it seems that it's not clear for everyone yet. There is no other way to mitigate software supply chain attacks for an ecosystem / programming language than to build an extensive standard library.
If Rust want to be seriously considered to build the foundations of computing, the number one and only priority of the Rust foundation should be to work on building an "extended standard library", let's call it stdx
The project is on github: https://github.com/lycheeverse/lychee
Crev is a scalable, social, distributed Code Review and recommendation system that we desperately need for establishing trust in Open Source code.
Getting started: https://web.crev.dev/rust-reviews/your_personal_reviews/
The project is not maintained anymore though.
How to Choose
- If the closure only reads from the environment: Use Fn.
- If the closure needs to mutate the environment: Use FnMut.
- If the closure needs to consume ownership of values from the environment: Use FnOnce.