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

#7851 2013-04-11 14:20:37

technoboy10
Scratcher
Registered: 2007-08-25
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Hardmath123 wrote:

Feb 7th, 2018.  wink

Ah, true.


So long, 1.4.
http://goo.gl/3JEV9

Offline

 

#7852 2013-04-11 14:21:46

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

Re: BYOB 3 - Discussion Thread

mythbusteranimator wrote:

I do not get Lisp.

Sorry to break it to you, but Snap! is Lisp.  (Scheme, to be exact.)


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

Offline

 

#7853 2013-04-11 14:26:05

technoboy10
Scratcher
Registered: 2007-08-25
Posts: 1000+

Re: BYOB 3 - Discussion Thread

bharvey wrote:

mythbusteranimator wrote:

I do not get Lisp.

Sorry to break it to you, but Snap! is Lisp.  (Scheme, to be exact.)

I've actually gone through a few of the Simply Scheme exercises with Snap!.  tongue


So long, 1.4.
http://goo.gl/3JEV9

Offline

 

#7854 2013-04-11 14:35:52

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

Re: BYOB 3 - Discussion Thread

technoboy10 wrote:

I've actually gone through a few of the Simply Scheme exercises with Snap!.  tongue

Yeah, there are some big chunks of lab activities in the BJC curriculum that I rewrote from Simply Scheme.  (Which in turn was largely stolen from Computer Science Logo Style.  Like a lot of academics, I've spent my career telling the same story over and over.)


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

Offline

 

#7855 2013-04-11 15:03:24

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

You can use / monadically, you know.  And you can (apply + <list>).

Thank! Just trying to learn lisp here...  tongue  I think I read a blog post about monadic things but it missed me completely. Can you explain? And dang, I forgot lisp operators take multiple arguments by default!

What's the best (most SICP-like) Scheme for OS X, btw? Racket seems okay, but I noticed a few minor syntax differences...

EDIT: okay, so I assume by "use / monadically" you mean that you can do

    > (map / '(1 2 3))
    '(1 1/2 1/3)

Last edited by blob8108 (2013-04-11 15:07:19)


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

Offline

 

#7856 2013-04-11 15:25:03

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

Re: BYOB 3 - Discussion Thread

blob8108 wrote:

What's the best (most SICP-like) Scheme for OS X, btw?

We use a locally modified STk: http://inst.eecs.berkeley.edu/~scheme
After you install it, run stk-simply to get SS and SICP procedures defined.

I assume by "use / monadically" you mean that you can do

    > (map / '(1 2 3))
    '(1 1/2 1/3)

Yeah.  Or just (/ 3) to compute 1/3.  One input = monadic.

(apply + (map / (map fact (range 1 100))))

(One of the things stk-simply does is redefine / to give an inexact result.  That will limit the precision of the final result.  You might not want to load our init file for this particular purpose.)

EDIT: ... and also, our RANGE returns a stream.  But this worked:

STk> (stream-accumulate + 0 (stream-map / (stream-map ! (range 0 100))))
2.71828182845905

Last edited by bharvey (2013-04-11 15:35:13)


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

Offline

 

#7857 2013-04-11 15:34:16

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

blob8108 wrote:

What's the best (most SICP-like) Scheme for OS X, btw?

We use a locally modified STk: http://inst.eecs.berkeley.edu/~scheme

I'll try that, thanks.


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

Offline

 

#7858 2013-04-11 15:34:45

Jens
Scratcher
Registered: 2007-06-04
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Folks, I need to give a presentation about Snap! next week, and I'd love to show off some of your interesting (small) projects that have been published in the Snap Cloud. Please post a few links on this thread, if you can spare the time. Thanks!


Jens Mönig

Offline

 

#7859 2013-04-11 16:06:51

technoboy10
Scratcher
Registered: 2007-08-25
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Jens wrote:

Folks, I need to give a presentation about Snap! next week, and I'd love to show off some of your interesting (small) projects that have been published in the Snap Cloud. Please post a few links on this thread, if you can spare the time. Thanks!

I could share my NXTKart project, if you want.


So long, 1.4.
http://goo.gl/3JEV9

Offline

 

#7860 2013-04-11 16:30:14

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

Re: BYOB 3 - Discussion Thread

Jens wrote:

Please post a few links on this thread

@Hardmath123: can you fix snapin8r to convert this project for me?  big_smile

python snapin8r.py -p 10086980 -open

Snapin8r runs successfuly, but Snap! gives "TypeError: Object [object Object] has no method 'setContents'".


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

Offline

 

#7861 2013-04-11 18:10:18

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

mythbusteranimator wrote:

I do not get Lisp.

Sorry to break it to you, but Snap! is Lisp.  (Scheme, to be exact.)

One Lisp without all these Lists of Insipid and Stupid Parenthesis !

Offline

 

#7862 2013-04-11 18:43:18

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

Re: BYOB 3 - Discussion Thread

Jens wrote:

Folks, I need to give a presentation about Snap! next week, and I'd love to show off some of your interesting (small) projects that have been published in the Snap Cloud. Please post a few links on this thread, if you can spare the time. Thanks!

This project :
http://snap.berkeley.edu/snapsource/snap.html#present:Username=xleroy&ProjectName=multitask
It loads, the Full Screen Window opens, but the Space Bar remains blocked.
When I stop (Red button) and restarts it (Green Glag) the bar comes again Active.

Offline

 

#7863 2013-04-11 22:52:21

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

Re: BYOB 3 - Discussion Thread

blob8108 wrote:

Jens wrote:

Please post a few links on this thread

@Hardmath123: can you fix snapin8r to convert this project for me?  big_smile

python snapin8r.py -p 10086980 -open

Snapin8r runs successfuly, but Snap! gives "TypeError: Object [object Object] has no method 'setContents'".

Share your project, please.

Also, were you serious about hosting a webpage for downloading Snap! for different platforms? If so, then can someone with Windows help package snapin8r for Windows? I can handle the Linux and Mac distributions with Python 2(.7), but not for Python 3:

Mac/Linux:
- Python 2.7
- Python 3.0: I can blindly 2to3 it, but no guarantee it will work.

Windows
- Python 2.7 (do we even need it?)
- Python 3.0

EDIT: I build a cool-looking (IMO) webpage. I'll have it up by tomorrow (hopefully!).  smile

Last edited by Hardmath123 (2013-04-12 02:13:43)


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

Offline

 

#7864 2013-04-12 02:51:14

joefarebrother
Scratcher
Registered: 2011-04-08
Posts: 1000+

Re: BYOB 3 - Discussion Thread

A bug: When i hold the backspace key in snap!, my computer freezes up and i have to wait until my browser gives an "unresponsive script" warning. When I press continue, it works normally again. My browser is Firefox and my OS is Linux Mint 14 Media.
It does not happen on chrome, win7.


My latest project is called http://tinyurl.com/d2m8hne! It has http://tinyurl.com/d395ygk views, http://tinyurl.com/cnasmt7 love-its, and http://tinyurl.com/bwjy8xs comments.
http://tinyurl.com/756anbk   http://tinyurl.com/iplaychess

Offline

 

#7865 2013-04-12 05:06:19

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

Re: BYOB 3 - Discussion Thread


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

Offline

 

#7866 2013-04-12 06:11:56

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

Re: BYOB 3 - Discussion Thread

Design looks cool!  smile  The first paragraph is a little text-heavy; maybe trim it down or split it up?

were you serious about hosting a webpage

Am I ever serious?  tongue  Umm... I can certainly put the snapin8r sources on github for you, and host static HTML on a github pages (though honestly, you should just create a github account!). If the downloaders are small, I think it might be okay to put them on github pages too, but I don't think they like large binary files very much.

A note about 2to3: I'd definitely test your project with it first before saying anywhere that you support Python 3 in any way. It's a little tricky, as I understand it.  smile

Share your project, please.

Meh.  tongue  *sulks in corner*


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

Offline

 

#7867 2013-04-12 07:59:19

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

Re: BYOB 3 - Discussion Thread

blob8108 wrote:

Design looks cool!  smile  The first paragraph is a little text-heavy; maybe trim it down or split it up?

Yeah, I agree.

were you serious about hosting a webpage

Am I ever serious?

Of course…

tongue

…not.

Umm... I can certainly put the snapin8r sources on github for you, and host static HTML on a github pages (though honestly, you should just create a github account!). If the downloaders are small, I think it might be okay to put them on github pages too, but I don't think they like large binary files very much.

I'll manage with gdocs, thanks.

A note about 2to3: I'd definitely test your project with it first before saying anywhere that you support Python 3 in any way. It's a little tricky, as I understand it.  smile

True—anyone here have Python 3?

Share your project, please.

Meh.  tongue  *sulks in corner*

sad  Fine. *turns around and closes ears*

tongue  Yeah, you aren't ever serious, are you?


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

Offline

 

#7868 2013-04-12 08:13:22

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

Re: BYOB 3 - Discussion Thread

Hardmath123 wrote:

anyone here have Python 3?

Just install it yourself! It installs alongside Python 2 very happily, and "python" is still the system default.

    brew install python3

Yeah, you aren't ever serious, are you?

I'm usually half-serious, half-joking, all the time... I think the people around me find this difficult  tongue

Last edited by blob8108 (2013-04-12 08:52:48)


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

Offline

 

#7869 2013-04-12 09:25:29

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

Re: BYOB 3 - Discussion Thread

Kurt 2 progress, iyi — I'm working on converting between v1.4 and the new Kurt. Progress is painfully slow, but I've now got variable and list watchers perfect.

Scripts are up next — so I need to work on the code for converting those...

The other next thing to do is to inject a load of magic into Kurt, so that objects that need to keep track of their parents do so automagically. (For example, renaming a Variable should update the key in any MediaDicts that contain the variable; adding an actor to a project should set the actor's `project` attribute... and so on.)


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

Offline

 

#7870 2013-04-12 09:30:02

technoboy10
Scratcher
Registered: 2007-08-25
Posts: 1000+

Re: BYOB 3 - Discussion Thread

The background color's not my favorite, but other than that, it looks good! I like the downloads section, very clean and simple.  smile

EDIT: Ooh, I like the hover/click effect on the download buttons!

Last edited by technoboy10 (2013-04-12 09:31:26)


So long, 1.4.
http://goo.gl/3JEV9

Offline

 

#7871 2013-04-12 09:46:27

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

Re: BYOB 3 - Discussion Thread

Hardmath123 wrote:

Here is my current design

Oh, and remove the underlining on "Download", "2.7", "3.0" — it makes them look like links and I want to click them  tongue

"External links" should be wrapped in an <a> and have an id, if you're going to put that # after it on hover.

Also consider doing something like

    *:target {
        background: rgba(245, 255, 0, 0.71);
    }


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

Offline

 

#7872 2013-04-12 09:47:31

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

Re: BYOB 3 - Discussion Thread

So it turns out that it's a really bad idea to "git rebase" on anything you've pushed to github...


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

Offline

 

#7873 2013-04-12 09:48:01

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

Re: BYOB 3 - Discussion Thread

technoboy10 wrote:

EDIT: Ooh, I like the hover/click effect on the download buttons!

WebKit-only goodie. I could theoretically support FF and Opera, but I figured if you're  die-hard Snap!per, you would (should!) probably have Chrome or Safari.  smile


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

Offline

 

#7874 2013-04-12 09:55:22

Jens
Scratcher
Registered: 2007-06-04
Posts: 1000+

Re: BYOB 3 - Discussion Thread

nono, Firefox is awesome and must be supported by Snap!

Personally I like Opera, too. But Opera is switching to WebKit anyway...


Jens Mönig

Offline

 

#7875 2013-04-12 12:28:13

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

Re: BYOB 3 - Discussion Thread

Hardmath123 wrote:

What do you think?

The first law of web design:  Do not override only one of the user's chosen background color and the user's chosen foreground color.  Either do it the user's way or do it your way.

White lettering on pale orange background is unreadable.

(And if, in self-defense, I turn off "allow pages to override these colors," then I can't see the black-on-black Apple logos.  They need a white border or something.)

Does "recommended" mean "what I have on my computer"?  It makes me nervous when someone makes a recommendation without a reason given; I don't know how much weight to give the recommendation.  Python 3 is... buggy? insecure? hideous? expensive?  I'd prefer a straightforward "Snapin8r requires Python 2."  (But making it really work in 3 would be better still, of course.)

(By the way, language designers who make gratuitous non-backward-compatible changes to their language are extremely annoying.  Just thought I'd mention it.  Why is it you like Python, again?)


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

Offline

 

Board footer