Quotidien Shaarli

Tous les liens d'un jour sur une page.

November 28, 2022

JacksonDunstan.com | How to Write Faster Code Than 90% of Programmers

Most programmers write code for an abstract computer. The thing is- code runs on a real computer that works in a specific way. Even if your game is going to run on a wide range of devices, knowing some of the common features can speed up your code 10x or more. Today’s article shows you how!

Broadly, all modern computers have the same configuration. They have a CPU, a GPU, and RAM. The CPU also has two or three levels of cache: L1, L2, and L3. Those caches are used to speed up RAM access because it is so slow. Exact numbers will vary by device, but according to this site here are the rough speeds:

L1 cache access: 1 nanosecond
L2 cache access: 4 nanoseconds
RAM access: 100 nanoseconds
This means that there’s a 25-100x advantage to using the memory that’s in the CPU’s cache compared to memory that’s in RAM.

Literie en ligne
3D Printing 10,000,000 COLORS? - YouTube
thumbnail
Grammalecte

Moteur de détection d’erreurs
Grammalecte dispose d’un moteur grammatical qui, en interne, simplifie le texte au fur et à mesure pour détecter nombre d’erreurs diverses. En premier lieu, il examine le paragraphe et sa ponctuation, puis il le scinde en phrase.

Erreurs détectées :

Ponctuation : virgules, points, etc.
Espacements : espaces surnuméraires, espaces insécables, etc.
Typographie : apostrophes, tirets de dialogue, guillemets, etc.
Redondances : dans le paragraphe ou dans la phrase.
Traits d’union manquants ou superflus.
Majuscules manquantes ou superflues.
Accords en genre et en nombre.
Conjugaison.
Confusions, homonymies, faux-amis.
Pléonasmes.
Option pour détecter les erreurs de reconnaissance optique (OCR).

Movetodon: Find your Twitter Friends on Mastodon
thumbnail

Twitter to Mastodon webtool