Stab Language: C# para JVM?  XML
Índice dos Fóruns » Notícias
Autor Mensagem
Rafael Afonso
Virtual Machine Man
[Avatar]
Membro desde: 05/12/2002 16:03:43
Mensagens: 719
Localização: São Paulo/SP
Offline


Design Goals

The goals used to design Stab were as follows:

* The syntax should be readable without difficulties by Java/C# programmers
* The execution of a Stab program should be as efficient as the execution of the same program written in Java
* The generated bytecode should be usable transparently from Java
* The Java libraries should be usable from Stab programs without adaptations

Current State

All the features listed below are implemented and tested. The compiler is stable enough to compile its own source code (Stab is written 100% in Stab).
A beta version is available for download.

Features

This section presents an overview of the features found in the Stab language. Additional informations can be found here: StabLanguage.

JVM compatibility

Stab has almost all the features that can be found in Java:

* The same primitive types and operators with automatic boxing/unboxing
* Arrays, classes, interfaces, enums, constructors, fields and methods
* Methods with variable number of arguments
* C-like if/else, for, while, do, switch statements
* Exceptions handling with try/catch/finally and throw
* synchronized blocks and methods
* Compile-time generic programming including constraints and wildcards
* Annotations

Stab supports nested classes but not inner classes. To access a non-static member of an outer class, an explicit reference must be used.

Mais em http://code.google.com/p/stab-language/
Fonte: http://twitter.com/opinali

Rafael Ubiratam Clemente Afonso
---------------------------------------
GitHub
ScalaFX
LinkedIn
[MSN]
Mikhas
Virtual Machine Man
[Avatar]

Membro desde: 17/06/2008 11:10:50
Mensagens: 677
Localização: São Paulo
Offline

Bacana!

Alguns elementos da linguagem tem uma sintax estranha.
Vou tentar fazer um programa com isso ai

Refractor 1.6 - Easy reflection framework
Agora muito mais rapido!
Raze - The fastest CSS selector engine




[Email] [MSN]
Rafael Afonso
Virtual Machine Man
[Avatar]
Membro desde: 05/12/2002 16:03:43
Mensagens: 719
Localização: São Paulo/SP
Offline

Mikhas wrote:Bacana!

Alguns elementos da linguagem tem uma sintax estranha.
Vou tentar fazer um programa com isso ai

O que exatamente você achou estranho?
Dei uma olhada nos fontes e achei curioso que usa diretamente a API do Java SE. Ao invés de procurar emular as APIs do C# (pelo menos as partes que a MS liberou para o ECMA).

Rafael Ubiratam Clemente Afonso
---------------------------------------
GitHub
ScalaFX
LinkedIn
[MSN]
juliocbq
GUJ Expert
[Avatar]

Membro desde: 13/11/2008 12:10:18
Mensagens: 3927
Offline

Tem muito do D da digital mars e properties do objectpascal ou c#. Muito boa.

www.citrox.com.br
Adelar
GUJ Master
[Avatar]

Membro desde: 31/10/2008 10:07:36
Mensagens: 1237
Localização: Cascavel
Offline

Interessante. Curti que dá pra usar o #define do C.

Att.

"Errando e aprendendo com os bugs"
http://www.cajuscript.org
[WWW] [MSN]
giovanni_stiwes
JavaGuru

Membro desde: 20/04/2006 09:00:42
Mensagens: 236
Offline

Legal. A Oracle devia contratar este cara.
[MSN]
 
Índice dos Fóruns » Notícias
Ir para:   
Powered by JForum 2.1.8 © JForum Team