This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#5226 2012-05-26 04:52:47

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Lucario621 wrote:

Well I'm glad I was able to meet up with you at Scratch Day.  smile

Lucky. I wish I could meet up with someone who actually knows something about programming in real life. Nobody in my school knows anything about programming.  sad

P.S. Due to lots of things popping up in my life for some reason I haven't been doing too much Scratching (except for some Wiki editing and posting a project). I just want to let you know that the Snap! image work is still on my mind and I haven't forgotten.


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#5227 2012-05-26 11:46:53

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Hardmath123 wrote:

Lucky. I wish I could meet up with someone who actually knows something about programming in real life. Nobody in my school knows anything about programming.  sad

When you said "where in NY" I thought there'd be a followup about a meeting.  You must be in upstate.

the Snap! image work is still on my mind and I haven't forgotten.

Thanks.  Don't worry, the manual isn't in the critical path at this point.


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#5228 2012-05-26 12:08:05

blob8108
Scratcher
Registered: 2007-06-25
Posts: 1000+

Re: BYOB 3 - Discussion Thread

bharvey wrote:

Don't worry, the manual isn't in the critical path at this point.

"The critical path" sounds very dramatic.  tongue


Things I've made: kurt | scratchblocks2 | this cake

Offline

 

#5229 2012-05-26 12:16:01

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: BYOB 3 - Discussion Thread

blob8108 wrote:

"The critical path" sounds very dramatic.

It's a technical term in the theory of project scheduling.


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#5230 2012-05-26 16:31:29

fullmoon
Retired Community Moderator
Registered: 2007-06-04
Posts: 1000+

Re: BYOB 3 - Discussion Thread

We need to get our hands on one of these and connect it to Snap! Just sayin'.  tongue


http://i302.photobucket.com/albums/nn100/fullmoon32/wow.jpg

Offline

 

#5231 2012-05-26 16:41:37

shadow_7283
Scratcher
Registered: 2007-11-07
Posts: 1000+

Re: BYOB 3 - Discussion Thread

bharvey wrote:

What's your argument for 0-origin?  Apart from that it's in Javascript?

In my limited programming experience it's always been standard. I automatically assign my iterators to 0 as a starting value, and from there it requires a lot of confusing (+1, -1) to make sure the value is usable. But really, it's just a matter of preference for me.

Offline

 

#5232 2012-05-26 19:21:39

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: BYOB 3 - Discussion Thread

fullmoon wrote:

We need to get our hands on one of these and connect it to Snap!

Yeah!


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#5233 2012-05-26 19:28:20

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: BYOB 3 - Discussion Thread

shadow_7283 wrote:

In my limited programming experience it's always been standard.

It's been standard since C, more or less.  Fortran arrays were originally 1-origin.  It's true, though, that current adult languages are 0-origin.

But kid languages have always been 1-origin, because that's what feels natural to people who haven't programmed before.  Logo is 1-origin, and I believe so is BASIC.  And of course so is Scratch.

(Some languages, including some of the above,  let you choose any integer origin.  But even they have defaults.)

Absent a strong argument the other way, all else being equal I think it's more important to be compatible with Scratch than to be compatible with other languages.


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#5234 2012-05-26 20:05:21

shadow_7283
Scratcher
Registered: 2007-11-07
Posts: 1000+

Re: BYOB 3 - Discussion Thread

bharvey wrote:

I think it's more important to be compatible with Scratch than to be compatible with other languages.

Fair enough.

I have the strangest feeling I've requested this before, but do you have a script that will remove all nested items in a list and report them as one flat list?

For example, the list

[ [ i ],[ ii ] ];
[ [ iii ],[ iv ] ];
[ v ];

would return

[i];
[ii];
[iii];
[iv];
[v];

Sorry for my terrible illustrations. >_<

Really what I want to do is find an item regardless of nests in a list and then identify its location in the original list.

Last edited by shadow_7283 (2012-05-26 20:06:04)

Offline

 

#5235 2012-05-26 23:05:42

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: BYOB 3 - Discussion Thread

bharvey wrote:

Hardmath123 wrote:

Lucky. I wish I could meet up with someone who actually knows something about programming in real life. Nobody in my school knows anything about programming.  sad

When you said "where in NY" I thought there'd be a followup about a meeting.  You must be in upstate.

Nah, out of town, unfortunately...


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#5236 2012-05-27 01:32:16

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: BYOB 3 - Discussion Thread

shadow_7283 wrote:

do you have a script that will remove all nested items in a list and report them as one flat list?

http://byob.berkeley.edu/flatten.png

But if you want to report where in the original list some atom is found, then you don't want to flatten it; that loses the structure information!  You want to write a recursive procedure that goes through the list recursively deep-indexing the desired value, and when it finds it, stick the toplevel item number in front of the index list from the recursive call.


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#5237 2012-05-27 01:35:30

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Hardmath123 wrote:

Nah, out of town, unfortunately...

Oh, well, I guess you have to convince your parents that you need to go to the theater in the city that week.  tongue


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#5238 2012-05-27 01:50:41

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: BYOB 3 - Discussion Thread

tongue

Hey bharvey, can you write a BYOB script, without defining any procedures, which reports itself? I tried, but it didn't work too well.

P.S. I ran into this problem when trying to write an executable which saves a copy of itself somewhere. I used the obvious way of getting its contents via the file path, then saving those contents somewhere else; but then I got thinking about a pure self-reporting script.

P.S.S. Call me a hacker if you will, but I was writing that for a (legal) purpose. Honest.

Last edited by Hardmath123 (2012-05-27 12:18:46)


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#5239 2012-05-27 12:47:57

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Hardmath123 wrote:

a BYOB script, without defining any procedures, which reports itself?

Oh no!  You've given Jens an argument for not displaying rings around procedures on output!

Anyway, this probably isn't what you meant, but is the best I could do quickly:

http://cs.berkeley.edu/~bh/thescript.png

I'll think about it some more...

Call me a hacker if you will

"It is better to be described as a hacker by others than to describe oneself that way."

smile


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#5240 2012-05-27 13:12:21

blob8108
Scratcher
Registered: 2007-06-25
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Ah, yes! So what you're really doing is inviting us to call you a hacker!  tongue   smile

bharvey wrote:

Hardmath123 wrote:

a BYOB script, without defining any procedures, which reports itself?

Oh no!  You've given Jens an argument for not displaying rings around procedures on output!

Anyway, this probably isn't what you meant, but is the best I could do quickly:

http://cs.berkeley.edu/~bh/thescript.png

I'll think about it some more...

Are you thinking of something like a quine?

Last edited by blob8108 (2012-05-27 13:13:48)


Things I've made: kurt | scratchblocks2 | this cake

Offline

 

#5241 2012-05-27 13:54:41

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: BYOB 3 - Discussion Thread

blob8108 wrote:

Are you thinking of something like a quine?

Yes, I think that's what Hardmath is asking for.

It would be easy if BYOB were a true Lisp, in which every expression returns a value, but instead we inherit the command/reporter distinction from Logo by way of Scratch, exacerbated by the BYOB misfeature (so maybe we come out even on Hardmath's effect on long-running arguments between Jens and me  smile ) of displaying some reporters as one-line scripts including a REPORT block on output.  So to get it right you have to make that REPORT explicit in the input, and account for that in the Quining.

I'm too tired to think about it right now; my flight home last night was late (making three out of four flights late in the past couple of weeks -- an unsolicited antitestimonial for United Airlines  sad ) and I'm barely ambulatory.


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#5242 2012-05-27 17:09:00

roijac
Scratcher
Registered: 2010-01-19
Posts: 1000+

Re: BYOB 3 - Discussion Thread

#byobguide guys, can you tell me when you finished discussing the rings/calling parameters? the screenshots i still have to take are pretty much about that...

i also tried to make a 'last changes' block, but when assigning a var to http://snap.berkeley.edu/snapsource/history.txt and displaying it, it crashed...  hmm

Offline

 

#5243 2012-05-27 20:00:03

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: BYOB 3 - Discussion Thread

roijac wrote:

can you tell me when you finished discussing the rings/calling parameters?

I think rings are stable for now.  Thanks.

About your crash, saving global blocks is known not to work.  (n: hint)


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#5244 2012-05-28 03:19:55

xly
Scratcher
Registered: 2010-04-17
Posts: 100+

Re: BYOB 3 - Discussion Thread

bharvey wrote:

xly wrote:

I've used the good old method with SET + CShape Ring +

There's a "Make a Block" button at the bottom of Variables.

This is true. But the block can't be edited as Right--click freezes Chrome beta. Other browser like Firefox are not better than Chrome.
Export feature works.The xml code of the application can be exported (and send by email). This code is uploadable on a Snap! + PC
Android 4 has now a Screen capture native feature which gives nice pictures of the application.
For the moment it is easy and convenient as long as Snap! applications are written by using external Mouse and Keyboard linked by Usb or Bluetooth.
Looking to the future, one can foresee that the personal computer world will change in the next coming years with new light inexpensive PC solutions derived from the Tab paradigm ( see for example http://apc.io/ for an Android mother board at 50 $) but using Mouse/keyboard (*)
Snap! will ideally fit to this new concept.

(*) Having used dozens of personal computers since my first Apple in 1982 I am impressed by the new concept of Tabs Apple/Android operating systems, both based on Unix kernel + App Store providing a bunch applications easy to load/buy/test/unload and providing all basic tools for a basic user at a low cost.
On top of that applications can also be loaded on your mobile phone !
Nevertheless, if you need to create yourself your own application or information at home or office (and not only browse) : text, calc board, Snap! project, etc then you will prefer to use Mouse+Keyboard, what I am already doing with my Acer Tab 500 + Snap!

Offline

 

#5245 2012-05-28 12:24:16

shadow_7283
Scratcher
Registered: 2007-11-07
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Is the exclamation point in Snap! actually part of the name?

EDIT: Oh no... "Could not read project; file may be damaged: (Message not understood: unused)" I saved very frequently and did not interrupt it... any chance of a file repair?

Last edited by shadow_7283 (2012-05-28 12:31:36)

Offline

 

#5246 2012-05-28 14:12:35

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: BYOB 3 - Discussion Thread

bharvey wrote:

shadow_7283 wrote:

do you have a script that will remove all nested items in a list and report them as one flat list?

http://byob.berkeley.edu/flatten.png

But if you want to report where in the original list some atom is found, then you don't want to flatten it; that loses the structure information!  You want to write a recursive procedure that goes through the list recursively deep-indexing the desired value, and when it finds it, stick the toplevel item number in front of the index list from the recursive call.

It's probably for some extended <[list v] contains [item]?> feature.

shadow_7283 wrote:

Is the exclamation point in Snap! actually part of the name?

Yep.  tongue

Offline

 

#5247 2012-05-28 14:13:29

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: BYOB 3 - Discussion Thread

@jens, bharvey: You should create BYOB/Snap! forums, so that we can have more organized discussions, instead of using this super-long and messy thread.

Offline

 

#5248 2012-05-28 15:57:00

shadow_7283
Scratcher
Registered: 2007-11-07
Posts: 1000+

Re: BYOB 3 - Discussion Thread

scimonster wrote:

@jens, bharvey: You should create BYOB/Snap! forums, so that we can have more organized discussions, instead of using this super-long and messy thread.

As they've said a few times, they're waiting for the official Snap! release before creating a new topic/forum.

Offline

 

#5249 2012-05-28 16:23:48

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: BYOB 3 - Discussion Thread

shadow_7283 wrote:

Is the exclamation point in Snap! actually part of the name?

Yes, although Jens doesn't like using it when there is another punctuation mark after the name Snap!, as in this sentence.

EDIT: Oh no... "Could not read project; file may be damaged: (Message not understood: unused)" I saved very frequently and did not interrupt it... any chance of a file repair?

Yeah, this is why we're not in beta yet...  My best suggestion is to look at your project in an XML editor and see if you can find what Snap! doesn't like in it.  Or send your file to nXIII, our serialization expert.  hmm


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#5250 2012-05-28 16:25:23

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: BYOB 3 - Discussion Thread

scimonster wrote:

instead of using this super-long and messy thread.

What, you mean you're not curious about why Lucario has a brick wall coming out of his head?  tongue


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

Board footer