Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » !!HELP NEEDED!! Fluffscript - a simple programming language for everyone
- 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:
Syntax:
URL for syntax
Help Wanted:
We need experienced programmers in Scratch to make a place for writing and running Fluffscript programs!
To Do:
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
Yes. Also, I might need help on this because I don’t know that much JS LOL. 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.
- BigNate469
- Scratcher
1000+ posts
!!HELP NEEDED!! Fluffscript - a simple programming language for everyone
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.Yes. Also, I might need help on this because I don’t know that much JS LOL. 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.
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); };
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
Cool, thanks. I might implement this in turbowarp.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.Yes. Also, I might need help on this because I don’t know that much JS LOL. 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.
Edit: and most of the things that can't can either be custom-made functions (an example is print()- which could be implemented asin the background- but others too), or are essentially replaced keywords (cst instead of const, for example).function print(input) { console.log(input); };
- LTV2008
- Scratcher
76 posts
!!HELP NEEDED!! Fluffscript - a simple programming language for everyone
Write some FS code then import the .txt file to here:Cool, thanks. I might implement this in turbowarp.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.Yes. Also, I might need help on this because I don’t know that much JS LOL. 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.
Edit: and most of the things that can't can either be custom-made functions (an example is print()- which could be implemented asin the background- but others too), or are essentially replaced keywords (cst instead of const, for example).function print(input) { console.log(input); };
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
Oh, and you can't make comments yet. Enjoy!Write some FS code then import the .txt file to here:Cool, thanks. I might implement this in turbowarp.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.Yes. Also, I might need help on this because I don’t know that much JS LOL. 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.
Edit: and most of the things that can't can either be custom-made functions (an example is print()- which could be implemented asin the background- but others too), or are essentially replaced keywords (cst instead of const, for example).function print(input) { console.log(input); };
Crude compiler that I made
Once your code is output, open the .txt, copy all of it, use this site:
uglifyjs
- 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
right?
it should be
myVarName += 1;
myVarName -= 1;
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
in most languages myVarName = myVarName += 1 is the same as myVarName += 1, which makes it more confusing. I think you made a mistake at “// increase/decrease existing variable”
it should beright?myVarName += 1;
myVarName -= 1;
I suppose we need clarification on what just myVarName += 1 on its own does.
Last edited by MonkeyBean2 (Oct. 17, 2024 17:44:10)
- Redstone1080
- Scratcher
1000+ posts
!!HELP NEEDED!! Fluffscript - a simple programming language for everyone
Even easier:function print(input) { console.log(input); };
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
Hold on, which languages are “most languages”? In the languages I know, it would probably just give an error.in most languages myVarName = myVarName += 1 is the same as myVarName += 1, which makes it more confusing. I think you made a mistake at “// increase/decrease existing variable”
it should beright?myVarName += 1;
myVarName -= 1;
I suppose we need clarification on what just myVarName += 1 on its own does.
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
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.Even easier:function print(input) { console.log(input); };const print = console.log
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
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]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.Even easier:function print(input) { console.log(input); };const print = console.log
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.
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
You can tell when I'm not fully awake when I start giving out information that isn't correct like thisBut you're not copying the function definition. It takes the same time no matter how big it is because it's passed by reference snip[citation needed]
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
Anything with a C-style syntax: C++, Java, JavaScript… Hold on, which languages are “most languages”? In the languages I know, it would probably just give an error.
In Python this would indeed be an error.
- Discussion Forums
- » Advanced Topics
- » !!HELP NEEDED!! Fluffscript - a simple programming language for everyone