Discuss Scratch

Haz-_-
Scratcher
500+ posts

Convert

Is there any way the scracth team could convert java scripts to scratch?

Last edited by Haz-_- (Jan. 9, 2018 07:19:28)

XxTAZxX1234
Scratcher
39 posts

Convert

YA
Haz-_-
Scratcher
500+ posts

Convert

Aqua-sempai wrote:

But that would be slow
Exactly its slow so we need a faster one!

Last edited by Haz-_- (Jan. 9, 2018 08:03:26)

Sigton
Scratcher
1000+ posts

Convert

Aqua-sempai wrote:

Haz-_- wrote:

Aqua-sempai wrote:

But that would be slow
Exactly its slow so we need a faster one!
You can't really make a fast interpeter, but making a fast compiler (my first suggestion) is much easier.
But you can't make a compiler in Scratch.

Sigton
PrincessFlowerTV
Scratcher
1000+ posts

Convert

XxTAZxX1234 wrote:

YA
Please explain what you mean.
Sigton
Scratcher
1000+ posts

Convert

Sigton wrote:

But you can't make a compiler in Scratch.

Sigton
Thought I'd expand on that a bit.

A compiler turns a high level language, something that we can easily read and use, into machine code; instructions that can be directly run by the computers processor. So a compiler creates another program that can be run directly, without another program reading the code (an interpreter). Now, in Scratch, the equivalent would be a program that turns instructions into its own Scratch project which isn't possible.

Technically, this doesn't bean relevance to the OP; since they are wanting JS converted to Scratch. This couldn't be achieved properly with an interpreter or compiler (made in Scratch, ones made in other programming languages may work.)

Sigton
Haz-_-
Scratcher
500+ posts

Convert

Ok got it

Powered by DjangoBB