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

MAKE A NEW PROGRAMMING LANGUAGE

Name: Anonymous 2007-05-22 12:53 ID:4r+em++m

caveat: 4chan memes are keywords

oh, and it must be Touring complete

Name: Anonymous 2007-05-22 13:35 ID:fheiP+th

And the interpreter will be written IN HASKELL.

Name: Anonymous 2007-05-22 13:39 ID:B5RPrZiC

>>2
I will be compiled language, and compiler will be written in it

Name: Anonymous 2007-05-22 13:42 ID:fheiP+th

>>3
Let's define the specs and see who writes a working implementation first, then.

Name: Anonymous 2007-05-22 13:49 ID:eMDRiAZa

Write up an RFC already

Name: Anonymous 2007-05-22 14:01 ID:Heaven

Here's the definition of the library function over9000:

thread over9000 x using forced indentation of code
    gtfo x > 9000
thread over

Name: Anonymous 2007-05-22 14:06 ID:Heaven

Using the ternary operator p (´∀`) x (,,゚Д゚) y we can express the factorial function elegantly:

thread fac x
    x < 2 (´∀`) gtfo 1 (,,゚Д゚) gtfo (fac x-1)
thread over

Name: Anonymous 2007-05-22 14:56 ID:0UBjd56C

Exception handling:

assume
    ...expressions...
    #We use reexamine to reexamine preposterous assumptions
    reexamine assumption_type([params])
    ...
    #We use kita to exit the assumption block without signaling
    #anyhing preposterous
    キタ━━━━━━(゚∀゚)━━━━━━ !!!!!
    ...
preposterous (assumption_type a [, assumption_type b [...]])
    ...exception handler...

Name: Anonymous 2007-05-22 14:57 ID:0UBjd56C

>>8
Kita can be used to break reexamination in the preposterous block, and to break loops if we'll have loops.

Name: Anonymous 2007-05-22 15:05 ID:Heaven

>>7 contains the first bug ever written in the NEW PROGRAMMING LANGUAGE.

Fixed:
thread fac x
    DESU DESU DESU Fixed bug in Enterprise factorial generation USED USED USED
    x < 2 (´∀`) gtfo 1 (,,゚Д゚) gtfo x*(fac x-1)
thread over

Name: Anonymous 2007-05-22 15:08 ID:Heaven

>>9
I don't think loops are at all useful. We need exceptions, though. Lots of them.

Name: Anonymous 2007-05-22 15:24 ID:Heaven

>>11
Especially NullPointerExceptions

Name: Anonymous 2007-05-22 15:27 ID:Heaven

When using sandcore, all possible error messages are replaced with delicious wolf recipes.

Name: Anonymous 2007-05-22 15:38 ID:Heaven

Allow me to introduce a new datatype: ``long''

Long can hold infinitely long cats, and will throw a LongcatException if you assign a normal cat to it.

Name: Anonymous 2007-05-22 15:40 ID:Heaven

>>14
I think we should use longcat as our standard polymorphic container type.

Name: Anonymous 2007-05-22 15:48 ID:Heaven

Here are some standard library cathandling functions:

thread how_long cat
    lc == tail (´∀`) gtfo 1 (,,゚Д゚) gtfo (how_long (shorten cat))
thread over

thread combine_your_powers cat_zero cat_prime
    cat_prime == tail (´∀`) gtfo cat_zero (,,゚Д゚) gtfo (combine_your_powers (feed cat_zero (head cat_prime)) (shorten cat_prime))
thread over

Name: Anonymous 2007-05-22 15:49 ID:Heaven

>>16
Oh, fail. I guess I need a NEW-PROGRAMMING-LANGUAGE-mode for my Emacs.


thread how_long cat
    lc == tail (´∀`) gtfo 1 (,,゚Д゚) gtfo 1+(how_long (shorten cat))
thread over

Name: Anonymous 2007-05-22 16:27 ID:0UBjd56C

>>12
The symbol for null pointer exceptions must be Nurupo.

Name: Anonymous 2007-05-22 16:42 ID:Heaven

gtfo /prog/ you fucking 12 year olds

Name: Anonymous 2007-05-22 16:43 ID:OanWbBC8

>>14
Lazily evaluated, infinitely long cats, I presume.

Name: Anonymous 2007-05-22 16:53 ID:Heaven

>>19
After you.

Name: Anonymous 2007-05-22 20:26 ID:MofzsOU0

thread theForcedIndentationOfTheCode
     OneWord(theForcedIndentationOfTheCode())
thread over

Name: Anonymous 2007-05-22 22:07 ID:4r+em++m

The name of this new language shall be called EXPERT PROGRAMMING LANGUAGE

Name: Anonymous 2007-05-22 22:14 ID:j7g5w2GM

The function that outputs to the console should be called "quack".

Name: Anonymous 2007-05-23 0:12 ID:m6P9sEqC

variables: any name other than keywords, names must be memes too

/r/ var: reads var from input
flood var: posts var on screen
moar var: increments var by 1
sage var: decrements var by 1
ifoverninethousand var: if var > 9000 execute following line, else jump past it
/pos/: labels the following line, must not be /r/
gb2/pos/: jumps to position of specified label

dividebyzero: unspecified
gtfo: ends program

Name: Anonymous 2007-05-23 2:19 ID:JmXE+Qvk

>>25
moar var: incremetns var by 1
sage var: decrements var by 1

If 'sage' is the decrementer, why isn't 'age' the incrementer?

'moar' should read from input and append to contents of var.

/r/ pron
moar pron


Also:
ifoverninethousand
should be 'scouter' or something. Easier to type.

Name: Anonymous 2007-05-23 2:20 ID:Heaven

and I should copy and paste text to quote, rather than trying to retype shit.

Name: Anonymous 2007-05-23 3:34 ID:Hm93izWK

This language will go down in history as the first exception-based language.  All branch commands are forms of exceptions.  There is no GOTO, FOR, DO/WHILE/LOOP/WEND, etc.  Therefore, dividing by zero is useful as an intentional way to cause an exception.

Suggestion for syntax and example

| Print numbers 1 to 10
/r/ numnber=0;
attempt {
 quack number; age number; if number>10 dummy=1/0
}
whenFail(dummy) { quack "Program successful"; gtfo 0 }
quack "Proggie fucked up"
gtfo 1 | true exceptions in this language are unhandled exceptions

Name: Anonymous 2007-05-23 3:35 ID:Hm93izWK

>>28 whoops dummy is supposed to be an exception variable or whatever

Name: Anonymous 2007-05-23 6:49 ID:m6P9sEqC

b&& language version 2 go

moar var: reads var from input
flood var: posts var on screen
age var: increments var by 1
sage var: decrements var by 1
scoutertest var: if var > 9000 execute following line, else jump past it
/pos/: labels the following line
gb2/pos/: jumps to position of specified label

dividebyzero: unspecified
gtfo: ends program

Name: Anonymous 2007-05-23 7:30 ID:JmXE+Qvk

b& = Suspend execution of a thread until unb& is invoked.
v& = Dump core and abort program execution.

Name: Anonymous 2007-05-23 8:00 ID:Heaven

fuck you

fuck this thread

fuck off

Name: Anonymous 2007-05-23 8:41 ID:JmXE+Qvk

>>32
What would those do?

Name: Anonymous 2007-05-23 9:01 ID:Heaven

GTFO /prog/ YOU STUPID CHILDREN

Name: Anonymous 2007-05-23 9:32 ID:MvJ4ICSN

crapflood is a simple Lorem Ipsum generator which is useful for testing stuff.

Name: Anonymous 2007-05-23 9:48 ID:Heaven

>>19
>>34
Very same person.

Name: Anonymous 2007-05-23 11:43 ID:JmXE+Qvk

comments are denoted with "ITT"
you can make an assertion with "tits or gtfo"; on assertion failure, this raises exception "itsatrap"

Name: Anonymous 2007-05-23 12:08 ID:axbAEFHo

>>36
yes. and?

Name: Anonymous 2007-05-23 12:10 ID:Heaven

>>38
If there is a child in this thread, it is no one else than you.

Name: Anonymous 2007-05-23 12:15 ID:axbAEFHo

>>39
so why is it YOU who is sageing? HAH!

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