Daily Shaarli

All links of one day in a single page.

September 9, 2024

How we Built 300μs Typo Correction for 1.3M Words in Rust — Trieve

Outline:

Using a BKTree data structure to identify and correct typos
Writing the Business Logic to Perform Typo Corrections
Pulling from Redis and caching it with lazy_static!
Identifying english words (among others, BKTree Search for Non-Dictionary Words)

L'association Anticor retrouve son agrément anticorruption - Anticor

C'est une bonne chose. Après un an quand même...

bytecodealliance/cargo-component: A Cargo subcommand for creating WebAssembly components based on the component model proposal.

Webassembly components that can be reused in other programs 😲

The component standard is defined on https://github.com/WebAssembly/component-model/

The Undeniable Utility Of CSS <code>:has</code> • Josh W. Comeau

Use cases for :has:

  • .card:has(button:focus-visible)
  • .xy-pad:has(.handle:active), .xy-pad:has(.handle:focus-visible)
  • We can use :has as a sort of global event listener: html:has([data-disable-document-scroll="true"])
  • JS-free darkmode: body:has(#dark-mode-toggle:checked)
  • p:has(+ figure): with :has, we can style one element based on another element in a totally different container! See the cool code playground that highlights

:has can be powerful to replace JS with HTML semantics.

1.3 Million Subtests

73% of the Web Platform Tests passes on Servo.

How we sped up Notion in the browser with WASM SQLite
PolitiScales - Le test politique en ligne
Loki: Open Fact Verification by LibrAI
FastFLUX | Instant FLUX Image Creation for Free
utils.foo - online utility toolbox
Compile Rust for Raspberry Pi ARM
I sped up serde_json strings by 20% | purplesyringa's blog
Note: Vocabulary about rent
EN DE FR  Meaning
rent mieten / eine Miete louer / une location use
rent out / a rental vermieten / eine Vermietung louer, mettre en location / une location consume
leasing /a lease Leasing / ein Leasing louer en leasing, louer à bail / une location en leasing, à bail consume with services or fixed terms