Cuneiform (programming language): Difference between revisions

Content deleted Content added
m Capitalising short description "open-source workflow language" per WP:SDFORMAT (via Bandersnatch)
Canimayi (talk | contribs)
Link suggestions feature: 3 links added.
 
(7 intermediate revisions by 6 users not shown)
Line 18:
| influenced_by = [[Swift (parallel scripting language)]]
| influenced =
| operating system = [[Linux]], [[Mac OSMacOS]]
| programming language = [[Erlang (programming language)|Erlang]]
| license = [[Apache License]] 2.0
| website = {{URL|httpshttp://cuneiform-lang.org/}}
| file_ext = .cfl
| year = 2013
Line 114:
| pages = 42–50
| year = 2010
| doi = 10.1016/j.ecoinf.2009.08.008 | s2cid = 16392118 | url = https://escholarship.org/content/qt2q46n1tp/qt2q46n1tp.pdf?t=nivnuu
}}
</ref>
Line 139:
 
Currently supported foreign programming languages are:
{{div col}}
* [[Bash (Unix shell)|Bash]]
* [[Elixir (programming language)|Elixir]]
Line 150 ⟶ 151:
* [[R (programming language)|R]]
* [[Racket (programming language)|Racket]]
{{div col end}}
 
Foreign language support for [[AWK]] and [[gnuplot]] are planned additions.
 
==Type Systemsystem==
 
Cuneiform provides a simple, statically checked type system.<ref>
Line 254 ⟶ 255:
{{sxhl|lang=erlang|1=
let r : <a : File, b : File> =
<nowiki><a = f(), b = g()></nowiki>;
}}
 
Line 320 ⟶ 321:
===Version 1===
 
In its first draft published in May 2014, Cuneiform was closely related to [[Make (software)|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 <code>~</code>. The script's query expression was introduced with the <code>target</code> keyword. Bash was the default foreign language. [[Function application]] had to be performed using an <code>apply</code> form that took <code>task</code> 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.
Line 372 ⟶ 373:
===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 typesystemtype 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.