Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

TiML: A Functional Programming Language with Time Complexity

NotificationsYou must be signed in to change notification settings

wangpengmit/timl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup Instructions

  1. Install SML/NJ. Make sure commandsml andml-build is in current PATH.On Ubuntu, use this command to install all necessary components of SML/NJ:

    sudo apt-get install smlnj libsmlnj-smlnj ml-yacc ml-ulex
  2. Install the Z3 SMT solver version 4.4.1. Make sure commandz3 is in current PATH. Z3-4.4.1 is required. Z3-4.4.2 has a known issue.

  3. Install Ruby. Make sure commandruby is in current PATH.

  4. Usemake to build TiML, or use./test.sh to build and test on files inexamples sub-directory.

  5. (Optional). Install MLton (a whole-program optimizing SML compiler). Make sure commandmlton,mlyacc andmllex is in current PATH. Usemake mlton to build TiML with MLton, or use./test-mlton.sh to build and test on files inexamples sub-directory.

  6. (Optional, requires step 5). Runruby benchmark.rb in directoryexamples, which will generate fileresult.csv that reproduces results in Table 1 of the paper.

  7. (Optional). Followemacs/README.rst to install TiML mode on Emacs.

Play with TiML

examples/test-suite.pkg lists all the benchmark examples. You can use this command to run all the examples:

./main.sh examples/stdlib.pkg examples/test-suite.pkg

or this command to run a single example:

./main.sh examples/stdlib.pkg examples/FILENAME.timl

Note thatexamples/stdlib.pkg (the standard library) is usually needed.

Readers are advised to read the example files following the order in Table 1 of the companion paper (and in fileexamples/test-suite.pkg), as new syntax are explained in that order.

To reproduce the results in Table 1 of the companion paper, you can run

cd examplesruby benchmark.rb

The results will be printed out and written to file "result.csv". Note that this experiment requires MLton, and your processing time may vary.

Coq Proof

The Coq formalization of TiML and its soundness is inproof/Soundness.v. The proof requires Coq 8.5pl3. To check the proof, first compile the utility library:

make

You can also compile the utility library and the soundness proof altogether:

make soundness

About

TiML: A Functional Programming Language with Time Complexity

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp