Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Forth

Name: Anonymous 2011-06-11 14:02

Problem: Implement the word WITHIN? ( n low high -- t|f ), which returns TRUE if n is greater than or equal to low and less than or equal to high.

Solution:
: within? ( n1 n2 n3 -- t|f)
  rot dup rot <= -rot < and ;


Conclusion: My brain is full of fuck.jpg.

Name: Anonymous 2011-06-11 14:11

3/10

Name: Anonymous 2011-06-11 14:25

Oh great, another academic who went to the college with hope of ``writing'' ``games'' in ``C++'' and for whom it is inconceivable that there are different languages out there. I mean, the great game developer hasn't heard of them so they shouldn't exist.

Fact: This is the first time I'm reading Forth code. One Google for ``forth rot'' and 30 seconds later, this makes perfect sense to me.

All in all, go read your SICP.

Name: Anonymous 2011-06-11 14:40

>>3
So that he can end up becoming a shift manager at the local taco bell like you?

Name: Anonymous 2011-06-11 15:10

>>4
More like any of these: http://www.franz.com/success/
Oh, but being a code monkey is fun too... I guess. Don't worry! Really, your life has a value, for some definition of value!

Name: Anonymous 2011-06-11 15:37

>>5
I hate lisp and I fucking hate you. Die in a fire, faggot.

Name: Anonymous 2011-06-11 15:51

>>3

Wow, that's really impressive. By googling the relevant words and programming language, you can understand the one-line word I wrote. You must be thankful for your college education.

Name: Anonymous 2011-06-11 16:11

>>7
You're missing the point, boost boy.

Name: Anonymous 2011-06-11 18:09

Forth is a write-only language.

Name: Anonymous 2011-06-11 18:34

>>9
So is Lisp.

Name: Anonymous 2011-06-11 18:51

>>10
So is C.

Name: Anonymous 2011-06-11 19:02

>>11
No.

Name: Anonymous 2011-06-11 19:12

>>12
You know it's true.

Name: Anonymous 2011-06-11 19:55

>>13
It's not.

Name: Anonymous 2011-06-11 20:00

>>14
You're hawt.

Name: Anonymous 2011-06-11 20:12

>>15
Your gay.

Name: Anonymous 2011-06-11 20:52

>>14
What about it's not?

Name: Anonymous 2011-06-11 21:47

>>17
Genius!

Name: 無名 2011-06-11 22:16

>>18
天才ではねい、手前。

Name: Anonymous 2011-06-12 0:23

Real solution: Use Factor instead of forth.
USE: math.order
: within? (n low high -- ? ) between? ;


Or, if that's too easy:
: within? (n low high -- ? ) [ >= ] [ <= ] bi-curry* bi and ;

Name: Anonymous 2011-06-12 0:29

MORE LIKE
PHD
IN
FOOD SERVICE 4 LYFE
AMIRITE LOLLLLLLLLLLLLLLLLLLLLLLLZzz!!11oNE!!1ONE1!

Don't change these.
Name: Email:
Entire Thread Thread List