From f480bc37d25c1c05f27dedae89226f9638834245 Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Wed, 13 May 2015 13:00:37 -0400 Subject: Entry points, with contributions from @aeleitch and @wlonk. --- wiki/dev/entry-points.md | 56 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 wiki/dev/entry-points.md diff --git a/wiki/dev/entry-points.md b/wiki/dev/entry-points.md new file mode 100644 index 0000000..0e56ce0 --- /dev/null +++ b/wiki/dev/entry-points.md @@ -0,0 +1,56 @@ +# Entry Points + +The following captures a conversation from IRC: + +> [Owen J](https://twitter.com/derspiny): Have you run across the idea +> of an "entry point" in a runtime yet? (You've definitely used it, just +> possibly not known it had a name.) +> +> [Alex L](https://twitter.com/aeleitch): I have not! +> +> [Owen J](https://twitter.com/derspiny): It's the point where the +> execution of the outside system -- the OS, the browser, the Node +> runtime, whatever -- stops and the execution of your code starts. Some +> platforms only give you one: C on Unix is classic, where there's only +> two entry points: main and signal handlers (and a lot of apps only use +> main). JS gives you _a shit fucking ton_ of entry points. +> +> [Owen J](https://twitter.com/derspiny): In a browser, the pageload +> process is an entry point: your code gets run when the browser +> encounters a `