Skip to content

Polymorphic extensible records with structural subtyping for Dotty

Notifications You must be signed in to change notification settings

obkson/dotty-records

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dotty-records [W.I.P]

Polymorphic extensible records with structural subtyping for Dotty.

Using fork of Dotty 0.8 compiler: https://github.com/obkson/dotty/tree/dotty-records

Example Usage

W.I.P

Compiling

Step 1:

Clone the Dotty 0.8 fork into some folder DOTTY_HOME

$ (cd DOTTY_HOME/.. && git clone git@github.com:obkson/dotty.git)

Step 2:

Build compiler and install / copy required artefacts into the local repo

$ ./install_deps.sh DOTTY_HOME

NOTE! If re-compiling the local dotty fork, the local maven cache must be purged before the change will take effect. To facilitate this, uncommend the last line in install_deps.sh:

rm -r ~/.m2/repository/ch/epfl/lamp

Step 3:

Compile and package

mvn clean package

Run Tests

TODO... at the moment unclear how to run junit tests with maven using local version of Dotty...

Compile and run executable example program

mvn clean compile assembly:single
java -jar target/dotty-records_0.8-0.1-jar-with-dependencies.jar

About

Polymorphic extensible records with structural subtyping for Dotty

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published