Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » ~tosh~ public beta
- blob8108
-
Scratcher
1000+ posts
~tosh~ public beta
According to the grammar it supports “red orange yellow green blue purple black white pink brown,” under c0 which I guess stands in for a color input. That doesn't seem to be functional though and I also just get a black penYou're right. Thanks for reporting!
http://tosh.tjvr.org/help/guide/ refers to ( ) as “brackets” but that typically means [ and ] characters right?Brian just complained about the same thing, over on the Snap! thread:
I've always heard them called (parenthesis), [brackets], and {braces} myself
2. Here in the US these things ()()()()() are called parentheses. “Brackets” are the square ones, which I'm not going to demo because it's such a pain in the forum. Not that you're not entitled to speak your native language, but maybe a note about this the first time you say “brackets” would be good.
- blob8108
-
Scratcher
1000+ posts
~tosh~ public beta
Thanks mwI see you're using the new scratchblocks on the guide page. They're…sooo..beautiful…I didn't even realize they weren't images until now. Awesome!
I was worrying about whether the renderer was pixel-perfect enough (there are still minor ~1px layout differences), but I think your comment indicates that I should stop worrying about that!tosh actually changes the numeric ‘set pen color to’ block to ‘set pen hue to’.Connor suggested this

It's not actually documented anywhere. I wonder if it should be… It comes up in auto-complete, but so does “define-atomic”, and both of you apparently missed that…
- scratchisthebest
-
Scratcher
1000+ posts
~tosh~ public beta
Well, here's an annoying bug: if your project causes an infinite loop (at least in an atomic block), tosh freezes entirely (& you better hope you saved your work!)
More specifically, this script freezes tosh:
Not sure if that's your fault or nxiii's though.
More specifically, this script freezes tosh:
when flag clicked
crash
define-atomic crash
set i to 0
repeat until i=1
end
Not sure if that's your fault or nxiii's though.
Last edited by scratchisthebest (April 9, 2016 01:52:40)
- bobbybee
-
Scratcher
1000+ posts
~tosh~ public beta
Well, here's an annoying bug: if your project causes an infinite loop (at least in an atomic block), tosh freezes entirely (& you better hope you saved your work!)
More specifically, this script freezes tosh:when flag clicked
crash
define-atomic crash
set i to 0
repeat until i=1
end
Not sure if that's your fault or nxiii's though.
“When in doubt, it's not my fault!” ~every dev ever.
Also, feature request that shouldn't be too hard (and might be there already, didn't look closely enough): A script preview toggle so I can look, read-only, at the graphical representation of the program. Nice for eye candy – I mean, debugging possibly ambiguous grammars :-)
- blob8108
-
Scratcher
1000+ posts
~tosh~ public beta
this script freezes toshYes. Oops. I didn't document that, did I…
Phosphorus doesn't force-yield every 500ms inside atomic blocks, the way Scratch does. I don't think Nathan's going to implement it. I tried to write a patch for this, but it was a bit iffy, and any way you do it it's going to make phosphorus slower.
- blob8108
-
Scratcher
1000+ posts
~tosh~ public beta
A script preview toggle so I can look, read-only, at the graphical representation of the program.Yeah, @Liam suggested something like this. I can use the shiny new scratchblocks

My thought was (going back to something I did in a previous version) to have scratchblocks in the auto-complete thing. But I need to rewrite completion anyway…
debugging possibly ambiguous grammarsOoh, did you find an ambiguous input? Tell me!
- bobbybee
-
Scratcher
1000+ posts
~tosh~ public beta
A script preview toggle so I can look, read-only, at the graphical representation of the program.Yeah, @Liam suggested something like this. I can use the shiny new scratchblocks
My thought was (going back to something I did in a previous version) to have scratchblocks in the auto-complete thing. But I need to rewrite completion anyway…debugging possibly ambiguous grammarsOoh, did you find an ambiguous input? Tell me!
Unclear. But I had a bug in a math expression, and I don't know what's to blame, tosh or my Wikipedia mathematics degree.
- blob8108
-
Scratcher
1000+ posts
~tosh~ public beta
Just something the font nerd in me can't surpress:Interesting! On OS X Safari I do actually use a different font (San Fransisco). I might try a sans font for the other browsers too.
The top bar seems so off. I don't know. It's a nice bar, and it's a nice editor, but they don't seem to… fit.
Maybe try something sans?
Is it just the font that bothers you? I used to have a horrible yellow menu bar, it was much more jarring

Overall though: 10/10 was worth the hypeI'm so glad

- scratchisthebest
-
Scratcher
1000+ posts
~tosh~ public beta
Is there a way to at least make it not freeze the whole tab, though?this script freezes toshYes. Oops. I didn't document that, did I…
Phosphorus doesn't force-yield every 500ms inside atomic blocks, the way Scratch does. I don't think Nathan's going to implement it. I tried to write a patch for this, but it was a bit iffy, and any way you do it it's going to make phosphorus slower.

Willing to take a performance hit if it means that I won't lose projects because I forget to implement the counter in my repeat-until loop
- blob8108
-
Scratcher
1000+ posts
~tosh~ public beta
Willing to take a performance hit if it means that I won't lose projects because I forget to implement the counter in my repeat-until loopI agree
I just don't know phosphorus well enough. I'll figure out a fix eventually.- liam48D
-
Scratcher
1000+ posts
~tosh~ public beta
I'll figure out a fix eventually.This promise is going to haunt you for the rest of your days..
(just kidding)- comp09
-
Scratcher
1000+ posts
~tosh~ public beta
Some ideas:Willing to take a performance hit if it means that I won't lose projects because I forget to implement the counter in my repeat-until loopI agreeI just don't know phosphorus well enough. I'll figure out a fix eventually.
- Run phosphorus in a sandboxed iframe (probably not very effective)
- Run phosphorus in a separate thread using Web Workers, and “polyfill” the necessary canvas/DOM functions to modify the outside page
- Forget about performance and modify phosphorus
- NoMod-Programming
-
Scratcher
1000+ posts
~tosh~ public beta
YAY!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
- -Io-
-
Scratcher
1000+ posts
~tosh~ public beta
Oh. My. Gosh! (tm pls no steel future mod name ( ͡° ͜ʖ ͡°))
Just tried it. It doesn't seem to replace invalid characters on load for variable names and stuff though
Just FYI the chars that were troubling me were _, @, and spaces.
EDIT: Oh wait! Spaces do work, it's just _ and @ then or a problem with the project itself being to crazeh, because every other project i've tried works fine, except for some stuff like backdrops not loading or costumes cutting in half.
Just tried it. It doesn't seem to replace invalid characters on load for variable names and stuff though

Just FYI the chars that were troubling me were _, @, and spaces.
EDIT: Oh wait! Spaces do work, it's just _ and @ then or a problem with the project itself being to crazeh, because every other project i've tried works fine, except for some stuff like backdrops not loading or costumes cutting in half.
Last edited by -Io- (April 9, 2016 03:35:32)
- Jonathan50
-
Scratcher
1000+ posts
~tosh~ public beta
This is my first Tosh program!use when flag clicked.when green flag clicked
say "Hello World!"
Suggestion: Please allow us to do “when GF clicked.” Scratchblocks lets us do this, after all.
- Jonathan50
-
Scratcher
1000+ posts
~tosh~ public beta
ftfy2. Here in the US every english speaking place in the world these things ()()()()() are called parentheses. “Brackets” are the square ones, which I'm not going to demo because it's such a pain in the forum. Not that you're not entitled to speak your native language, but maybe a note about this the first time you say “brackets” would be good.
- scratchisthebest
-
Scratcher
1000+ posts
~tosh~ public beta
It's about the “when gf clicked” syntax in scratchblocks:This is my first Tosh program!use when flag clicked.when green flag clicked
say "Hello World!"
Suggestion: Please allow us to do “when GF clicked.” Scratchblocks lets us do this, after all.
when gf clicked
makes
when gf clicked
- Jonathan50
-
Scratcher
1000+ posts
~tosh~ public beta
I know. I'm saying to use ‘when flag clicked’ instead.It's about the “when gf clicked” syntax in scratchblocks:This is my first Tosh program!use when flag clicked.when green flag clicked
say "Hello World!"
Suggestion: Please allow us to do “when GF clicked.” Scratchblocks lets us do this, after all.
-snip-
- Discussion Forums
- » Advanced Topics
-
» ~tosh~ public beta