• Home
  • Search
  • Safely Composable Type-Specific Languages
  • Cite Icon45
  • https://doi.org/10.1007/978-3-662-44202-9_5Copy DOI Icon

Safely Composable Type-Specific Languages

  • Jan 1, 2014
  • Cyrus Omar +5 more
Show More
  • Abstract
  • Literature Map
  • References
  • Citations
  • Similar Papers
Abstract

Programming languages often include specialized syntax for common datatypes (e.g. lists) and some also build in support for specific specialized datatypes (e.g. regular expressions), but user-defined types must use general-purpose syntax. Frustration with this causes developers to use strings, rather than structured data, with alarming frequency, leading to correctness, performance, security, and usability issues. Allowing library providers to modularly extend a language with new syntax could help address these issues. Unfortunately, prior mechanisms either limit expressiveness or are not safely composable: individually unambiguous extensions can still cause ambiguities when used together. We introduce type-specific languages (TSLs): logic associated with a type that determines how the bodies of generic literals, able to contain arbitrary syntax, are parsed and elaborated, hygienically. The TSL for a type is invoked only when a literal appears where a term of that type is expected, guaranteeing non-interference. We give evidence supporting the applicability of this approach and formally specify it with a bidirectionally typed elaboration semantics for the Wyvern programming language.

Similar Papers
  • Research Article
  • Citations4

Regular Expression Matching and Operational Semantics

  • Aug 13, 2011
  • Electronic Proceedings in Theoretical Computer Science
  • Asiri Rathnayake +1
  • Research Article
  • Citations15

Continuous authentication with feature-level fusion of touch gestures and keystroke dynamics to solve security and usability issues

  • Jun 24, 2023
  • Computers & Security
  • Ioannis Stylios +3
  • Research Article
  • Citations100

Regular Expressions Cookbook

  • Nov 01, 2012
  • Network Security
  • Jan Goyvaerts +1
  • Research Article
  • Citations3

Usability Issues with E-Commerce Websites in Nigeria

  • May 05, 2021
  • Asian Journal of Computer Science and Technology
  • Goodhead T Abraham +4
  • Research Article

Tool for evaluation using virtual reality

  • Nov 30, 2011
  • Journal of Engineering and Computer Innovations
  • Adriana Soares Pereira +1
  • Book Chapter
  • Citations2

Fast Packet Pattern-Matching Algorithms

  • Jan 01, 2010
  • Fang Yu +3
  • Book Chapter
  • Citations9

Choice-Based Authentication: A Usable-Security Approach

  • Jan 01, 2014
  • Yasser M Hausawi +2
  • Book Chapter

Arrays and ArrayLists

  • Mar 26, 2007
  • Michael Mcmillan
  • PDF
  • Research Article
  • Citations7

Reasonably programmable literal notation

  • Jul 30, 2018
  • Proceedings of the ACM on Programming Languages
  • Cyrus Omar +1
  • Research Article
  • Citations16

Auto_deriv: Tool for automatic differentiation of a Fortran code

  • Jul 13, 2010
  • Computer Physics Communications
  • S Stamatiadis +1
  • Supplementary Content
  • Citations7

Beyond Polarity: Towards a Multi-Discipline Intermediate Language with Sharing

  • Jan 01, 2018
  • DROPS (Schloss Dagstuhl – Leibniz Center for Informatics)
  • Paul Downen +1
  • Conference Article
  • Citations2

Semantic charts

  • Jan 01, 1979
  • James R Cordy +2
  • PDF
  • Conference Article
  • Citations174

Understanding Security Issues in the NFT Ecosystem

  • Nov 07, 2022
  • Dipanjan Das +4
  • Research Article
  • Citations1

МЕТОДИЧНІ АСПЕКТИ НАВЧАННЯ СТУДЕНТІВ СТВОРЕННЮ ЦИФРОВИХ ЧАСТОТНИХ СЛОВНИКІВ

  • Sep 21, 2019
  • Information Technologies and Learning Tools
  • Olga V Riezina
  • Research Article
  • Citations90

Exploring the Frontier of Electronic Health Record Surveillance

  • Jun 01, 2013
  • Medical Care
  • Fern Fitzhenry +10
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.