Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » tosh: i have some questions
- MegaApuTurkUltra
-
Scratcher
1000+ posts
tosh: i have some questions
This isn't really much of a tosh-related issue. You'd need to mod phosphorus (add support for some custom “breakpoint” JSON and make it pause there - it shouldn't be too hard really)I do hope you're providing a decent debugger?Well, that all depends. What would a decent debugger look like?
If you mean “better than Scratch”, then sorry, no…
- ChocolatePi
-
Scratcher
1000+ posts
tosh: i have some questions
But then you'd have to remove the breakpoint or else it won't work with Scratch!This isn't really much of a tosh-related issue. You'd need to mod phosphorus (add support for some custom “breakpoint” JSON and make it pause there - it shouldn't be too hard really)I do hope you're providing a decent debugger?Well, that all depends. What would a decent debugger look like?
If you mean “better than Scratch”, then sorry, no…
- Jonathan50
-
Scratcher
1000+ posts
tosh: i have some questions
define breakpointproblem solved
if <not <(debug) = [1]>>
stop [this script v]
end
say [breakpoint reached] for (3) secs
repeat until <(answer) = [y]>
ask [Continue?] and wait
end
define assert (assertion) <cond>
if <not <(debug) = [1]>>
stop [this script v]
end
if <not <cond :: custom-arg>>
say (join (join [assertion ] (assertion)) [ failed!!]) for (3) secs
repeat until <(answer) = [y]>
ask [Continue?] and wait
end
end
- blob8108
-
Scratcher
1000+ posts
tosh: i have some questions
This isn't really much of a tosh-related issue. You'd need to mod phosphorusYeah, you'd have to modify phosphorus; that's one of the reasons fancy debugging isn't going to happen!
(The phosphorus player integration is already a tiny bit hacky. It works, and mostly works how you'd expect, but it's not super-nice internally!)Last edited by blob8108 (Jan. 19, 2016 23:07:45)
- bobbybee
-
Scratcher
1000+ posts
tosh: i have some questions
But then you'd have to remove the breakpoint or else it won't work with Scratch!This isn't really much of a tosh-related issue. You'd need to mod phosphorus (add support for some custom “breakpoint” JSON and make it pause there - it shouldn't be too hard really)I do hope you're providing a decent debugger?Well, that all depends. What would a decent debugger look like?
If you mean “better than Scratch”, then sorry, no…
Harder said than done :-)
- MegaApuTurkUltra
-
Scratcher
1000+ posts
tosh: i have some questions
I'd assume Scratch skips over invalid blocks - it shouldn't do anything bad right?But then you'd have to remove the breakpoint or else it won't work with Scratch!This isn't really much of a tosh-related issue. You'd need to mod phosphorus (add support for some custom “breakpoint” JSON and make it pause there - it shouldn't be too hard really)I do hope you're providing a decent debugger?Well, that all depends. What would a decent debugger look like?
If you mean “better than Scratch”, then sorry, no…
Harder said than done :-)
- MegaApuTurkUltra
-
Scratcher
1000+ posts
tosh: i have some questions
A variable/list browser might be nice too though.snippity snip::greyproblem solved
even just a list watcher in phosphorus would be nice *ahem*
- drmcw
-
Scratcher
1000+ posts
tosh: i have some questions
Surely having a debugger would make it better than scratch?I do hope you're providing a decent debugger?Well, that all depends. What would a decent debugger look like?
If you mean “better than Scratch”, then sorry, no…
Breakpoints, single stepping and viewing data at a breakpoint would be a great start.

- Icely
-
Scratcher
100+ posts
tosh: i have some questions
I meant both.Wish you would share the source, though.I plan to release at least part of it on GitHub, and I think I'd like to be able to accept contributions from the community. However, I don't yet have a plan for releasing the code under an open-source licence (that is, one which lets you remix tosh). I'm considering 3-clause BSD, or maybe something similar to the Scratch Source Code License.
Basically, tosh is a labour of love, and I've been working on this “project” in effect for over four years, so the thought of someone else stealing my code, and eg. selling it somewhere, is really scary!
EDIT: I realise you probably meant “I wish you would release it now”? To which the answer is: it's not ready yet! I want it to be useful before I release it. It looks good in screenshots, but there's still a fair bit of missing functionality, that would stop you from using it for making actual projects.
That said, if you're interested in beta testing… drop me an email

And I think that the GNU license would be a good fit. (Possibly)
[/lateresponse]
- Jonathan50
-
Scratcher
1000+ posts
tosh: i have some questions
Oh, since you are the copyright holder, you may put the online version as (A)GPL and make the Mac app version proprietary*, unless you are using (A)GPL code by someone else in the Mac app.Yeah. I expect I'll get more money from selling a Mac app than I would from donations. And a native app is a really nice thing to have!(Maybe I don't see *why* you want to release it there)Because it's an easy way to distribute apps to OS X users?
I'm happy with 3-clause BSD. The nefarious code-stealing doomsday scenario isn't going to happen
*yes Apple's Mac App Store TOS adds restrictions that makes your app nonfree
Last edited by Jonathan50 (Jan. 22, 2016 07:39:58)
- bobbybee
-
Scratcher
1000+ posts
tosh: i have some questions
Oh, since you are the copyright holder, you may put the online version as (A)GPL and make the Mac app version proprietary*, unless you are using (A)GPL code by someone else in the Mac app.Yeah. I expect I'll get more money from selling a Mac app than I would from donations. And a native app is a really nice thing to have!(Maybe I don't see *why* you want to release it there)Because it's an easy way to distribute apps to OS X users?
I'm happy with 3-clause BSD. The nefarious code-stealing doomsday scenario isn't going to happen
*yes Apple's Mac App Store TOS adds restrictions that makes your app nonfree
Probably best to consult a lawyer at this point .-.
- blob8108
-
Scratcher
1000+ posts
tosh: i have some questions
Oh, since you are the copyright holder, you may put the online version as (A)GPL and make the Mac app version proprietary*, unless you are using (A)GPL code by someone else in the Mac app.Yes, I realised this a page or two ago!
*yes Apple's Mac App Store TOS adds restrictions that makes your app nonfree
- Ethan_1
-
Scratcher
100+ posts
tosh: i have some questions
@blob8108 did you notice that I gave you my email in the survey? If you don't want to hand me the beta that is fine, I just want to make sure that you saw it.
- blob8108
-
Scratcher
1000+ posts
tosh: i have some questions
did you notice that I gave you my email in the survey?I sent an email; hopefully to your address.

- hiccup01
-
Scratcher
100+ posts
tosh: i have some questions
lolwut? (At least try to contribute to the discussion…)
Last edited by hiccup01 (Jan. 26, 2016 07:29:47)
- Thepuzzlegame
-
Scratcher
1000+ posts
tosh: i have some questions
I think they were responding to the deleted post. although I do agree the response wasn't necesarylolwut? (At least try to contribute to the discussion…)
- Ethan_1
-
Scratcher
100+ posts
tosh: i have some questions
tosh tosh toshI will say this once and only once, please no tosh spamming / memeing. Your cooperation is appreciated.

- Discussion Forums
- » Advanced Topics
-
» tosh: i have some questions













