I am makking a new language, and I would liek to know iff anyone here wants to help with import libz or anything, I dont know the name yet, might be 'cppapplet' becouse of hte mix between c++ syntax and BASIC/Java syntax. The code archetecture is a lot like C, but the variables are like VB, its like this:
PRINTF s This is a demonstration!~'
GETCH s NULL
PRINTF s Here is the command line!~'
PRINTF d cmdline
PRINTF s ~Enter a string and I will repeat it: '
VAR s String
STRGET s String
PRINTF s ~You Entered: '
PRINTF d String
GETCH s NULL
It may change over time, but this is what I have so far, its only been 2 days, so ive only just started with import libz, I had to get the interpreter and precompiler up and running first, "ilang.dll" includes Variables and console, each import lib for this language is a dll, you can also have multiple source files. Also everything declaired is global, and paramiters only exist as variables while the function is opened, but they too are global. If you're wondering what the 's' and 'd' mean, they let you be very elastic when it comes to variables. You can specify to use one variable with another, and the 'VAR' type is universal for anything, any type.
So if you're interested in helping develope libz or learning it to try it email me or reply!
P.S. I am creating a C++ lbirary, prolly "cpplib.dll", that will let you paste C++ code into cppapplet with little trouble, a lib can do a lot in this, it can change syntax, pretty much anything.
No Offense, but that is one UGLY language. And what advantage does it have over C or BASIC or anything else I can throw at you? It looks like something you'd wind up calling BATRAN-C (BASIC + FORTRAN + C). I see no distinct advantage there, besides confusability...
Yeah... Its for portabuility, and its better than java for web stuff, its basically something that can be used for anything...
The lang has changed, and it is continuing to be better, here is a sample so far...
function _MAIN cmdline ?
PRINT d cmdline'
P.S. it also has new data structures and some features that are more elastic than C++. Like a var being able to do anything using the mutation operator (*).
A var being able to do anything? You mean like casting? Also - it does look a lot like BASIC...
Hey it can't be any uglier than Perl!
even uglier than perl. it's sickeningly ugly. puke-o-rama!
what's whith needing a single-quote after the print command? and why have a single control (or chicken-lip :) ) "}" at the end of the program? what about one at the start?
What about arithmetic? Won't be very good for speed if you have to handle variables changing their types in the middle of equations...
And how is this a web language? and how is it OS-independant? Doesn't look like either to me. I'd like to see you compile and run that on a *nix platform.
As for the "automatic casting," it could just do things standard BASIC style and make everything a float!! (that IS QBasic's default behavior. People who need speed, for obvious reasons, override that) Or, what the hell, make your own "triple" or "quadruple" data type, for extra accuracy! Finally, something for the Itanium and it's 64 bits of uselessness!
I wouldn't trash talk the itanium. It may not be super speedy at first, but it's 64 bits are useful in some places...
The instruction set has a ton of registers, and you can control which code will be run with specific registers... it's very interesting, and offers a lot of speed improvement if compilers are made to take advantage of it.
The high-end (1.1 Ghz) PIII Xeon Coppermines seem to be the most useful Intel CPUs. Once 64-bit operating systems become common, the Itanium will gain it's usefullness. But not for a while.
Of course, if you're a gamer, then the PIV is a good choice. That's one of the few areas where the PIV beats the lower-latency Athlon. I assume the Itanium would too, if Q3 were the kind of thing that they'd use in benchmarks of something destined for workstations! ;)
But ANYWAY, back on topic. The language. What exactly is it's purpose? Are you writing a prowser plug-in to act as an interpreter for it? What is it's niche, exactly?
The reason for this is becouse it offers the first real C style approach for things on the net (instead of java where its all 'onMouseClick' and such). and this does not auto-cast... the var is actually everything, its hard to explain but it stores anything, I didnt give the example of the mutation operator, basically the interpreter stores wut it is usign the '*'. Lolz once its done peeps can read the tutorial ;) .
P.S. Its not ugly, just the console lib is, the rest looks a lot like C++.
Anyone here gotz a BASIC Compiler source code for VB...I want to make a new pointless language