Back to search

Cornell University

cjq: A Compiler for the jq Programming Language

Abstract

dc:description.abstract

jq is a functional programming langauge, known for its ability to filter, transform,and manipulate JSON data with concise syntax. The standard implementation of jq includes a source-to-bytecode compiler and a stack-based virtual machine (VM). This thesis introduces cjq v0.1, a compiler that translates jq bytecode into LLVM intermediate representation (IR). By leveraging LLVM’s compiler infrastructure, cjq reliably enhances runtime performance for small to medium-sized JSON inputs when compared to the standard jq implementation. However, the current tracing module in cjq becomes a bottleneck for certain types of large-scale JSON inputs. cjq combines the functional elegance of jq with the performance benefits of compiled languages, aiming to deliver a robust tool for modern data processing tasks. Future work involves optimizing the tracing module to improve scalability and exploring further enhancements to extend cjq’s capabilities.

Degree

thesis:*
Name thesis:degree_name
M.S., Computer Science
Level thesis:degree_level
Master of Science
Discipline thesis:degree_discipline
Computer Science
Grantor
Cornell University
Year dc:date.issued
2024

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Rubio, John
Chair dc:contributor.chair
  • Sampson, Adrian
Committee member dc:contributor.committeemember
  • Zhang, Zhiru

Subjects

dc:subject × 6

Rights

dc:rights
Statement dc:rights
  • Attribution 4.0 International
Language dc:language.iso
en

Identifiers

dc:identifier.*
Dc Identifier Bibid
16611760
Dc Identifier Other
ProQuest Submission ID: 12206
ProQuest Publication ID: 31487106

Chain of custody

source
Harvested from
Cornell University
Base URL
ecommons.cornell.edu/server/oai/request
Last updated
2026-11-19
Source record
OAI-PMH GetRecord
citation

Rubio, John. cjq: A Compiler for the jq Programming Language. Master of Science thesis, Cornell University, 2024. https://hdl.handle.net/1813/116324