www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - OT: Morfa - an interesting (toy?) language that claims to be

reply rsw0x <anonymous anonymous.com> writes:
http://morfalang.org/

I thought the user-defined operators were pretty neat honestly.
Oct 20 2015
next sibling parent Daniel N <ufo orbiting.us> writes:
On Tuesday, 20 October 2015 at 08:04:24 UTC, rsw0x wrote:
 http://morfalang.org/

 I thought the user-defined operators were pretty neat honestly.
Since they were inspired by D, I cannot fathom that they went with the C++ "template < AType >" style, but other than that, I love it! Thanks for sharing.
Oct 20 2015
prev sibling parent reply Kagamin <spam here.lot> writes:
Not based on D much. Declarations from Rust; if-else ternary 
operator from somewhere; import, static if, assert and traits 

Oct 20 2015
parent reply Ola Fosheim =?UTF-8?B?R3LDuHN0YWQ=?= writes:
On Tuesday, 20 October 2015 at 10:04:40 UTC, Kagamin wrote:
 Not based on D much. Declarations from Rust; if-else ternary 
 operator from somewhere; import, static if, assert and traits 

They have "static if" though: https://github.com/imapp-pl/morfa-examples But D is also rather close to other languages, so... I guess we just have to believe them when they state that they felt inspired by D. What is interesting about Morfa is that they have a jitted REPL. That's a significant advantage worth pursuing.
Oct 20 2015
next sibling parent Ola Fosheim =?UTF-8?B?R3LDuHN0YWQ=?= writes:
On Tuesday, 20 October 2015 at 10:22:56 UTC, Ola Fosheim Grøstad 
wrote:
 On Tuesday, 20 October 2015 at 10:04:40 UTC, Kagamin wrote:
 Not based on D much. Declarations from Rust; if-else ternary 
 operator from somewhere; import, static if, assert and traits 

They have "static if" though: https://github.com/imapp-pl/morfa-examples But D is also rather close to other languages, so... I guess we just have to believe them when they state that they felt inspired by D.
Well, they also seem to include dmd source code in their source tree, so I guess they are literally inspired... Just explore their bitbucket repository: morfa / morfa / ldc / dmd Interesting! Too bad they go GPL, otherwise a feature backport might have been possible.
Oct 20 2015
prev sibling parent reply Idan Arye <GenericNPC gmail.com> writes:
On Tuesday, 20 October 2015 at 10:22:56 UTC, Ola Fosheim Grøstad 
wrote:
 What is interesting about Morfa is that they have a jitted 
 REPL. That's a significant advantage worth pursuing.
Looks like LLVM makes such things possible - there is also one for C++(https://github.com/vgvassilev/cling). Could be nice to have a LDC-based REPL...
Oct 20 2015
parent Ola Fosheim =?UTF-8?B?R3LDuHN0YWQ=?= writes:
On Tuesday, 20 October 2015 at 13:43:04 UTC, Idan Arye wrote:
 On Tuesday, 20 October 2015 at 10:22:56 UTC, Ola Fosheim 
 Grøstad wrote:
 What is interesting about Morfa is that they have a jitted 
 REPL. That's a significant advantage worth pursuing.
Looks like LLVM makes such things possible - there is also one for C++(https://github.com/vgvassilev/cling).
Thanks, this looks interesting. Have you tried it? Maybe it could be useful for debugging.
 Could be nice to have a LDC-based REPL...
Yes, REPL is a killer-feature IMHO. The syntax probably have to be simplified for it to be truly useful though, (typing "auto" and "immutable" is boring). Being able to gradually build an app by "scripting" in native code can be useful in many scenarios, like when designing games.
Oct 21 2015