OSDev.org

The Place to Start for Operating System Developers
It is currently Fri Apr 19, 2024 3:23 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: What do you think of the programming language i am developin
PostPosted: Sat Jun 11, 2016 12:53 am 
Offline

Joined: Thu Jun 09, 2016 5:57 pm
Posts: 3
I havn't come up with a name for it yet. but it works sorta like this. you have calls and you have frames. the frames are composed of permissions, which decide what the frame can modify and access of other frames, data, the internal data of the frame, and calls to other frames. the calls modify the permissions or data of other frames given the permissions of the given call frame.

here is a sample of what it would look like

Code:
FrameUn $pr:ALL da: cl:  ;
FramDue $pr: da:1,2,3,4 cl:NamedCall;
NamedCall $FrameUn:frameDue_da<4> 4 +=; /* using the permissions of FrameUn increment the data at the 4th index by 4 */


this code doesn't do anything yet though the frames are just declarations of data, and named calls don't do anything on their own. named calls have to be put inside frames. they will be called when the frame is called. anonymous calls can execute on their own. an anonymous call would look like this
Code:
$FrameUn:frameDue; /*using permissions of FrameUn call frame ,and since the NamedCall call is in Framedue it calls NamedCall*/
these four statements in order would repeatedly increment frameDue data at index 4 by 4.

you can also have multiple frames in the frame section of the call. using AND, OR, and NOT as set operations. like so.

Code:
$frameUn frameDue OR:foobarbaz;
use the permisions of frameun OR framedue
Code:
$frameun framedue AND:foobarbaz;
use the permisions of frameun AND framedue, don't include permissions which are only in one
Code:
$frameun framedue OR frametri NOT:foobarbaz;
use the permisions of frameun OR framedue then negate the permisions of frametri from the permissions set

some other rules about it, you may have noticed it is in reverse polish notation. you have to use a permission to modify data,other permissions. future plan on it, a way to manage files,writeable permissions,writing a compiler for it(lol)


Top
 Profile  
 
 Post subject: Re: What do you think of the programming language i am devel
PostPosted: Sat Jun 11, 2016 6:04 am 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 4594
Location: Chichester, UK
I'm afraid that's about as clear as mud to me. Do you have a formal specification of your language?


Top
 Profile  
 
 Post subject: Re: What do you think of the programming language i am devel
PostPosted: Sat Jun 11, 2016 8:29 am 
Offline
Member
Member

Joined: Fri Jan 30, 2015 4:57 pm
Posts: 215
Location: Germany
What is the use of such permissions. What does this programming language actually does and to what output type is it compiled?
Are you talking about a typical native language which is compiled into, let's say, x86 machine code?


Top
 Profile  
 
 Post subject: Re: What do you think of the programming language i am devel
PostPosted: Sat Jun 11, 2016 12:28 pm 
Offline

Joined: Thu Jun 09, 2016 5:57 pm
Posts: 3
Techel wrote:
What is the use of such permissions. What does this programming language actually does and to what output type is it compiled?
Are you talking about a typical native language which is compiled into, let's say, x86 machine code?


the permissions are needed to modify and access other frames. they'd be like (if pr:range(1-5) == da:3 then perform right hand side of call) and yes it is a typical programming language compiled into machine code. sorry i am not good at explaining things to people


Top
 Profile  
 
 Post subject: Re: What do you think of the programming language i am devel
PostPosted: Sun Jun 12, 2016 3:46 am 
Offline
Member
Member

Joined: Wed Jun 03, 2015 5:03 am
Posts: 397
Anarchokawaii wrote:
sorry i am not good at explaining things to people

It means you do not understand things. Or you are too lazy. Or you are too eager to get bored after a few words. In any way - it's better to improve your communication skills. And one way for it is to try to write here a good description of your language.

_________________
My previous account (embryo) was accidentally deleted, so I have no chance but to use something new. But may be it was a good lesson about software reliability :)


Top
 Profile  
 
 Post subject: Re: What do you think of the programming language i am devel
PostPosted: Sun Jun 12, 2016 4:05 am 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 4594
Location: Chichester, UK
Anarchokawaii wrote:
sorry i am not good at explaining things to people

It's likely that the reason you can't explain this to others is that you aren't clear about it yourself.

You've designed a new language - great. Surely you can tell us the objectives behind that design; presumably it's not just a case of being different, so what deficiencies in existing programming languages does your design address?


Top
 Profile  
 
 Post subject: Re: What do you think of the programming language i am devel
PostPosted: Wed Aug 31, 2016 12:19 am 
Offline

Joined: Thu Jun 09, 2016 5:57 pm
Posts: 3
Okay, I am back with a better explanation. Bassicly the point of the language is Modularity, or what i had in my mind "Scope-Oriented Programming". My goal in accomplishing this is by having very primitive scope/namespace constructs. All the data exists in frames. which are broken down into 3 sections, the permissions section is for what data the frame can modify by being given modification access to other frames (where you saw "pr:"), the data section for storing data (where you saw "da:"), and the call section which i will get into. then there are calls which are transactions between frames. they exist outside the frames, they are more like the + in 2+2. but's not a function. named calls arn't called on there own though. they are called by being called by a frame because it has calls in its calls section or because it was called by an unnamed call. when you write a call you have to have put the permissions of the items you are modify or it will pass.

why am i doing this. i've used C and Python and i wanted to something that could escape the global and local namespace/scope system. also cause i thought it would be fun to develop a programming language


Top
 Profile  
 
 Post subject: Re: What do you think of the programming language i am devel
PostPosted: Wed Aug 31, 2016 2:01 am 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 4594
Location: Chichester, UK
I think a formal specification would help in understanding your proposed language.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 44 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