Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-4041-

The Kava programming language

Name: Kavadev 2012-12-21 15:01

Hello fellow /prog/ users.

I'm creating a programming language of my own: Kava.

I'd appreciate it very much if you could give me some feedback.

>compiles into bytecode
>platform independent
>executed by a stack-based VM
>based off Java but introduces a lot of changes
>multiple inheritance
>operator overloading
>cleaner syntax
>more light weight
>completely libre
>will support AVR's

My main concern is whether or not should I keep classes as the main construct of the language and the compilation unit. One could say that this forces the OOP paradigm, but I don't agree. I removed interfaces and other OOP-ish constructs inherited from Java, and I feel that keeping the classes in the center will make the language easier to use and easier to implement (and, depending on the person, easier to think in).

Please critique my design and tell me about the problems with my design.

Name: Anonymous 2012-12-21 15:09

I removed interfaces and other OOP-ish constructs inherited from Java
Thank god.

Though, isn't most of this what Scala is trying to achieve?

Name: Anonymous 2012-12-21 15:11

Why multiple inheritance, what is that going to solve? Why not Traits?

I hate operator overloading, why not be more innovative and try operator defining. People should be able to make their own operators.

What are you ideas about creating easily DSL's in a language? What are your thoughts about people can extend the language with their own grammars?


Are you going to implement closures and anonymous functions?

Name: Anonymous 2012-12-21 15:21

>>2

Actually achieved, Scala will be the language. Java is dead.

Name: Anonymous 2012-12-21 15:26

>>3
why not be more innovative and try operator defining. People should be able to make their own operators.
When would this be useful? I can only see this leading to messy code or a confusing replacement for functions/methods.

Name: Anonymous 2012-12-21 15:29

>>5

Why is operator overloading useful? I can only see this leading to messy code, because people will use * and + and / on structures, which are not a valid field. Or * and + on not a valid ring.

They will get confused, because the operators don't seem to follow the mathematical laws.

Name: Anonymous 2012-12-21 15:32

>>5

But true, with grammars you can do the same, but it will be clear the user uses some kind of DSL.

Name: Anonymous 2012-12-21 15:37

U MENA HASCALA?

Name: Anonymous 2012-12-21 15:57

>>6
I agree, but at least adding something like two vectors makes sense mathematically.

Name: Kava dev 2012-12-21 16:52

OP here, I'm really sorry for not replying to this thread for so long. My battery had gone out, and I've posted in a generally bad time so I wont be active for a bit longer after this post.

>>6
OOL can lead to ambiguity, I agree, but it's the programmers' duty to implement it correctly. I'd rather not remove that feature.

>>9
This is a good example.

>>3
Operator defining? OK, I could do that, thanks.

As for anonymous functions and all that, I'm still not sure. Probably not though, it would break my current model. However, references to methods might be useful.

You can check out my blog too: www.yannbane.com.

Name: Kava dev 2012-12-21 19:07

I've registered a website for Kava: www.kavalang.com.

Doesn't really have anything useful on it, it's all on my GitHub page for now.

I wont use it as a blog though, but for posting the official spec, an official tutorial, and a basic introduction (blog is still www.yannbane.com).

I'm still looking forward to some input on structuring all code inside classes, the downsides, and the upsides of that approach.

Name: Anonymous 2012-12-21 21:00

parametric polymorphism (generics)
ad-hoc polymorphism (method dispatch or type classes)

Name: Anonymous 2012-12-21 21:24

u mena hascheme

Name: Kava dev 2012-12-22 5:08

>>12
Yeah, but I'm not really sure how that is implemented. Maybe I'll just do it like in C++... Why the sage?

Name: Anonymous 2012-12-22 8:37

Kavadev
fucking israelites again

Name: Anonymous 2012-12-22 10:11

To anyone reading this check out programming paradigms on youtube. It's a stanford course. I watched a while back. The prof uses kava while teaching functional programming (although that is not the only language whose concepts he teaches)

Name: Kava dev 2012-12-22 14:11

>>16
You meant Java?

Name: Anonymous 2012-12-22 14:43

>>17
No. Kawa.

Name: Anonymous 2012-12-22 15:21

fuwa fuwa~

Name: Anonymous 2012-12-22 16:57

is it better than symta

Name: Anonymous 2012-12-22 17:55

>>20
this

Name: Kava dev 2012-12-22 19:29

Significant progress has been made in terms of web design, with the help of random anon: http://kavalang.com/.

Name: Anonymous 2012-12-22 19:44

looks fucking horrible. lisp is better.

Name: Kava dev 2012-12-23 8:45

>>23
The website or the language? Because the language doesn't even look like anything, yet, I'm working on the VM and coding in Bytecode for now.

Also you can't really compare all languages.

Name: Anonymous 2012-12-23 14:32

>>24
The thing about people who exclaim, "wha an ugly language" are usually mean something like, "this looks unfamiliar to me". If they had a set of metrics of what makes a beautiful language, they might possibly have a legitimate complaint.

Name: Anonymous 2012-12-23 14:54

The thing about people who exclaim, "wha an ugly Boo" are usually mean something like, "this looks unfamiliar to me". If they had a set of metrics of what makes a beautiful Boo, they might possibly have a legitimate complaint.

Name: Anonymous 2012-12-24 6:10

Kava Kava is like mellow coffee, I have this on my desk. But why this multiple inheritance. It always seems to lead to badly documented shit code from some OOP retard.

Name: Cudder !MhMRSATORI!fR8duoqGZdD/iE5 2012-12-24 6:15

The Kava bytecode is ran by the Kava Virtual Machine (KVM).
I suggest you find a better acronym, instead of overloading another.
>will support AVR's
Are you kidding me? An 8-bit MCU running a VM language? Many embedded devices are slow enough as-is. Unless you're talking about another "AVR"... see the perils of acronym overloading?

Name: Anonymous 2012-12-24 8:39

Name: Anonymous 2012-12-24 8:41

Name: Kava dev 2012-12-26 20:27

>>28
I see nothing wrong with the acronym... Please be more precise if there is a concrete problem.

And I thought that it was obvious that this was a hobby project. I actually like the idea of programming my robots in a high level language, as opposed to ASM or C, like I usually do.

Check out NanoVM if you think this is not possible.

>>27
Kava means coffee in my first language. And I tend to agree that MI can be awful, but I'd rather allow it just for the sake of

Name: Anonymous 2012-12-26 20:28

kavascript

Name: Anonymous 2012-12-26 20:35

>>32
What

Name: Anonymous 2012-12-26 20:36

>>33
The answer to this question is always What

Name: Anonymous 2012-12-26 20:51

First class functions and closures.

Name: Anonymous 2012-12-26 21:23

>>35
why does everyone sage?

Name: Anonymous 2012-12-26 21:31

>>36
Fuck off back to /g/, please.

Name: Anonymous 2012-12-26 21:42

>>37
LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLlEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEELLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLl
EGIN GRO

Name: Anonymous 2012-12-27 9:37

>>37
You sound disturbed.

Name: Anonymous 2012-12-27 10:40

>>38
Fuck off kike.

>>39
Go back to the imageboards.

Name: Anonymous 2012-12-27 10:43

>>40
EGIN!

Name: Anonymous 2012-12-27 11:01

>>40
Calm down.
If you're going to have your little rage fits do it somewhere else.
Punch a chair or something you might feel better.

Name: Anonymous 2012-12-27 11:27

>>42
Punch a chair or something you might feel better.
Only if you climb on top of it and let me tie this nice noose around your neck.

Name: Anonymous 2012-12-27 12:33

It doesn't mean shit to a turd.

Name: Anonymous 2012-12-27 12:59

>>44
fuck you dipshit

Name: Anonymous 2012-12-27 13:57

>>43
You need to get some mental help quickly. It's not normal to be like this.

Name: Kava dev 2012-12-27 15:53

Is there some form of syntactic sugar that would lead people to favor composition over inheritance?

Name: Anonymous 2012-12-27 16:49

>>47
yes

Name: Kava dev 2012-12-28 9:09

>>48
Mind to tell me some?

Preferably something that has already been implemented and proven to be useful.

Name: Anonymous 2012-12-28 10:38

>>46
fuck you faggot, it's not normal for you to be like you, go kill yourself

Name: Anonymous 2012-12-28 12:25

NAGD NAGE NARD NARE NEGD NEGE NERD NERE RAGD RAGE RARD RARE REGD REGE RERD RERE

Name: Anonymous 2012-12-29 19:04

The ABC Programming Language

Name: Anonymous 2012-12-30 13:24

>>40
Cheer up :)

Name: Anonymous 2012-12-30 13:34

>>11
yannbane.com

YANNICK!?

Name: Kava dev 2012-12-30 13:56

>>54
Nope.

Don't change these.
Name: Email:
Entire Thread Thread List