Skip to main content
QUICK REVIEW

[Paper Review] Linguistic Relativity and Programming Languages

Jiahao Chen|arXiv (Cornell University)|Aug 12, 2018
Sensory Analysis and Statistical MethodsAgricultural and Biological Sciences6 citations
TL;DR

This paper explores linguistic relativity in programming languages by comparing how different languages—such as MATLAB, APL, R/dplyr, and Julia—implement the split-apply-combine pattern in data analysis. It demonstrates that syntactic and conceptual differences across languages shape how users think about and express data manipulation, illustrating that programming languages, like natural languages, influence cognitive approaches to problem-solving, with Julia offering flexible abstractions that accommodate diverse programming preferences.

ABSTRACT

The use of programming languages can wax and wane across the decades. We examine the split-apply- combine pattern that is common in statistical computing, and consider how its invocation or implementation in languages like MATLAB and APL differ from R/dplyr. The differences in spelling illustrate how the concept of linguistic relativity applies to programming languages in ways that are analogous to human languages. Finally, we discuss how Julia, by being a high performance yet general purpose dynamic language, allows its users to express different abstractions to suit individual preferences.

Motivation & Objective

  • To investigate how differences in programming language syntax and design influence the way developers conceptualize and implement data analysis patterns.
  • To explore the analogy between linguistic relativity in natural languages and programming languages, particularly in data manipulation workflows.
  • To demonstrate that the split-apply-combine pattern is implemented with varying degrees of expressiveness and cognitive load across languages like R/dplyr, MATLAB, and APL.
  • To evaluate Julia’s role as a high-performance, general-purpose language that supports multiple abstractions, enabling users to choose preferred programming styles.
  • To argue that programming language design affects not only performance but also the cognitive framing of data analysis tasks.

Proposed method

  • Analyzes the syntactic and semantic differences in implementing the split-apply-combine pattern across multiple programming languages, including MATLAB, APL, R/dplyr, and Julia.
  • Compares the verbosity, readability, and conceptual clarity of code written in each language for common data manipulation tasks.
  • Uses the concept of linguistic relativity (Sapir-Whorf hypothesis) as a theoretical lens to interpret how language design shapes thought and problem-solving in programming.
  • Examines Julia’s design features that allow multiple abstractions—such as functional and imperative styles—within a single language, supporting diverse user preferences.
  • Draws on real code examples and user experience observations from statistical computing to illustrate differences in cognitive load and expressiveness.
  • Evaluates the trade-offs in expressiveness and performance across languages, particularly in the context of statistical and data analysis workloads.

Experimental results

Research questions

  • RQ1How do different programming languages implement the split-apply-combine pattern, and what are the resulting differences in expressiveness and cognitive load?
  • RQ2To what extent do syntactic and semantic differences in programming languages influence the way developers think about data manipulation tasks?
  • RQ3In what ways does Julia’s design support multiple abstractions, and how does this affect user choice and cognitive flexibility in programming?
  • RQ4How does the concept of linguistic relativity, originally from human linguistics, apply to the design and use of programming languages?
  • RQ5What insights can be drawn from comparing APL, MATLAB, R/dplyr, and Julia in terms of their impact on data analysis workflows and developer cognition?

Key findings

  • The split-apply-combine pattern is expressed with significantly different syntax and conceptual framing across languages such as R/dplyr, MATLAB, APL, and Julia, reflecting distinct cognitive approaches to data manipulation.
  • APL and MATLAB use highly concise, domain-specific syntax that can reduce code length but may increase cognitive load due to non-intuitive symbols and operators.
  • R/dplyr’s grammar of data manipulation provides a readable, composable, and intuitive interface that aligns well with natural language constructs, enhancing readability and maintainability.
  • Julia enables high performance while supporting multiple programming paradigms, allowing users to choose between functional, imperative, or object-oriented styles based on personal or project preferences.
  • The differences in how languages express the same pattern illustrate that programming languages, like natural languages, shape the way users perceive and solve computational problems.
  • The study concludes that language design has a profound influence on developer cognition, with implications for tooling, education, and language design in data science and statistical computing.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.