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  6985 reads

Browse archivesActive forum topics 
Recent comments
2 hours 48 min ago
13 hours 46 min ago
19 hours 35 min ago
19 hours 55 min ago
20 hours 25 min ago
21 hours 11 min ago
21 hours 35 min ago
22 hours 3 min ago
23 hours 36 min ago
1 day 1 min ago