The study of polarity in computation has revealed that an “ideal” programming language combines both call-by-value and call-by-name evaluation; the two calling conventions are each ideal for half the types in a programming language. But this binary choice leaves out call-by-need which is used in practice to implement lazy-by-default languages like Haskell. We show how the notion of polarity can be extended beyond the value/name dichotomy to include call-by-need by only adding a mechanism for sharing and the extra polarity shifts to connect them, which is enough to compile a Haskell-like functional language with user-defined types.
more »
« less
Uniform Strong Normalization for Multi-discipline Calculi
Modern programming languages have effects and mix multiple calling conventions, and their core calculi should too. We characterize calling conventions by their “substitution discipline” that says what variables stand for, and design calculi for mixing disciplines in a single program. Building on variations of the reducibility candidates method, including biorthogonality and symmetric candidates which are both specialized for one discipline, we develop a single uniform framework for strong normalization encompassing call-by-name, call-by-value, call-by-need, call-by-push-value, non-deterministic disciplines, and any others satisfying some simple criteria. We explicate commonalities of previous methods and show they are special cases of the uniform framework and they extend to multi-discipline programs.
more »
« less
- Award ID(s):
- 1719158
- PAR ID:
- 10173524
- Date Published:
- Journal Name:
- Rewriting Logic and Its Applications. WRLA 2018.
- Volume:
- 11152
- Format(s):
- Medium: X
- Sponsoring Org:
- National Science Foundation
More Like this
-
-
Abstract Here, we systematically review research on teaching knowledge in the context of undergraduate STEM education, with particular attention to what this research reveals about knowledge that is important for evidence-based teaching. Evidence-based teaching can improve student outcomes in undergraduate STEM education. However, the enactment of promising evidence-based teaching strategies depends greatly on the instructor and potentially on the teaching knowledge they are able to deploy. The review includes an overview of prevalent teaching knowledge theory, including pedagogical content knowledge, mathematical knowledge for teaching, and pedagogical knowledge. We compare and contrast teaching knowledge theory and terminology across STEM disciplines in order to build bridges for researchers across disciplines. Our search for peer-reviewed investigations of teaching knowledge in undergraduate science, engineering and mathematics yielded 45 papers. We examined the theoretical frameworks used in each study and analyzed study approaches, comparing across disciplines. Importantly, we also synthesized findings from research conducted in the context of evidence-based teaching. Overall, teaching knowledge research is sparse and siloed by discipline, and we call for collaborative work and better bridge-building across STEM disciplines. Though disciplinary divergences are common in discipline-based education research, the effect is magnified in this research area because the theoretical frameworks are themselves siloed by discipline. Investigations of declarative knowledge were common, and we call for increased attention to knowledge used in the practice of teaching. Finally, there are not many studies examining teaching knowledge in the context of evidence-based teaching, but the existing work suggests that components of pedagogical content knowledge, pedagogical knowledge, and content knowledge influence the implementation of evidence-based teaching. We describe implications for future teaching knowledge research. We also call on those who develop and test evidence-based strategies and curriculum to consider, from the beginning, the teaching knowledge needed for effective implementation.more » « less
-
Calling context is crucial for improving the precision of program analyses in various use cases (clients), such as profiling, debugging, optimization, and security checking. Often the calling context is encoded using a numerical value. We have observed that many clients benefit not only from a deterministic but also globally distinguishable value across runs to simplify bookkeeping and guarantee complete uniqueness. However, existing work only guarantees determinism, not global distinguishability. Clients need to develop auxiliary helpers, which incurs considerable overhead to distinguish encoded values among all calling contexts. In this paper, we propose Deterministic Distinguishable Calling Context Encoding () that can enable both properties of calling context encoding natively. The key idea of is leveraging the static call graph and encoding each calling context as the running call path count. Thereby, a mapping is established statically and can be readily used by the clients. Our experiments with two client tools show that has a comparable overhead compared to two state-of-the-art encoding schemes, PCCE and PCC, and further avoids the expensive overheads of collision detection, up to 2.1× and 50%, for Splash-3 and SPEC CPU 2017, respectively.more » « less
-
Existing guidelines for categorical color selection are heuristic, often grounded in intuition rather than empirical studies of readers' abilities. While design conventions recommend palettes maximize hue differences, more recent exploratory findings indicate other factors, such as lightness, may play a role in effective categorical palette design. We conducted a crowdsourced experiment on mean value judgments in multi-class scatterplots using five color palette families-single-hue sequential, multihue sequential, perceptually-uniform multi-hue sequential, diverging, and multi-hue categorical-that differ in how they manipulate hue and lightness. Participants estimated relative mean positions in scatterplots containing 2 to 10 categories using 20 colormaps. Our results confirm heuristic guidance that hue-based categorical palettes are most effective. However, they also provide additional evidence that scalable categorical encoding relies on more than hue variance.more » « less
-
Abstract Background The growing understanding of the oppressive inequities that exist in postsecondary education has led to an increasing need for culturally relevant pedagogy. Researchers have found evidence that beliefs about the nature of knowledge predict pedagogical practices. Culturally relevant pedagogy supports students in ways that leverage students’ own cultures through three tenets: academic success, cultural competence, and sociopolitical consciousness. If STEM practitioners believe that their disciplines are culture-free, they may not enact culturally relevant pedagogy in their courses. We investigated how and in what forms 40 faculty from mathematics, physics, chemistry, and biology departments at Hispanic-Serving Institutions enacted culturally relevant pedagogy. We used the framework of practical rationality to understand how epistemological beliefs about the nature of their discipline combined with their institutional context impacted instructors’ decision to enact practices aligning with the three tenets of culturally relevant pedagogy. Results In total, 35 instructors reported using practices that aligned with the academic success tenet, nine instructors with the cultural competence tenet, and one instructor with the sociopolitical consciousness tenet. Instructors expressed and even lauded their disciplines’ separation from culture while simultaneously expressing instructional decisions that aligned with culturally relevant pedagogy. Though never asked directly, six instructors made statements reflecting a “culture-free” belief about knowledge in their discipline such as “To me, mathematics has no color.” Five of those instructors also described altering their teaching in ways that aligned with the academic success tenet. The framework of practical rationality helped explain how the instructors’ individual obligation (to the needs of individual students) and interpersonal obligation (to the social environment of the classroom) played a role in those decisions. Conclusions Instructors’ ability to express two contradictory views may indicate that professional development does not have to change an instructor’s epistemological beliefs about their discipline to convince them of the value of enacting culturally relevant pedagogy. We propose departmental changes that could enable instructors to decide to cultivate students’ cultural competence and sociopolitical consciousness. Our findings highlight the need for future research investigating the impacts of culturally relevant pedagogical content knowledge on students’ experiences.more » « less
An official website of the United States government

