digitalmars.D - OT: Morfa - an interesting (toy?) language that claims to be
- rsw0x (2/2) Oct 20 2015 http://morfalang.org/
- Daniel N (4/6) Oct 20 2015 Since they were inspired by D, I cannot fathom that they went
- Kagamin (3/3) Oct 20 2015 Not based on D much. Declarations from Rust; if-else ternary
- Ola Fosheim =?UTF-8?B?R3LDuHN0YWQ=?= (8/11) Oct 20 2015 They have "static if" though:
- Ola Fosheim =?UTF-8?B?R3LDuHN0YWQ=?= (7/16) Oct 20 2015 Well, they also seem to include dmd source code in their source
- Idan Arye (5/7) Oct 20 2015 Looks like LLVM makes such things possible - there is also one
- Ola Fosheim =?UTF-8?B?R3LDuHN0YWQ=?= (8/15) Oct 21 2015 Thanks, this looks interesting. Have you tried it? Maybe it could
http://morfalang.org/ I thought the user-defined operators were pretty neat honestly.
Oct 20 2015
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
Not based on D much. Declarations from Rust; if-else ternary operator from somewhere; import, static if, assert and traits
Oct 20 2015
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 traitsThey 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
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: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.Not based on D much. Declarations from Rust; if-else ternary operator from somewhere; import, static if, assert and traitsThey 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.
Oct 20 2015
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
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:Thanks, this looks interesting. Have you tried it? Maybe it could be useful for debugging.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...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