Daily Shaarli

All links of one day in a single page.

May 18, 2023

🤠 "Where have all the hackers gone?" + a way to discuss programming languages 👨‍🎤

It depends on the type of discussion:

  • Soil is the property of running code in that language.
  • Surface is how the programming language
  • atmosphere represents things that aren't the language or its code, but the broader community.
Google will start deleting inactive accounts after two years | Ars Technica

and in some, it make sense.

The error was to think every data given to a GAFAM is here forever.

Container Query Units and Fluid Typography | Modern CSS Solutions

A text with a dynamic size depending of the container width:

.container {
  container-type: inline-size;
}

.fluid-type {
  font-size: clamp(1rem, 4cqi, 3rem);
}

Strategy 2: Grow From a Base Font Size with calc()

font-size: calc(var(--font-size-base) + var(--font-size-fluid, 3cqi));

An upper-bound size can be set with min if needed.

Strategy 3: Generate Styles Using a Type Scale Ratio

osm-fr/attributions: Suivi des manques d'attributions

Ce dépôt git est destiné au suivi des manques d'attributions sur les utilisations de carte utilisant OpenStreetMap.

La communauté des contributeurs OpenStreetMap est très attachée au respect de l'attribution car :

  • C'est une façon de dire merci ;
  • C'est une façon de rendre le projet OpenStreetMap visible et de faire naitre de nouvelles vocations de contributeurs… et donc d'alimenter un cercle vertueux.
    « Oublier » l'attribution casse le cercle vertueux du commun.
Fly.io Distributed Systems Challenge · Fly Docs

A series of distributed systems challenges brought to you by Fly.io.

SpaceTraders API

Play the game by using API calls to deliver frets across the galaxy. One funny thing is the amount UIs users have built to get a grasp on the data :D

Tim McNamara (@timClicks) – Now is the time to bet big on Rust

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/