Vodka

7 views
Skip to first unread message

ChrisF

unread,
Sep 9, 2007, 3:05:45 PM9/9/07
to The Vodka Language Discussion Group
Hi Tiark

Nice language you got there :) I saw the ANN over at lambda. I was
interested in Nice a while back...before it seemed to be abandoned, so
I
definitely had to take a closer look at Vodka. The concurrency model
and multi-methods are very interesting. Is it still in development?
Too bad that it doesn't run on the CLR ;)

I'm working to get a .bat together to run on Windows.

Chris

tiark...@googlemail.com

unread,
Sep 9, 2007, 5:06:49 PM9/9/07
to The Vodka Language Discussion Group
Hi Chris,

thanks for your comments :) Honestly, I've never tried to run it on
windows
so there might be some issues. Have you managed to complete a build?

If you can provide a .bat file, I'd be happy to integrate it into the
distro!

As to the status of development, I'm quite busy with other things at
the moment
(namely, preparing for my exams) so there is not much time I can
invest right
now. Plus, I'm not yet sure about what the next steps of development
would
be, so I really appreciate any kind of input.

- Tiark

ChrisF

unread,
Sep 10, 2007, 7:56:01 AM9/10/07
to The Vodka Language Discussion Group
Hi Tiark,

On Sep 9, 4:06 pm, tiark.ro...@googlemail.com wrote:
> Hi Chris,
>
> thanks for your comments :) Honestly, I've never tried to run it on
> windows
> so there might be some issues. Have you managed to complete a build?
>

Just to let you know, I'm more of CLR than a JVM guy, but this is a
very interesting language and I've been able to get it to build via
maven2


> If you can provide a .bat file, I'd be happy to integrate it into the
> distro!
>

I'm working on the .bat file, but I'm getting the infamous
java.lang.NoClassDefFoundError. I'll have to double check my
classpath again. I had to do a lot tweaking on the classpaths already
because the bash script i was using as the guide didn't reflect the
reality of where jars and other stuff were on my system after maven
had pulled everything.

This isn't a general purpose .bat file for inclusion in the distro,
but something I've been working on to get the interpreter to run:

C:\vodka>SET VODKA_HOME=c:/vodka

C:\vodka>SET MAVEN_BASE="c:/maven-2.0.7"

C:\vodka>SET JOGL_BASE="C:\java-libraries\jogl-1.0.0"

C:\vodka>java -ea -Xms256m -Xmx384m -classpath "c:/maven-2.0.7"/
thirdparty/nice/nice/0.9.12/nice-0.9.12.jar;"c:/maven-2.0.7"/
repository/jline/jline/0.9.9/jline-0.9.9.jar;"c:/maven-2.0.7"/
repository/bcel/bcel/5.1/bcel-5.1.jar;c:/java-libraries/jogl-1.0.0/lib/
jogl.jar;"c:/maven-2.0.7"/repository/jline/jline/0.9.9/
jline-0.9.9.jar;c:/vodka/lib/bcel-5.1.jar;c:/vodka/lib/vodka-0.4-
SNAPSHOT.jar;c:/vodka/examples/native;c:/vodka/target/classes -
Djava.library.path="c:/java-libraries/jogl-1.0.0/lib" -Dvodka.home=c:/
vodka vodka.main.fun

and then I get: Exception in thread "main"
java.lang.NoClassDefFoundError: gnu/mapping/Procedure

the gnu/mapping/Procedure seems to be a Nice thing, but maybe I'm
wrong

> As to the status of development, I'm quite busy with other things at
> the moment
> (namely, preparing for my exams) so there is not much time I can
> invest right
> now. Plus, I'm not yet sure about what the next steps of development
> would
> be, so I really appreciate any kind of input.
>

I'm not much of a PLT guy, but like to check things out over at
Lambda. From a marketing perspective, a bytecode generator and an
eclipse plugin could really get people interested in this language.
I'm pretty busy myself, but an Eclipse plugin could be something I
could work on, but I can't say that definitely. IMHO, some of the
more interesting languages out there never get a fair shake, because
the whole package isn't quite there. It's too bad about Nice. But
your language is still very young, so there's plenty of time.
Hopefully I can find some time to work on it.

Great Stuff!

tiark...@googlemail.com

unread,
Sep 13, 2007, 9:53:02 AM9/13/07
to The Vodka Language Discussion Group
Hi,

> Just to let you know, I'm more of CLR than a JVM guy, but this is a
> very interesting language and I've been able to get it to build via
> maven2

Well, the Java VM is what I happen to be familiar with, so that
probably makes me a JVM guy. But I'm glad you're taking the
trouble ;-)

> I'm working on the .bat file, but I'm getting the infamous
> java.lang.NoClassDefFoundError. I'll have to double check my
> classpath again. I had to do a lot tweaking on the classpaths already
> because the bash script i was using as the guide didn't reflect the
> reality of where jars and other stuff were on my system after maven
> had pulled everything.

Yeah, it's still a bit rough at this time...

> and then I get: Exception in thread "main"
> java.lang.NoClassDefFoundError: gnu/mapping/Procedure
>
> the gnu/mapping/Procedure seems to be a Nice thing, but maybe I'm
> wrong

Yes, gnu.mapping.Procedure is a Nice thing (used to implement
closures,
iirc). The Nice compiler produces a .jar file containing a number of
support classes ($VODKA_HOME/target/nice-classes.jar) which I think
is missing from your classpath. Maybe the following works:

C:\vodka>java -ea -Xms256m -Xmx384m -classpath "c:/maven-2.0.7"/

repository/jline/jline/0.9.9/jline-0.9.9.jar;"c:/maven-2.0.7"/
repository/bcel/bcel/5.1/bcel-5.1.jar;c:/java-libraries/jogl-1.0.0/
lib/

jogl.jar;c:/vodka/target/nice-classes.jar;c:/vodka/target/classes
-Djava.library.path="c:/java-libraries/jogl-1.0.0/lib"
-Dvodka.home=c:/vodka vodka.main.fun


>> Plus, I'm not yet sure about what the next steps of development
>> would be, so I really appreciate any kind of input.
>

> From a marketing perspective, a bytecode generator and an
> eclipse plugin could really get people interested in this language.

Bytecode generation is definitely an important thing, but I would
subsume this under 'performance improvement'. The problem is
that a straightforward code generator would not deliver a real
performance boost (speaking of 'as fast as Java code') because the
whole method lookup and dispatching is inherently much more complex
than in Java. To create *efficient* bytecode, sophisticated static
dataflow analysis is called for which is a whole different story.

An Eclipse plugin would be nice, too, and I think you're right
that it would lower the entrance barrier significantly (just download
and all is well).

So if you have some time to spare, it'd be really great if you
decide to work on that. After all, this is something that can
start small and grow over time.

- Tiark

Paxel

unread,
Oct 19, 2007, 7:56:38 PM10/19/07
to The Vodka Language Discussion Group
Hi Tiark

I am trying to compile Vodka under windows XP, look at the log may be
you know how i can fix it

>mvn compile

[INFO] Scanning for projects...
[INFO]
----------------------------------------------------------------------------
[INFO] Building VODKA
[INFO] task-segment: [install]
[INFO]
----------------------------------------------------------------------------
[INFO] [sablecc:generate {execution: default}]
[INFO] Nothing to process - all grammars are up to date
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Compiling 11 source files to C:\vodka\target\classes
[INFO] [antrun:run {execution: compile}]
[INFO] Executing tasks
[nicec]
[nicec] Path component /C:/Documents%20and%20Settings/paxel/.m2/
repository/nice/nice/0.9.12/nice-0.9.12.jar does not exist
[nicec]
[nicec] Path component /C:/Documents%20and%20Settings/paxel/.m2/
repository/nice/nice/0.9.12/nice-0.9.12.jar does not exist
[nicec] nice.lang: parsing
[nicec] nice.functional: parsing
[nicec] vodka.types: parsing
[nicec] vodka.util: parsing
[nicec] vodka.interpreter: parsing
[nicec] vodka.intermediate: parsing
[nicec] vodka.parser: parsing
[nicec] vodka.compiler: parsing
[nicec] nice.getopt: parsing
[nicec] nice.doc: parsing
[nicec] vodka.main: parsing
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error executing ant tasks

Embedded error: Compilation failed with errors.
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 7 seconds
[INFO] Finished at: Sat Oct 20 05:47:07 YEKST 2007
[INFO] Final Memory: 20M/37M
[INFO]
------------------------------------------------------------------------

I see compiler cant find some file, but iam not expirienced in java
and so on.

Also I tried to compile vodka under PPC(in my case SonyPlayStation 3
with Cell CPU) OpenSuse 10.3, but without results.
Thay have no sun-java SDK under PPC.

Pavel

tiark...@googlemail.com

unread,
Oct 20, 2007, 8:10:22 AM10/20/07
to The Vodka Language Discussion Group
Hi Pavel,

> [nicec] Path component /C:/Documents%20and%20Settings/paxel/.m2/
> repository/nice/nice/0.9.12/nice-0.9.12.jar does not exist

have you checked if the file

C:/Documents and Settings/paxel/.m2/repository/nice/nice/0.9.12/
nice-0.9.12.jar

actually exists? If it does, I suspect the problem has to do with the
%20 URL encoding or
with the leading / that gets inserted in front of that path. Maybe you
can fix it manually
by editing the pom.xml file, searching for a line beginning with

<nicec destination="${project.build.outputDirectory}" ...

and changing that part to

<nicec runtime="C:/Documents and Settings/paxel/.m2/repository/
nice/nice/0.9.12/nice-0.9.12.jar" destination="$
{project.build.outputDirectory}" ....

Or you copy the nice-0.9.12.jar file into the vodka directory and
enter that path
into the runtime=".." argument as above.

If that doesn't solve the problem, maybe can you post the output of
running

mvn -X clean compile

which should show some more details about path related stuff.

- Tiark

Reply all
Reply to author
Forward
0 new messages