Cuneiform (programming language)
Cuneiform is an open-source workflow language for large-scale scientific data analysis. It is a statically typed functional programming language promoting parallel computing. It features a versatile foreign function interface allowing users to integrate software from many external programming languages. At the organizational level Cuneiform provides facilities like conditional branching and general recursion making it Turing-complete. In this, Cuneiform is the attempt to close the gap between scientific workflow systems like Taverna, KNIME, or Galaxy and large-scale data analysis programming models like MapReduce or Pig Latin while offering the generality of a functional programming language. Cuneiform is implemented in distributed Erlang. If run in distributed mode it drives a POSIX-compliant distributed file system like Gluster or Ceph (or a FUSE integration of some other file system, e.g., HDFS). Alternatively, Cuneiform scripts can be executed on top of HTCondor or Hadoop. Cuneiform is influenced by the work of Peter Kelly who proposes functional programming as a model for scientific workflow execution. In this, Cuneiform is distinct from related workflow languages based on dataflow programming like Swift.
Cuneiform is an open-source workflow language for large-scale scientific data analysis. It is a statically typed functional programming language promoting parallel computing. It features a versatile foreign function interface allowing users to integrate software from many external programming languages. At the organizational level Cuneiform provides facilities like conditional branching and general recursion making it Turing-complete. In this, Cuneiform is the attempt to close the gap between scientific workflow systems like Taverna, KNIME, or Galaxy and large-scale data analysis programming models like MapReduce or Pig Latin while offering the generality of a functional programming language. Cuneiform is implemented in distributed Erlang. If run in distributed mode it drives a POSIX-compliant distributed file system like Gluster or Ceph (or a FUSE integration of some other file system, e.g., HDFS). Alternatively, Cuneiform scripts can be executed on top of HTCondor or Hadoop. Cuneiform is influenced by the work of Peter Kelly who proposes functional programming as a model for scientific workflow execution. In this, Cuneiform is distinct from related workflow languages based on dataflow programming like Swift. ==External software integration== External tools and libraries (e.g., R or Python libraries) are integrated via a foreign function interface. In this it resembles, e.g., KNIME which allows the use of external software through snippet nodes, or Taverna which offers BeanShell services for integrating Java software. By defining a task in a foreign language it is possible to use the API of an external tool or library. This way, tools can be integrated directly without the need of writing a wrapper or reimplementing the tool. Currently supported foreign programming languages are: Bash Elixir Erlang Java JavaScript MATLAB GNU Octave Perl Python R Racket Foreign language support for AWK and gnuplot are planned additions. ==Type system== Cuneiform provides a simple, statically checked type system. While Cuneiform provides lists as compound data types it omits traditional list accessors (head and tail) to avoid the possibility of runtime errors which might arise when accessing the empty list. Instead lists are accessed in an all-or-nothing fashion by only mapping or folding over them. Additionally, Cuneiform omits (at the organizational level) arithmetics which excludes the possibility of division by zero. The omission of any partially defined operation allows to guarantee that runtime errors can arise exclusively in foreign code. ===Base data types=== As base data types Cuneiform provides Booleans, strings, and files. Herein, files are used to exchange data in arbitrary format between foreign functions. ===Records and pattern matching=== Cuneiform provides records (structs) as compound data types. The example below shows the definition of a variable r being a record with two fields a1 and a2 , the first being a string and the second being a Boolean. let r : = ; Records can be accessed either via projection or via pattern matching. The example below extracts the two fields a1 and a2 from the record r . let a1 : Str = ( r|a1 ); let = r; ===Lists and list processing=== Furthermore, Cuneiform provides lists as compound data types. The example below shows the definition of a variable xs being a file list with three elements. let xs : [File] = ['a.txt', 'b.txt', 'c.txt' : File]; Lists can be processed with the for and fold operators. Herein, the for operator can be given multiple lists to consume list element-wise (similar to for/list in Racket, mapcar in Common Lisp or zipwith in Erlang). The example below shows how to map over a single list, the result being a file list. for x The example below shows how to zip two lists the result also being a file list. for x Finally, lists can be aggregated by using the fold operator. The following example sums up the elements of a list. fold acc = 0, x ==Parallel execution== Cuneiform is a purely functional language, i.e., it does not support mutable references. In the consequence, it can use subterm-independence to divide a program into parallelizable portions. The Cuneiform scheduler distributes these portions to worker nodes. In addition, Cuneiform uses a Call-by-Name evaluation strategy to compute values only if they contribute to the computation result. Finally, foreign function applications are memoized to speed up computations that contain previously derived results. For example, the following Cuneiform program allows the applications of f and g to run in parallel while h is dependent and can be started only when both f and g are finished. The following Cuneiform program creates three parallel applications of the function f by mapping f over a three-element list: Similarly, the applications of f and g are independent in the construction of the record r and can, thus, be run in parallel: ==Examples== A hello-world script: def greet( person : Str ) -> in Bash *{ out="Hello $person" }* ( greet( person = "world" )|out ); This script defines a task greet in Bash which prepends "Hello " to its string argument person . The function produces a record with a single string field out . Applying greet , binding the argument person to the string "world" produces the record . Projecting this record to its field out evaluates the string "Hello world" . Command line tools can be integrated by defining a task in Bash: def samtoolsSort( bam : File ) -> in Bash *{ sorted=sorted.bam samtools sort -m 2G $bam -o $sorted }* In this example a task samtoolsSort is defined. It calls the tool SAMtools, consuming an input file, in BAM format, and producing a sorted output file, also in BAM format. ==Release history== In April 2016, Cuneiform's implementation language switched from Java to Erlang and, in February 2018, its major distributed execution platform changed from a Hadoop to distributed Erlang. Additionally, from 2015 to 2018 HTCondor had been maintained as an alternative execution platform. Cuneiform's surface syntax was revised twice, as reflected in the major version number. ===Version 1=== In its first draft published in May 2014, Cuneiform was closely related to Make in that it constructed a static data dependency graph which the interpreter traversed during execution. The major difference to later versions was the lack of conditionals, recursion, or static type checking. Files were distinguished from strings by juxtaposing single-quoted string values with a tilde ~ . The script's query expression was introduced with the target keyword. Bash was the default foreign language. Function application had to be performed using an apply form that took task as its first keyword argument. One year later, this surface syntax was replaced by a streamlined but similar version. The following example script downloads a reference genome from an FTP server. declare download-ref-genome; deftask download-fa( fa : ~path ~id ) *{ wget $path/$id.fa.gz gunzip $id.fa.gz mv $id.fa $fa }* ref-genome-path = ~'ftp://hgdownload.cse.ucsc.edu/goldenPath/hg19/chromosomes'; ref-genome-id = ~'chr22'; ref-genome = apply( task : download-fa path : ref-genome-path id : ref-genome-id ); target ref-genome; ===Version 2=== The second draft of the Cuneiform surface syntax, first published in March 2015, remained in use for three years outlasting the transition from Java to Erlang as Cuneiform's implementation language. Evaluation differs from earlier approaches in that the interpreter reduces a query expression instead of traversing a static graph. During the time the surface syntax remained in use the interpreter was formalized and simplified which resulted in a first specification of Cuneiform's semantics. The syntax featured conditionals. However, Booleans were encoded as lists, recycling the empty list as Boolean false and the non-empty list as Boolean true. Recursion was added later as a byproduct of formalization. However, static type checking was introduced only in Version 3. The following script decompresses a zipped file and splits it into evenly sized partitions. deftask unzip( : zip( File ) ) in bash *{ unzip -d dir $zip out=`ls dir | awk '{print "dir/" $0}'` }* deftask split( : file( File ) ) in bash *{ split -l 1024 $file txt out=txt* }* sotu = "sotu/stateoftheunion1790-2014.txt.zip"; fileLst = split( file: unzip( zip: sotu ) ); fileLst; ===Version 3=== The current version of Cuneiform's surface syntax, in comparison to earlier drafts, is an attempt to close the gap to mainstream functional programming languages. It features a simple, statically checked type system and introduces records in addition to lists as a second type of compound data structure. Booleans are a separate base data type. The following script untars a file resulting in a file list. def untar( tar : File ) -> in Bash *{ tar xf $tar fileLst=`tar tf $tar` }* let hg38Tar : File = 'hg38/hg38.tar'; let = untar( tar = hg38Tar ); faLst; ==References==
References
- Joergen7/Cuneiform · retrieved 2026-11-17 · rev 1329383776
Cite this reference
MLA "Joergen7/Cuneiform." 2026-11-17. https://github.com/joergen7/cuneiform. Accessed 24 November 2026.
Chicago "Joergen7/Cuneiform." 2026-11-17. https://github.com/joergen7/cuneiform.
APA encyclopegia.org. (2026). Joergen7/Cuneiform. Retrieved November 24, 2026, from https://github.com/joergen7/cuneiform
- A Functional Workflow Language Implementation in Erlang · retrieved 2026-11-17 · rev 1329383776
Cite this reference
MLA "A Functional Workflow Language Implementation in Erlang." "A Functional Workflow Language Implementation in Erlang" (PDF). 2026-11-17. http://www.erlang-factory.com/static/upload/media/1448992381831050cuneiformberlinefl2015.pdf. Accessed 24 November 2026.
Chicago "A Functional Workflow Language Implementation in Erlang." "A Functional Workflow Language Implementation in Erlang" (PDF). 2026-11-17. http://www.erlang-factory.com/static/upload/media/1448992381831050cuneiformberlinefl2015.pdf.
APA "A Functional Workflow Language Implementation in Erlang" (PDF). (2026). A Functional Workflow Language Implementation in Erlang. Retrieved November 24, 2026, from http://www.erlang-factory.com/static/upload/media/1448992381831050cuneiformberlinefl2015.pdf
- Computation semantics of the functional scientific workflow language Cuneiform · retrieved 2026-11-17 · rev 1329383776
Cite this reference
MLA "Computation semantics of the functional scientific workflow language Cuneiform." Brandt, Jörgen; Reisig, Wolfgang; Leser, Ulf (2017). 2026-11-17. https://en.wikipedia.org/wiki/Journal_of_Functional_Programming. Accessed 24 November 2026.
Chicago "Computation semantics of the functional scientific workflow language Cuneiform." Brandt, Jörgen; Reisig, Wolfgang; Leser, Ulf (2017). 2026-11-17. https://en.wikipedia.org/wiki/Journal_of_Functional_Programming.
APA Brandt, Jörgen; Reisig, Wolfgang; Leser, Ulf (2017). (2026). Computation semantics of the functional scientific workflow language Cuneiform. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Journal_of_Functional_Programming
- Cuneiform: A functional language for large scale scientific data analysis · retrieved 2026-11-17 · rev 1329383776
Cite this reference
MLA "Cuneiform: A functional language for large scale scientific data analysis." Brandt, Jörgen; Bux, Marc N. 2026-11-17. http://ceur-ws.org/Vol-1330/paper-03.pdf. Accessed 24 November 2026.
Chicago "Cuneiform: A functional language for large scale scientific data analysis." Brandt, Jörgen; Bux, Marc N. 2026-11-17. http://ceur-ws.org/Vol-1330/paper-03.pdf.
APA Brandt, Jörgen; Bux, Marc N. (2026). Cuneiform: A functional language for large scale scientific data analysis. Retrieved November 24, 2026, from http://ceur-ws.org/Vol-1330/paper-03.pdf
- Scalable Multi-Language Data Analysis on Beam: The Cuneiform Experience by Jörgen Brandt · retrieved 2026-11-17 · rev 1329383776
Cite this reference
MLA "Scalable Multi-Language Data Analysis on Beam: The Cuneiform Experience by Jörgen Brandt." 2026-11-17. https://web.archive.org/web/20161002222350/http://beta.erlangcentral.org/videos/scalable-multi-language-data-analysis-on-beam-the-cuneiform-experience-by-jorgen-brandt/#.WBLlE2hNzIU. Accessed 24 November 2026.
Chicago "Scalable Multi-Language Data Analysis on Beam: The Cuneiform Experience by Jörgen Brandt." 2026-11-17. https://web.archive.org/web/20161002222350/http://beta.erlangcentral.org/videos/scalable-multi-language-data-analysis-on-beam-the-cuneiform-experience-by-jorgen-brandt/#.WBLlE2hNzIU.
APA encyclopegia.org. (2026). Scalable Multi-Language Data Analysis on Beam: The Cuneiform Experience by Jörgen Brandt. Retrieved November 24, 2026, from https://web.archive.org/web/20161002222350/http://beta.erlangcentral.org/videos/scalable-multi-language-data-analysis-on-beam-the-cuneiform-experience-by-jorgen-brandt/#.WBLlE2hNzIU
- SAASFEE: scalable scientific workflow execution engine · retrieved 2026-11-17 · rev 1329383776
Cite this reference
MLA "SAASFEE: scalable scientific workflow execution engine." Bux, Marc; Brandt, Jörgen; Lipka, Carsten; Hakimzadeh, Kamal; Dowling, Jim; Leser, Ulf (2015). 2026-11-17. http://www.vldb.org/pvldb/vol8/p1892-bux.pdf. Accessed 24 November 2026.
Chicago "SAASFEE: scalable scientific workflow execution engine." Bux, Marc; Brandt, Jörgen; Lipka, Carsten; Hakimzadeh, Kamal; Dowling, Jim; Leser, Ulf (2015). 2026-11-17. http://www.vldb.org/pvldb/vol8/p1892-bux.pdf.
APA Bux, Marc; Brandt, Jörgen; Lipka, Carsten; Hakimzadeh, Kamal; Dowling, Jim; Leser, Ulf (2015). (2026). SAASFEE: scalable scientific workflow execution engine. Retrieved November 24, 2026, from http://www.vldb.org/pvldb/vol8/p1892-bux.pdf
- Biobankcloud: a platform for the secure storage, sharing, and processing of large biomedical data sets · retrieved 2026-11-17 · rev 1329383776
Cite this reference
MLA "Biobankcloud: a platform for the secure storage, sharing, and processing of large biomedical data sets." Bessani, Alysson; Brandt, Jörgen; Bux, Marc; Cogo, Vinicius; Dimitrova, Lora; Dowling, Jim; Gholami, Ali; Hakimzadeh, Ka. 2026-11-17. http://www.di.fc.ul.pt/~bessani/publications/dmah15-bbc.pdf. Accessed 24 November 2026.
Chicago "Biobankcloud: a platform for the secure storage, sharing, and processing of large biomedical data sets." Bessani, Alysson; Brandt, Jörgen; Bux, Marc; Cogo, Vinicius; Dimitrova, Lora; Dowling, Jim; Gholami, Ali; Hakimzadeh, Ka. 2026-11-17. http://www.di.fc.ul.pt/~bessani/publications/dmah15-bbc.pdf.
APA Bessani, Alysson; Brandt, Jörgen; Bux, Marc; Cogo, Vinicius; Dimitrova, Lora; Dowling, Jim; Gholami, Ali; Hakimzadeh, Ka. (2026). Biobankcloud: a platform for the secure storage, sharing, and processing of large biomedical data sets. Retrieved November 24, 2026, from http://www.di.fc.ul.pt/~bessani/publications/dmah15-bbc.pdf
- Scalable Multi-Language Data Analysis on Beam: The Cuneiform Experience · retrieved 2026-11-17 · rev 1329383776
Cite this reference
MLA "Scalable Multi-Language Data Analysis on Beam: The Cuneiform Experience." 2026-11-17. http://www.erlang-factory.com/euc2016/jorgen-brandt. Accessed 24 November 2026.
Chicago "Scalable Multi-Language Data Analysis on Beam: The Cuneiform Experience." 2026-11-17. http://www.erlang-factory.com/euc2016/jorgen-brandt.
APA encyclopegia.org. (2026). Scalable Multi-Language Data Analysis on Beam: The Cuneiform Experience. Retrieved November 24, 2026, from http://www.erlang-factory.com/euc2016/jorgen-brandt
- Lambda calculus as a workflow model · retrieved 2026-11-17 · rev 1329383776
Cite this reference
MLA "Lambda calculus as a workflow model." Kelly, Peter M. 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier). Accessed 24 November 2026.
Chicago "Lambda calculus as a workflow model." Kelly, Peter M. 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier).
APA Kelly, Peter M. (2026). Lambda calculus as a workflow model. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Doi_(identifier)
- Workflows and extensions to the Kepler scientific workflow system to support environmental sensor data access and analysis · retrieved 2026-11-17 · rev 1329383776
Cite this reference
MLA "Workflows and extensions to the Kepler scientific workflow system to support environmental sensor data access and analysis." Barseghian, Derik; Altintas, Ilkay; Jones, Matthew B. 2026-11-17. https://escholarship.org/content/qt2q46n1tp/qt2q46n1tp.pdf?t=nivnuu. Accessed 24 November 2026.
Chicago "Workflows and extensions to the Kepler scientific workflow system to support environmental sensor data access and analysis." Barseghian, Derik; Altintas, Ilkay; Jones, Matthew B. 2026-11-17. https://escholarship.org/content/qt2q46n1tp/qt2q46n1tp.pdf?t=nivnuu.
APA Barseghian, Derik; Altintas, Ilkay; Jones, Matthew B. (2026). Workflows and extensions to the Kepler scientific workflow system to support environmental sensor data access and analysis. Retrieved November 24, 2026, from https://escholarship.org/content/qt2q46n1tp/qt2q46n1tp.pdf?t=nivnuu
- Nextflow enables reproducible computational workflows · retrieved 2026-11-17 · rev 1329383776
Cite this reference
MLA "Nextflow enables reproducible computational workflows." Di Tommaso, Paolo; Chatzou, Maria; Floden, Evan W; Barja, Pablo Prieto; Palumbo, Emilio; Notredame, Cedric (2017). 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier). Accessed 24 November 2026.
Chicago "Nextflow enables reproducible computational workflows." Di Tommaso, Paolo; Chatzou, Maria; Floden, Evan W; Barja, Pablo Prieto; Palumbo, Emilio; Notredame, Cedric (2017). 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier).
APA Di Tommaso, Paolo; Chatzou, Maria; Floden, Evan W; Barja, Pablo Prieto; Palumbo, Emilio; Notredame, Cedric (2017). (2026). Nextflow enables reproducible computational workflows. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Doi_(identifier)
- Cuneiform (programming language) · retrieved 2026-10-19 · rev 1329383776
Cite this reference
MLA "Cuneiform (programming language)." Wikipedia. 2026-10-19. https://en.wikipedia.org/w/index.php?oldid=1329383776. Accessed 24 November 2026.
Chicago "Cuneiform (programming language)." Wikipedia. 2026-10-19. https://en.wikipedia.org/w/index.php?oldid=1329383776.
APA Wikipedia. (2026). Cuneiform (programming language). Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1329383776
Cite this article
MLA
"Cuneiform (programming language)." encyclopegia.org, 2025, https://encyclopegia.org/wiki/cuneiform-programming-language. Accessed 24 November 2026.
Chicago
"Cuneiform (programming language)." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/cuneiform-programming-language.
APA
encyclopegia.org. (2025). Cuneiform (programming language). Retrieved November 24, 2026, from https://encyclopegia.org/wiki/cuneiform-programming-language
Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON
Claims
| Predicate | Value | Source |
|---|---|---|
| publication date | 2014 | Wikipedia |
| publication date | 2015 | Wikipedia |