Jump to content

Recommended Posts

Ah, thanks. That's the kind of feedback I need.

 

Next up is an update of the underlying runtime in this executable. I will let you know when that is in place, so we can see if Windows and FreeBSD improve.

Share this post


Link to post
Share on other sites
1 hour ago, ilmenit said:

compiler that can be used locally - at least for me it's a very poor workflow when to compile even "hello world" I need to send it to Internet.

Do you program without an Internet connection?

Share this post


Link to post
Share on other sites
43 minutes ago, Kaj de Vos said:

Do you program without an Internet connection?

Well, I do of course, but I don't want to have to just to write programs. My opinion.

Share this post


Link to post
Share on other sites

I understand that, and I agree. It just won't be possible with Meta for a considerable time to come. Meta will achieve almost unprecedented platform reach soon, but the other side of that is that it needs many different, highly complex and hard to handle existing C toolchains.

Share this post


Link to post
Share on other sites

Well, if its a temporary situation, that's understandable.

Your desire to cover many toolchains will keep you busy for a long time. Consider an adapter layer, something like maybe what LLVM does, meaning a universal intermediate compilation that then gets run through a particular adapter that would then express the correct source and drive the toolchain.

Share this post


Link to post
Share on other sites

Well, Meta is that adapter layer, and C is the intermediate language. Even if have already spent a large amount of time on Meta, it is still a limited intermediate layer between REBOL and C.

Share this post


Link to post
Share on other sites

Ok....well, you said "it needs many different, highly complex and hard to handle existing C toolchains". That was what I was talking about. If you got it covered design-wise already,, great.

Share this post


Link to post
Share on other sites

I am being greatly rewarded for implementing a C back-end, because I can use many great C toolchains and libraries. But there is a wide range of them, which is the point, so I still need to integrate them all.

Share this post


Link to post
Share on other sites
On 11/2/2021 at 6:12 PM, drac030 said:

I tried it on an AMD64 PC running FreeBSD 10.1. The result: illegal system call (core dumped).

It turns out you need FreeBSD 12 or newer. Are you able to test on that?

 

I worked out all the required versions and added them to the website:

https://language.metaproject.frl/#get

 

For those who tried on Windows: does Meta output text properly, or does the cursor in the command window not advance properly, so that text is overwritten?

  • Like 1

Share this post


Link to post
Share on other sites

Ubuntu 18.04

 

./compile.ape rainbow.meta 
Compiling file rainbow.meta

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   954  100   521  100   433    590    490 --:--:-- --:--:-- --:--:--  1080

Result is in file program.xex

works :]

 

  • Thanks 1

Share this post


Link to post
Share on other sites

I tried Meta but failed. I didn't get very far without the Atari specific examples. One rainbow example is far too little.
 

Try port this:

 

https://github.com/tebe6502/Mad-Pascal/tree/master/samples/a8

 

https://github.com/KarolS/millfork/tree/master/examples/a8

 

https://github.com/zbyti/k65-playground/tree/main/src/a8

 

not all of them, of course, but those that are now been possible.

Edited by zbyti

Share this post


Link to post
Share on other sites
1 hour ago, zbyti said:

I tried Meta but failed. I didn't get very far without the Atari specific examples. One rainbow example is far too little.

Currently fixing a regression that blocks the others.

 

1 hour ago, zbyti said:

I've been looking at those. It seems to me it's a nice task for you. 😜

Share this post


Link to post
Share on other sites
1 hour ago, matosimi said:

This language looks almost as good as BS

I watched the video on BS and I must say I have to agree :)

 

Share this post


Link to post
Share on other sites

Don't forget about Mad Pascal ;)

 

var
  RTCLOK : byte absolute $14;
  COLPF2 : byte absolute $D018;
  COLBK  : byte absolute $D01A;
  WSYNC  : byte absolute $D40A;
  VCOUNT : byte absolute $D40B;
  a      : byte absolute $e0;

begin
  repeat
    a := RTCLOK + VCOUNT shl 1;
    wsync := a; COLPF2 := a; COLBK := a;
  until false;
end.
; --- RepeatUntilProlog
l_0061

; optimize OK (rainbow.pas), line = 11

	lda VCOUNT
	asl @
	add RTCLOK
	sta A

; optimize OK (rainbow.pas), line = 12

	sta WSYNC
	sta COLPF2
	sta COLBK

; optimize OK (rainbow.pas), line = 13

	jmp l_0061

 

Edited by zbyti

Share this post


Link to post
Share on other sites
On 11/5/2021 at 5:21 PM, Kaj de Vos said:

It turns out you need FreeBSD 12 or newer. Are you able to test on that?

No, and my own FreeBSD box is an i386, so even if I upgraded the system to 12+, it would not help much, I guess. But do not let it bother you, I am writing my stuff exclusively in assembler anyways and I prefer to do that directly on the target machine, so I am only marginally interested in high-level programming languages, the less if these are cross-compilers only.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...