SEsephoric·Oct 1, 2018Submission
14 points · Open discussionoridb
mc
C2014–2018
oridb / mc
mc
Myrddin Compiler
3Distinct people
10Mentions
0Explicit recommenders
411GitHub stars
What to know before exploring
What it is
Myrddin Compiler
GitHub
Where it is used
No documented product use has been verified yet.
What people are saying
No recommendation phrase was found in the indexed comments.
No classified warning is attached to this page. Read the discussions before treating silence as approval.
Also in these discussions
No other repository is repeatedly linked in the same discussions.
This week on Hacker News
Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 3:03:16 PM UTC.
No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.
Mentions over time
HN mentions by year10 dated mentions
Observed mentions: 2014-01-22 16:38:03 UTC to 2018-10-01 22:26:28 UTC.
Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.
View mention counts and date ranges
| Period | Start (UTC) | End (exclusive, UTC) | Mentions | Submissions | Comments |
|---|---|---|---|---|---|
| 2014 | 2014-01-01 00:00:00 UTC | 2015-01-01 00:00:00 UTC | 1 | 0 | 1 |
| 2015 | 2015-01-01 00:00:00 UTC | 2016-01-01 00:00:00 UTC | 1 | 0 | 1 |
| 2016 | 2016-01-01 00:00:00 UTC | 2017-01-01 00:00:00 UTC | 7 | 0 | 7 |
| 2017 | 2017-01-01 00:00:00 UTC | 2018-01-01 00:00:00 UTC | 0 | 0 | 0 |
| 2018 | 2018-01-01 00:00:00 UTC | 2019-01-01 00:00:00 UTC | 1 | 1 | 0 |
What Hacker News says
10 sourcesOne of the goals I have is to keep the required runtime absolutely minimal, as well -- I'm ok with the compiler inserting some user-defined code in the appropriate places to initialize or release values, but I'd like to avoid growing the required code in https://github.com/oridb/mc/tree/master/rt unless it's absolutely necessary.
And yes, that ~60 lines per platform is really all that's needed. (And actually, I should be able to merge more of it for SysV platforms.)
So, I've thought about a GC, but I'd really prefer not to have it.
In Crystal: Fast as C, Slick as Ruby> That said, my few wishes for a C replacement would be generics, methods, and namespacing.
I think my pet language (Myrddin) actually has you almost covered. It doesn't have methods, but it does have traits, which allow similar things at compile time.
https://github.com/oridb/mc
You have an example of generics and traits here, in the std namespace:
https://github.com/oridb/mc/blob/master/lib/std/htab.myr
https://github.com/oridb/mc/blob/master/lib/std/iterutil.myr
In Introduction to the Zig Programming LanguageThe compiler on github https://github.com/oridb/mc.
In Myrddin: a systems language that is powerful and funAuthor 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://githu
Read the rest
b.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
~~~^
> Anyways, I’ve been learning some interesting things about OSX that I’ll be sharing soon.
Nice, that should be amusing to read. OSX is a very strange system -- it has two system call APIs (BSD, and Mach), which respectively have some very odd holes. Some of the OSX syscalls return values split between 32 bit registers instead of in a single 64 bit register, while others don't. Some of them return things by value, even though the C API specifies out parameters. And so on.
I've spent way too much time trying to figure out how this stuff works on OSX when writing Myrddin (https://github.com/oridb/mc). I've still got quite a bit more to do so that I can finish implementing libthread on OSX.
In Intro to Debugging X86-64 AssemblyI have recently started using myrddin (compiler here https://github.com/oridb/mc ) as a c replacement.
It is still changing fast but I think it could be great for writing games in the future.
In C or C++ for my game engine?You should also checkout myrddin, a new systems programming language sharing many features with rust and C.
github: https://github.com/oridb/mc
website: http://eigenstate.org/myrddin/
In Show HN: A programming language I've been working on called ArkThe level of dedication is required is really high. I stumbled upon https://github.com/oridb/mc and found my new favourite language written entirely by one person over the course of many years.
In So You Want to Write Your Own Language (2014)Bowing to popular demand, I also have a github mirror: https://github.com/oridb/mc/
In Myrddin: new programming language for coding close to the metal