Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Don't forget to read Tuesday's email newsletter for your chance to win a free copy of Construct 2!


RFC: Epoch Programming Language, Release 14


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
3 replies to this topic

#1 ApochPiQ   Moderators   -  Reputation: 16069

Like
0Likes
Like

Posted 18 April 2013 - 02:05 AM

As many of you may know by now, I've been working on a programming language for quite some time. (I like to say that it's really only been six months or so of real work, and a few years of slacking off in between.)

Release 14 of this language, Epoch, is now available.

In this release, I've focused on performance of the runtime system - specifically, 100% native code generation via LLVM. The language remains fully garbage collected and still manages to perform quite acceptably.

You can find out plenty of details on the language itself at the link above; but here's a quick taste of what it looks like:
fib : 0 -> 1
fib : 1 -> 1
fib : integer n -> integer f = fib(n - 1) + fib(n - 2)

deep_thought : -> integer answer = 0
{
    integer a = fib(5)
    integer b = fib(8)
    answer = a + b
}

entrypoint :
{
    integer the_answer = deep_thought()
    print(cast(string, the_answer))
}
It's like 1AM or something ridiculous, so I'm going to leave this brief for now; but feel free to bombard the thread with questions, comments, feedback, vitriol, etc :-)

Sponsor:

#2 Eliad Moshe   Members   -  Reputation: 812

Like
0Likes
Like

Posted 18 April 2013 - 10:39 AM

0. Syntax for function specialization + returned value initialization is very cool! 

1. The lack of semicolons makes the code being much cleaner.

2. Just from curiosity: What led you to choose the cast syntax ?

3. Is there a linkage interface?

 

++


Edited by Eliad Moshe, 18 April 2013 - 12:35 PM.


#3 ApochPiQ   Moderators   -  Reputation: 16069

Like
0Likes
Like

Posted 18 April 2013 - 10:57 AM

The cast syntax is a legacy throwback. Now that I have generics, I'm pondering moving to a C++ style syntax: cast<string>(foo).

#4 ultramailman   Prime Members   -  Reputation: 1582

Like
0Likes
Like

Posted 18 April 2013 - 12:15 PM

Wow, pattern matching like haskell's!




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS