Language Design

Programming, for all ages and all languages.
glauxosdever
Member
Member
Posts: 501
Joined: Wed Jun 17, 2015 9:40 am
Libera.chat IRC: glauxosdever
Location: Athens, Greece

Re: Language Design

Post by glauxosdever »

Hi,

Schol-R-LEA wrote:In any case, history has proven that assuming some programmer, sane or not, would never do some particularly idiotic thing almost guarantees that one will. It usually takes nothing more than a slight error in judgment at 3AM when you have a deadline to be met at 9:30. It rarely takes even that; simple curiosity or carelessness is easily enough, especially if it seems to be working on a cursory inspection. Since this sort of thing can often escape the notice of even a detailed testing regimen, that assumption starts to look very bad indeed.
What I meant was that no sane programmer would ever write directly to an address on the stack. Anyway, if the value of a ranged integer is unexpectedly modified by an arbitrary write to some location on the stack, I guess nothing can be done to avoid having an out-of-range value, except simply not writing arbitrarily to the stack.


Regards,
glauxosdever
Kevin
Member
Member
Posts: 1071
Joined: Sun Feb 01, 2009 6:11 am
Location: Germany
Contact:

Re: Language Design

Post by Kevin »

Passing pointers to stack variables and then using these pointers to write to that variable is quite common. Did you ever use scanf()?

But as long as you enforce type compatibility, this isn't a problem. You would have to pass an int to scanf(), then check whether the value is in the right range and then you can assign it to a u8 with restricted range.
Developer of tyndur - community OS of Lowlevel (German)
glauxosdever
Member
Member
Posts: 501
Joined: Wed Jun 17, 2015 9:40 am
Libera.chat IRC: glauxosdever
Location: Athens, Greece

Re: Language Design

Post by glauxosdever »

Hi,

Kevin wrote:Passing pointers to stack variables and then using these pointers to write to that variable is quite common.
I didn't mean this. I meant something that writes to an arbitrary address of the stack, without dereferencing any variable.


Regards,
glauxosdever
Kevin
Member
Member
Posts: 1071
Joined: Sun Feb 01, 2009 6:11 am
Location: Germany
Contact:

Re: Language Design

Post by Kevin »

Well, I certainly hope that you (generic you) never write to arbitrary addresses anywhere without knowing what is stored there. And if you do, I agree that you'll just get what you get without any guarantee that your type constraints are still met.
Developer of tyndur - community OS of Lowlevel (German)
User avatar
Schol-R-LEA
Member
Member
Posts: 1925
Joined: Fri Oct 27, 2006 9:42 am
Location: Athens, GA, USA

Re: Language Design

Post by Schol-R-LEA »

Sik wrote:
glauxosdever wrote:Since the initial question has been answered, I think I could speak a bit about the language as a whole. To start, I am going to call it G, since there is no systems programming language called like that, as far as I can tell. There are however other languages called G, but they are mostly domain specific and not well-known.
If you intend this to ever take off then please give it a name that would be easier to search for =P
Might I suggest 'Strix'? I don't think it is used for a programming language right now, though there are some things using the name (including a .NET web framework, a model of GeForce video card by Asus, and an obscure CMS project that appears to have been stillborn); and while it does carry some implications of bad omens, it is (as I understand) just the word for 'owl' in most contexts in the OP's native language, right?
Rev. First Speaker Schol-R-LEA;2 LCF ELF JAM POEE KoR KCO PPWMTF
Ordo OS Project
Lisp programmers tend to seem very odd to outsiders, just like anyone else who has had a religious experience they can't quite explain to others.
glauxosdever
Member
Member
Posts: 501
Joined: Wed Jun 17, 2015 9:40 am
Libera.chat IRC: glauxosdever
Location: Athens, Greece

Re: Language Design

Post by glauxosdever »

Hi,
Schol-R-LEA wrote:
Sik wrote:
glauxosdever wrote:Since the initial question has been answered, I think I could speak a bit about the language as a whole. To start, I am going to call it G, since there is no systems programming language called like that, as far as I can tell. There are however other languages called G, but they are mostly domain specific and not well-known.
If you intend this to ever take off then please give it a name that would be easier to search for =P
Might I suggest 'Strix'? I don't think it is used for a programming language right now, though there are some things using the name (including a .NET web framework, a model of GeForce video card by Asus, and an obscure CMS project that appears to have been stillborn); and while it does carry some implications of bad omens, it is (as I understand) just the word for 'owl' in most contexts in the OP's native language, right?
I would call the language itself "Glaux" too, but then the source file extension would be too long (i.e. ".glaux"). So I sticked (for now) with the first letter of the "Glaux". "Strix" wouldn't create a shorter extension than "Glaux" anyway.

Furthermore, "Strix" includes only a genus of owls, while "Glaux" includes all of them. So the word "Glaux" tends to be better-known.


Regards,
glauxosdever
User avatar
Sik
Member
Member
Posts: 251
Joined: Wed Aug 17, 2016 4:55 am

Re: Language Design

Post by Sik »

Eh, I'd say 5 letters is OK. Actually I'd say that's the maximum reasonable for an extension (more and it'll start rivaling the filenames themselves ;P) The bigger problem is that then we wouldn't know if we're talking about your OS or the language =O) (or yourself)

...you could choose Glau I suppose. One of my fonts is called Video Glau (after a color name).
pecan
Posts: 4
Joined: Thu Sep 01, 2016 11:13 am
Libera.chat IRC: pecan

Re: Language Design

Post by pecan »

G seems nice, it's short and fits the Glaux® brand. Searching for ‘G lang’ should bring up relevant results.
jnc100
Member
Member
Posts: 775
Joined: Mon Apr 09, 2007 12:10 pm
Location: London, UK
Contact:

Re: Language Design

Post by jnc100 »

Glauxosdever's Language for Assisting the Development of Operating Systems.

Although the acronym may already have been taken.

Regards,
John.
glauxosdever
Member
Member
Posts: 501
Joined: Wed Jun 17, 2015 9:40 am
Libera.chat IRC: glauxosdever
Location: Athens, Greece

Re: Language Design

Post by glauxosdever »

Hi,


"GLADOS" is longer than "Glaux", I would rather name the language itself "Glaux" too. But I have settled with "G".

Searching for "G lang" didn't return in the first five pages anything relevant to the language being discussed here. Searching however for "G programming language" reveals my specification on the second page of Google results. Searching for "G programming language specification" shows the above specification as the first result on the first page of Google results.

Note however that I am only searching using Google in order to see how high does my site score. Normally I'm using other search engines.


Regards,
glauxosdever
User avatar
Roman
Member
Member
Posts: 568
Joined: Thu Mar 27, 2014 3:57 am
Location: Moscow, Russia
Contact:

Re: Language Design

Post by Roman »

"If you don't fail at least 90 percent of the time, you're not aiming high enough."
- Alan Kay
glauxosdever
Member
Member
Posts: 501
Joined: Wed Jun 17, 2015 9:40 am
Libera.chat IRC: glauxosdever
Location: Athens, Greece

Re: Language Design

Post by glauxosdever »

Hi,

From what I can see here, it seems there are multiple languages called G. Apart from the language used in LabVIEW, there is another language called G, which is used for rapid development of OpenGL applications. Since neither is well-known, I guess I could name another language "G".


Regards,
glauxosdever
NunoLava1998
Member
Member
Posts: 273
Joined: Sun Oct 09, 2016 4:38 am
Libera.chat IRC: NunoLava1998

Re: Language Design

Post by NunoLava1998 »

You can try "GgGg"
Just kidding.
Try "G-Args" (g-arguments)
Developing TRIODIUM OS. Or call it Dixium if you want. It doesn't matter.

https://github.com/NunoLava1998/DixiumOS
Techel
Member
Member
Posts: 215
Joined: Fri Jan 30, 2015 4:57 pm
Location: Germany
Contact:

Re: Language Design

Post by Techel »

Gyroscope, Gyros, Guanine, Genuine, Gold, Gargamel. Preferably with -Script appended.
User avatar
Brendan
Member
Member
Posts: 8561
Joined: Sat Jan 15, 2005 12:00 am
Location: At his keyboard!
Contact:

Re: Language Design

Post by Brendan »

Hi,
glauxosdever wrote:
From what I can see here, it seems there are multiple languages called G. Apart from the language used in LabVIEW, there is another language called G, which is used for rapid development of OpenGL applications. Since neither is well-known, I guess I could name another language "G".
I think choosing a name (and "bikeshedding" over what name to choose) is premature - there's no official spec yet and no reference implementation either, and almost everything can change between now and the time the language/compiler actually exists as a usable thing (e.g. potentially including someone like Google creating a system programming language called G and releasing it before you do).

Smarter people (Intel, Microsoft, etc) just use a mostly irrelevant codename (Longhorn, Skylake) until something is ready for release; then they decide on marketing fluff (e.g. the name the product will use) when it actually matters.


Cheers,

Brendan
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.
Post Reply