On Mar 20, 3:56 pm, pirx <
pawel.kalinow...@gmail.com> wrote:
> Hello!
>
> I am looking at Atalan with a real interest as it seems to be THE
> language I was looking for. And as long as I am doing simple stuff
> everything works like I expected, but when I try to move a bit
> further, I am stuck. I suppose I do not understand the idea and
> therefore I am trying to do things the wrong way.
>
> This letter is to ask for some guidance and possibly an explanation
> how do things correctly.
Thanks.
I'm trying to create a language that will be a real fun to work with.
Atalan is in dire need of users. I believe it is currently adequately
mature considering features
and very good considering optimizations, but there are lot of rough
edges considering
errors.
I will try to provide you with as much help as possible. Please feel
free to ask for help or post
an error to source code repository (I know you know how :-) quickly.
>
> An example proc:
>
> s@$8000:array(0..39,0..23) of byte
>
> tst:proc x,y:byte >val:byte =
> val=s(x-1,y-1)
>
> The above proc does not compile with a message:
> "Internal error: no rule for translating instruction
> sub _22, _24, 1"
That would be an error. I would not program it differently. This will
probably have something to do with
relatively new optimization of passing the arguments in registers.
I will check it out.
I am trying to implement as many optimizations as possible to generate
the best code possible. Unfortunately optimizations
are very prone to introducing errors in generated code (often
resulting with the internal error mentioned above).
I recently created con6502 platform to enable creating of unit tests
and help me fight this problem, so I hope the situation will
improve in th future.
>
> This version:
> tst:proc x,y:byte >val:byte =
> val=s(x+1,y+1)
>
> Gives:
> "Internal error: no rule for translating instruction
> let _49, s((_22,_24))"
>
> I suppose it is rather my abuse of the language. Are values passed to
> proc unmodifable? I am misunderstanding something?
>
> BTW - "Procedures" section of the Reference seems to be a bit
> misleading with "<" and ">". Maybe temporarily you could move language
> Reference to Wiki, I would be able to mend some pieces myself.
> Additionally the language screams for more examples, e.g. tere are
> very few (1?) examples of working proc on the page.
>
> Keep it up!!!
I certainly will :-) I will give you access to source code repository,
so you can improve documentation (or anything else) directly.
That would be great think.
>
> pawel /pirx/ kalinowski