Cargando…

Recursion, Iteration, and JavaScript: A Love Story

<!--HTML-->Recursion and iteration usually seem like epic rivals, on opposite sides of a fundamental tradeoff between machine- and human-efficiency. Iteration's stateful repetition can be more performant, but many coders prefer to work with the self-referential abstraction of recursion. B...

Descripción completa

Detalles Bibliográficos
Autor principal: Vakil, Anjana
Lenguaje:eng
Publicado: 2019
Materias:
Acceso en línea:http://cds.cern.ch/record/2678191
_version_ 1780962804464877568
author Vakil, Anjana
author_facet Vakil, Anjana
author_sort Vakil, Anjana
collection CERN
description <!--HTML-->Recursion and iteration usually seem like epic rivals, on opposite sides of a fundamental tradeoff between machine- and human-efficiency. Iteration's stateful repetition can be more performant, but many coders prefer to work with the self-referential abstraction of recursion. But in this talk we'll see that with a little love from JS, these apparently star-crossed paradigms can actually unite to improve each other: custom Iterables allow recursion to power more human-efficient iterative code, and tail call optimization uses iteration to make recursive code more machine-efficient.
id cern-2678191
institution Organización Europea para la Investigación Nuclear
language eng
publishDate 2019
record_format invenio
spelling cern-26781912022-11-02T22:10:24Zhttp://cds.cern.ch/record/2678191engVakil, AnjanaRecursion, Iteration, and JavaScript: A Love StoryVoxxed Days CERN 2019Conferences<!--HTML-->Recursion and iteration usually seem like epic rivals, on opposite sides of a fundamental tradeoff between machine- and human-efficiency. Iteration's stateful repetition can be more performant, but many coders prefer to work with the self-referential abstraction of recursion. But in this talk we'll see that with a little love from JS, these apparently star-crossed paradigms can actually unite to improve each other: custom Iterables allow recursion to power more human-efficient iterative code, and tail call optimization uses iteration to make recursive code more machine-efficient.oai:cds.cern.ch:26781912019
spellingShingle Conferences
Vakil, Anjana
Recursion, Iteration, and JavaScript: A Love Story
title Recursion, Iteration, and JavaScript: A Love Story
title_full Recursion, Iteration, and JavaScript: A Love Story
title_fullStr Recursion, Iteration, and JavaScript: A Love Story
title_full_unstemmed Recursion, Iteration, and JavaScript: A Love Story
title_short Recursion, Iteration, and JavaScript: A Love Story
title_sort recursion, iteration, and javascript: a love story
topic Conferences
url http://cds.cern.ch/record/2678191
work_keys_str_mv AT vakilanjana recursioniterationandjavascriptalovestory
AT vakilanjana voxxeddayscern2019