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

#1 2009-09-23 23:06:13

ThePiGuy
Scratcher
Registered: 2009-08-27
Posts: 64

The new S programming language IN DEVELOPMENT

I don't know where to put this but... I TRYING TO MAKE A PROGRAMMING LANGUAGE! IT WILL BE AWESOME! (Mabey Not) I might have spelled DEVELOPMENT wrong. Here is the current beta of S: http://scratch.mit.edu/projects/ThePiGuy/692427.


CURRENT COMMANDS:
MVE <number> Moves cat <number> steps (Only one digit numbers)
WT <number> Waits <number> seconds(Only one digit numbers)
SAY <message> Makes cat say <message>.(6 letters or less)
WRT <message> Outputs <message>. (6 letters or less)
RTE <option> Rotates cat <options> (ONLY USE THESE VALUES:09,-9,18,00)

Press play to play it all!

INSTRUCTIONS:
Space=Newline
R=replace
S=insert at specified line
D=delete specified line


PI IS AWESOME!! Yes, pi is not equal to 3.14. It's 3.1415926535897932384626433832795028841971693993751058...

Offline

 

#2 2009-09-24 06:55:50

floatingmagictree
Scratcher
Registered: 2008-10-21
Posts: 1000+

Re: The new S programming language IN DEVELOPMENT

This is actually quite impressive! How long did it take you?

Offline

 

#3 2009-09-25 23:14:18

ThePiGuy
Scratcher
Registered: 2009-08-27
Posts: 64

Re: The new S programming language IN DEVELOPMENT

I don't know. I think it took me 2 days, but I could be wrong.



NEW BETA REALESED!
http://scratch.mit.edu/projects/ThePiGuy/694866!
I added 3 new functions, which are:

NTE <number> - Plays note(Only two digit numbers, if you want to enter one digit numbers, type 0 in the tens digit)
TMO <number> - Sets tempo(Only two digit numbers, if you want to enter one digit numbers, type 0 in the tens digit)
MEW - Makes cat meow!

Enjoy  big_smile  !

Last edited by ThePiGuy (2009-09-26 11:00:15)


PI IS AWESOME!! Yes, pi is not equal to 3.14. It's 3.1415926535897932384626433832795028841971693993751058...

Offline

 

#4 2009-09-26 22:42:22

ThePiGuy
Scratcher
Registered: 2009-08-27
Posts: 64

Re: The new S programming language IN DEVELOPMENT

NEW VERSION, CLICK HERE TO SEE IT!

I have added variables(yay!), and functions for repeating blocks of code. So... you can do this to make the cat move smoothly:

Code:

i=9
RPT 10
WRT iv
MVE i
i--
/RP

Enjoy the project and remember to check here often to here more news of S!


PI IS AWESOME!! Yes, pi is not equal to 3.14. It's 3.1415926535897932384626433832795028841971693993751058...

Offline

 

#5 2009-09-27 16:28:41

rdvonz
Scratcher
Registered: 2009-09-21
Posts: 6

Re: The new S programming language IN DEVELOPMENT

This entire Idea is flawed.

making a programming language in a program that is designed to make programming easy?

What kind of arbitrary thought process did you go through to justify this waste of time?

Offline

 

#6 2009-09-28 00:10:11

ThePiGuy
Scratcher
Registered: 2009-08-27
Posts: 64

Re: The new S programming language IN DEVELOPMENT

rdvonz wrote:

This entire Idea is flawed.

making a programming language in a program that is designed to make programming easy?

What kind of arbitrary thought process did you go through to justify this waste of time?

Thank you for hurting my feelings  sad . First time I've gotten a negative comment(I'm not used to it).

I do it because I want to. I don't know what else to do... I have seen other people do this, and I got this idea and I like it. I just want to do somthing I like, and this is it. I like making programming languages in programming languages because that's what I like. Besides, computers is like the ONLY thing I do(except sleep, eat, and go to school, and do homework).This isn't the only one I've made, I've made another (That's better than this). Please don't hurt my feelings again  sad   sad   sad   sad . I'm only a wierd nine-year-old(turning ten in March).


Away from that... NEW VERSION COMING SOON! (0.3) with 'IF' functions in 'Input' functions! Yay  big_smile !

Last edited by ThePiGuy (2009-09-28 00:15:26)


PI IS AWESOME!! Yes, pi is not equal to 3.14. It's 3.1415926535897932384626433832795028841971693993751058...

Offline

 

#7 2009-09-28 00:20:33

Chrischb
Scratcher
Registered: 2008-07-24
Posts: 1000+

Re: The new S programming language IN DEVELOPMENT

rdvonz wrote:

This entire Idea is flawed.

making a programming language in a program that is designed to make programming easy?

What kind of arbitrary thought process did you go through to justify this waste of time?

People can make whatever they like. It's up to them.


I fall: It's a tragedy. You fall: It's comedy.
Hmph enjoy your fall - I get a lovely spring... without pans of new leaves.

Offline

 

#8 2009-09-28 05:22:10

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: The new S programming language IN DEVELOPMENT

rdvonz wrote:

This entire Idea is flawed.

making a programming language in a program that is designed to make programming easy?

What kind of arbitrary thought process did you go through to justify this waste of time?

Scratch is a great place to try out new ideas for programming languages - or many other complex programming challenges.  Why do it?  Because it is fun, a great mental challenge and a good place to play with ideas.  If the ideas work out, maybe you will want to implement them in something faster like C++.

You probably already know that Scratch itself is written in a programming language called Squeak that was designed to make Object Oriented programming easy  smile


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#9 2009-09-28 07:15:26

The-Whiz
Scratcher
Registered: 2007-07-09
Posts: 1000+

Re: The new S programming language IN DEVELOPMENT

Great! I like programming languages made in Scratch of all sorts - I've even made one!

Offline

 

#10 2009-09-28 20:25:49

ThePiGuy
Scratcher
Registered: 2009-08-27
Posts: 64

Re: The new S programming language IN DEVELOPMENT

The-Whiz, I've seen your programming language and it's AWESOME!

S might be a programming language(Scratch) in a programming language(Squeak) in a programming language(The program Squeak was written in)!

BACK TO THE TOPIC
Version 0.3 of S will have new features like:
If functions (I know the syntax is wierd, but S is VERY slow on my fastest computer at home, so I need less blocks!(Possible fix in 0.3.1, but I'll see how it goes when I make the next version)) Here is all the new functions:

Code:

IF FUNCTIONS:
Ii= vv //Checks If i =the value vv
Ij= ee //Checks If j =the value ee
Ife= 10 //Sets the line to 10 if the if function returns false(REQUIRED)

VARIABLE FUNCTIONS:
i=n // allows you to make i a value more than 2 characters! Woohoo! (n=the next line)
j=n // allows you to make j a value more than 2 characters! (n=the next line)

INPUT FUNCTIONS:
<Unknown> (I'm not on the computer with S.sb on it)

So.. you can do this!

Code:

i=n
100
RPT 100
i--
WRT iv
Ife=10
Ii= 40
MEW
NTE 60
/RP

I should post it this night or tomorrow!

Last edited by ThePiGuy (2009-09-29 21:10:26)


PI IS AWESOME!! Yes, pi is not equal to 3.14. It's 3.1415926535897932384626433832795028841971693993751058...

Offline

 

#11 2009-09-28 20:27:52

The-Whiz
Scratcher
Registered: 2007-07-09
Posts: 1000+

Re: The new S programming language IN DEVELOPMENT

ThePiGuy wrote:

...S is VERY slow on my fastest computer at home, so I need less blocks...

I think all Scratch programming languages are slow - It's just that Scratch is ill-fitted for running so many complicated operations at once.

Offline

 

#12 2009-09-29 18:39:21

Digimath
Scratcher
Registered: 2007-07-07
Posts: 100+

Re: The new S programming language IN DEVELOPMENT

ThePiGuy wrote:

...
Version 0.3 of S will have new features like:
If functions (I know the syntax is wierd, but S is VERY slow on my fastest computer at home, so I need less blocks!(Possible fix in 0.3.1, but I'll see how it goes when I make the next version))

Scratch is pretty slow at some things but here’s something you might want to try doing to make your S language go faster.

Instead of matching each command using if statements, create two new lists, one for the commands in the S program and one for the second strings (if any).  Then create a "When I receive" block for each type of command in your S language.  When your project executes an S program, it would pull each command of that S program out of the first new array and then directly broadcast using that command as a string.  Your scratch project would have scripts that start with "When I receive NTE" and "When I receive i++" and so on.

I used this technique in my Cave Adventure game and it made it much more responsive.


I've updated my text adventure game.
Colossal Cave 150http://scratch.mit.edu/static/projects/Digimath/3003787_sm.png

Offline

 

#13 2009-09-29 21:12:42

ThePiGuy
Scratcher
Registered: 2009-08-27
Posts: 64

Re: The new S programming language IN DEVELOPMENT

I NEED IDEAS FOR THE NEXT VERSION!
Digimath, I've tried that, and it didn't work (I'll try again, though  smile .)


PI IS AWESOME!! Yes, pi is not equal to 3.14. It's 3.1415926535897932384626433832795028841971693993751058...

Offline

 

#14 2009-09-30 11:36:32

rdvonz
Scratcher
Registered: 2009-09-21
Posts: 6

Re: The new S programming language IN DEVELOPMENT

Haha.. It's slow because you've got your programming language stuck in  a programming language stuck in a programming language.

IDEA: Go learn python.

Offline

 

#15 2009-09-30 18:50:52

Digimath
Scratcher
Registered: 2007-07-07
Posts: 100+

Re: The new S programming language IN DEVELOPMENT

ThePiGuy wrote:

I NEED IDEAS FOR THE NEXT VERSION!

How about adding some user interface features.
For example, a "set breakpoint / continue" feature, or a single-step feature where the user did something each time to make each instruction execute. 

Or,

What if S had special variables that would automatically increment or decrement each time they were used?

It also might be fun to combine your list processor with another Scratch project.  Dapontes has a very good project with a dangling character that you can move by hand http://scratch.mit.edu/projects/dapontes/696603

Your two projects could be merged to create a project that would let people make their own skits.  If a second character were added you could let people control both from one S program.

Select #1
[insert S commands to move close to second character]
SAY: Who are you?
Select #2
[insert S commands to jump up]
SAY:  We are the Knights Who Say... Nee!


I've updated my text adventure game.
Colossal Cave 150http://scratch.mit.edu/static/projects/Digimath/3003787_sm.png

Offline

 

#16 2009-09-30 19:22:51

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: The new S programming language IN DEVELOPMENT

Maybe I'll add this to my os... http://scratch.mit.edu/forums/viewtopic.php?id=23553


Hai.

Offline

 

#17 2009-10-01 00:04:48

ThePiGuy
Scratcher
Registered: 2009-08-27
Posts: 64

Re: The new S programming language IN DEVELOPMENT

Digimath wrote:

... What if S had special variables that would automatically increment or decrement each time they were used? ...

YAY! GOOD IDEA! I'll make it so you can set whether each variable is normal, auto-increase, auto-decrease, auto-multiply, or static(cannot change unless type changed).

rdvonz wrote:

Haha.. It's slow because you've got your programming language stuck in  a programming language stuck in a programming language.

IDEA: Go learn python.

I don't care! Just PLEASE STOP POSTING ON ME STUFF! IT'S ANNOYING AND HURTING MY FEELINGS(Do you like that?)!

Last edited by ThePiGuy (2009-10-01 23:11:37)


PI IS AWESOME!! Yes, pi is not equal to 3.14. It's 3.1415926535897932384626433832795028841971693993751058...

Offline

 

#18 2009-10-04 00:24:19

rdvonz
Scratcher
Registered: 2009-09-21
Posts: 6

Re: The new S programming language IN DEVELOPMENT

So we're going to talk about feelings now?

Well, whenever I try your "program language" a little bit of me dies inside.

Offline

 

#19 2009-10-04 00:36:26

ThePiGuy
Scratcher
Registered: 2009-08-27
Posts: 64

Re: The new S programming language IN DEVELOPMENT

rdvonz wrote:

So we're going to talk about feelings now?

Well, whenever I try your "program language" a little bit of me dies inside.

grrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr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rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
By the way, "program language" is REALLY "programming language"  wink .

Last edited by ThePiGuy (2009-10-04 00:37:29)


PI IS AWESOME!! Yes, pi is not equal to 3.14. It's 3.1415926535897932384626433832795028841971693993751058...

Offline

 

#20 2009-10-04 00:49:10

rdvonz
Scratcher
Registered: 2009-09-21
Posts: 6

Re: The new S programming language IN DEVELOPMENT

It doesn't matter, I'd hardly call S either.

By the way, what does S even stand for? [removed by moderator]?

EDIT: Don't censor me you pricks.

Last edited by cheddargirl (2010-09-23 14:23:03)

Offline

 

#21 2009-10-04 01:07:39

cheddargirl
Scratch Team
Registered: 2008-09-15
Posts: 1000+

Re: The new S programming language IN DEVELOPMENT

rdvonz wrote:

It doesn't matter, I'd hardly call S either.

By the way, what does S even stand for? [explicative removed by moderator]?

rdvonz, please be respectful and do not use disrespectful language on the Scratch forums.


http://i.imgur.com/8QRYx.png
Everything is better when you add a little cheddar, because when you have cheese your life is at ease  smile

Offline

 

#22 2009-10-04 01:10:26

rdvonz
Scratcher
Registered: 2009-09-21
Posts: 6

Re: The new S programming language IN DEVELOPMENT

cheddargirl wrote:

rdvonz wrote:

It doesn't matter, I'd hardly call S either.

By the way, what does S even stand for? [explicative removed by moderator]?

rdvonz, please be respectful and do not use disrespectful language on the Scratch forums.

You're signature seems to be implying something sexual, you should probably tone that down for the little ones.

Offline

 

#23 2009-10-04 04:35:10

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: The new S programming language IN DEVELOPMENT

rdvonz wrote:

It doesn't matter, I'd hardly call S either.

By the way, what does S even stand for? [removed by moderator]?

EDIT: Don't censor me you [removed by moderator].

Hey rdvonz - I'm so sorry that we haven't explained clearly enough how these forums work or what they are for.  They are for helping people to improve their Scratching skills in a friendly way.  Putting down this project the way you have been doing is very discouraging and not supportive. 

Your observation that other programming languages might be better suited for the task is certainly a good one - but not everybody is ready to step up to Python or other text-based languages.  And there is still a lot to be learned trying it in Scratch  smile

Thanks for taking such an interest in other people's work.  It appears you have experience with other programming languages and can offer a lot to the Scratch community.  A more positive attitude, however,  will make a big difference in how your comments are perceived and would be appreciated.  You can read more about the guidelines for the Scratch website in the Terms of Use - see the link at the bottom of the page.

As for your crack about Cheddargirl's signature - that was uncalled for.  To quote the great Tom Lehrer: "For filth (I'm glad to say) is in the mind of the beholder.  When correctly viewed, Everything is lewd."


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#24 2009-10-04 08:42:44

boy_fighter
Scratcher
Registered: 2009-07-07
Posts: 100+

Re: The new S programming language IN DEVELOPMENT

ThePiGuy wrote:

I don't know where to put this but... I TRYING TO MAKE A PROGRAMMING LANGUAGE! IT WILL BE AWESOME! (Mabey Not) I might have spelled DEVELOPMENT wrong. Here is the current beta of S: http://scratch.mit.edu/projects/ThePiGuy/692427.


CURRENT COMMANDS:
MVE <number> Moves cat <number> steps (Only one digit numbers)
WT <number> Waits <number> seconds(Only one digit numbers)
SAY <message> Makes cat say <message>.(6 letters or less)
WRT <message> Outputs <message>. (6 letters or less)
RTE <option> Rotates cat <options> (ONLY USE THESE VALUES:09,-9,18,00)

Press play to play it all!

INSTRUCTIONS:
Space=Newline
R=replace
S=insert at specified line
D=delete specified line

I love your notepad programming. And besides, it's less memory than scratch projects.


Join the Combat Site RPG. Be a marine. Go later on to be a commander. One army against the world.

Offline

 

#25 2009-10-10 14:21:25

ThePiGuy
Scratcher
Registered: 2009-08-27
Posts: 64

Re: The new S programming language IN DEVELOPMENT

Digimath wrote:

...Then create a "When I receive" block for each type of command in your S language.  When your project executes an S program, it would pull each command of that S program out of the first new array and then directly broadcast using that command as a string.  Your scratch project would have scripts that start with "When I receive NTE" and "When I receive i++" and so on....

I TRIED IT AGAIN AND IT WORKED! WOO HOO! (But now you must download to play because it NEEDS to be on Turbo-Speed mode otherwise it's REALLY slow!)

http://scratch.mit.edu/projects/ThePiGuy/711915 is the NEW VERSION! Thanks alot of you for giving me great ideas! This new version has markers, comments, and "When I receive blocks" in the source code!
ENJOY and don't forget to comment  big_smile !

By the way, if you want to see what's new, take a look at this example project! (With line numbers on the far left.)

Code:

01 /Comments and markers
02 /This is a comment. It is ignored.
03 /Set i to 0.
04 i=0
05 /Start repeat block.
06 RPT 10
07 /Increase I
08 i++
09 /Write i to output.
10 WRT iv
11 /Ife set to marker 1 (:1)
12 Ife :1
13 /If i is 4 then output and say "Hi!".
14 Ii=4
15 WRT Hi!
16 SAY Hi!
17 WT 1
18 SAY
19 /Marker 1 is on the next line.
20 :1
21 /End repeat
22 eRP
23 /
24 /Note: "End repeat" code changed due to the addition of the comment.
25 /This works becacuse the new S version checks for all markers first, then writes the positions to a list. The IFE statement then looks for the position of the marker it's assigned to and sets the If false line to the position of the marker. (In this case, #1)
26 /Enjoy the new version of s!

Changes in functions:
/RP changed to eRP due to comment. (/ now means comment.)

P.S. I might add my own calculator to my project!

Last edited by ThePiGuy (2009-10-10 21:21:17)


PI IS AWESOME!! Yes, pi is not equal to 3.14. It's 3.1415926535897932384626433832795028841971693993751058...

Offline

 

Board footer