thriving in a polyglot world - accu they said, go to, let us build us a city, and a tower, whose top...

101
Thriving in a polyglot world

Upload: dangque

Post on 19-May-2018

214 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

Thriving in a polyglot world

Page 2: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

Genesis 11:1-9 (KJV)

11 And the whole earth was of one language, and of one speech.

2 And it came to pass, as they journeyed from the east, that they found a plain in the land of Shinar; and they dwelt there.

3 And they said one to another, Go to, let us make brick, and burn them thoroughly. And they had brick for stone, and slime had they for morter.

4 And they said, Go to, let us build us a city and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon the face of the whole earth.

5 And the Lord came down to see the city and the tower, which the children of men builded.

6 And the Lord said, Behold, the people is one, and they have all one language; and this they begin to do: and now nothing will be restrained from them, which they have imagined to do.

7 Go to, let us go down, and there confound their language, that they may not understand one another's speech.

8 So the Lord scattered them abroad from thence upon the face of all the earth: and they left off to build the city.

9 Therefore is the name of it called Babel; because the Lord did there confound the language of all the earth: and from thence did the Lord scatter them abroad upon the face of all the earth.

Page 3: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon
Page 4: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

And the whole earth was of one language, and of one speech.

Page 5: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

And they said, Go to, let us build us a city, and a tower, whose top may reach unto

heaven; and let us make us a name, lest we be scattered abroad upon the face

of the whole earth.

Page 6: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

And the LORD said, Behold, the people is one, and they have all one language; and this they begin to do: and now nothing will be restrained

from them, which they have imagined to do.

Page 7: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

Go to, let us go down, and there confound their language, that they may not understand one another's

speech.

Page 8: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

So the LORD scattered them abroad from thence upon the face of all the earth: and they left off to build

the city.

Page 9: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

Therefore is the name of it called Babel; because the LORD did there

confound the language of all the earth: and from thence did the

LORD scatter them abroad upon the face of all the earth.

Page 10: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon
Page 11: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon
Page 12: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

Hiro ProtagonistY.T.

Page 13: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

Enki / Asherah

Sumerian/Glossolalia

machine code for the brain

Page 14: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

Anthony Van Dick, via Google Art Project

Page 15: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

I speak Spanish to God,

Page 16: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

I speak Spanish to God, Italian to Women,

Page 17: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

I speak Spanish to God, Italian to Women,French to Men,

Page 18: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

I speak Spanish to God, Italian to Women,French to Men,

and German to my Horse.

Page 19: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

This is, basically, the Sapir-Whorf hypothesis

Page 20: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

@hirojin

Page 21: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

Sapir-Whorf Hypothesis“Linguistic Relativity”

Page 22: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

Linguistic relativity

“The principle of linguistic relativity holds that the structure of a language affects the ways in which its respective speakers conceptualize their world, i.e. their world view, or otherwise influences their cognitive processes”

http://en.wikipedia.org/wiki/Linguistic_relativity

Page 23: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

"The purpose of Newspeak was not only to provide a medium of expression for the world-view and mental habits proper to the …, but to make all other modes of thought impossible. Its vocabulary was so constructed as to give exact and often very subtle expression to every meaning that a Party member could properly wish to express, while excluding all other meaning and also the possibility of arriving at them by indirect methods."

Page 24: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

I speak Spanish to God, Italian to Women,French to Men,

and German to my Horse.

Page 25: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon
Page 26: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

Orlando de Lassos:Born in Belgium

Moved to Italy aged 12Traveled to France & England

Back to HollandCourt Composer in Bavaria

Wrote music in Italian, French, German, Dutch, Latin

Page 27: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

Being monolingual is not the norm

in human history

Page 28: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

Being monolingual is not the norm

in modern society

Page 29: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

[citation, please!]

Page 30: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon
Page 31: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

174,000,000 people521 languages

Page 32: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon
Page 33: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

Benefits of multilingualism

Page 34: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

http://www.ncbi.nlm.nih.gov/pmc/articles/PMC3033609/

Page 35: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

“There is strong epidemiologic evidence to suggest that older adults who maintain an active lifestyle in terms of social, mental, and physical

engagement are protected to some degree against the onset of dementia. Such factors are

said to contribute to cognitive reserve, which acts to compensate for the accumulation of amyloid

and other brain pathologies. We present evidence that lifelong bilingualism is a further

factor contributing to cognitive reserve.”

Page 36: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

LearnMore

Languages!

Page 37: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers

they are mentally mutilated beyond hope of regeneration.

Page 38: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

Languages affect cognition

Page 39: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

Languages affect cognitionAcross the board, object gender influenced the participants’ judgments.For example, the word “key” is masculine in German and feminine in Spanish. German speakers in the study tended to describe keys as hard, heavy, jagged, metal, and useful. Spanish speakers, on the other hand, used words such as golden, intricate, little, lovely, and tiny when describing keys.

Page 40: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

Languages affect cognitionSmall, unnoticed features of language can

influence our thoughts, sometimes in big ways. Knowing that, imagine how else language, culture,

and society might affect our thoughts, feelings, and behaviors.

Page 41: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

@hirojin

Page 42: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

"A programming language is a tool that has a profound influence on our thinking habits"

- Edsger Dijkstra

Page 43: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon
Page 44: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon
Page 45: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon
Page 46: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

You can't be a polyglot and make code that looks the same in all your languages. Approach each

lang idiomatically, and embrace its strengths

Bryan Liles (@bryanl)

Page 47: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon
Page 48: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon
Page 49: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

When in Rome...

Write C++ in C++,Java in Java,

Python in Python.

Page 50: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

The Start of Polyglot Programming

Page 51: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

(okay, Unix has always been slightly polyglot, with shells, sed, awk) – but even on Unix it didn't really

kick off until Perl(yuck) came along

Page 52: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

In the Windows World, we were stuck with C. Or C++. And huge great switch statements.

Page 53: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

Of course, in theory, you could create dlls in different languages - calling conventions

- object lifetimes- even between compiler versions it could be

tricky

Page 54: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

Then came Visual Basic

Page 55: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

And COM, and OCXes, and Excel Addins

Page 56: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

Don Box Book: COM: A Really Elegant Concept

Page 57: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

COM: Horrid in Practice!

Page 58: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

SQL

C++

shell

Page 59: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

SQLJava

shell

Page 60: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

SQLJava

XML

shell

Page 61: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

NOSQLJS

N+1 JS Frameworks

shell/docker/...

CSSJS

HTML

...

Page 62: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon
Page 63: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon
Page 64: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon
Page 65: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon
Page 66: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

Python C API example

Page 67: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

Python C API example

Page 68: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

Python C API example

Page 69: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

Python C API example

Page 70: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

Python C API example

Page 71: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

Python C API example

Page 72: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

Python ctypes

Page 73: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

Swig python example

Page 74: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

Swig python example

Page 75: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

Boost python example

Page 76: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

Cython python example

Page 77: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

Cython python example

Page 78: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

Cython python example

Page 79: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

Cython python example

Page 80: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

Cython python example

Page 81: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

Cython python example

Page 82: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

Cython python example

Page 83: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

Cython python example

Page 84: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

Good artists copy; great artists steal.

Page 85: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

The easiest way to build an interface...

Page 86: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

… is to use one that’s already built.

Page 87: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

numpy

Page 88: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

PyXLL example

Page 89: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

Rcpp / Rinline examples

Page 90: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon
Page 91: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon
Page 92: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

Great!

Page 93: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

Impedance Mismatch

Page 94: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

Another term we've stolen from engineering

Page 95: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon
Page 96: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon
Page 97: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

Impedance Mismatch

Different SkillsetsDifferent Ways of ThinkingDifferent LevelsContext Switching / Debugging

Page 98: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon
Page 99: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon
Page 100: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon
Page 101: Thriving in a polyglot world - ACCU they said, Go to, let us build us a city, and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon

[email protected]@georgebernhard (play)

@numericalR (work)