C# makes me miss BYOB so much. I still prototype a lot of my code in BYOB before translating it too other languages. If BYOB was fast and text based it would be the best language IMO. I think I should create a language that follows in the spirit of BYOB/Snap, maybe it can be trans-compiled to C. This is just an idea of course. BTW When is this discussion being moved to a Snap thread instead of BYOB thread
Offline
Can morphic only run one world at a time? If that's the case, I feel really foolish, because it means that my Snap! embed project isn't viable.
Offline
Randomno wrote:
Sorry, I mean the Squeak code. Is there one?
Custom blocks are not translated to Squeak; they are interpreted directly from the block representation. WYSIWYG, so to speak.
You can see the Smalltalk code for primitive blocks by choosing "edit elements" from their right/control-click menus. What you get is a block-representation version of the BYOB source code for that block.
Offline
BornAgainAtheist wrote:
If BYOB was fast and text based it would be the best language IMO.
There is a text-based BYOB; it's called Scheme. But, as for speed, Snap! is pretty amazingly fast for an interpreted language. Worlds apart from BYOB speed. Not the same as compiled code, true, but I never thought I'd see count-change run so fast that I had to put a WAIT block at the end of each screenful so that the user could see the results at all!
You've been awfully quiet lately btw!
Offline
bharvey wrote:
You've been awfully quiet lately btw!
My parents are expecting me to make a game in XNA, that has me busy, along with too much gaming and sleeping. School also had me busy while it was on. I plan on being more active on the forums, especially since I'm testing a lot of my ideas in BYOB or Snap! first.
Offline
Just found an interesting Snap! bug. You can place blocks in array expander arrows as if they were input slots. It even works for palette blocks which pass on these oddly nested blocks
Offline
New thread= official release.
Offline
BornAgainAtheist wrote:
Just found an interesting Snap! bug. You can place blocks in array expander arrows as if they were input slots. It even works for palette blocks which pass on these oddly nested blocks
This is a feature, not a bug. The expression you drop on the arrows should have a list as its value, and that list provides the inputs (one per item) to the variadic block. It's instead of the WITH INPUT LIST option in the RUN/CALL pulldown slot in BYOB.
EDIT: I'm not sure I really like this notation; it isn't very obvious, as seen in this conversation. The BYOB version shows you a list-type input slot when you choose WITH INPUT LIST, and I think that helps. But for now at least it works.
Last edited by bharvey (2012-08-04 22:19:44)
Offline
shadow_7283 wrote:
Can morphic only run one world at a time? If that's the case, I feel really foolish, because it means that my Snap! embed project isn't viable.
You can have as many Morphic worlds as you want in a single web page, without having to use iframes. Check out the Morphic programming guide (the long comment at the beginning of Morphic.js), there even is an example showing you how to set up multiple worlds.
Offline
bharvey wrote:
This is a feature, not a bug. The expression you drop on the arrows should have a list as its value, and that list provides the inputs (one per item) to the variadic block.
Are you sure? https://sites.google.com/site/byobimages/_/rsrc/1344150781198/home/yousure/You_sure.png
It doesn't effect the return value of the first block and the first block does not expand to fit the new block so the new one is cut off. We may be talking about two different things.
Offline
* https://sites.google.com/site/byobimages/_/rsrc/1344150781198/home/yousure/You_sure.png
Offline
my url keeps getting cut off right before the 'ng'
Offline
bharvey wrote:
BornAgainAtheist wrote:
Just found an interesting Snap! bug. You can place blocks in array expander arrows as if they were input slots. It even works for palette blocks which pass on these oddly nested blocks
This is a feature, not a bug. The expression you drop on the arrows should have a list as its value, and that list provides the inputs (one per item) to the variadic block. It's instead of the WITH INPUT LIST option in the RUN/CALL pulldown slot in BYOB.
EDIT: I'm not sure I really like this notation; it isn't very obvious, as seen in this conversation. The BYOB version shows you a list-type input slot when you choose WITH INPUT LIST, and I think that helps. But for now at least it works.
Maybe it should add a special block called "items of ()" around the block you drag on to the input arrows to make it clear what you are doing. This special block cannot be dragged out and will automatically disappear if its input is dragged out.
Edit: it seems like his bug is that the block gets dropped onto one of the arrows, not both.
Last edited by joefarebrother (2012-08-05 06:53:00)
Offline
BornAgainAtheist wrote:
* https://sites.google.com/site/byobimages/_/rsrc/1344150781198/home/yousure/You_sure.png
Oh. Yeah, that's a bug all right. It took me a while to reproduce it because there's no drop halo -- I kept wiggling the second block around to try to make one appear. And it happens (for me anyway) only if the outer block is LIST.
Offline
Jens wrote:
You can have as many Morphic worlds as you want in a single web page...
Awesome, and thank you. Would you mind if I made a minified version of Snap? It would remove the copyright comments, but I'd include the license.
Offline
shadow_7283 wrote:
It would remove the copyright comments, but I'd include the license.
Why one but not the other? I would understand if you were saying, for example, that this would be a presentation-mode-only version, and therefore no menu bar, and therefore no About box. But if you can display the license notice, you can display the copyright notice!
Sorry to sound like a lawyer, but I'm worried that if we authorize a version without the copyright notice, that weakens our claims wrt everyone else in the world, too, and therefore threatens the enforceability of the AGPL.
Offline
bharvey wrote:
Sorry to sound like a lawyer...
Not at all! To clarify, when you minify a JavaScript file, it compresses it by removing all spaces and comments for optimal loading time. In the case of Snap, it reduces the size by 30%. The license would still be displayed in Snap, just not in the comments of the JavaScript file.
Offline
shadow_7283 wrote:
The license would still be displayed in Snap, just not in the comments of the JavaScript file.
Ah. So, in order for that to work, the text of the copyright/license/about has to be preserved in oneJS file, right? That should be okay, I think.
EDIT: See http://programmers.stackexchange.com/qu … tice#45036 to see how to preserve the copyright notice and licence.
Last edited by bharvey (2012-08-06 01:48:29)
Offline
BornAgainAtheist wrote:
Just found an interesting Snap! bug. You can place blocks in array expander arrows as if they were input slots. It even works for palette blocks which pass on these oddly nested blocks
Fixed! Thanks for the bug report, BornAgainAtheist.
Offline
So I've been busy for a while, so I've missed some stuff. Whats the current feature being worked on right now in Snap? I notice Snap seems to be getting faster
Offline
bharvey wrote:
Not just one big one. Paint editor, music, bunches of little UI things. Save to cloud might be the most important one.
Save projects to a cloud or vars and lists?
Offline