This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-02-26 06:25:20

jkpal
Scratcher
Registered: 2010-06-01
Posts: 11

Other computer languages in scratch.

There should be a menu that gives you options to open a project in another computer language in scratch as a scratch project. It should also be able to save scratch projects in other computer languages.


http://imgur.com/lqxKT.gif http://imgur.com/HgOLi.gif

Offline

 

#2 2011-02-26 06:46:22

mathematics
Scratcher
Registered: 2009-03-01
Posts: 1000+

Re: Other computer languages in scratch.

Well, I don't know any (programming) language that is similar to Scratch...

Offline

 

#3 2011-02-26 06:47:31

ssss
Scratcher
Registered: 2007-07-29
Posts: 1000+

Re: Other computer languages in scratch.

Python 2.5


Hey.  It's me SSSS, back from the dead!  smile

Offline

 

#4 2011-07-30 17:17:35

joefarebrother
Scratcher
Registered: 2011-04-08
Posts: 1000+

Re: Other computer languages in scratch.

block:
run code [some code] in
[dropdown: C++ / squeak / java / actionscript / pascal / assembely / GML ]


My latest project is called http://tinyurl.com/d2m8hne! It has http://tinyurl.com/d395ygk views, http://tinyurl.com/cnasmt7 love-its, and http://tinyurl.com/bwjy8xs comments.
http://tinyurl.com/756anbk   http://tinyurl.com/iplaychess

Offline

 

#5 2011-07-31 13:07:43

daroflcopter
Scratcher
Registered: 2010-07-06
Posts: 13

Re: Other computer languages in scratch.

maybe Basic, that is one of the simplest form of coding(apart from scratch). But I think the drag and drop system is fine for now.


http://i.imgur.com/VwYRW.png

Offline

 

#6 2011-07-31 15:06:00

mrshanko
Scratcher
Registered: 2010-04-04
Posts: 25

Re: Other computer languages in scratch.

Good idea. Scratch is fun just using Lua. Imagine what you could do with Ruby, Python, C++, etc. Also, Scratch is great for learning how to script whatever language you're using.

Last edited by mrshanko (2011-07-31 15:07:54)


Forgetting to do something is not the same as remembering not to do it.

Offline

 

#7 2011-07-31 16:03:28

hmnwilson
Scratcher
Registered: 2007-07-04
Posts: 1000+

Re: Other computer languages in scratch.

It's an interesting idea in theory, but the reality is that it's extremely difficult to do. Just like real languages, every computer language has its own unique syntax, and a lot of things done easily in Scratch look very, very different in others. In some cases, you might need to change massive portions of code to accomplish one thing. And that's not even considering hurdles such as translating from object-oriented to non-object-oriented programming.

It may be possible in some cases, but in many it would just be too much work.


I'm taking a break from Scratch until 2.0 comes out. Any messages sent between then and now probably won't be read - sorry.
(Oct. 20, 2011)

Offline

 

#8 2011-07-31 17:31:29

cygene
Scratcher
Registered: 2011-05-31
Posts: 100+

Re: Other computer languages in scratch.

Converting Scratch to another text-based computer language is very difficult as it scratch itself does not use text-based syntax. Not even Squeak uses text, I think. Text to text is easy, like maybe C++ to Java, but visual to text or vice versa is hard, so don't look forward to it.


http://cygene.wikispaces.com/file/view/clip2.gif/242526033/clip2.gif

Offline

 

#9 2011-07-31 17:54:41

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Other computer languages in scratch.

cygene wrote:

Converting Scratch to another text-based computer language is very difficult as it scratch itself does not use text-based syntax. Not even Squeak uses text, I think. Text to text is easy, like maybe C++ to Java, but visual to text or vice versa is hard, so don't look forward to it.

Actually, difficulty in converting scripts in one language to another language is more related to differences in syntax and how the language actually operates. Different languages have code that is structured differently, so a given script (or more importantly, collection of scripts) rarely can be directly translated to another language. (See hmnwilson's post.)

Besides, you wouldn't want to do this anyway, because that would teach bad programming habits. Ways of programming things in Scratch would be messy and superfluous in other languages, where there are other, more effective ways of doing things.


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#10 2011-07-31 18:41:04

cygene
Scratcher
Registered: 2011-05-31
Posts: 100+

Re: Other computer languages in scratch.

Harakou wrote:

cygene wrote:

Converting Scratch to another text-based computer language is very difficult as it scratch itself does not use text-based syntax. Not even Squeak uses text, I think. Text to text is easy, like maybe C++ to Java, but visual to text or vice versa is hard, so don't look forward to it.

Actually, difficulty in converting scripts in one language to another language is more related to differences in syntax and how the language actually operates. Different languages have code that is structured differently, so a given script (or more importantly, collection of scripts) rarely can be directly translated to another language. (See hmnwilson's post.)

Besides, you wouldn't want to do this anyway, because that would teach bad programming habits. Ways of programming things in Scratch would be messy and superfluous in other languages, where there are other, more effective ways of doing things.

I understand that but what I really meant is that Scratch is too different to text-based languages. I don't really think syntax is that much of a problem but it is the way the language compiles programs and executes them. Syntax might be resolved by a text-editing program that changes ... to ..., I'm not sure if Notepad++ can, but if it doesn't, it's a good step since it can recognize languages and commands within a program.
The biggest problem for a graphic to text editor is converting the graphic commands to text. You can edit almost any text-based languages with wordpad or notepad, but if you open a scratch project there, you get stuff like: árrááááá(á(···    ····MÀÀÀx¿¹¹


http://cygene.wikispaces.com/file/view/clip2.gif/242526033/clip2.gif

Offline

 

#11 2011-07-31 19:23:59

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Other computer languages in scratch.

cygene wrote:

Harakou wrote:

cygene wrote:

Converting Scratch to another text-based computer language is very difficult as it scratch itself does not use text-based syntax. Not even Squeak uses text, I think. Text to text is easy, like maybe C++ to Java, but visual to text or vice versa is hard, so don't look forward to it.

Actually, difficulty in converting scripts in one language to another language is more related to differences in syntax and how the language actually operates. Different languages have code that is structured differently, so a given script (or more importantly, collection of scripts) rarely can be directly translated to another language. (See hmnwilson's post.)

Besides, you wouldn't want to do this anyway, because that would teach bad programming habits. Ways of programming things in Scratch would be messy and superfluous in other languages, where there are other, more effective ways of doing things.

I understand that but what I really meant is that Scratch is too different to text-based languages. I don't really think syntax is that much of a problem but it is the way the language compiles programs and executes them. Syntax might be resolved by a text-editing program that changes ... to ..., I'm not sure if Notepad++ can, but if it doesn't, it's a good step since it can recognize languages and commands within a program.
The biggest problem for a graphic to text editor is converting the graphic commands to text. You can edit almost any text-based languages with wordpad or notepad, but if you open a scratch project there, you get stuff like: árrááááá(á(···    ····MÀÀÀx¿¹¹

Notepad isn't designed to read those files, so naturally you get gibberish when you try to open one. Were you to edit Scratch's source, however, you could easily, say, make it output some text to replace a script you had. The challenge is, again, overcoming the differences between the languages.

Anyway, long story short: I don't see this happening because it's not that simple.


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#12 2011-07-31 19:59:31

cygene
Scratcher
Registered: 2011-05-31
Posts: 100+

Re: Other computer languages in scratch.

Harakou wrote:

cygene wrote:

Harakou wrote:


Actually, difficulty in converting scripts in one language to another language is more related to differences in syntax and how the language actually operates. Different languages have code that is structured differently, so a given script (or more importantly, collection of scripts) rarely can be directly translated to another language. (See hmnwilson's post.)

Besides, you wouldn't want to do this anyway, because that would teach bad programming habits. Ways of programming things in Scratch would be messy and superfluous in other languages, where there are other, more effective ways of doing things.

I understand that but what I really meant is that Scratch is too different to text-based languages. I don't really think syntax is that much of a problem but it is the way the language compiles programs and executes them. Syntax might be resolved by a text-editing program that changes ... to ..., I'm not sure if Notepad++ can, but if it doesn't, it's a good step since it can recognize languages and commands within a program.
The biggest problem for a graphic to text editor is converting the graphic commands to text. You can edit almost any text-based languages with wordpad or notepad, but if you open a scratch project there, you get stuff like: árrááááá(á(···    ····MÀÀÀx¿¹¹

Notepad isn't designed to read those files, so naturally you get gibberish when you try to open one. Were you to edit Scratch's source, however, you could easily, say, make it output some text to replace a script you had. The challenge is, again, overcoming the differences between the languages.

Anyway, long story short: I don't see this happening because it's not that simple.

That's the whole point of what I said : " so don't look forward to it" (in my first post)
BTW: Notepad++ is a third-party software that is completely different from MS Notepad


http://cygene.wikispaces.com/file/view/clip2.gif/242526033/clip2.gif

Offline

 

Board footer