aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/program/aedifex/runtime.lux
blob: e3f5a4e9296650e93548b54e808ba57938f59da2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
(.module:
  [lux #*
   [data
    [text
     ["%" format (#+ format)]]]
   [macro
    ["." template]]
   [world
    [file (#+ Path)]
    [shell (#+ Command)]]])

(template [<name> <command> <parameters>]
  [(def: #export (<name> path)
     (-> Path [Text (List Text)])
     (`` (format [<command> (list (~~ (template.splice <parameters>)) path)])))]

  [java "java" ["-jar"]]
  [node "node" ["--stack_size=8192"]]
  [python "python3" []]
  [lua "lua" []]
  [ruby "RUBY_THREAD_VM_STACK_SIZE=15700000 ruby" []]
  )