OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Aug 17, 2017 1:18 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 66 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next
Author Message
 Post subject: Re: Language Design
PostPosted: Wed Oct 05, 2016 4:25 am 
Offline
Member
Member
User avatar

Joined: Wed Jun 17, 2015 9:40 am
Posts: 411
Location: Athens, Greece
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

_________________
Before implementing any piece of software, make sure you have designed it to be extendable. Backporting new features into old code is not always easy.


Top
 Profile  
 
 Post subject: Re: Language Design
PostPosted: Wed Oct 05, 2016 4:41 am 
Offline
Member
Member

Joined: Sun Feb 01, 2009 6:11 am
Posts: 1066
Location: Germany
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)


Top
 Profile  
 
 Post subject: Re: Language Design
PostPosted: Wed Oct 05, 2016 4:59 am 
Offline
Member
Member
User avatar

Joined: Wed Jun 17, 2015 9:40 am
Posts: 411
Location: Athens, Greece
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

_________________
Before implementing any piece of software, make sure you have designed it to be extendable. Backporting new features into old code is not always easy.


Top
 Profile  
 
 Post subject: Re: Language Design
PostPosted: Wed Oct 05, 2016 5:05 am 
Offline
Member
Member

Joined: Sun Feb 01, 2009 6:11 am
Posts: 1066
Location: Germany
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)


Top
 Profile  
 
 Post subject: Re: Language Design
PostPosted: Wed Oct 05, 2016 5:45 pm 
Offline
Member
Member
User avatar

Joined: Fri Oct 27, 2006 9:42 am
Posts: 925
Location: Athens, GA, USA
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
μή εἶναι βασιλικήν ἀτραπόν ἐπί γεωμετρίαν
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.


Top
 Profile  
 
 Post subject: Re: Language Design
PostPosted: Thu Oct 06, 2016 8:00 am 
Offline
Member
Member
User avatar

Joined: Wed Jun 17, 2015 9:40 am
Posts: 411
Location: Athens, Greece
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

_________________
Before implementing any piece of software, make sure you have designed it to be extendable. Backporting new features into old code is not always easy.


Top
 Profile  
 
 Post subject: Re: Language Design
PostPosted: Thu Oct 06, 2016 2:00 pm 
Offline
Member
Member

Joined: Wed Aug 17, 2016 4:55 am
Posts: 164
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).

_________________
https://github.com/sikthehedgehog/indigo


Top
 Profile  
 
 Post subject: Re: Language Design
PostPosted: Mon Oct 17, 2016 10:40 am 
Offline

Joined: Thu Sep 01, 2016 11:13 am
Posts: 4
G seems nice, it's short and fits the Glaux® brand. Searching for ‘G lang’ should bring up relevant results.


Top
 Profile  
 
 Post subject: Re: Language Design
PostPosted: Mon Oct 17, 2016 11:52 am 
Offline
Member
Member

Joined: Mon Apr 09, 2007 12:10 pm
Posts: 770
Location: London, UK
Glauxosdever's Language for Assisting the Development of Operating Systems.

Although the acronym may already have been taken.

Regards,
John.

_________________
Tysos | rpi-boot | EFI tools


Top
 Profile  
 
 Post subject: Re: Language Design
PostPosted: Mon Oct 17, 2016 12:16 pm 
Offline
Member
Member
User avatar

Joined: Wed Jun 17, 2015 9:40 am
Posts: 411
Location: Athens, Greece
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

_________________
Before implementing any piece of software, make sure you have designed it to be extendable. Backporting new features into old code is not always easy.


Top
 Profile  
 
 Post subject: Re: Language Design
PostPosted: Tue Oct 18, 2016 3:00 pm 
Offline
Member
Member
User avatar

Joined: Thu Mar 27, 2014 3:57 am
Posts: 557
Location: Moscow, Russia
I suspect, G had already been taken.

_________________
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
- Alan Kay


Top
 Profile  
 
 Post subject: Re: Language Design
PostPosted: Wed Oct 19, 2016 5:22 am 
Offline
Member
Member
User avatar

Joined: Wed Jun 17, 2015 9:40 am
Posts: 411
Location: Athens, Greece
Hi,


Roman 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".


Regards,
glauxosdever

_________________
Before implementing any piece of software, make sure you have designed it to be extendable. Backporting new features into old code is not always easy.


Top
 Profile  
 
 Post subject: Re: Language Design
PostPosted: Fri Oct 21, 2016 11:05 am 
Offline
Member
Member

Joined: Tue Oct 04, 2011 2:29 pm
Posts: 41
Location: Caen, France
I just thought about "Gladys", letting him sound like my elder-sister first name...

_________________
Less Is More - M. Van Der Rohe


Top
 Profile  
 
 Post subject: Re: Language Design
PostPosted: Fri Oct 21, 2016 1:51 pm 
Offline
Member
Member

Joined: Sun Oct 09, 2016 4:38 am
Posts: 273
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


Top
 Profile  
 
 Post subject: Re: Language Design
PostPosted: Fri Oct 21, 2016 3:44 pm 
Offline
Member
Member

Joined: Fri Jan 30, 2015 4:57 pm
Posts: 215
Location: Germany
Gyroscope, Gyros, Guanine, Genuine, Gold, Gargamel. Preferably with -Script appended.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 66 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group