Scala has dynamic compilation? -
i have found many pages saying scala doesn't have dynamic compilation feature, whereas have achieved same using twitter util library. wrote scala code calling eval
function mentioned lib , create scala class @ runtime.
example val obj = eval[myscalatrait](new file("flat file having scala code")))
can please tell me dynamic compilation 1 better scala or groovy. want keep scripting part in flat file
, @ run time create class. looks both solving problem, want see would best?
i can't tell groovy, i'm using dynamic compilation of scala code in several projects. works flawlessly, compiler may take bit of warm-up time, don't expect give fantastic low latencies in "real-time" situations.
Comments
Post a Comment