Other Programming Languages
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreOther Programming Languages

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #16  
Old December 25th, 2005, 03:45 PM
xlordt's Avatar
xlordt xlordt is offline
Only the strong survives!!.
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Feb 2003
Location: A World of wonders.
Posts: 5,548 xlordt User rank is Major (30000 - 40000 Reputation Level)xlordt User rank is Major (30000 - 40000 Reputation Level)xlordt User rank is Major (30000 - 40000 Reputation Level)xlordt User rank is Major (30000 - 40000 Reputation Level)xlordt User rank is Major (30000 - 40000 Reputation Level)xlordt User rank is Major (30000 - 40000 Reputation Level)xlordt User rank is Major (30000 - 40000 Reputation Level)xlordt User rank is Major (30000 - 40000 Reputation Level)xlordt User rank is Major (30000 - 40000 Reputation Level)xlordt User rank is Major (30000 - 40000 Reputation Level)  Folding Points: 109876 Folding Title: Super Ultimate Folder - Level 1Folding Points: 109876 Folding Title: Super Ultimate Folder - Level 1Folding Points: 109876 Folding Title: Super Ultimate Folder - Level 1Folding Points: 109876 Folding Title: Super Ultimate Folder - Level 1Folding Points: 109876 Folding Title: Super Ultimate Folder - Level 1Folding Points: 109876 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 1 Month 1 h 44 m 38 sec
Reputation Power: 378
Send a message via ICQ to xlordt Send a message via AIM to xlordt Send a message via MSN to xlordt Send a message via Yahoo to xlordt Send a message via Google Talk to xlordt Send a message via Skype to xlordt
Facebook MySpace
hmm maybe a good point.

Reply With Quote
  #17  
Old December 26th, 2005, 10:28 AM
jakenoble's Avatar
jakenoble jakenoble is offline
System.out.println("eh?");
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2004
Location: Derbyshire
Posts: 859 jakenoble User rank is Sergeant Major (2000 - 5000 Reputation Level)jakenoble User rank is Sergeant Major (2000 - 5000 Reputation Level)jakenoble User rank is Sergeant Major (2000 - 5000 Reputation Level)jakenoble User rank is Sergeant Major (2000 - 5000 Reputation Level)jakenoble User rank is Sergeant Major (2000 - 5000 Reputation Level)jakenoble User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 5 Days 17 h 57 m 46 sec
Reputation Power: 25
Send a message via MSN to jakenoble
Quote:
Some day in the future, a door may open to a brand new area of computing, a new logic, a new thought pattern, that requires the invention of a brand new language to complement and make full use of the new technology.

Now thats interesting

Reply With Quote
  #18  
Old December 26th, 2005, 10:36 AM
xlordt's Avatar
xlordt xlordt is offline
Only the strong survives!!.
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Feb 2003
Location: A World of wonders.
Posts: 5,548 xlordt User rank is Major (30000 - 40000 Reputation Level)xlordt User rank is Major (30000 - 40000 Reputation Level)xlordt User rank is Major (30000 - 40000 Reputation Level)xlordt User rank is Major (30000 - 40000 Reputation Level)xlordt User rank is Major (30000 - 40000 Reputation Level)xlordt User rank is Major (30000 - 40000 Reputation Level)xlordt User rank is Major (30000 - 40000 Reputation Level)xlordt User rank is Major (30000 - 40000 Reputation Level)xlordt User rank is Major (30000 - 40000 Reputation Level)xlordt User rank is Major (30000 - 40000 Reputation Level)  Folding Points: 109876 Folding Title: Super Ultimate Folder - Level 1Folding Points: 109876 Folding Title: Super Ultimate Folder - Level 1Folding Points: 109876 Folding Title: Super Ultimate Folder - Level 1Folding Points: 109876 Folding Title: Super Ultimate Folder - Level 1Folding Points: 109876 Folding Title: Super Ultimate Folder - Level 1Folding Points: 109876 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 1 Month 1 h 44 m 38 sec
Reputation Power: 378
Send a message via ICQ to xlordt Send a message via AIM to xlordt Send a message via MSN to xlordt Send a message via Yahoo to xlordt Send a message via Google Talk to xlordt Send a message via Skype to xlordt
Facebook MySpace
Quote:
Originally Posted by jakenoble
Now thats interesting
That's just going a bit further in imagination.

Reply With Quote
  #19  
Old January 12th, 2006, 07:21 AM
MichielVisser MichielVisser is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 4 MichielVisser User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 41 m 5 sec
Reputation Power: 0
Evolution of languages

Quote:
Originally Posted by medialint
If I was to make a language I'd make it very specific. ....I can't imagine a single person making a full blown multi-purpose language in this modern day ...


As I created my own language (Tyle,Website ) I can say it just started woth a very specific task: the language was used for storing structured data, that could be loaded dynamically from a c/c++ application. The data parser is a .dll that the application uses. Later I added control flow as well. Then I added a standalone shell application, that parses and executes tyle scripts.... In time I used it in more and more totally different applications (windows automation, games, tools, etc.). At this moment I use in a webserver that can execute .tsp pages (tyle server pages, half Tyle, half html), just like .jsp pages in Java. In this webserver I created a wiki tool.

I think it proves that a multi-purpose language can be made by one person, and that multi-purpose languages (can) evolve from single-purpose languages. However, I must say that I had the freedom to change the language whenever I wanted, because I was then the only programmer in it. This will change of course when a lot of people will start using it. That is one of the biggest problems on populair languages: it becomes to difficult to improve it without making somebody angry.

Reply With Quote
  #20  
Old January 19th, 2006, 11:19 PM
monotreme's Avatar
monotreme monotreme is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Mar 2003
Location: Oregon
Posts: 899 monotreme User rank is First Lieutenant (10000 - 20000 Reputation Level)monotreme User rank is First Lieutenant (10000 - 20000 Reputation Level)monotreme User rank is First Lieutenant (10000 - 20000 Reputation Level)monotreme User rank is First Lieutenant (10000 - 20000 Reputation Level)monotreme User rank is First Lieutenant (10000 - 20000 Reputation Level)monotreme User rank is First Lieutenant (10000 - 20000 Reputation Level)monotreme User rank is First Lieutenant (10000 - 20000 Reputation Level)monotreme User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 6 Days 8 h 15 m 16 sec
Reputation Power: 110
Send a message via Yahoo to monotreme
Quote:
Originally Posted by jafet
But if you were writing a chess program for grandmaster tournments, you wouldn't use PHP. You'd go back to the basics and use the fastest there is.


I dunno about that... You might make one primarily in PHP but with the tree generation and pruning in assembler, as a PHP extension.
__________________
Nothing says CLUELESS NOOB quite as poignantly as $q = "SELECT * FROM users WHERE id = " . $_GET[id];

Reply With Quote
  #21  
Old January 24th, 2006, 01:54 PM
Conundrum's Avatar
Conundrum Conundrum is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jan 2004
Posts: 1,114 Conundrum User rank is First Lieutenant (10000 - 20000 Reputation Level)Conundrum User rank is First Lieutenant (10000 - 20000 Reputation Level)Conundrum User rank is First Lieutenant (10000 - 20000 Reputation Level)Conundrum User rank is First Lieutenant (10000 - 20000 Reputation Level)Conundrum User rank is First Lieutenant (10000 - 20000 Reputation Level)Conundrum User rank is First Lieutenant (10000 - 20000 Reputation Level)Conundrum User rank is First Lieutenant (10000 - 20000 Reputation Level)Conundrum User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 16 h 42 m 14 sec
Reputation Power: 130
Quote:
Originally Posted by monotreme
Quote:
Originally Posted by jafet
But if you were writing a chess program for grandmaster tournments, you wouldn't use PHP. You'd go back to the basics and use the fastest there is.
I dunno about that... You might make one primarily in PHP but with the tree generation and pruning in assembler, as a PHP extension.
If you want it to win you'd want something fast, but if it was an exercise PHP would be okay. IBM's Deep Blue is programmed in C and is "capable of calculating 100-200 billions moves within three minutes, which is the time allotted to each player's move in classical chess." Would a PHP implementation be able to play competitively at the grandmaster level?
__________________
Dev411 | Grokbase | Compare CPAN Modules

Last edited by Conundrum : January 24th, 2006 at 01:58 PM.

Reply With Quote
  #22  
Old January 24th, 2006, 07:01 PM
monotreme's Avatar
monotreme monotreme is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Mar 2003
Location: Oregon
Posts: 899 monotreme User rank is First Lieutenant (10000 - 20000 Reputation Level)monotreme User rank is First Lieutenant (10000 - 20000 Reputation Level)monotreme User rank is First Lieutenant (10000 - 20000 Reputation Level)monotreme User rank is First Lieutenant (10000 - 20000 Reputation Level)monotreme User rank is First Lieutenant (10000 - 20000 Reputation Level)monotreme User rank is First Lieutenant (10000 - 20000 Reputation Level)monotreme User rank is First Lieutenant (10000 - 20000 Reputation Level)monotreme User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 6 Days 8 h 15 m 16 sec
Reputation Power: 110
Send a message via Yahoo to monotreme
I think you missed the point

Most programs spend about 90% of their time in less than 10% of the code. That is the 10% that you'd want to write in assembler or C++ The rest really wouldn't matter.


Quote:
Originally Posted by Conundrum
If you want it to win you'd want something fast, but if it was an exercise PHP would be okay. IBM's Deep Blue is programmed in C and is "capable of calculating 100-200 billions moves within three minutes, which is the time allotted to each player's move in classical chess." Would a PHP implementation be able to play competitively at the grandmaster level?

Reply With Quote
  #23  
Old January 24th, 2006, 07:11 PM
Conundrum's Avatar
Conundrum Conundrum is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jan 2004
Posts: 1,114 Conundrum User rank is First Lieutenant (10000 - 20000 Reputation Level)Conundrum User rank is First Lieutenant (10000 - 20000 Reputation Level)Conundrum User rank is First Lieutenant (10000 - 20000 Reputation Level)Conundrum User rank is First Lieutenant (10000 - 20000 Reputation Level)Conundrum User rank is First Lieutenant (10000 - 20000 Reputation Level)Conundrum User rank is First Lieutenant (10000 - 20000 Reputation Level)Conundrum User rank is First Lieutenant (10000 - 20000 Reputation Level)Conundrum User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 16 h 42 m 14 sec
Reputation Power: 130
Quote:
Originally Posted by monotreme
Most programs spend about 90% of their time in less than 10% of the code. That is the 10% that you'd want to write in assembler or C++ The rest really wouldn't matter.
If you're not going to do the heavy lifting in PHP, why use PHP at all, just use COBOL But jafet is right, there's no reason to use PHP for a chess playing program ... unless it's an exercise, or in your case, a wrapper. PHP is designed for building web applications, not general purpose apps. It's not the right tool for this job.

Last edited by Conundrum : January 24th, 2006 at 07:17 PM.

Reply With Quote
  #24  
Old January 31st, 2006, 05:07 AM
jamieB jamieB is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Nov 2002
Posts: 596 jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 2 Days 3 h 19 m 33 sec
Reputation Power: 17
Quote:
Originally Posted by amfr
Can anyone give me any tips on writing my own programming language?
I have lokked at YACC, but I dont really get it

read SICP . Read it again. This is an intro to programming but it contains some pretty deep knowledge about PL theory and practice and signposts in the further reading to more. After ch 3 or 4 there is lots of detail about writing your own interpreter.

Dennis Ritchie said something along the lines of 'If you're going to write your own language, do it to understand about compilers/interpreters. Don't do it to create a widely used language cos it won't happen unless you've got a massive organisation to push it. Lots or more beautiful languages than C have fallen by the wayside...'

Reply With Quote
  #25  
Old February 15th, 2006, 01:42 PM
calpol2004's Avatar
calpol2004 calpol2004 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 251 calpol2004 User rank is Sergeant Major (2000 - 5000 Reputation Level)calpol2004 User rank is Sergeant Major (2000 - 5000 Reputation Level)calpol2004 User rank is Sergeant Major (2000 - 5000 Reputation Level)calpol2004 User rank is Sergeant Major (2000 - 5000 Reputation Level)calpol2004 User rank is Sergeant Major (2000 - 5000 Reputation Level)calpol2004 User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 5 Days 11 h 8 m 41 sec
Reputation Power: 49
Send a message via MSN to calpol2004
im no expert, but if i was to make a new language i'd first make an assembler (optional). which i think would hard'ish as finding out what each mnemonic and stuff meant in machine code would be painful (then again you could use someone else's assembler or compiler ). then make a program that could convert your code into another type of code such as C or ASM (preferably asm as it would be more efficient or even better machine code but you'd be making an assembler not a compiler then ) e.g. in my language id have the word "start" at the top of the file, which would be converted into:

Code:
#include <stdio.h>
int main()
{


then maybe have the word "sayhello" converted into:

Code:
printf("Hello, World!");


then at the end have the word "end" converted into:

Code:
return 0;
}


id then have the code:

Code:
start
sayhello
end


which would be the equivalent of:

Code:
#include <stdio.h>

int main()
{
printf("Hello, World!");
return 0;
}


you could add as many words to convert as you wanted and maybe give them parameters (recomended ), then pass the converted code into a compiler or assembler, and you would have made a very simple language.

Last edited by calpol2004 : February 15th, 2006 at 01:59 PM.

Reply With Quote
  #26  
Old February 15th, 2006, 01:48 PM
LinuxPenguin's Avatar
LinuxPenguin LinuxPenguin is offline
fork while true;
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: May 2005
Location: England, UK
Posts: 5,535 LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)  Folding Points: 11590 Folding Title: Novice Folder
Time spent in forums: 1 Month 3 Weeks 1 Day 19 h 30 m 28 sec
Reputation Power: 1008
Or you could do with a tool that's ideally suited to handling strings, and therefore great for compiler construction?

Enter Perl.

Parse::Lex might help too

Reply With Quote
  #27  
Old February 15th, 2006, 02:15 PM
netytan's Avatar