I didn't get it...
Offline
Offline
The ring in your sig does not rule them all as I have a ring to rule it:
You don't have to call the recursive function with the function itself AND the input, you can just use the input.
Or, for those who don't like currying:
So you can write things like:
Offline
Hardmath123 wrote:
I didn't get it...
Gosh and you even cited the Wikipedia entry:
Wikipedia wrote:
An erg is the amount of work done by a force of one dyne exerted for a distance of one centimeter.
Or in other words an erg is a dyne-centimeter. Now do you get it? The reason it's upside down is that it's dyne.
Offline
Oh. That was admittedly beyond me. Besides, when centimeters dy, they degenerate into inches.
Offline
joefarebrother wrote:
The ring in your sig does not rule them all as I have a ring to rule it:
Urg. η-expansion gives me a headache, which is why I always teach my students the simpler but less elegant version that isn't technically a fixed point generator at all, but works fine with call-by-value.
For people trying to understand the η-expanded Y-combinator, I recommend starting at the beginning of https://en.wikipedia.org/wiki/Fixed-point_combinator and reading straight through, rather than jumping ahead to the section on the Y-combinator itself.
Snap!'s unevaluated input types should make it possible for us to handle an unexpanded Y-combinator, if only we had a way to open a long-form input dialog box on a formal parameter of a ring. Right? I've wanted that for other reasons anyway, but this might be a reason to push that feature a little higher on the waiting list.
Offline
bharvey wrote:
Hardmath123 wrote:
I didn't get it...
Gosh and you even cited the Wikipedia entry:
Wikipedia wrote:
An erg is the amount of work done by a force of one dyne exerted for a distance of one centimeter.
Or in other words an erg is a dyne-centimeter. Now do you get it? The reason it's upside down is that it's dyne.
Unit-humor is not, apparently, one of my strengths.
Offline
bharvey wrote:
technoboy10 wrote:
Unit-humor is not, apparently, one of my strengths.
![]()
Nor Hardmath nor nXIII! You guys aren't nearly nerdy enough.
What do you get when you cross a grape with an elephant?
A squished grape.
Offline
bharvey wrote:
You guys aren't nearly nerdy enough.
...to post here? To use Snap!? To appreciate your jokes?
Offline
For your Snap!ping (is that how you spell it?) enjoyment, three libraries of tool blocks taken from the BYOB tool sprite:
word-sentence
list-utilities
iteration-composition
The first, loading into the Operators palette, has the selectors for words (strings of non-space characters) and sentences (strings, maybe including space characters, viewed as sequences of words), e.g., FIRST WORD OF (sentence).
The second, loading into the Lists sub-palette, has APPEND, REVERSE, and REMOVE DUPLICATES FROM.
The third, loading into Control, has the variant forms of REPEAT/WHILE with the test before and after the C-slot; REPEAT with the # upvar, the two kinds of CASCADE, and COMPOSE.
Those are all the major categories of tool blocks; there are a few orphans that may end up in a "miscellaneous" library, including n's SWITCH block (although I'm hoping we'll have a good notation for a multiple group-of-inputs and therefore won't have to do it the BYOB way).
Eventually these will be importable from our cloud storage site.
There is no overlap between any of these libraries and the "Import tools" library, even though several blocks in the latter could be included in each of these categories. I'm assuming everyone is going to "import tools" first thing on loading Snap!, and eventually we'll get the importation speed to where Jens is willing to do it automatically on startup.
Offline
bharvey wrote:
Nor Hardmath nor nXIII! You guys aren't nearly nerdy enough.
Oh yeah?!
How many unheard questions does it take to illuminate a light bulb?
And, while I'm at it:
How many Dwarves does it take to light up a light bulb? How many Hobbits does it take to light up a light bulb?
Offline
Hardmath123 wrote:
How many Hobbits does it take to light up a light bulb?
Is the Hobbit Frodo? Then he doesn't need a light bulb.
Offline
bharvey wrote:
joefarebrother wrote:
A squished grape.
A good answer, but the official one is "grape elephant sin θ."
LOL
See, I get math humor.
Offline
Hardmath123 wrote:
How many unheard questions does it take to illuminate a light bulb?
Watt?
(Sorry, bad pun, best I could do w/o googling.)
EDIT: I mean, I get that it's a Zen joke, just not the answer.
Last edited by bharvey (2013-02-02 11:39:04)
Offline
technoboy10 wrote:
Hardmath123 wrote:
How many Hobbits does it take to light up a light bulb?
Is the Hobbit Frodo? Then he doesn't need a light bulb.
![]()
what if he doesn't have a light? then he needs a light BULB. c:
Offline
DigiTechs wrote:
technoboy10 wrote:
Hardmath123 wrote:
How many Hobbits does it take to light up a light bulb?
Is the Hobbit Frodo? Then he doesn't need a light bulb.
![]()
what if he doesn't have a light? then he needs a light BULB. c:
No he has that (radioactive?) thingamabob from (Loth?)lorien.
P.S. Did anyone notice how Lorien is also the planet in "I am no. 4"?
Offline
bharvey wrote:
Hardmath123 wrote:
How many unheard questions does it take to illuminate a light bulb?
Watt?
(Sorry, bad pun, best I could do w/o googling.)
EDIT: I mean, I get that it's a Zen joke, just not the answer.
Yeah, around 75 what?!s—give or take.
Anyone willing to take a stab at the LOTR riddles?
Offline
Hardmath123 wrote:
P.S. Did anyone notice how Lorien is also the planet in "I am no. 4"?
Lorien is the guy at the core of Z'ha'dum who brings Sheridan back to life!
The trouble with lightbulb jokes is that you can always think of a zillion
answers that are perfectly legitimate, just not very funny, e.g., "Two, one
to screw in the lightbulb and one to cook second breakfast." "Three; they
have to stand on each other's shoulders to reach the bulb." "They don't
have electricity in Middle Earth." "Dwarves don't like light." Etc.
EDIT: Or "One hobbit and one nearby orc."
Last edited by bharvey (2013-02-02 12:18:43)
Offline
nXIII wrote:
blob8108 wrote:
nXIII wrote:
If you want to use labels interspersed between arguments (and not just named arguments), I wrote a scratchblocks parser that is reasonably skilled at determining what you mean without hordes of parentheses (e.g., `set a to item 2 + 3 * 4 of positions + 10' instead of `set [a] to ((item ([2] + ([3] * [4])) of [positions v]) + [10])'), and can send you the source/give you some help if you need any.
That sounds clever. Can I see?
![]()
It's PHP and it's not hosted anywhere.
![]()
Can I have the source, then?
Offline
Someone's PC always appears in Finder on my MacBook when I'm in my room. I was bored last night, so I was looking through this person's shared files and found a desktop shortcut to BYOB.
Offline