what if your brain were literally javascript
play

What if your brain were ~* literally *~ JavaScript? Jenna Zeigen - PowerPoint PPT Presentation

What if your brain were ~* literally *~ JavaScript? Jenna Zeigen RejectJS 2015 Engineering Manager @ DigitalOcean zeigenvector jenna.is/rejectjs Human JavaScript \_( )_/ (* *) Language& Imagery&


  1. What if your brain were ~* literally *~ JavaScript? Jenna Zeigen RejectJS 2015

  2. Engineering Manager @ DigitalOcean zeigenvector

  3. jenna.is/rejectjs

  4. Human JavaScript

  5. ¯\_( ツ )_/¯ ヽ (* ‿ *) ノ

  6. Language& Imagery& Perception& Thinking& Concepts& Categories& Memory& Attention& Judgement& Reasoning& Decision Making& Consciousness…

  7. Language& Imagery& Perception& Thinking& Concepts& Categories& Memory& Attention& Judgement& Reasoning& Decision Making& Consciousness…

  8. 1. Human Language vs. Programming Languages 2. Human Concepts + Categories vs. JavaScript Prototypes + Primitives 3. Human Attention vs. the JavaScript event loop

  9. Language

  10. Language natural language vs. programming language • regulation • evolution • learning

  11. Language Programming languages create and manipulate the environment, rather than just describe it.

  12. Language Humans JavaScript syntax semantics morphology phonology pragmatics

  13. Language Humans JavaScript syntax semantics morphology phonology pragmatics

  14. Language Humans JavaScript syntax semantics morphology phonology pragmatics

  15. Language context. http://www.ecma-international.org/ecma-262/6.0/index.html#sec-syntactic-and-lexical-grammars

  16. Language “I saw the unicorn with the binoculars.”

  17. Language “I saw the unicorn with the binoculars.”

  18. Language context.

  19. Language Reference : pronouns + variables https://en.wikipedia.org/wiki/Anaphora_(linguistics)

  20. Language Anaphora : “ Jenna gave a talk on the cognitive Jenna talk science of JavaScript, and she totally she rocked it .” it

  21. Language Cataphora : “Since she was there last year, Jenna she there Jenna was excited to visit Berlin .” Berlin

  22. Language

  23. Language Reference : pronouns + JavaScript’s this

  24. Language http://www.ecma-international.org/ecma-262/6.0/index.html#sec-error-handling-and-language-extensions

  25. Language http://www.ecma-international.org/ecma-262/6.0/index.html#sec-error-handling-and-language-extensions

  26. Concepts + Categories

  27. Concepts + Categories “knowledge representation”

  28. Concepts + Categories http://www.photogalaxy.com/pic/eventhorizon-20/yorkie_puppy.jpg

  29. Concepts + Categories http://www.photogalaxy.com/pic/eventhorizon-20/yorkie_puppy.jpg

  30. Concepts + Categories classical classical vs. vs. prototype prototypal (categorization theories) (inheritance)

  31. Concepts + Categories classical classical vs. vs. prototype prototypal (categorization theories) (inheritance) coincidence? ¯\_( ツ )_/¯

  32. Concepts + Categories “In a computer system designed for the storage of semantic information, it is more economical to store generalized information with superset nodes , rather than with all the individual nodes to which such a generalization might apply. But such a storage system incurs the cost of additional processing time in retrieving the information. When the implications of such a model were tested for human [subjects] using well-ordered hierarchies that are part of the common culture, there was a substantial agreement between the predictions and the data.” (Collins & Quillian, 1969)

  33. • Has skin • Can move around • Eats Animal • Breathes • Has wings • Has fins • Can fly • Can swim • Has feathers • Has gills Bird Fish Canary Ostrich Shark Salmon • Can sing • Has long, thin legs • Can bite • Is pink • Is yellow • Is tall • Is dangerous • Is edible • Can’t fly • Swims upstream to lay eggs Collins & Quillian, 1969

  34. Is a canary a bird? • Has skin • Can move around • Eats Animal • Breathes • Has wings • Has fins • Can fly • Can swim • Has feathers • Has gills Bird Fish Canary Ostrich Shark Salmon • Can sing • Has long, thin legs • Can bite • Is pink • Is yellow • Is tall • Is dangerous • Is edible • Can’t fly • Swims upstream to lay eggs Collins & Quillian, 1969

  35. Is a canary an animal? • Has skin • Can move around • Eats Animal • Breathes • Has wings • Has fins • Can fly • Can swim • Has feathers • Has gills Bird Fish Canary Ostrich Shark Salmon • Can sing • Has long, thin legs • Can bite • Is pink • Is yellow • Is tall • Is dangerous • Is edible • Can’t fly • Swims upstream to lay eggs Collins & Quillian, 1969

  36. Is a canary yellow? • Has skin • Can move around • Eats Animal • Breathes • Has wings • Has fins • Can fly • Can swim • Has feathers • Has gills Bird Fish Canary Ostrich Shark Salmon • Can sing • Has long, thin legs • Can bite • Is pink • Is yellow • Is tall • Is dangerous • Is edible • Can’t fly • Swims upstream to lay eggs Collins & Quillian, 1969

  37. Does a canary breathe? • Has skin • Can move around • Eats Animal • Breathes • Has wings • Has fins • Can fly • Can swim • Has feathers • Has gills Bird Fish Canary Ostrich Shark Salmon • Can sing • Has long, thin legs • Can bite • Is pink • Is yellow • Is tall • Is dangerous • Is edible • Can’t fly • Swims upstream to lay eggs Collins & Quillian, 1969

  38. Concepts + Categories Is a shark a fish?

  39. Concepts + Categories Prototype theory (Rosch, 1973): • we store an average ideal representation of a category Exemplar theory • we store an instance of a category that is a combination of all experienced exemplars

  40. Concepts + Categories Basic Level Categories: A “natural” level of categorization

  41. • Has skin • Can move around • Eats Animal • Breathes • Has wings • Has fins • Can fly • Can swim • Has feathers • Has gills Fish Bird Canary Ostrich Shark Salmon • Can sing • Has long, thin legs • Can bite • Is pink • Is yellow • Is tall • Is dangerous • Is edible • Can’t fly • Swims upstream to lay eggs Collins & Quillian, 1969

  42. Concepts + Categories Basic Level Categories: ECMAScript language types? (Boolean, Null, Undefined, Number, String, Symbol) http://www.ecma-international.org/ecma-262/6.0/index.html#sec-ecmascript-data-types-and-values

  43. Concepts + Categories Basic Level Categories: ECMAScript language types? (Boolean, Null, Undefined, Number, String, Symbol) http://www.ecma-international.org/ecma-262/6.0/index.html#sec-ecmascript-data-types-and-values

  44. Concepts + Categories Basic Level Categories: ECMAScript types? (Boolean, Null, Undefined, Number, String, Symbol) http://www.ecma-international.org/ecma-262/6.0/index.html#sec-ecmascript-data-types-and-values

  45. Concepts + Categories Basic Level Categories: But what about Arrays? Functions? Dates? Promises? http://www.ecma-international.org/ecma-262/6.0/index.html#sec-ecmascript-data-types-and-values

  46. Concepts + Categories Basic Level Categories: But what about Arrays? Functions? Dates? Promises? “Well-Known Intrinsic Objects” http://www.ecma-international.org/ecma-262/6.0/index.html#sec-ecmascript-data-types-and-values

  47. Attention

  48. Attention • attention as a filter • attention as a spotlight • attention as glue • attention as control

  49. Attention blue green red orange

  50. Attention • attention as a filter • attention as a spotlight • attention as glue • attention as control

  51. Attention • attention as a filter • attention as a spotlight • attention as glue • attention as control Attention as threads!

  52. Attention Humans are pretty bad at multitasking: • inattentional blindness • dichotic listening task • shadowing (Simons, 1999; Cherry, 1953; Triesman, 1964; Allport et al., 1972 )

  53. Attention “These are the words you “These are the words you aren’t supposed to be need to repeat back.” listening to.” “These are the words you need to repeat back.” (Simons, 1999; Cherry, 1953; Triesman, 1964; Allport et al., 1972 )

  54. Attention “Words these are the “These are the words you aren’t supposed to you need to repeat back.” be to listening.” “These are the words you need to repeat back.” (Simons, 1999; Cherry, 1953; Triesman, 1964; Allport et al., 1972 )

  55. Attention “These are the words you need to repeat back.” (Simons, 1999; Cherry, 1953; Triesman, 1964; Allport et al., 1972 )

  56. Attention DOG “These are the words you need to repeat back.” (Simons, 1999; Cherry, 1953; Triesman, 1964; Allport et al., 1972 )

  57. Attention “These are the words you need to repeat back.” “dog” (Simons, 1999; Cherry, 1953; Triesman, 1964; Allport et al., 1972 )

  58. Attention Humans are pretty bad at multitasking: • inattentional blindness • dichotic listening task • shadowing task-specific resources (Simons, 1999; Cherry, 1953; Triesman, 1964; Allport et al., 1972 )

  59. Attention JavaScript does not multitask. • single-threaded • non-blocking • asynchronous

  60. http://itsadventuretimepeasants.tumblr.com/

  61. Thanks! Me, @zeigenvector

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend