Jump to content




[Language] Valerie


13 replies to this topic

#1 sci4me

  • Members
  • 225 posts
  • LocationEarth

Posted 27 June 2016 - 04:40 AM

So I've been working on a statically typed language that compiles to Lua. I've been writing the compiler in Java, but I will rewrite the compiler in the language itself eventually. The language won't be open sourced or released until after that is done. And as for the name? If you can correctly guess where I got the name, you get a point.

The language takes a lot of inspiration from "Jai" which is being worked on by Jonathan Blow. My syntax is similar or equal to his in many places.

Let's just show some code:
Spoiler
Spoiler
Spoiler
Spoiler
Spoiler
Spoiler

And by the way, the "io" import imports this file:
Spoiler

Keep in mind, this is VERY early in development. I am still missing MANY features (arrays and structs to name a few).

Also, function declarations aren't special; they don't have to be at global scope. You can declare a function anywhere:
Spoiler

However, one feature that I DO have, is compile-time code execution. Any code that would be written to run at runtime, normally, can be ran at compile time. A few examples:
Spoiler
Spoiler
Spoiler

Unlike Lua, you can't just write code. You have to put code in procedures. So, some of these examples are technically incomplete.

So, like I said, I have a LOT more work to do. Here's some things I would like to add:
  • arrays
  • structs
  • polymorphism
  • procedure overloading
  • first class types
  • statically linked libraries (maybe?)
  • dynamic libraries (maybe?)
There are also a lot of things I need to do to what I already have. Right now, the compiler is pretty awful, honestly. It currently does not provide good error messages. There's also a ton of small features I need to add and bugs to fix (most of which are probably bugs I haven't discovered yet).
But I am VERY pleased with what I have so far.

Let me know what you guys think! Thanks!

#2 EEVV

  • Members
  • 3 posts

Posted 24 July 2016 - 06:32 PM

Ha! Pretty cool. This reminds me of Pascal and Haskell.
I had nothing much to say, because I thought that I might imply something that I do no wish to imply, anyways this is great.

#3 CrazedProgrammer

  • Members
  • 495 posts
  • LocationWageningen, The Netherlands

Posted 24 July 2016 - 07:25 PM

Wow, this looks great!
I'd love to make some programs in this.
Good luck! :)

#4 The Logo Maker

  • Members
  • 83 posts
  • Locationyes

Posted 25 July 2016 - 02:41 AM

wow - this language is like opium !

#5 LDDestroier

  • Members
  • 1,095 posts
  • LocationACDC Town

Posted 25 July 2016 - 05:21 AM

View Postepicidity, on 25 July 2016 - 02:41 AM, said:

wow - this language is like opium !

...it sure is...

#6 The Logo Maker

  • Members
  • 83 posts
  • Locationyes

Posted 25 July 2016 - 02:23 PM

View PostEldidiStroyrr, on 25 July 2016 - 05:21 AM, said:

...it sure is...

no !! i meant utopia sorry

#7 sci4me

  • Members
  • 225 posts
  • LocationEarth

Posted 26 July 2016 - 09:42 PM

View Postepicidity, on 25 July 2016 - 02:23 PM, said:

View PostEldidiStroyrr, on 25 July 2016 - 05:21 AM, said:

...it sure is...

no !! i meant utopia sorry

What on earth are you talking about? Lol

#8 H4X0RZ

  • Members
  • 1,315 posts
  • LocationGermany

Posted 26 July 2016 - 10:07 PM

View Postsci4me, on 26 July 2016 - 09:42 PM, said:

View Postepicidity, on 25 July 2016 - 02:23 PM, said:

View PostEldidiStroyrr, on 25 July 2016 - 05:21 AM, said:

...it sure is...

no !! i meant utopia sorry

What on earth are you talking about? Lol

You don't know what a utopia is?

Edited by H4X0RZ, 26 July 2016 - 10:07 PM.


#9 sci4me

  • Members
  • 225 posts
  • LocationEarth

Posted 26 July 2016 - 10:16 PM

View PostH4X0RZ, on 26 July 2016 - 10:07 PM, said:

View Postsci4me, on 26 July 2016 - 09:42 PM, said:

View Postepicidity, on 25 July 2016 - 02:23 PM, said:

View PostEldidiStroyrr, on 25 July 2016 - 05:21 AM, said:

...it sure is...
no !! i meant utopia sorry
What on earth are you talking about? Lol
You don't know what a utopia is?

I know what A utopia is. But it doesn't say "like a utopia", it says "like utopia". I mean, actually it says "like opium" but that was a typo.

#10 H4X0RZ

  • Members
  • 1,315 posts
  • LocationGermany

Posted 26 July 2016 - 11:05 PM

View Postsci4me, on 26 July 2016 - 10:16 PM, said:

View PostH4X0RZ, on 26 July 2016 - 10:07 PM, said:

View Postsci4me, on 26 July 2016 - 09:42 PM, said:

View Postepicidity, on 25 July 2016 - 02:23 PM, said:

View PostEldidiStroyrr, on 25 July 2016 - 05:21 AM, said:

...it sure is...
no !! i meant utopia sorry
What on earth are you talking about? Lol
You don't know what a utopia is?

I know what A utopia is. But it doesn't say "like a utopia", it says "like utopia". I mean, actually it says "like opium" but that was a typo.

Fair enough. I guess it's Lemmy's fault because epicidity seems to use his translator.

Edited by H4X0RZ, 26 July 2016 - 11:05 PM.


#11 sci4me

  • Members
  • 225 posts
  • LocationEarth

Posted 27 July 2016 - 03:35 AM

View PostH4X0RZ, on 26 July 2016 - 11:05 PM, said:

View Postsci4me, on 26 July 2016 - 10:16 PM, said:

View PostH4X0RZ, on 26 July 2016 - 10:07 PM, said:

View Postsci4me, on 26 July 2016 - 09:42 PM, said:

View Postepicidity, on 25 July 2016 - 02:23 PM, said:

View PostEldidiStroyrr, on 25 July 2016 - 05:21 AM, said:

...it sure is...
no !! i meant utopia sorry
What on earth are you talking about? Lol
You don't know what a utopia is?
I know what A utopia is. But it doesn't say "like a utopia", it says "like utopia". I mean, actually it says "like opium" but that was a typo.
Fair enough. I guess it's Lemmy's fault because epicidity seems to use his translator.

Lol. I still don't really understand what it means though... like, saying that my language is utopian? What does that mean lol?

#12 H4X0RZ

  • Members
  • 1,315 posts
  • LocationGermany

Posted 27 July 2016 - 08:14 AM

View Postsci4me, on 27 July 2016 - 03:35 AM, said:

View PostH4X0RZ, on 26 July 2016 - 11:05 PM, said:

View Postsci4me, on 26 July 2016 - 10:16 PM, said:

View PostH4X0RZ, on 26 July 2016 - 10:07 PM, said:

View Postsci4me, on 26 July 2016 - 09:42 PM, said:

View Postepicidity, on 25 July 2016 - 02:23 PM, said:

View PostEldidiStroyrr, on 25 July 2016 - 05:21 AM, said:

...it sure is...
no !! i meant utopia sorry
What on earth are you talking about? Lol
You don't know what a utopia is?
I know what A utopia is. But it doesn't say "like a utopia", it says "like utopia". I mean, actually it says "like opium" but that was a typo.
Fair enough. I guess it's Lemmy's fault because epicidity seems to use his translator.

Lol. I still don't really understand what it means though... like, saying that my language is utopian? What does that mean lol?

I guess it means something like "the perfect language".

#13 sci4me

  • Members
  • 225 posts
  • LocationEarth

Posted 27 July 2016 - 04:00 PM

View PostH4X0RZ, on 27 July 2016 - 08:14 AM, said:

View Postsci4me, on 27 July 2016 - 03:35 AM, said:

View PostH4X0RZ, on 26 July 2016 - 11:05 PM, said:

View Postsci4me, on 26 July 2016 - 10:16 PM, said:

View PostH4X0RZ, on 26 July 2016 - 10:07 PM, said:

View Postsci4me, on 26 July 2016 - 09:42 PM, said:

View Postepicidity, on 25 July 2016 - 02:23 PM, said:

View PostEldidiStroyrr, on 25 July 2016 - 05:21 AM, said:

...it sure is...
no !! i meant utopia sorry
What on earth are you talking about? Lol
You don't know what a utopia is?
I know what A utopia is. But it doesn't say "like a utopia", it says "like utopia". I mean, actually it says "like opium" but that was a typo.
Fair enough. I guess it's Lemmy's fault because epicidity seems to use his translator.
Lol. I still don't really understand what it means though... like, saying that my language is utopian? What does that mean lol?
I guess it means something like "the perfect language".

Well I appreciate that. But I don't claim that it's perfect. I haven't used it enough to know. And besides, we can never really achieve actual perfection, right?

#14 Cross_Sans

  • Members
  • 122 posts
  • LocationFrance

Posted 27 January 2017 - 04:59 PM

This looks really great.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users