Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jul 19th, 2006, 6:52 AM   #11
v0id
Hobbyist Programmer
 
Join Date: Apr 2006
Posts: 155
Rep Power: 3 v0id is on a distinguished road
I'm currently making an interpreter for Brainfuck.
I started out with first just make the interpreter, and then tested it with different programs I found online. Now I'm making some GUI for it. All the work is being done in C and the Win32 api.
But imo your project sounds nice.
__________________
-- v0id
v0id is offline   Reply With Quote
Old Jul 19th, 2006, 7:01 AM   #12
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
Quote:
Originally Posted by Marvin
Have you seen Befunge syntax and layout?

You would not think Pascal or BASIC were far harder to do if you had.
I looked it up on Wikipedia, and Befunge's syntax is exactly the reason why I think that gryfang's choice of language is remarkably wise.

Stop thinking about the language from a user's perspective. Think about how easy it is for a computer to interpret. All of the commands in Befunge are denoted by single characters, so the look-ahead is exactly one character. Hell, you don't even need a parser generator for that, a case statement would do!

The only potential point of difficulty in Befunge is that it's a two dimensional language, but this isn't much of a sticking point.

A Pascal or BASIC interpreter would be at the very least twenty times the size. Indeed, I wouldn't be surprised if it were a hundredfold larger, as you have to deal with all sorts of scoping and memory management crap. Befunge doesn't have any of those problems.

Conventional languages, with the possible exception of Lisp, usually have very involved and complex syntaxes. I would certainly not recommend using such languages as a starting point.
Arevos is offline   Reply With Quote
Old Jul 19th, 2006, 7:04 AM   #13
Marvin
Newbie
 
Marvin's Avatar
 
Join Date: Jul 2006
Location: Heart of Gold
Posts: 23
Rep Power: 0 Marvin is on a distinguished road
Wikipeda also states "The language was originally created by Chris Pressey in 1993 as an attempt to devise a language which is as hard to compile as humanly possible"
__________________
"Why should I want to make anything up? Life's bad enough as it is without trying to invent any more of it."
Marvin is offline   Reply With Quote
Old Jul 19th, 2006, 7:10 AM   #14
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
Quote:
Originally Posted by Marvin
Wikipeda also states "The language was originally created by Chris Pressey in 1993 as an attempt to devise a language which is as hard to compile as humanly possible"
The key word being compile. gryfang is creating an interpreter. When dealing with potentially self-modifying code, there's a big difference in complexity between a compiler and a interpreter.
Arevos is offline   Reply With Quote
Old Jul 19th, 2006, 7:11 AM   #15
Marvin
Newbie
 
Marvin's Avatar
 
Join Date: Jul 2006
Location: Heart of Gold
Posts: 23
Rep Power: 0 Marvin is on a distinguished road
Well screw you arevos

I dont give a fuck what you think. Your not all knowing. I think your wrong on this one. If your new to interpreters then keep it simple.
__________________
"Why should I want to make anything up? Life's bad enough as it is without trying to invent any more of it."
Marvin is offline   Reply With Quote
Old Jul 19th, 2006, 7:14 AM   #16
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Cogent reply. No fallacious reasoning in THAT enlightening argument.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Jul 19th, 2006, 7:17 AM   #17
v0id
Hobbyist Programmer
 
Join Date: Apr 2006
Posts: 155
Rep Power: 3 v0id is on a distinguished road
Marvin, Arevos are right.
Gryfang wants to make a interpreter, not a compiler.
It's two different things. Compiler make it to machinecode or something else, when a interpreter is 'testing' your code.
__________________
-- v0id
v0id is offline   Reply With Quote
Old Jul 19th, 2006, 7:21 AM   #18
Marvin
Newbie
 
Marvin's Avatar
 
Join Date: Jul 2006
Location: Heart of Gold
Posts: 23
Rep Power: 0 Marvin is on a distinguished road
Yeah, i said i dont give a FUCK. In English that means i dont care.

One last note: i am the same person as nemesis. so Marvin == nemesis.
__________________
"Why should I want to make anything up? Life's bad enough as it is without trying to invent any more of it."
Marvin is offline   Reply With Quote
Old Jul 19th, 2006, 7:27 AM   #19
v0id
Hobbyist Programmer
 
Join Date: Apr 2006
Posts: 155
Rep Power: 3 v0id is on a distinguished road
Then I say: I wouldn't give a fuck if you were Bush.
__________________
-- v0id
v0id is offline   Reply With Quote
Old Jul 19th, 2006, 7:28 AM   #20
Marvin
Newbie
 
Marvin's Avatar
 
Join Date: Jul 2006
Location: Heart of Gold
Posts: 23
Rep Power: 0 Marvin is on a distinguished road
If i were Bush i would stop listening to the american jews who seem to control US foreign policy at the moment.
__________________
"Why should I want to make anything up? Life's bad enough as it is without trying to invent any more of it."
Marvin is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
If you had it to do all over again, which language? peace_of_mind Coder's Corner Lounge 24 Jan 13th, 2008 6:06 PM
The C programming Language (2nd Edition) nnxion Book Reviews 10 Jul 6th, 2007 4:29 PM
Language display in program Prm753 C++ 3 May 30th, 2006 6:45 PM
More languages? UnKnown X Coder's Corner Lounge 27 Dec 18th, 2005 4:06 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 8:16 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC