Discuss Scratch

GP1
Scratcher
100+ posts

Scratch compiler beta test

@procd You should put this project on Github or Bitbucket. The community can point out issues with the compiler, and help fix the issues as well.

Blaze349
Scratcher
1000+ posts

Scratch compiler beta test

where is the dowload link
PlasmaKairo
Scratcher
100+ posts

Scratch compiler beta test

Blaze349 wrote:

where is the dowload link
Please read the whole first page of this thread, it's not going to be released until beta testing is finished.


mactro
Scratcher
28 posts

Scratch compiler beta test

Could you please show the source code, or tell how do you extract blocks from sb2 file? I would like to write my compiler that would produce a program for a microcontroller.
drmcw
Scratcher
1000+ posts

Scratch compiler beta test

mactro wrote:

Could you please show the source code, or tell how do you extract blocks from sb2 file? I would like to write my compiler that would produce a program for a microcontroller.
This should help?.

Last edited by drmcw (Feb. 27, 2014 18:47:23)


10 !
ScratchVaders or Galaga?
Maybe Eliza can help you decide?
procd
Scratcher
100+ posts

Scratch compiler beta test

drmcw wrote:

mactro wrote:

Could you please show the source code, or tell how do you extract blocks from sb2 file? I would like to write my compiler that would produce a program for a microcontroller.
This should help?.

That was what I used. Feel free to ask any questions, but it's a very good reference.
mactro
Scratcher
28 posts

Scratch compiler beta test

Thank you for the link! That will be useful.
LDDestroier
Scratcher
14 posts

Scratch compiler beta test

Hey, I'd like you to compile this thing I made, quickly. It's called Bolt Chopper, and you are a chopper that fires bolts at an enemy. I made it. Thanks!

http://scratch.mit.edu/projects/21507243/
CodeLegend
Scratcher
500+ posts

Scratch compiler beta test

LDDestroier wrote:

Hey, I'd like you to compile this thing I made, quickly. It's called Bolt Chopper, and you are a chopper that fires bolts at an enemy. I made it. Thanks!

http://scratch.mit.edu/projects/21507243/
I don't think it's available to the public yet. (I wish it was.)
procd
Scratcher
100+ posts

Scratch compiler beta test

LDDestroier wrote:

Hey, I'd like you to compile this thing I made, quickly. It's called Bolt Chopper, and you are a chopper that fires bolts at an enemy. I made it. Thanks!

http://scratch.mit.edu/projects/21507243/

If you check out the beta test project then you'll see that I'm in the middle of some changes at the moment trying to get the graphics effects converted to hlsl (high level shader language). Hopefully be out the woods fairly soon then I'll compile your project for you.
procd
Scratcher
100+ posts

Scratch compiler beta test

CodeLegend wrote:

LDDestroier wrote:

Hey, I'd like you to compile this thing I made, quickly. It's called Bolt Chopper, and you are a chopper that fires bolts at an enemy. I made it. Thanks!

http://scratch.mit.edu/projects/21507243/
I don't think it's available to the public yet. (I wish it was.)

I'll try and compile any of your projects if you request it. Now is not such a good time if you read the previous comment though!
CodeLegend
Scratcher
500+ posts

Scratch compiler beta test

procd wrote:

CodeLegend wrote:

LDDestroier wrote:

Hey, I'd like you to compile this thing I made, quickly. It's called Bolt Chopper, and you are a chopper that fires bolts at an enemy. I made it. Thanks!

http://scratch.mit.edu/projects/21507243/
I don't think it's available to the public yet. (I wish it was.)

I'll try and compile any of your projects if you request it. Now is not such a good time if you read the previous comment though!
I'll tell you if I want any! I just liking having it myself, so that I can compile, make changes, compile again, etcetera.
Beminfire
Scratcher
22 posts

Scratch compiler beta test

Can I have a download link on GitHub or something?
PrincessPanda_test_
Scratcher
1000+ posts

Scratch compiler beta test

What if I need to sell my project if it's converted to EXE with this one?
And it's not a true beta test because a beta test is like a public test, not a private test.

GrannyCookies
Scratcher
100+ posts

Scratch compiler beta test

wow.

Sonickyle
Scratcher
1000+ posts

Scratch compiler beta test

PrincessPanda_test_ wrote:

What if I need to sell my project if it's converted to EXE with this one?
And it's not a true beta test because a beta test is like a public test, not a private test.
There can be private betas. I'm in the Distance private beta. It's upto the creator/publisher/etc. if they want their project to be public or not.

No I don't make projects anymore. I left some time ago.
I only check the forums every now and then, but other than that consider me retired.
gtoal
Scratcher
1000+ posts

Scratch compiler beta test

DigiTechs wrote:

What kind of files does this use? .sb or .sb2? If it's .sb, I would like to see your parser. (Possibly you could put it's source on GitHub? Dropbox is blocked at my school )

I know you asked this quite a long time ago, but if you're still interested in seeing (roughly) how a scratch parser works, I just put up my prototype scratch to C code at http://www.gtoal.com/scratch/sb2c/

It's not a working system but there's enough there to learn how to unparse the json file. (Which in computer science terms is effectively an AST: Abstract Syntax Tree, although to be more precise it's more of a concrete syntax tree than an abstract one…)

Graham
procd
Scratcher
100+ posts

Scratch compiler beta test

gtoal wrote:

DigiTechs wrote:

What kind of files does this use? .sb or .sb2? If it's .sb, I would like to see your parser. (Possibly you could put it's source on GitHub? Dropbox is blocked at my school )

I know you asked this quite a long time ago, but if you're still interested in seeing (roughly) how a scratch parser works, I just put up my prototype scratch to C code at http://www.gtoal.com/scratch/sb2c/

It's not a working system but there's enough there to learn how to unparse the json file. (Which in computer science terms is effectively an AST: Abstract Syntax Tree, although to be more precise it's more of a concrete syntax tree than an abstract one…)

Graham
Welcome to the rabbit hole!
botcrusher
Scratcher
500+ posts

Scratch compiler beta test

Technical question, what is the performance compared to good ol' JIT compiled scratch?
As in, does the compiler respect the delay inserted in the broadcast and loop blocks, or does it plow right through it and runs at full speed with no stepping?
(either way, you could add that as a setting)

Pondering what to work on.
procd
Scratcher
100+ posts

Scratch compiler beta test

The compiler runs as much like scratch as possible so respects loops, however like scratch can also be run in turbo mode to ignore those conditions.
Performance wise it's quicker in pretty much all areas bar one and that is the touching blocks. I have a studio with some of the compiled projects so you can try them out and compare.
Being .NET it's JIT too!

Last edited by procd (Oct. 11, 2014 22:52:21)

Powered by DjangoBB