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

Pages: 1-4041-

I want to make a programing language

Name: Anonymous 2007-07-05 22:55 ID:TgxMjRSH

What would be the best way to do this?

Name: Anonymous 2007-07-05 22:59 ID:tTIDFvaI

1. Write the compiler in assembly
2. lol

Name: Anonymous 2007-07-05 22:59 ID:vxbO7ZLu

Think.

Name: Anonymous 2007-07-06 0:11 ID:ay0TlT2o

Write a compiler in whatever language you wish (do it in QBASIC for the lulz), then when your compiler gets good enough re-write the compiler in your own language!

Name: Anonymous 2007-07-06 1:06 ID:sGHnFMOB

>>4
Writing a compiler in shell scripting is superior.

Name: Anonymous 2007-07-06 1:10 ID:Heaven

1. Think about the features you want to include
2. Find out that there already is a language with those features
3. Use it

Name: Anonymous 2007-07-06 1:38 ID:Heaven

>>6
ok, find me a stack based language with first class functions, prototype based OO, and static typing.

Name: Anonymous 2007-07-06 1:40 ID:bSyIB76p

Writing a toy language is good exercise.

Getting shit done requires you do >>6.

Name: Anonymous 2007-07-06 1:53 ID:bSyIB76p

Is it even possible to have prototype OO with static typing? That sounds like a halting problem in the making.

Name: Anonymous 2007-07-06 2:59 ID:SDhlcXul

I don't know, but you'll be using strtok() and function pointers a lot.

Name: Anonymous 2007-07-06 3:18 ID:jGbtmDJK

Name: Anonymous 2007-07-06 4:08 ID:3Mx7qTGK

>>7
Why do you want static typing, and how would that work with prototype-based OO?

Name: Anonymous 2007-07-06 6:55 ID:PSvTKHOu

>>11
Nuts

Name: Anonymous 2007-07-06 6:58 ID:z9d3bA1P

write a interpreter in Perl

Name: Anonymous 2007-07-06 7:16 ID:Heaven

Write a program that creates its own compiler while raping your sister and abducting your cat (multi-threaded)

Name: Anonymous 2007-07-06 8:58 ID:3Mx7qTGK

>>15
I'd rather fork with my sister

Name: Anonymous 2007-07-06 9:04 ID:5i2E4AJq

wat is program?

Name: Anonymous 2007-07-06 9:42 ID:zlXgKl1O

>>4
Nice! Im going to start right a way

Name: Anonymous 2007-07-06 17:03 ID:YKse54Rs

Build a complete language using elements of different languages, while overcoming the language in question's deficiencies. I'm writing a language now that supports AI, OOP (the real deal, not C++ or Java shit) and Component creation with hardware/software communication. It should seriously kick ass.

Name: Anonymous 2007-07-06 17:06 ID:IvC6o2uH

>>19
But is it Touring-complete?

Name: Anonymous 2007-07-06 17:39 ID:QE2158be

>>4
It would be a mistake to let your language design get directed towards the needs of writing a compiler if that's not the sort of thing you are designing your language for to begin with.
Logo, for example, lacks a self-hosted compiler and is better for it.
First you decide what the language should be used for, then you design it.

Name: Anonymous 2007-07-06 18:20 ID:MYfE9h1z

SICP, last chapters. If there is a question, the answer is SICP.

Name: Anonymous 2007-07-06 18:46 ID:0fX31l/p

It's useless to make an other programming language. Lisp is the perfect language. Achieve Satori and you will understand.

Name: Anonymous 2007-07-06 22:18 ID:TNZL5FkE

Think the language.
Write a parser, which should convert the language to an AST.
Then, write some lisp macros.
Done!

Name: Anonymous 2007-07-06 22:36 ID:Si+MV7nF

one word, LAMBDA CALCULUS, language design over.
everything else is just libraries.

Name: Anonymous 2007-07-06 22:43 ID:Heaven

>>25
COMBINATORY CALCULUS is supoerior.

Name: Anonymous 2007-07-06 22:54 ID:Si+MV7nF

>>26
oh yeah? prove it. Im listening

Name: Anonymous 2007-07-06 23:02 ID:Heaven

>>27
[ dup pprint " dup call drop" print ] dup call drop

Name: Anonymous 2007-07-06 23:32 ID:Heaven

>>28
[ pprint " dup call" print ] dup call

Name: Anonymous 2007-07-07 0:05 ID:Heaven

wut

Name: Anonymous 2007-07-07 0:05 ID:Heaven

tuw

Name: Anonymous 2007-07-07 0:15 ID:bnl+/3O5

>>1
Expand on C. most modern languages do

Name: Anonymous 2007-07-07 0:30 ID:xPlPu5Rf

But is it touring-complete ?

Name: Anonymous 2007-07-07 2:42 ID:Bhk85328

SICP fags phail.

Name: Anonymous 2007-07-07 5:28 ID:2CdkFzZz

Will your language have a forced indentation of code ?

Name: Anonymous 2007-07-07 6:22 ID:4wYPz8t2

>>35
I hope so

Name: Anonymous 2007-07-07 8:51 ID:gerZMdLg

>>32
Implement a slow, buggy subset of Common Lisp. Most languages do.

Name: Anonymous 2007-07-07 11:26 ID:ajxOBTjh

10 PRINT "SPL SHITTY PROGRAMMING LANGUAGE INTERPRETER"
11 PRINT "VERSION -32767 07-07-2007"
12 PRINT "(C)2007 >>38, RELEASED UNDER GPL"
20 PRINT "BYTES FREE=";FRE(0)
100 INPUT ">";C$
101 IF C$="EXIT" THEN SYSTEM
102 IF C$="RUN" THEN PRINT "PROGRAM NOT DEFINED"
103 IF C$="FREEMEM" THEN PRINT FRE(0)
104 IF C$="SAVE" THEN PRINT "PROGRAM 100% SAVED RELIABLY"
110 PRINT "SYNTAX ERROR"
111 GOTO 100

Name: Anonymous 2007-07-07 13:06 ID:KhZI5EXf

>>1

Get a copy of "Modern Compiler Implementation" in C by A. Appel. That should get you on your way to writing a language/compiler for it

Name: Anonymous 2007-07-08 1:05 ID:dJrr99D5

Read the Dragon Book.  After it you will either know everything by yourself or be very confused.  In latter case you shouldn't program anymore and switch to law studies or something.

Name: Anonymous 2007-07-08 7:41 ID:ZTJIDjUD

>>14
i think php would be more efficient for a task like this

Name: Anonymous 2007-07-08 14:47 ID:OKHdk2lR

>>41
I think you've never heard of BBCode, which would be far more efficient for a task like this.

Name: Anonymous 2009-08-16 23:00

Lain.

Name: Anonymous 2011-01-31 21:31

<-- check em dubz

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