Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

Your dream programming language


ghost's Avatar
0 0

I realize this might be hard to get people to do, but I'll give it a go.

If you got to put your own programming language, what would it look like?

To save a few lines, don't write down the entire syntax (doubt anyone would do that anyway). Just say, this functionality from that language and this from that. And if you're lucky, maybe there already is such a language you just don't know about. :o :D

I guess I'll start. Kinda hard because I haven't really thought of this before.

The basic syntax and speed of C++ The amount of built-in functions of PHP The compatibility of Java

I realize this is just a very shallow description, but feel free to go more in-depth. :)


ghost's Avatar
0 0

MoshBat wrote: It would have two functions:

HidePorn()```

Haha. Nice one. xD

p4plus2's Avatar
Member
0 0

Mine would look kinda like this

%include <iostream>
%include "my_header_file.h"
%define PI 3.1415926535897

$string(string) = "hello world";
$number(int) = 5;

~This is a comment for one line

/~ This is a multi line comment
and though type casting vars isn't required
I included it for this example ~/

disp<<PI;
int function add($a,$b){
     return a+b;
     ~notice  after a variable is defined there is no need to use the $ anymore
}
long function add($a,$b){
     return a+b;
     ~overloading is aloud
}
if(defined(PI)){
     disp<<"go pi!!";
}
class box{
     function box(){
        disp<<"I have a box";
     }
     function %box(){
          disp<<"aww no more box!";
     }
}

Defiantly, could use improvements and there are things I would change but this is kinda just a estimate. It is somewhat of PHP with a C++ twist(mainly to be used for computer programmers transferring out of PHP I suppose)

EDIT: However, I do like moshbat's functions I'm sure I could fit them in :P


ghost's Avatar
0 0

Very nice p4plus2. :D I would definitely try it if it was available.


p4plus2's Avatar
Member
0 0

Only issue is a started using to many different symbols…After thats fixed it would be quite nice I think.


ghost's Avatar
0 0

also you should leave << for the bitwise left-shift. asides from that looks great.


ghost's Avatar
0 0

p4plus2 wrote: Only issue is a started using to many different symbols…After thats fixed it would be quite nice I think.

Well, nothing is perfect the first time, right? ;)


p4plus2's Avatar
Member
0 0

"If at first you don't succeed, your probably a programmer" ~unknown Yeah I know the feeling :P


ghost's Avatar
0 0

p4plus2 wrote: "If at first you don't succeed, your probably a programmer" ~unknown Yeah I know the feeling :P

Yeah, there's always something you miss the first time. :P


clone4's Avatar
Perl-6 Wisdom Seeker
0 0

my dream language? Perl 6, if it ever comes out, that is my dream language–> still very perl like, but with much more cleaner syntax, more string manipulation, faster interpretantion and so on and so forth… Kicking pythons ass in every aspect so hard, it won't be able to sit down for a years


clone4's Avatar
Perl-6 Wisdom Seeker
0 0

MoshBat wrote: Folks, be honest. You would use my dream language. It really does cover all your computing needs.

I think you can be way more general, it pretty much covers the purpose of today internet as it is… (also h4xx($ip) function would be appreciated though)


bl4ckc4t's Avatar
Banned
0 0
-include &quot;Windows.Functions&quot;
-define title &quot;Website Shell Include Program&quot;
// My Dream Programming Language
start.main[WEBSITE,WEBARGUMENTS,SHELL]
{
set string argument.1 = WEBSITE;
set string argument.2 = WEBARGUMENTS;
set string argument.3 = SHELL;

use argument.1(if argument.1 defined) else exit;
use argument.2(if argument.2 defined) else exit;
use argument.3(if argument.3 defined) else exit;

VK_F1 = help.chm
VK_F2 = open (argument.1,argument.2,argument.3)

}

This language takes a syntax similar to C and C++, makes it as easy to learn as Python, Ruby, and Perl. It would be as fast as ASM and would have the same portability as Java, with the capabilities of outputting HTML to use as a web application.


ghost's Avatar
0 0

Shit MoshBat, you really have your porn covered. Hah SteelPornFrom($ip) Well at least we know where to leach it from now.


fashizzlepop's Avatar
Member
0 0

I have actually thought of this before… I would create an EVEN MORE basic BASIC. It would be called ADD. Almost all functions would have 3 letter titles that way once you know them all you can type it SUPER quick. Ie.

icl /pr0n.add; &quot;This is a comment (rarely used)  and icl is an &#39;include&#39;&quot;
icl /hide.add;

use fnc grb &quot;Use function &#39;grab&#39; which returns variable $tits&quot;
{
if $tits=8 [px] thn ($pnis=$pnis+5) &quot;if loop&quot;
els ($pnis=0); &quot;semicolon for phrase breaks&quot;
ech Growth amount: $pnis; &quot;ech is like echo&quot;
END &quot;heres where BASIC comes in lol&quot;

I'd say a crude version of php and basic… Maybe a lil C?

What do you guys think?


p4plus2's Avatar
Member
0 0

Its a nice concept but to small can cripple a language, unless your only goal is to save space. You could replace ech with out though that may help a bit. Or replace inl with inc. But thats just me.


fashizzlepop's Avatar
Member
0 0

Well use three letter abreviations for the most used terms and 4 for the rest. Yah, your suggestions would help…

This would just be used for super fast simple programming. THat's why I call it ADD.


bl4ckc4t's Avatar
Banned
0 0

fashizzlepop wrote: I have actually thought of this before… I would create an EVEN MORE basic BASIC. It would be called ADD. Almost all functions would have 3 letter titles that way once you know them all you can type it SUPER quick. Ie.

icl /pr0n.add; &quot;This is a comment (rarely used)  and icl is an &#39;include&#39;&quot;
icl /hide.add;

use fnc grb &quot;Use function &#39;grab&#39; which returns variable $tits&quot;
{
if $tits=8 [px] thn ($pnis=$pnis+5) &quot;if loop&quot;
els ($pnis=0); &quot;semicolon for phrase breaks&quot;
ech Growth amount: $pnis; &quot;ech is like echo&quot;
END &quot;heres where BASIC comes in lol&quot;

I'd say a crude version of php and basic… Maybe a lil C?

What do you guys think?

Attention Deficit Disorder seems like a language you lose focus on constantly :P


p4plus2's Avatar
Member
0 0

Based on some of his variable names it looks like he was straying away from the point a bit :P


fashizzlepop's Avatar
Member
0 0

Consider me extending Moshbat's idea. It's meant that if you can code as fast as someone who is in 6th gear if you know what I mean. Ie. For quick thinkers and people high on caffeine.


spyware's Avatar
Banned
0 0

**fashizzlepop wrote:**Ie. For quick thinkers and people high on caffeine.

Perl?


SySTeM's Avatar
-=[TheOutlaw]=-
20 0

PHP 6, when it's finally released.


Uber0n's Avatar
Member
0 0

A faster version of GML which was compatible with Linux.


spyware's Avatar
Banned
0 0

system_meltdown wrote: PHP 6, when it's finally released.

You work with PHP-GTK?


ghost's Avatar
0 0

system_meltdown wrote: PHP 6, when it's finally released.

A good choice. :) I guess it's a good thing as well that it's not released too soon, when it's not finished.


SySTeM's Avatar
-=[TheOutlaw]=-
20 0

c4p_sl0ck wrote: [quote]system_meltdown wrote: PHP 6, when it's finally released.

A good choice. :) I guess it's a good thing as well that it's not released too soon, when it's not finished.[/quote]

Yeah indeed.

5.2.9 was released on 26th of Feb, so I upgraded to that the other week. Still psyched about PHP 6 though :D


SySTeM's Avatar
-=[TheOutlaw]=-
20 0

spyware wrote: [quote]system_meltdown wrote: PHP 6, when it's finally released.

You work with PHP-GTK?[/quote]

I have done before, but not often.


What_A_Legend's Avatar
...Legend?
0 0

I'm with System and looking forward to PHP 6. Its great to see the support of the <% tag is to go as that only belongs in ASP and I feel it should never of been in PHP.

Also great to that safe mode is to go as hosts always seem to have this setting to screw us over.

Not sure if anyone knows or not but is there going to be some changes to the OO support of PHP in this version?

As I think the OO feature still needs some tweeking.