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!.
Offline
technoboy10 wrote:
I've actually gone through a few of the Simply Scheme exercises with Snap!.
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.)
Offline
bharvey wrote:
You can use / monadically, you know. And you can (apply + <list>).
Thank! Just trying to learn lisp here... 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)
Offline
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)
Offline
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.
Offline
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!
Offline
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.
Offline
Jens wrote:
Please post a few links on this thread
@Hardmath123: can you fix snapin8r to convert this project for me?
python snapin8r.py -p 10086980 -open
Snapin8r runs successfuly, but Snap! gives "TypeError: Object [object Object] has no method 'setContents'".
Offline
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
blob8108 wrote:
Jens wrote:
Please post a few links on this thread
@Hardmath123: can you fix snapin8r to convert this project for me?
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!).
Last edited by Hardmath123 (2013-04-12 02:13:43)
Offline
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.
Offline
Here is my current design for the Snapin8r site. (the buttons don't work because I want to fix some bugs before actually releasing it).
What do you think? Is the design overkill?
Offline
Design looks cool! 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? 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.
Share your project, please.
Meh. *sulks in corner*
Offline
blob8108 wrote:
Design looks cool! 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…
…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.
True—anyone here have Python 3?
Share your project, please.
Meh. *sulks in corner*
Fine. *turns around and closes ears*
Yeah, you aren't ever serious, are you?
Offline
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
Last edited by blob8108 (2013-04-12 08:52:48)
Offline
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.)
Offline
Hardmath123 wrote:
Here is my current design for the Snapin8r site. (the buttons don't work because I want to fix some bugs before actually releasing it).
What do you think? Is the design overkill?
The background color's not my favorite, but other than that, it looks good! I like the downloads section, very clean and simple.
EDIT: Ooh, I like the hover/click effect on the download buttons!
Last edited by technoboy10 (2013-04-12 09:31:26)
Offline
Hardmath123 wrote:
Oh, and remove the underlining on "Download", "2.7", "3.0" — it makes them look like links and I want to click them
"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);
}
Offline
So it turns out that it's a really bad idea to "git rebase" on anything you've pushed to github...
Offline
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.
Offline
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?)
Offline