Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.programming > #2969
| Newsgroups | comp.programming |
|---|---|
| Date | 2013-02-08 04:23 -0800 |
| References | <kepa2j$hhi$1@speranza.aioe.org> |
| Message-ID | <9d2df089-027c-4e63-be33-c8fc400f476f@googlegroups.com> (permalink) |
| Subject | Re: New Programming Language - any ideas? |
| From | mertesthomas@gmail.com |
On Mon, 4. Feb 2013 22:43:51 UTC+1, Flag wrote:
> Remember the days writing just BEEP to get a beep? Or SOUND 440 to get
> an A?
Only a tiny minority is interested in this form of sound support.
Most people are more interested in other things. E.g.: Data formats
like XML and HTML, compression of data, protocols like FTP and HTTP,
Unicode support, etc. Sound is not a big issue, especially in
commercial applications. It was actually my plan to support sound
in Seed7. But supporting it under Windows and Linux (Unix, BSD)
together with X11 (when the display is remote the sound should be
also remote) requires driver libraries. And there was no demand for
sound statements...
> Or just enter PLOT 10,10 to get a dot at 10,10 ?
Actually Seed7 supports functions like point and line.
> There are many programming languages... Give me my simple BASIC back!
Simple BASIC had line numbers and only minimal support for
structured programming. If you are interested, I wrote an
interpreter for a GW-BASIC like language:
http://seed7.sourceforge.net/scrshots/bas7.htm
> Why is it so hard to just compare a string with another in some languages?
But in some languages you can just use = or <> to compare strings.
[snip]
> put word 3 to 6 of "The quick brown fox jumped over the lazy dog." into theVariable
Words are not always separated by spaces. What about punctuation
marks or operator symbols. When all this things are taken into
account the solution is not so simple and elegant as a one-liner.
As others pointed out, several languages can provide a simple
solution for the case of space separated words. In Seed7 you would
use the expression:
join(split("The quick brown fox jumped over the lazy dog.", " ")[3 .. 6], " ")
More advanced aproaches to split a string into pieces use patterns
or scanner functions. Scanner functions are used in compilers to
read the symbols of a program. Seed7 has also scanner functions
for different purposes:
http://seed7.sourceforge.net/libraries/scanstri.htm
http://seed7.sourceforge.net/libraries/scanfile.htm
[snip]
> So the only thing here I can see with the so called high-languages is
> that it is no assembly or machine code.
Usually a program in a high-language should be source code portable.
Which IMHO means that no source code changes are necessary. Note
that many languages, that claim to be portable, do actually NOT
reach this level of portability. E.g.: Consider differend path
representations between Windows and Linux.
> So let's start a new one: (It's a quick and dirty hack right now.)
> Hello World:
> http://bazaar.launchpad.net/~michael-mustun/cl/trunk/view/head:/hello.cl
This really looks like a dirty hack.
> The basic idea is to get the best of some languages and put it into one.
That's basically the idea I had 1980/1981: An extensible programming
language. I wrote my diploma thesis and my doctorate thesis about
it. I started with an implementation in 1989 and released it under
the name Seed7 in 2005.
> Some text string manipulations from SPITBOL, Snobol4.
> Some from Pascal: end.
> Some from R: plot(x,y)
> Some ideas from very high languages like LiveCode but I think coding is
> not English or any other real spoken languages. (You will never tweet or
> sing your source code ... but who knows... ;)
You can get inspirations from different sources, but there must be
a common syntax and semantic. Otherwise parsing gets very
complicated and readability decreases.
> Why we write for an loop in some languages FOR, in some WHILE, LOOP or
> whatever?
As others pointed out this loops have different purposes.
> If we had higher abstraction of such "high language" basics like IF,
> LOOP, etc. who cares about a strange syntax?
Maybe the people who read the programs, care about the syntax.
For the higher abstraction I have a solution:
You define syntax and semantic of the statements in your language.
Regards,
Thomas Mertes
--
Seed7 Homepage: http://seed7.sourceforge.net
Seed7 - The extensible programming language: User defined statements
and operators, abstract data types, templates without special
syntax, OO with interfaces and multiple dispatch, statically typed,
interpreted or compiled, portable, runs under linux/unix/windows.
Back to comp.programming | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
New Programming Language - any ideas? Flag <michael.mustun@gmail.com> - 2013-02-04 22:43 +0100
Re: New Programming Language - any ideas? jt@toerring.de (Jens Thoms Toerring) - 2013-02-08 00:05 +0000
Re: New Programming Language - any ideas? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2013-02-08 01:10 +0000
Re: New Programming Language - any ideas? mertesthomas@gmail.com - 2013-02-08 04:23 -0800
Re: New Programming Language - any ideas? Flag <michael.mustun@gmail.com> - 2013-02-08 22:02 +0100
Re: New Programming Language - any ideas? "BartC" <bc@freeuk.com> - 2013-02-08 18:03 +0000
Re: New Programming Language - any ideas? Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2013-02-08 10:20 -0800
Re: New Programming Language - any ideas? Flag <michael.mustun@gmail.com> - 2013-02-08 21:59 +0100
Re: New Programming Language - any ideas? Rui Maciel <rui.maciel@gmail.com> - 2013-02-09 10:40 +0000
csiph-web