Vous n’avez pas pu assister au dernier meetup ELM ? Voici un récap’ de la présentation de James Carlson !
Présentation d’un éditeur de texte entièrement écrit en Elm. Pourquoi nous en avons besoin, les défis rencontrés, la strucutre du projet et la feuille de route du projet.
Why we need one ?
Lot’s of progress … Editor laggy on “large” files
Performance Optimization I
Help from Folkert de Vries
Performance Optimization II
Core data structures :
(1) Nemzer’s Code: type Buffer = Buffer String
(2) Janiczek’s Code: Array String
Many lines → Editor (1) intrinsically inefficient
Implementing Elm Podcast: Martin Janiczek
Performance Optimization III
~ 10,000 lines
JS has trouble with the DOM
Let’s look at the code !
v1: Model
v1: Msg
v1: Update
v1: viewEditor
Keymap.handle — fixing the jumping cursor bug
Lesson Learned : Get the data structures right!
Brief Commit History
Retrouvez le repo github juste ici !