Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Closed Thread
creating a computer language
Old 10-26-2009, 09:57 PM creating a computer language
Lashtal's Avatar
wherenomanhasgonebefore

Posts: 679
Name: Lashtal
Trades: 0
what do you need to know in order to do it?

[sorry if this sounds like a stupid question, lol]
__________________
Currently Reading:
Please login or register to view this content. Registration is FREE
Lashtal is offline
View Public Profile
 
 
Register now for full access!
Old 10-26-2009, 10:40 PM Re: creating a computer language
NullPointer's Avatar
Will Code for Food

Posts: 2,781
Name: Matt
Location: Irvine, CA
Trades: 0
That really depends on what you expect it to do. Languages range from full fledged general purpose programming languages to narrow scope meta languages. Generally, the difficulty of creating a language is proportionate to its power. A simple meta language might take one person a few hours to create, but would be limited in its applications. Of course on the other end of the spectrum are the mainstream languages such as [insert popular language here]. These languages are developed over years (or decades) by many people.

I guess what I'm trying to say is, what you need to know ranges from the ability to parse and interpret a few simple commands to an in-depth understanding of programming paradigms, language design, compilers/interpreters, machine language (and the list keeps going).
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
NullPointer is offline
View Public Profile Visit NullPointer's homepage!
 
Old 10-28-2009, 09:00 AM Re: creating a computer language
Ultra Talker

Posts: 339
Trades: 0
Do you mean website programming language, or "real" computer language?
__________________
Daniel, Helpdesk Leader

Please login or register to view this content. Registration is FREE
- First class web hosting services.

Please login or register to view this content. Registration is FREE
- Provide unlimited disk space and bandwidth!
Hosting24 is offline
View Public Profile
 
Old 10-28-2009, 11:36 PM Re: creating a computer language
Lashtal's Avatar
wherenomanhasgonebefore

Posts: 679
Name: Lashtal
Trades: 0
REAL computer languages, like C++
__________________
Currently Reading:
Please login or register to view this content. Registration is FREE
Lashtal is offline
View Public Profile
 
Old 10-29-2009, 06:10 AM Re: creating a computer language
Ultra Talker

Posts: 339
Trades: 0
Oh, it will not be easy then In order to create real computer language, you must know every bit of computer and understand how it works.

Anyways, I believe we have enough programming languages at the moment
__________________
Daniel, Helpdesk Leader

Please login or register to view this content. Registration is FREE
- First class web hosting services.

Please login or register to view this content. Registration is FREE
- Provide unlimited disk space and bandwidth!
Hosting24 is offline
View Public Profile
 
Old 11-03-2009, 09:28 PM Re: creating a computer language
willcode4beer's Avatar
Super Moderator

Posts: 1,533
Name: Paul Davis
Location: San Francisco
Trades: 1
"In days of old when knights were bold..." we used tools like Lex & Yacc to do it.

Nowadays, you should start by asking yourself a few questions.
Are you just trying to create a scripting language or a language that compiles to native machine code?

For a scripting language, you'll need to create an interpreter, for the later, a compiler.

From your post above, I'm guessing the later.
So, for a compiler, I'd recommend you start with the GCC.
The GCC works by using a "frontend" that compiles to a platform independent bytecode, and a backend, that targets specific platforms. This means for your new language, you'd only need to write the frontend.

So, have you written the Backus-Naur Form of your language yet?
__________________

Please login or register to view this content. Registration is FREE

willcode4beer is offline
View Public Profile
 
Old 11-10-2009, 06:12 AM Re: creating a computer language
Lashtal's Avatar
wherenomanhasgonebefore

Posts: 679
Name: Lashtal
Trades: 0
haha, no sir! I haven't written the BNF ...yet?

and my knowledge is nowhere where it needs to be to do something like that.

but I was just thinking about this question the other day, and I figured it would be a rather interesting one to ask. It has proven so for me so far.
__________________
Currently Reading:
Please login or register to view this content. Registration is FREE
Lashtal is offline
View Public Profile
 
Old 11-10-2009, 07:05 AM Re: creating a computer language
Lashtal's Avatar
wherenomanhasgonebefore

Posts: 679
Name: Lashtal
Trades: 0
Also, what would one need to know in order to create an interpreter for a scripting language?

as I see you've already tackled the compiler approach.
__________________
Currently Reading:
Please login or register to view this content. Registration is FREE
Lashtal is offline
View Public Profile
 
Old 11-10-2009, 07:39 AM Re: creating a computer language
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,516
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Pretty much a similar thing.

You parse the script and make calls to functions you have already defined and complied into a "run time module"
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
View Public Profile Visit chrishirst's homepage!
 
Old 11-12-2009, 02:37 AM Re: creating a computer language
Lashtal's Avatar
wherenomanhasgonebefore

Posts: 679
Name: Lashtal
Trades: 0
What is the official nomenclature for this particular aspect of computer science, where you create interpreters and compilers? (from the ground up)
__________________
Currently Reading:
Please login or register to view this content. Registration is FREE
Lashtal is offline
View Public Profile
 
Old 11-12-2009, 05:31 AM Re: creating a computer language
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,516
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
programming!
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
View Public Profile Visit chrishirst's homepage!
 
Old 11-12-2009, 09:48 AM Re: creating a computer language
frih's Avatar
Super Talker

Posts: 139
Name: abhi
Location: http://www.techbusy.org/
Trades: 0
Hmmm..i used to think in the same way few years ago, To build a language you need to each bit of the computer, register, bus and every information.

I think you should start from building a compiler first like for C++.
__________________

Please login or register to view this content. Registration is FREE
|

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
frih is offline
View Public Profile Visit frih's homepage!
 
Old 11-13-2009, 08:30 AM Re: creating a computer language
Lashtal's Avatar
wherenomanhasgonebefore

Posts: 679
Name: Lashtal
Trades: 0
Quote:
Originally Posted by chrishirst View Post
programming!
but Specifically?


like...

is there a specific name/occupation for someone who develops interpreters and compilers?


I was thinking Developer/Engineer... but without being too broad, could you say, "MySQL Dev." or "Borland Develper" ?

---

Reason I ask is, I was imagining someone out there... making improvements to the way languages communicate with a computer. So I was looking for an officially recognized name (I guess), or guidance as far as getting more into that goes.

suggestions as to what I should be looking at in order to understand more about this aspect of computer science?
__________________
Currently Reading:
Please login or register to view this content. Registration is FREE
Lashtal is offline
View Public Profile
 
Old 11-19-2009, 03:55 PM Re: creating a computer language
Lashtal's Avatar
wherenomanhasgonebefore

Posts: 679
Name: Lashtal
Trades: 0
Quote:
Originally Posted by chrishirst View Post
programming!
okay... you're right! (again, lol)

Some reading has shown me that all one is doing here is, yeah, programming.
__________________
Currently Reading:
Please login or register to view this content. Registration is FREE
Lashtal is offline
View Public Profile
 
Old 11-19-2009, 04:02 PM Re: creating a computer language
Lashtal's Avatar
wherenomanhasgonebefore

Posts: 679
Name: Lashtal
Trades: 0
Quote:
Originally Posted by NullPointer View Post
...what you need to know ranges from the ability to parse and interpret a few simple commands to an in-depth understanding of programming paradigms, language design, compilers/interpreters, machine language (and the list keeps going).
Now let me come back to this, because I find it interesting.

Who are the people that make improvements or innovations in this field?

(could you list some examples of people who have done this?) Please, and thank you.
__________________
Currently Reading:
Please login or register to view this content. Registration is FREE
Lashtal is offline
View Public Profile
 
Old 11-19-2009, 04:57 PM Re: creating a computer language
NullPointer's Avatar
Will Code for Food

Posts: 2,781
Name: Matt
Location: Irvine, CA
Trades: 0
Quote:
Originally Posted by Lashtal View Post
Who are the people that make improvements or innovations in this field?
There are a wide range of people concerned with language design.

Some companies develop languages. Google just announced Go and a while back Microsoft announced Axum, both of which are designed with concurrency in mind (creating programs that can be executed non-sequentially is most likely the largest problem in language design currently).

Non-corporate organizations (ISO for example) are also involved the development of languages. C++ for example does not have a "home" like many other languages. Java has Sun, C# has Microsoft, PHP has PHP Group. C++ standards are created by the ISO (the last one in 98, with the next one coming soon).

Universities also contribute to the development of languages. Languages like LISP got theirs start at universities. In reality the three entities I mentioned are not distinct. Many companies work in conjunction with universities (tuition isn't the only way to make money). Most computer science programs involve courses in language concepts and compilers/interpreters, so at some level, any research university offering a degree in computer science is involved in language design.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
NullPointer is offline
View Public Profile Visit NullPointer's homepage!
 
Old 11-19-2009, 10:57 PM Re: creating a computer language
willcode4beer's Avatar
Super Moderator

Posts: 1,533
Name: Paul Davis
Location: San Francisco
Trades: 1
Quote:
Originally Posted by Lashtal View Post
Now let me come back to this, because I find it interesting.

Who are the people that make improvements or innovations in this field?

(could you list some examples of people who have done this?) Please, and thank you.
Could be most anyone.

I used to work with a guy named Fredrik Hubinette who created a language called Pike. I met Graeme Rocher a few years ago at a conference, he created Groovy.

I've used lex and yacc to create mini-scripting languages for application configuration (long time ago). The actual work for creating a language isn't that big a deal.

The hard part is creating a specification for a language. There are so many little details that you may never think of ahead of time.

There is currently a movement going on to create lots of small DSLs (Domain Specific Languages) to work with application languages. Generally, the idea is you might have a scripting language specific to supply and logistics software, or one specific to financial software, to allow working on applications in those spaces.

Our general purpose application languages (C/C++/Java/etc) tend to be unwieldy for non-programmers but, a simplified language that targets a specific area could be easier.
Others, myself included, think it's delusional to create a language for non-programmers but, think it's a good idea to create code that is at least readable by non-programmers.
__________________

Please login or register to view this content. Registration is FREE

willcode4beer is offline
View Public Profile
 
Old 11-24-2009, 08:01 PM Re: creating a computer language
Lashtal's Avatar
wherenomanhasgonebefore

Posts: 679
Name: Lashtal
Trades: 0
I imagine this is something you wouldn't get into without at first studying concepts that are already present in more than one language.
__________________
Currently Reading:
Please login or register to view this content. Registration is FREE
Lashtal is offline
View Public Profile
 
Old 11-22-2010, 09:06 AM Re: creating a computer language
Lashtal's Avatar
wherenomanhasgonebefore

Posts: 679
Name: Lashtal
Trades: 0
bump bump bump
__________________
Currently Reading:
Please login or register to view this content. Registration is FREE
Lashtal is offline
View Public Profile
 
Old 12-12-2010, 08:24 AM Re: creating a computer language
c69
c69's Avatar
Experienced Talker

Posts: 40
Name: Constantine
Trades: 0
why bump ? - creating programming language is simple.
1) pick a language you like,
2) rename some functions / keywords,
3) remove some functions / keywords,
4) add some functions / keywords.

here it goes - you have created yet another useless "language" !
c69 is offline
View Public Profile Visit c69's homepage!
 
Closed Thread     « Reply to creating a computer language

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.28092 seconds with 12 queries