User loginNavigation 
Ela, dynamic functional languageHi, The language is called Ela. It lives here. Ela is an impure functional language with dynamic typing. Its syntax is heavily inspired by MLs/Haskell. Ela is strict by default but does support nonstrict evaluation as well. Some features:
let x = `Some 12 //Here we "tag" an integer value with the "Some" tag let (`Some y) = x //You can pattern match it let res = x + y //You still can treat the tagged value as an integer Thunks in Ela are transparent  no need to explicitely call Force function or the like: let t = (& 2 + 2) let res = t * 2 Lazy lists are constructed using thunks. Here is an example of infinite list filtering: let lst = [1,4..] let filter' p x::xs  p x = x :: (& filter' p xs);  else = filter' p xs; _ [] = [] let nlst = filter' (>10) lst Can do both eager and lazy lists: let lst1 = [1,5..25] //[1,5,9,13,17,21,25] let lst2 = [1,3..] //infinite list [1,3,5,7..] let lst3 = [x + y @ (x,y) < [(1,2)..(4,5)]  x > 2] //[7,9] Ela type system is based on traits and all operations are abstract. For example you can fold strings like lists (but strings are not lists in Ela) and sum tuples: let foldl f z x::xs = foldl f (f z x) xs; _ z [] = z let reverse = foldl (flip (::)) [] let revStr = reverse "Hello, world!" let res = (1, 2) + (3, 4) //equals to (4, 6) Modules are first class values in Ela: open Math open SymbolMath let doSum x y mod = mod.sum x y let res1 = Math < doSum 2 2 let res2 = SymbolicMath < doSum 2 2 Ela is implemented in 100% .NET/C# and supports Mono. Currently it uses its own backend  stack based virtual machine. There is some documentation available for those who want to know more. And there are binary releases (no installation required). There is also an online interactive console available here. It supports all the language features except of an ability to use external modules. I am opened to critics, questions, suggestions :) Thanks. By vorov2 at 20110213 12:54  LtU Forum  previous forum topic  next forum topic  other blogs  5775 reads

Browse archivesActive forum topics 
Recent comments
2 hours 14 min ago
4 hours 18 min ago
5 hours 36 min ago
6 hours 21 min ago
6 hours 45 min ago
6 hours 54 min ago
7 hours 54 min ago
8 hours 15 min ago
9 hours 26 min ago
17 hours 59 min ago