I cant become a /prog/rammer til I learn the history of that meme.
Name:
Anonymous2008-08-23 20:52
Here's my implementation of >>1. It's the forced indentation of code, without statements and a couple tweaks. I call this language "Understatement", and I fap to it every night. No such thing as public or private access, and I'm guesssing what die does there.
say = print
Thing = class (object):
__init__ = lambda self, pub:
self.pub = pub
hai = lambda: #Static method if no self
lambda: say('Hai.')
die = lambda: die() #Note: this hangs, but doesn't run out of stack space
>>2
As you can see, the method hai in the Thing class returns an anonymous function.
class ProgPost
{
var :priv :pub=r $thread = "http://dis.4chan.org/post/prog";
var :priv :pub=r $post;
var :priv :pub=r :customAttr $name;
func __fromString(String $post) {
$this->post = $post;
}
func :pub post() {
$p = new HTTP()->setMethod("POST")->setURI($this->thread);
for $k => $v in $this {
if ($k->customAttr) $v = "Anonymous";
$p->setPOSTVal($k, $v); // class Attrib is converted to String.
}
$p->post();
}
}
((ProgPost) "Hello, /prog/!")->post();
It has static typing, but uses automatic type casting when the apropriate method is given. Type casts are performed when a function expects an argument of a different type, or implicit by (Class)-ish casts.
No special reason for the sigils, I've just gotten used to them.
Cute. You missed the rest of my code, though. (And I explicitly tried to make user-defined control structures the same as built-in ones, like Scheme, in mine.)
Name:
Anonymous2008-08-24 20:23
haskell = Dog('Haskell')
haskell.make_sound()
lolcode.DeadDogException
at <interactive>:2:9
Name:
Anonymous2008-08-25 2:57
I made a SNUSP-interpreter with function calls and brainfuck loops once.
Due to Haskell's lazy evaluation, make_sound only sounds if there's any human listening, just like if a tree falls in the forest, and no one hears it, it doesn't make any sound¹.
¹: Bullshit, though. The Universe is deterministic and objects exist without the need for the disgustingly anthropocentric observative/conscious bullshite; it's just observation what's not perfect, because it runs from within the system.
>>28 ¹: Bullshit, though. The Universe is deterministic and objects exist without the need for the disgustingly anthropocentric observative/conscious bullshite[citation needed]
I use my penis to sense this. It's as serious as any Wikipedia source, so here is it.
Name:
Anonymous2008-08-25 12:54
>>28 The Universe is deterministic
What's it like, being stuck in 1925?
Name:
Anonymous2008-08-25 13:34
>>31 [ 8=====> ]
What's it like, having a character sequence for a penis?
Name:
Anonymous2008-08-25 14:06
>>32
What's is like, being stuck in "since we can't measure it it doesn't exist, you fuqin angered an expert physicist, godfuckingdamn!" and in "let's keep the shit coming without acknowledging the current theories are broken so we can continue to get government money on this"?
>>34
The fact that you don't understand the uncertainty principle is not a limitation of our measuring devices but a fundamental limitation of the universe itself doesn't mean it's not true. That's the entire point of it.
Similarly, the fact that you heard some idiot on /sci/ rant about string theory doesn't mean quantum physics doesn't have immensely accurate predictive power, which is also borne out by experiment.
>>37
Uhhhhh except that's not true at all, since in Quantum Mechanics, the term observe has a different meaning to in the Classic lexicon. All double-slit proves is that we poke things when we measure them.