Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Author here. If you've got any questions, I'd be happy to answer.

I'm a little sad that this got posted before I had a chance to write a good tutorial and upgrade the documentation. So, imagine that this project was just about to step into the shower when Hacker News came knocking on the front door. "A package? I like packages but.. damn it. I'm not presentable yet."

All the code in compiled binaries is in Myrddin, other than a few assembly stubs: There is no dependency on any installed library, although you can bind to C if you want -- for example, http://git.eigenstate.org/ori/cbind-example.git/tree/

But everything else is in Myrddin. For example, memory allocations: https://github.com/oridb/mc/blob/master/lib/std/alloc.myr

Or regexes: https://github.com/oridb/mc/tree/master/lib/regex

The various system calls are all here: https://github.com/oridb/mc/tree/master/lib/sys

And so on.

If you want to play with it, there's a playground here: http://eigenstate.org/myrddin/playground

And there's even a neat little regex debugger it ships with that I find useful:

    $ redump '[a-z]+'
    abc123
    Match failed:
    	abc123
    	~~~^


"Are you tired of your compiler Just Working? Are you tired of having your standard library having the basic functionality you need? Do you long for the days when men were men, and debuggers operated on the assembly level? If so, Myrddin is for you."

That was awesome. Either you're delivering a refreshing amount of honesty or like to under-promise then over-deliver like me. ;)


It’s a paraphrase of Linus Torvalds’ announcement of Linux in 1991: https://groups.google.com/forum/#!msg/comp.os.minix/4995SivO...


"Why? Hurd will be out in a year"

Funny thing about that....


...is that I could still include the statement in a release of my own. And then you could. And another could.

I might have a RISC-V laptop before they finish Hurd. It still won't even run on RISC-V.


Didn't know about that. Funny shit.


Ori delivers refreshing honesty and over delivers, no or needed ;).


Lol I like that!


Have you used the D programming language at all? http://dlang.org/

If so, does myrddin have any benefits (current or planned)?


Funny you should ask. The project I'm on at work is written in D, and actually had Andrei working on it at one point.

The two languages are very different. D feels very much like an attempt to resolve the warts of C++ and extend its strengths, and it does a good job of that. If you like C++, you'll probably like D, although in many ways I feel that it has an immature implementation. (That's a rant for a different time, and it's not like Myrddin is more mature.)

Myrddin is going in a different direction, I think. It's far simpler than D. The best example of this is probably generics, where in D, they're seen as an opportunity to do complex metaprogramming on types, and idiomatic D uses generics. In Myrddin, they mean that your function is not allowed to care at all about types.

If you like both C and the ML family of languages, I think there's a good chance you'll like Myrddin.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: