[9fans] New Language [Myrddin] On Plan 9/amd64

2015-01-04 Thread Ori Bernstein
Myrddin is a language that I put together for fun, but which has developed delusions of usefulness. It's a complete reinvention of the wheel, from the ground up. Some of the major things you'll notice about it: - Type inference. Types are inferred across the whole program. - Algebraic data

Re: [9fans] New Language [Myrddin] On Plan 9/amd64

2015-01-04 Thread Ryan
That looks really neat! One question: are runtime bound checks really necessary? I would at least like a seperate release mode that gets rid of them. Writing a kernel with bound checks would be a mixed nightmare! FYI, please tell me I'm not the only person reminded of Rust... Ori Bernstein wro

Re: [9fans] New Language [Myrddin] On Plan 9/amd64

2015-01-04 Thread erik quanstrom
i am getting a build error: ../myrbuild/6.out -C../6/6.out -M../muse/6.out -l sys sys.myr systypes.myr ifreq.myr syscall.s util.s ../6/6.out systypes.myr ../6/6.out sys.myr /tmp/tmp7109d3e2d-sys.myr.s:2 syntax error, last name: zd nam: LNAME offset.( pointer ) saw ;

Re: [9fans] New Language [Myrddin] On Plan 9/amd64

2015-01-04 Thread Ori Bernstein
Ah, I forgot about that: This is a bug with Ape's printf; It's missing the %z specifier to print size_ts. The below patch fixes it, although I seem to remember that 9atom has a rewritten ape -- I'm not sure if this will apply: diff -r 40f67c7db147 sys/src/ape/lib/ap/stdio/vfprintf.c --- a/sys/sr

Re: [9fans] New Language [Myrddin] On Plan 9/amd64

2015-01-04 Thread Ori Bernstein
I could do it pretty easily, although I'd be curious to see what you think makes it harder to write a kernel with bounds checks. At least for me, I'd rather keep them the same. At least on with Intel's current out of order processors, they are shockingly cheap, and can be made much cheaper with (n

Re: [9fans] New Language [Myrddin] On Plan 9/amd64

2015-01-04 Thread Skip Tavakkolian
interesting; i especially liked the "Why Myrddin" section :) i didn't see the obligatory 9P implementation in it; is there one? On Sun Jan 04 2015 at 1:07:47 AM Ori Bernstein wrote: > Myrddin is a language that I put together for fun, but which has developed > delusions of usefulness. It's a co

Re: [9fans] New Language [Myrddin] On Plan 9/amd64

2015-01-04 Thread Ori Bernstein
Not yet. I haven't needed a 9p implementation yet; no file servers have bubbled to the top of my queue of code to write at this point, and I'm wary of writing APIs without at least some user in mind. On Sun, 04 Jan 2015 19:51:38 + Skip Tavakkolian wrote: > interesting; i especially liked th

Re: [9fans] New Language [Myrddin] On Plan 9/amd64

2015-01-04 Thread Winston Kodogo
Hmm. Didn't Tolstoy write a short story called "How Many Languages does a Man Need"? On 4 January 2015 at 21:59, Ori Bernstein wrote: > Myrddin is a language that I put together for fun, but which has developed > delusions of usefulness. It's a complete reinvention of the wheel, from the > groun

Re: [9fans] New Language [Myrddin] On Plan 9/amd64

2015-01-04 Thread Ori Bernstein
Thanks to Erik, who helped with squashing a decent number of bugs. On Sun, 4 Jan 2015 00:59:00 -0800 Ori Bernstein wrote: > Myrddin is a language that I put together for fun, but which has developed > delusions of usefulness. It's a complete reinvention of the wheel, from the > ground up. Some o