225 private links
It can be useful to generate an HTML view of entries :)
Create a command line interface from a REST API.
It seems powerful!
Joat uses a YAML file to define subcommands of two types: requests and scripts. Requests subcommands ease the interaction with a REST API and scripts combine multiple commands into a more convenient one.
Use one package manager built on top of corepack to support npm, yarn and pnpm.
#idea #project support more package managers such as cargo, deno, ... :)
Oh wait, there is already something https://github.com/egoist/dum
Execute powerful common commands
33 specific ways to improve your Rust code
Definitely a cool project!
A command runner triggered on custom files. It is then useful to trigger a build or dev command when a file is changed.
Some people may think that the strict nature of Rust will slow down development, which is true only insofar as it won’t let you cut any corners. However, experience has conclusively shown that this is a net win. In fact, Rust lets us ride the wall, which makes us faster, not slower.
-
cargo build --release
-
set
strip = true
to profile.release in cargo.toml -
set
opt-level = "s"
to optimize for size instead of runtime speed -
set
lto = true
to enable link-time optimization -
set
codegen-units = 1
to maximize size reduction but it results in slow builds -
use cargo bloat to understand which dependencies are taking up space
Implement a default builder pattern. It looks efficient.
A french guide on the rust language. It is not complete as the official documentation but provides a good start with lot's of the rust's features.
Succinct but more detailed than a cheat sheet.
Why Rust is a secret weapon
Google has faced critical security issues within its Bluetooth drivers in Android for many years. Despite valiant effort, they were unable to eliminate these vulnerabilities from within C++. This essentially forced them to consider alternative languages. They’ve recently announced that they’ve been able to use 1.5 million lines of Rust code into Android, without detecting any security vulnerabilities. This compares to 1 vulnerability to 1k lines of C++ code using similar analysis.
Rust is a good fit whenever your business is concerned about cost.
Rust code is cheap to run. Rust-based applications use less RAM and RAM is expensive. Tilde’s story from migrating from Ruby on Rails is illustrative. Their server agent went down from needing 5GB of RAM at rest to 50MB.
Web services, whether they’re deployed in a traditional manner or use the serverless model, are an ideal fit for Rust. There is no garbage collector which can affect tail latencies or create load spikes.
Why it's hard to find jobs?
- It’s hard to hire Rust developers because it’s hard to evaluate them.
- Many people have been scared off by stories of Rust’s steep leaning curve
The writer has created a consulting enterprise for it: https://accelerant.dev/
A simple program for calculating sunrise, sunset and related times, which can be integrated with cron to trigger other programs to run when these events occur
This is god damn cool!
It may be useful to retrieve the favicon of a website :)
Build components for desktop apps, but also for the web.