Sign in to follow this  
dudedbz1

Logo - What interpreter?

Recommended Posts

Hi all! I'm in middle school and I'm doing a Pong clone. Now a friend can help out by drawing graphics in logo, as he learned that. We are not going to buy anything, so can you point me out to some logo interpreters? Good ones? Free ones? Thanks. P.S. I tried logo, but I never liked it, and never will. Rock on C++!

Share this post


Link to post
Share on other sites
Is it possible for him to export it to a more accessable format such as bmp, jpg, or something else? Cause Logo is kind of an obscure format (in fact I've never heard of it). If you can change the format it will be easier to find 'interpriters'.

Share this post


Link to post
Share on other sites
Quote:
Original post by Axiverse
Is it possible for him to export it to a more accessable format such as bmp, jpg, or something else? Cause Logo is kind of an obscure format (in fact I've never heard of it). If you can change the format it will be easier to find 'interpriters'.


Uh, Logo is a Lisp-like programming language, not an image format...

EDIT: In response to the OP's question:
Here is Wikipedia's page on Logo implementations. Also, try not to be so closed-minded about non-C++ languages, they may grow on you.

Share this post


Link to post
Share on other sites
Quote:
Original post by Roboguy
Quote:
Original post by Axiverse
Is it possible for him to export it to a more accessable format such as bmp, jpg, or something else? Cause Logo is kind of an obscure format (in fact I've never heard of it). If you can change the format it will be easier to find 'interpriters'.


Uh, Logo is a Lisp-like programming language, not an image format...


Agreed. Logo is a kind of language for graphics. You can always export what you 'draw' with it to .jpg, .bmp, so on. And by interpreters, I mean something that will translate the statments, since as far as I know logo does not go through the compilation process. So, anyone have any good ideas?

P.S. Logo:

fd 100
lt 90
fd 100
lt 90
fd 100
lt 90
fd 100

;All this draws a square
;I believe this is the way for comments, no?


//Edit: I am not close-minded to C - based languages, its just that I dont like logo, it seems... how can I describe it... 'not as powerful'. C++ has many things in it; classes, pointers, so on...

//Edit2: I saw your edit, thanks.

Share this post


Link to post
Share on other sites
Quote:
Original post by dudedbz1
//Edit: I am not close-minded to C - based languages, its just that I dont like logo, it seems... how can I describe it... 'not as powerful'. C++ has many things in it; classes, pointers, so on...


I believe you can simulate classes and possibly pointers (pointers are not usually needed for things in higher-level languages such as Logo, anyway).

Share this post


Link to post
Share on other sites
Quote:
Original post by Roboguy
Quote:
Original post by dudedbz1
//Edit: I am not close-minded to C - based languages, its just that I dont like logo, it seems... how can I describe it... 'not as powerful'. C++ has many things in it; classes, pointers, so on...


I believe you can simulate classes and possibly pointers (pointers are not usually needed for things in higher-level languages such as Logo, anyway).


How would you rewrite this:

std::vector<Image*> AllGraphics;

AllGraphics.reserve(NUM_IMAGES);

for (int i = 0; i < NUM_IMAGES; i++)
AllGraphics.push_back(new Image);

AllGraphics[P1_PADDLE]->Handle(P1_PADDLE, AllGraphics);

...

// At the end

for (int i = 0; i < AllGraphics.size(); i++)
delete AllGraphics[i];


Logo is not that powerful, it doesnt interact directly with the system.

Share this post


Link to post
Share on other sites
Quote:
Original post by dudedbz1
Quote:
Original post by Roboguy
Quote:
Original post by dudedbz1
//Edit: I am not close-minded to C - based languages, its just that I dont like logo, it seems... how can I describe it... 'not as powerful'. C++ has many things in it; classes, pointers, so on...


I believe you can simulate classes and possibly pointers (pointers are not usually needed for things in higher-level languages such as Logo, anyway).


How would you rewrite this:

std::vector<Image*> AllGraphics;

AllGraphics.reserve(NUM_IMAGES);

for (int i = 0; i < NUM_IMAGES; i++)
AllGraphics.push_back(new Image);

AllGraphics[P1_PADDLE]->Handle(P1_PADDLE, AllGraphics);

...

// At the end

for (int i = 0; i < AllGraphics.size(); i++)
delete AllGraphics[i];


I don't know the Logo syntax, but you could do it by creating a list of graphics, adding functions to it (Logo is a functional language) which does what ever the Handle function does, then calling them.
Quote:

Logo is not that powerful, it doesnt interact directly with the system.


Powerful usually means high-level (more abstraction between the language and the hardware, and more possible user defined abstractions), not low-level.

Share this post


Link to post
Share on other sites
Quote:
Original post by Roboguy
Quote:
Original post by dudedbz1
Quote:
Original post by Roboguy
Quote:
Original post by dudedbz1
//Edit: I am not close-minded to C - based languages, its just that I dont like logo, it seems... how can I describe it... 'not as powerful'. C++ has many things in it; classes, pointers, so on...


I believe you can simulate classes and possibly pointers (pointers are not usually needed for things in higher-level languages such as Logo, anyway).


How would you rewrite this:

std::vector<Image*> AllGraphics;

AllGraphics.reserve(NUM_IMAGES);

for (int i = 0; i < NUM_IMAGES; i++)
AllGraphics.push_back(new Image);

AllGraphics[P1_PADDLE]->Handle(P1_PADDLE, AllGraphics);

...

// At the end

for (int i = 0; i < AllGraphics.size(); i++)
delete AllGraphics[i];


I don't know the Logo syntax, but you could do it by creating a list of graphics, adding functions to it (Logo is a functional language) which does what ever the Handle function does, then calling them.
Quote:

Logo is not that powerful, it doesnt interact directly with the system.


Powerful usually means high-level (more abstraction between the language and the hardware, and more possible user defined abstractions), not low-level.


Whatever, this wasnt the question anyways. Just take it this way, I am not doing stuff in logo, I am doing stuff in C++; I am just in search of good logo interpreters.

Share this post


Link to post
Share on other sites
Quote:
Original post by dudedbz1
Quote:
Original post by Roboguy
Quote:
Original post by dudedbz1
Quote:
Original post by Roboguy
Quote:
Original post by dudedbz1
//Edit: I am not close-minded to C - based languages, its just that I dont like logo, it seems... how can I describe it... 'not as powerful'. C++ has many things in it; classes, pointers, so on...


I believe you can simulate classes and possibly pointers (pointers are not usually needed for things in higher-level languages such as Logo, anyway).


How would you rewrite this:

std::vector<Image*> AllGraphics;

AllGraphics.reserve(NUM_IMAGES);

for (int i = 0; i < NUM_IMAGES; i++)
AllGraphics.push_back(new Image);

AllGraphics[P1_PADDLE]->Handle(P1_PADDLE, AllGraphics);

...

// At the end

for (int i = 0; i < AllGraphics.size(); i++)
delete AllGraphics[i];


I don't know the Logo syntax, but you could do it by creating a list of graphics, adding functions to it (Logo is a functional language) which does what ever the Handle function does, then calling them.
Quote:

Logo is not that powerful, it doesnt interact directly with the system.


Powerful usually means high-level (more abstraction between the language and the hardware, and more possible user defined abstractions), not low-level.


Whatever, this wasnt the question anyways. Just take it this way, I am not doing stuff in logo, I am doing stuff in C++; I am just in search of good logo interpreters.


Actually, you did ask that question. Anyway, just try not to judge a language by it's cover and give it a chance.

Also, this appears to be a free Logo interpreter for Windows.

Good luck! [smile]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this