Now what
1
Name:
L
2008-04-09 7:20
So i have written a compiler for a cool language, let's call it P6, and the compiler itself is written in P6.
What do I do now?
2
Name:
Anonymous
2008-04-09 7:29
Compile it.
3
Name:
Anonymous
2008-04-09 7:45
Compile it by hand like a real man.
4
Name:
Anonymous
2008-04-09 8:42
Use pughs
5
Name:
Anonymous
2008-04-09 10:03
I know EXACTLY what to do!
To view the rest of this comment you need a 4chan NIGGER™ account. Get your free 4chan NIGGER™ account today!
6
Name:
Anonymous
2008-04-09 10:40
Use recursion.
7
Name:
Anonymous
2008-04-09 10:45
BOOTSTRAPS
8
Name:
Anonymous
2008-04-09 12:47
No, guys, seriously, you're not helping.
Especially
>>4
9
Name:
Anonymous
2008-04-09 12:49
Write a P6 interpreter in P6, then run the P6 compiler in the interpreter to compile itself.
Done.
10
Name:
Anonymous
2008-04-09 13:44
>>8
You came here for help?
11
Name:
Anonymous
2008-04-09 17:08
>>9
But what would interpreter/compile the interpreter?
12
Name:
Anonymous
2008-04-09 17:28
>>11
You run the interpreter in itself, moron
13
Name:
Anonymous
2008-04-09 17:32
>>12
What good is writing an interpreter in P6 if he can't compile the interpreter?
14
Name:
Anonymous
2008-04-09 17:35
EXPERT METACIRCULARITY
15
Name:
Anonymous
2008-04-09 17:41
Serious answer:
You will have to write a P6 compiler in another language (say, C + flex + bison) to compile your P6 compiler. It doesn't have to implement the entire language or do any optimization, just the functionality you used when writing the P6 compiler in P6.
Now you can throw your compiler written in C away. Then you'll be able to compile the next versions of your P6 compiler using the previous versions of itself.
16
Name:
Anonymous
2008-04-09 21:06
Bootstrap the fucking compiler.
>>15 is correct.
17
Name:
Anonymous
2008-04-09 21:16
18
Name:
L
2008-04-09 23:49
>>15-17
You dumbasses,
>>4 already suggested that, and I'm looking for a more simple solution.
19
Name:
Anonymous
2008-04-10 1:41
>>18
Is there a simpler solution?
20
Name:
Anonymous
2008-04-10 3:10
>>19
Thank you, good sir for using the correct word in your comment.
21
Name:
Anonymous
2008-04-10 11:04
>>18
Dude, there is none. Short of interpreting the compiler yourself and writing the ASM yourself.
Just write a simple compiler that implements a short subset of the language and does no optimization in C, faggot.
22
Name:
Anonymous
2008-04-10 11:10
Use BBCode.
23
Name:
Anonymous
2008-04-10 11:26
Write another compiler in Haskell, and call it Pugs
24
Name:
Anonymous
2008-04-10 11:30
25
Name:
Anonymous
2008-04-10 12:11
>>1
Sorry, but what is P6?
26
Name:
Anonymous
2008-04-10 12:17
Are you a neko?
You might want to join my Neko Forest forums
nekoforest.proboards58.com
Please read the rules before registering
27
Name:
Anonymous
2008-04-10 12:19
>>26
I can't believe you're still spamming this, after all these months.
This is just a really well thought troll, right?
28
Name:
Anonymous
2008-04-10 12:20
>>27
Pay me enough and you might get access to my secret area of trolls.
29
Name:
Anonymous
2008-04-10 12:53
BUT WHAT WAS THE FIRST EVER COMPILER WRITTEN IN?
30
Name:
Anonymous
2008-04-10 12:56
31
Name:
Anonymous
2008-04-10 13:48
>>29
Butterflies
(BTW: Have you read your xkcd today?)
32
Name:
Anonymous
2008-04-10 14:04
>>29
Christians will deny this, but on the seventh day God wrote a compiler.
33
Name:
Anonymous
2008-04-10 14:22
>>32
And it compiled LISP.
34
Name:
Yoda
2008-04-11 16:47
You should port it to Erlang.
35
Name:
Anonymous
2008-04-11 17:13
>>26
It doesn't even work. That board was deleted a long time ago.
>>33
The universe was hacked together with Perl, and you know it.
http://imgs.xkcd.com/comics/lisp.jpg
36
Name:
Anonymous
2008-04-11 17:14
37
Name:
Anonymous
2008-04-11 17:17
38
Name:
Anonymous
2008-04-11 20:09
>>35
xkcd is definetely an
overrated piece of crap.
39
Name:
Anonymous
2008-04-11 20:41
>>37-38
You have been trolled intermittently.
40
Name:
Anonymous
2008-04-12 0:16
>>39
This is not trolling, if posts about xkcd don't receive negative attention, people will start to think that xkcd is okay in [prog]spoiler[/prog]. WE must tell them to go away, or we'll turn into another /b/
41
Name:
Anonymous
2008-04-12 12:06
Now port it to Erlang.
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
46
Name:
Anonymous
2013-08-31 23:33
_!ゝ、.,_,. -- 、___,,.. -‐─ァ ( )
Σ_ _,..'ニi二7ニ、..,,___ _フ ( )
,. '"´:::::::::::::::::::::::::::::::::::`ヽ、7 ノ7ミヽ/|
_/_;;::::-──-- 、:;___:::::::::::::::::::':, ( ) //ミミ!/ミヽ、 ( )
r'ン-‐'' "´ ̄ ̄``"''ー 、ヽ:;:::::::::::::::', ノ/ミ ミ/ミミヽ/
/ / `ヽヽ:_::::::::| 〈iミ ミ/ミヽミン
/ ,/ / / i , `ヾヽ:! |/| \7/ミヽミ/
,' /7 ,ハ ‐|、 /| /| 、 ヽ. ヽ.) /!. ト、 /,へミヽノ
i /-| /ァ'f"'ヽ/ | / .| ,! ', ', // i`'ァ__/// `''´
レ'へ| /〈 ト、 7` |/ |-‐-/| i i i ヽ.く_/,!-'、-'、ヽ.
|/7,, ` `''´ ,.'--=、 ! / | ', | | ,.'-‐、 ヽ !
/ ハ. ' `,' ,.イヽ,| ヽ.ノ / ! ,r、 ,'>
/ / へ. l7 ̄ `ヽ ""///ヽ、.!__,ハ i / |7'ゝ、 ,.イヽ.
´ ̄7 /.>iヽ.,ヽ、___ン /´ /_>-''"'- !、 !' >、_`ン ハ
|/\.|`7'´i>-‐r___'7´ ./'" ,ヽ. ', 、.,____,ン' `',
く / ,ハヘ、____,.ィ|/|,.イ _r'7´`''ーヘ ! i
レヘ. i::}>O<{::::::::::! 、_//ヽ /! |
kニヘ/::::::';::::::::::::::::::ゝ. | | ,' |
', i';::::::ヽ、::::::/|::::ヽ、.,____,.!ヘ ! ,'
.i ':;::::::}>oン::::::::::::::::ヽ_!__>、.,_ /
| iヽ:::::';:::::::::`ヽ、:;__|^7ァ /、 `ヽ、.,_____/
i ト、;:_::::::::::::::::::_;:O'イ:::::/\.
,' |::::::/::`T''"´:::::';::::::::メ::::::::::ヽ.
/ .!::/::::::::!:::::::::::::::'}>o<{::::::::::':,、
rン、.,___ ,!ン'::::::::::::::::::::::::::::i/:::::::::::::::::::',ヽ.
/i´ r`ヽ、__」:::::::::::i:::::::::::::::/::::::::::::::::: i::::::::i:::::'
47
Name:
Anonymous
2013-08-31 23:40
>>1
>>15
dude if it is a COMPILER, you can just make a interpreter in some high level language (a lot easier), then interpret the compiler to compile itself, and ta-da you have a compiler
48
Name:
Anonymous
2013-09-01 1:05
_」_
×´ _,,.. -──- 、,_ァo 、__ `メ.
/ , '"´ (- 、__ oヽ _|__
/ `ヽ. ヽハ) ノ
/ Y⌒ヽ.
/ / ヽ. | ',
,' ! , /! ,| _ !. | ! あら? お客様でしたか
| |. __/|_ ,' .| / ! __ `./! /| |
| |´/ |_/ レ' ァ'´ ̄` |/、ト、 | ユックリ
'、 |/ァ'´ ̄` ,, | |ソ ハ 信仰していってくださいね!!
\,ハ ,, ' ( \| / .|
| ハ、 i7´ ̄`i ,/ \_) ,' |
,' / `> 、,` ,. イ/\__! ! ! |
/ / `T7´ //ヽ、__ノ__ | | __,メ
| .| r/´`ー'-、/ ,' .//::/`ヽ/
八 i/ rノ ,! ̄`ヽ、|/:/ i_
,' X`;くト、 _ノ、 /ヘ`ヽ..Y /:::>
! // |:::| / .|:::|\/ ノ 八___ノr‐:':::://
|/ |:::|./ |:::|/ )' ノ:::/--‐''´ ,'
/ 八::'、___ノ::ノ _,. イ/ |
,' \_/,| / !
| /| / / |
49
Name:
Anonymous
2013-09-01 2:36
「 ̄ ̄|
 ̄7 / __
/,へ\ /::/ 、\
く/ \> |::::| \ヽ. /7\ ,. -───- 、
|::::|__.';ハ_ |::|`|::| /
[][]r┐ , '" \\ |:::|r `7:/、.!::! / 幻 ほ
r'.ノ / r‐─'>'"´ ̄ `ヽく/イ | 想 っ
, ─ ┐/ ゝ‐/. | `ヽrヽ | 郷. と
// ̄| | ! / ̄ ,.' ,' / , ,' ∨ヽ が く
` .//,_r'´]_ノ| ./ _メ、/| ∧| ヽ」__ み と
.//{__r'´ ./ |/ 'Tテむr // __」 トイ だ
` ヽ.| ! .∠ イ 弋_ソ '´ ァr|、 /イ|. れ
| 人 (| |xx , り,ハ/-' 、 る
/ ,' | ) 八 __ x!/|. \
/ / / /ハ \ /!/ `'' ー─ ''"´
! / /, '" ̄`ヽ| ハ` r-イ | |
.| /::::::::::::::::::::::', |\|\-、 !ヽ
ノ |:::::::::::::::::::::::::::|\ !ヽ \ |:::} ̄Y ´{
( r':::::::::::::::::::::\} ̄`Y´ ̄{/|ヽレ'ハ‐┘
_ノ ) ノヽ;:::_l_::::::::::;::イ\_/|ヽ- ' /、::::\リヽ. 、ヽ.
} ̄ヽァ‐/´:::::::`ヽ.__ノ::::::/ !\._/::::::ヽ:::::':, ,ハ ', ',
|__.ンヽ/ ̄`ヽ:;__/::::::::::::| ./:::::::::::::::::::::::::::::}. | /´{ | |
| /ヽ-へ.__/ \::::::::、レ'::::::::::::::::::::::ノ:::ノ\リく_」. ! !
.ノ / ‐-'、 ,ハ::::::::゙:::::::::::::::::''":::::::| `' 、 /
l、 \ r!::::::::::::::::::::::::::::::/l::::|、 \