Discuss Scratch

LTV2008
Scratcher
76 posts

!!HELP NEEDED!! Fluffscript - a simple programming language for everyone

FluffScript is a new programming language that is simple to learn and use.

Features:
  • Mixing data types (EX: floats and doubles)
  • Simple control structures - loops and delays are supported!
  • Easily convertable to JavaScript (and maybe back again!)

Syntax:
URL for syntax

Help Wanted:
We need experienced programmers in Scratch to make a place for writing and running Fluffscript programs!

To Do:
  • Create basic syntax (Done!)
  • Make a place for writing and running Fluffscript programs (Not Done)
  • Fluffscript to JS conversion (Someday)
  • HTML5 Fluffscript Editor (Someday)
  • Fluffscript Blocks for beginners to programming (Someday)

Last edited by LTV2008 (Oct. 15, 2024 17:05:06)

BigNate469
Scratcher
1000+ posts

!!HELP NEEDED!! Fluffscript - a simple programming language for everyone

So.. you want an IDE, and a web tech-based editor. Why not just combine both into one goal- HTML5-based IDE? In the IDE you could also compile the code directly, and just use a slightly modified version of the compiler for other places.

This signature is designed to be as useful as possible.
How to make a signature & other useful info about them
The Official List of Rejected Suggestions (TOLORS)
The Announcements Directory
Lesser-known Scratch URLs: https://scratch-mit-edu.ezproxy.canberra.edu.au/discuss/topic/542480/
Why @Paddle2See's responses are so often identical: https://scratch-mit-edu.ezproxy.canberra.edu.au/discuss/topic/762351/

Ads Useful projects:
Raycaster & Maze 1.4.1 | Don't Break The Ice | Procedurally Generated Terrain | Basic Trigonometry | Comparing the fastest list sorters on Scratch

“if nobody can learn the programming language, it's just gibberish that does math.” -me, in a forum post

The original name of “loves” was “love-its”. Technically speaking, this hasn't changed.

© @BigNate469, some rights reserved
LTV2008
Scratcher
76 posts

!!HELP NEEDED!! Fluffscript - a simple programming language for everyone

BigNate469 wrote:

So.. you want an IDE, and a web tech-based editor. Why not just combine both into one goal- HTML5-based IDE? In the IDE you could also compile the code directly, and just use a slightly modified version of the compiler for other places.
Yes. Also, I might need help on this because I don’t know that much JS LOL.
BigNate469
Scratcher
1000+ posts

!!HELP NEEDED!! Fluffscript - a simple programming language for everyone

LTV2008 wrote:

BigNate469 wrote:

So.. you want an IDE, and a web tech-based editor. Why not just combine both into one goal- HTML5-based IDE? In the IDE you could also compile the code directly, and just use a slightly modified version of the compiler for other places.
Yes. Also, I might need help on this because I don’t know that much JS LOL.
I haven't looked through the FluffScript language spec all that much yet, but it looks like some parts of it could essentially be copied over to JS and work fine.

Edit: and most of the things that can't can either be custom-made functions (an example is print()- which could be implemented as
function print(input) {
  console.log(input);
};
in the background- but others too), or are essentially replaced keywords (cst instead of const, for example).

Last edited by BigNate469 (Oct. 15, 2024 19:24:10)


This signature is designed to be as useful as possible.
How to make a signature & other useful info about them
The Official List of Rejected Suggestions (TOLORS)
The Announcements Directory
Lesser-known Scratch URLs: https://scratch-mit-edu.ezproxy.canberra.edu.au/discuss/topic/542480/
Why @Paddle2See's responses are so often identical: https://scratch-mit-edu.ezproxy.canberra.edu.au/discuss/topic/762351/

Ads Useful projects:
Raycaster & Maze 1.4.1 | Don't Break The Ice | Procedurally Generated Terrain | Basic Trigonometry | Comparing the fastest list sorters on Scratch

“if nobody can learn the programming language, it's just gibberish that does math.” -me, in a forum post

The original name of “loves” was “love-its”. Technically speaking, this hasn't changed.

© @BigNate469, some rights reserved
LTV2008
Scratcher
76 posts

!!HELP NEEDED!! Fluffscript - a simple programming language for everyone

BigNate469 wrote:

LTV2008 wrote:

BigNate469 wrote:

So.. you want an IDE, and a web tech-based editor. Why not just combine both into one goal- HTML5-based IDE? In the IDE you could also compile the code directly, and just use a slightly modified version of the compiler for other places.
Yes. Also, I might need help on this because I don’t know that much JS LOL.
I haven't looked through the FluffScript language spec all that much yet, but it looks like some parts of it could essentially be copied over to JS and work fine.

Edit: and most of the things that can't can either be custom-made functions (an example is print()- which could be implemented as
function print(input) {
  console.log(input);
};
in the background- but others too), or are essentially replaced keywords (cst instead of const, for example).
Cool, thanks. I might implement this in turbowarp.
LTV2008
Scratcher
76 posts

!!HELP NEEDED!! Fluffscript - a simple programming language for everyone

LTV2008 wrote:

BigNate469 wrote:

LTV2008 wrote:

BigNate469 wrote:

So.. you want an IDE, and a web tech-based editor. Why not just combine both into one goal- HTML5-based IDE? In the IDE you could also compile the code directly, and just use a slightly modified version of the compiler for other places.
Yes. Also, I might need help on this because I don’t know that much JS LOL.
I haven't looked through the FluffScript language spec all that much yet, but it looks like some parts of it could essentially be copied over to JS and work fine.

Edit: and most of the things that can't can either be custom-made functions (an example is print()- which could be implemented as
function print(input) {
  console.log(input);
};
in the background- but others too), or are essentially replaced keywords (cst instead of const, for example).
Cool, thanks. I might implement this in turbowarp.
Write some FS code then import the .txt file to here:
Crude compiler that I made
Once your code is output, open the .txt, copy all of it, use this site:
uglifyjs

Last edited by LTV2008 (Oct. 15, 2024 21:43:58)

LTV2008
Scratcher
76 posts

!!HELP NEEDED!! Fluffscript - a simple programming language for everyone

LTV2008 wrote:

LTV2008 wrote:

BigNate469 wrote:

LTV2008 wrote:

BigNate469 wrote:

So.. you want an IDE, and a web tech-based editor. Why not just combine both into one goal- HTML5-based IDE? In the IDE you could also compile the code directly, and just use a slightly modified version of the compiler for other places.
Yes. Also, I might need help on this because I don’t know that much JS LOL.
I haven't looked through the FluffScript language spec all that much yet, but it looks like some parts of it could essentially be copied over to JS and work fine.

Edit: and most of the things that can't can either be custom-made functions (an example is print()- which could be implemented as
function print(input) {
  console.log(input);
};
in the background- but others too), or are essentially replaced keywords (cst instead of const, for example).
Cool, thanks. I might implement this in turbowarp.
Write some FS code then import the .txt file to here:
Crude compiler that I made
Once your code is output, open the .txt, copy all of it, use this site:
uglifyjs
Oh, and you can't make comments yet. Enjoy!
blubby4
Scratcher
100+ posts

!!HELP NEEDED!! Fluffscript - a simple programming language for everyone

I think you made a mistake at “// increase/decrease existing variable”
it should be
myVarName += 1;
myVarName -= 1;
right?

I think about things. Sometimes I think about things too much, and miss obvious simple things
MonkeyBean2
Scratcher
100+ posts

!!HELP NEEDED!! Fluffscript - a simple programming language for everyone

blubby4 wrote:

I think you made a mistake at “// increase/decrease existing variable”
it should be
myVarName += 1;
myVarName -= 1;
right?
in most languages myVarName = myVarName += 1 is the same as myVarName += 1, which makes it more confusing.
I suppose we need clarification on what just myVarName += 1 on its own does.

Last edited by MonkeyBean2 (Oct. 17, 2024 17:44:10)



9NAwRfSR-%dWFS$a$g&zBMTj2?;jvS?L5%^X%qpCX|A<*paJ=lU07c)wmt$v{TxL5



scratchGui.timeTravel.year = '2020'
Redstone1080
Scratcher
1000+ posts

!!HELP NEEDED!! Fluffscript - a simple programming language for everyone

BigNate469 wrote:

function print(input) {
  console.log(input);
};
Even easier:
const print = console.log

Maintainer of Snazzle | User of Linux (Fedora in particular) | Fan of Rockets
blubby4
Scratcher
100+ posts

!!HELP NEEDED!! Fluffscript - a simple programming language for everyone

MonkeyBean2 wrote:

blubby4 wrote:

I think you made a mistake at “// increase/decrease existing variable”
it should be
myVarName += 1;
myVarName -= 1;
right?
in most languages myVarName = myVarName += 1 is the same as myVarName += 1, which makes it more confusing.
I suppose we need clarification on what just myVarName += 1 on its own does.
Hold on, which languages are “most languages”? In the languages I know, it would probably just give an error.

I think about things. Sometimes I think about things too much, and miss obvious simple things
BigNate469
Scratcher
1000+ posts

!!HELP NEEDED!! Fluffscript - a simple programming language for everyone

Redstone1080 wrote:

BigNate469 wrote:

function print(input) {
  console.log(input);
};
Even easier:
const print = console.log
True, and the end result is effectively the same, but for most people newer to programming it's hard to understand why that would work, especially if you didn't know that the value of a function, when you don't call it, is the code for the function itself.

Also, for functions with large definitions, it may take less time overall to do what I did, than to copy all of the function definition.

This signature is designed to be as useful as possible.
How to make a signature & other useful info about them
The Official List of Rejected Suggestions (TOLORS)
The Announcements Directory
Lesser-known Scratch URLs: https://scratch-mit-edu.ezproxy.canberra.edu.au/discuss/topic/542480/
Why @Paddle2See's responses are so often identical: https://scratch-mit-edu.ezproxy.canberra.edu.au/discuss/topic/762351/

Ads Useful projects:
Raycaster & Maze 1.4.1 | Don't Break The Ice | Procedurally Generated Terrain | Basic Trigonometry | Comparing the fastest list sorters on Scratch

“if nobody can learn the programming language, it's just gibberish that does math.” -me, in a forum post

The original name of “loves” was “love-its”. Technically speaking, this hasn't changed.

© @BigNate469, some rights reserved
blubby4
Scratcher
100+ posts

!!HELP NEEDED!! Fluffscript - a simple programming language for everyone

BigNate469 wrote:

Redstone1080 wrote:

BigNate469 wrote:

function print(input) {
  console.log(input);
};
Even easier:
const print = console.log
True, and the end result is effectively the same, but for most people newer to programming it's hard to understand why that would work, especially if you didn't know that the value of a function, when you don't call it, is the code for the function itself.

Also, for functions with large definitions, it may take less time overall to do what I did, than to copy all of the function definition.
But you're not copying the function definition. It takes the same time no matter how big it is because it's passed by reference [citation needed]

I think about things. Sometimes I think about things too much, and miss obvious simple things
BigNate469
Scratcher
1000+ posts

!!HELP NEEDED!! Fluffscript - a simple programming language for everyone

blubby4 wrote:

BigNate469 wrote:

snip
But you're not copying the function definition. It takes the same time no matter how big it is because it's passed by reference [citation needed]
You can tell when I'm not fully awake when I start giving out information that isn't correct like this

Yeah, you're right.

This signature is designed to be as useful as possible.
How to make a signature & other useful info about them
The Official List of Rejected Suggestions (TOLORS)
The Announcements Directory
Lesser-known Scratch URLs: https://scratch-mit-edu.ezproxy.canberra.edu.au/discuss/topic/542480/
Why @Paddle2See's responses are so often identical: https://scratch-mit-edu.ezproxy.canberra.edu.au/discuss/topic/762351/

Ads Useful projects:
Raycaster & Maze 1.4.1 | Don't Break The Ice | Procedurally Generated Terrain | Basic Trigonometry | Comparing the fastest list sorters on Scratch

“if nobody can learn the programming language, it's just gibberish that does math.” -me, in a forum post

The original name of “loves” was “love-its”. Technically speaking, this hasn't changed.

© @BigNate469, some rights reserved
Maximouse
Scratcher
1000+ posts

!!HELP NEEDED!! Fluffscript - a simple programming language for everyone

blubby4 wrote:

Hold on, which languages are “most languages”? In the languages I know, it would probably just give an error.
Anything with a C-style syntax: C++, Java, JavaScript…
In Python this would indeed be an error.


This is Maximouse's signature. Learn more about signatures.

Powered by DjangoBB