Click Here
home features news forums classifieds faqs links search
6071 members 
Amiga Q&A /  Free for All /  Emulation /  Gaming / (Latest Posts)
Login

Nickname

Password

Lost Password?

Don't have an account yet?
Register now!

Support Amigaworld.net
Your support is needed and is appreciated as Amigaworld.net is primarily dependent upon the support of its users.
Donate

Menu
Main sections
» Home
» Features
» News
» Forums
» Classifieds
» Links
» Downloads
Extras
» OS4 Zone
» IRC Network
» AmigaWorld Radio
» Newsfeed
» Top Members
» Amiga Dealers
Information
» About Us
» FAQs
» Advertise
» Polls
» Terms of Service
» Search

IRC Channel
Server: irc.amigaworld.net
Ports: 1024,5555, 6665-6669
SSL port: 6697
Channel: #Amigaworld
Channel Policy and Guidelines

Who's Online
12 crawler(s) on-line.
 157 guest(s) on-line.
 0 member(s) on-line.



You are an anonymous user.
Register Now!
 zipper:  24 mins ago
 ppcamiga1:  35 mins ago
 VooDoo:  55 mins ago
 OlafS25:  1 hr 4 mins ago
 marcofreeman:  1 hr 13 mins ago
 pixie:  1 hr 18 mins ago
 kolla:  1 hr 34 mins ago
 BigD:  2 hrs 4 mins ago
 CosmosUnivers:  3 hrs 17 mins ago
 Musashi5150:  3 hrs 46 mins ago

Amigaworld.net News   Amigaworld.net News : API2 and the new programming language
   posted by smith on 12-Nov-2019 15:13:43 (1612 reads)
A post about work on API2 has been published on Patreon. You can read in it about the next element of this project, the new programming language and its compiler. The language should be much simpler to use than "C" and require less code to achieve the same effect. There are also code samples which can be compiled with current version of compiler and resulting output files can be run.
    

STORYID: 8449
Related Links
· More about Amigaworld.net News
· News by smith


Most read story about Amigaworld.net News
Official OS4 Screenshots from Hyperion

Last news about Amigaworld.net News
Issue 13 of WhatIFF? Amiga Guide Magazine is released !
Printer Friendly Page  Send this Story to a Friend

PosterThread
tekmage 
Re: API2 and the new programming language
Posted on 22-Nov-2019 21:56:24
#1 ]
Regular Member
Joined: 23-Mar-2005
Posts: 439
From: San Francisco

Hello smith,

Sounds like a very interesting project. I visited the Patron page and did not find that many more details. As a potential supporter I'd like to know more about you and your background. I'd also like to know more about API2. Why would I take the time to learn API2 when I could use Hollywood or just C. There are other questions like will there be an IDE and stuff like that.

If you have those details and I missed them, my bad
If you have not yet posted them, I look forward to learning more.

Cheers,
Bill "tekmage" Borsari

 Status: Offline
Profile     Report this post  
Deniil715 
Re: API2 and the new programming language
Posted on 26-Nov-2019 9:21:31
#2 ]
Elite Member
Joined: 14-May-2003
Posts: 4236
From: Sweden

I like the look of the language. Like C# but without much of the C legacy, like the stupid need for semicolon; which is quite ridiculous, especially when still present in C# and Java.

I like 'constructor' instead of the name of the class which is much less clear when reading the code.

Looks like you took the E-like way of defining variables: 'var someVar:Type'. Can you stack these with only one 'var' at the front?

The definition of return type it clearer: 'public method() => Type'

Now the *real* question: Do you support nested comments??!??!?!
/* temporarilty commented out
ordinary code
/* An old comment */
more ordernary code
*/

Amiga-E does this and I was amazed when I first realized C does not support this, and neither does C++, and NEITHER does Java, AND NEITHER DOES C# !!!!!!!!!!!!!!!!!!
Supporting nested comments in >the new and better language< is a requirement and trivial to implement

If you decide to implement properties, it would be nice to have a 'self' in there that represents the backing store of the property so one doesn't have to clutter the code with extra variables, like in C#.


_________________
- Don't get fooled by my avatar, I'm not like that (anymore, mostly... maybe only sometimes)
> Amiga Classic and OS4 developer for OnyxSoft.

 Status: Offline
Profile     Report this post  
smith 
Re: API2 and the new programming language
Posted on 26-Nov-2019 15:12:09
#3 ]
Member
Joined: 19-Feb-2019
Posts: 15
From: Unknown

Hello,
More details can be found here.

Quote:
As a potential supporter I'd like to know more about you and your background.


I have Master Degree in Computer Science and work as software architect and developer all my professional life.

Quote:
Why would I take the time to learn API2 when I could use Hollywood or just C.


API2 is a framewrok and you can use it with C or my new language. The benefits of using new language are: no computer crashes when something went wrong, no dealing with pointers, a lot of modern concepts like classes, extensions, lambdas ets.
New language is compiled to executable file (just like C) so the same program will work faster than in Hollywood because as far as I know Hollywood uses Lua interpreter.

Quote:
There are other questions like will there be an IDE and stuff like that.


Everything is possible, it only depends on the amount of time that I can devote to this project.

 Status: Offline
Profile     Report this post  
smith 
Re: API2 and the new programming language
Posted on 26-Nov-2019 15:21:03
#4 ]
Member
Joined: 19-Feb-2019
Posts: 15
From: Unknown

Hello,
Thank you for your kind words about my programming language

Quote:
Can you stack these with only one 'var' at the front?


I didn't plan this because I think it will reduce readability especially when the variables are initialized.

Quote:
Supporting nested comments in >the new and better language< is a requirement and trivial to implement


My thoughts on nested comments are exactly like yours so they will definitely be in the language.

Quote:
If you decide to implement properties, it would be nice to have a 'self' in there that represents the backing store of the property so one doesn't have to clutter the code with extra variables, like in C#.


This is a very good idea.

 Status: Offline
Profile     Report this post  
[ home ][ about us ][ privacy ] [ forums ][ classifieds ] [ links ][ news archive ] [ link to us ][ user account ]
Copyright (C) 2000 - 2019 Amigaworld.net.
Amigaworld.net was originally founded by David Doyle