OCaml to Java translation [closed] - java

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I have nice OCaml code (30000 lines apox). I want to port it to Java. So Is there any free OCaml to Java translator?
I need it as my own project is in Java and i'm also comfortable with java, but in project I've to use the OCaml code, i don't want to reinvent the wheel ... I just want to modify that code(OCaml) and use it..
I've seen the OCaml to Java , but it just make possible to call ocaml code from Java code that is good but i need complete translation.. A source code(OCaml) to source code(Java) compiler..

No, this does not exist. Very few source-to-source compilers exist (I believe some have been tried to port old COBOL codebases to Java). If you want to maintain and modify an OCaml program, your best bet is to learn some OCaml.

Related

What's a good scripting language if I'm developing for Android? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I'm writing an application in Java that I would eventually like to run on Android devices (right now it runs on desktop). I've recently been thinking about adding a scripting language, but am not sure what to pick.
My preference is Javascript/ECMAScript since I'm already familiar with it, but I can't find a pure java port of it, which I think would make it hard to compile into an Android executable (at least I think so. I don't know if/how Android handles JNI).
I was also thinking of Lua since a pure Java version does seem to be available under the MIT license. I believe Minecraft uses it for scripting.
If anyone else knows of any good scripting languages I ought to consider or a clean port of Javascript, please let me know.
Rhino is a pure Java implementation of JavaScript, which is co-bundled with JDK7. You can compile JavaScript to bytecode, or compile on-the-fly from JavaScript source.

Alternative to dex2jar and jd-GUI? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
it seems that either dex2jar and/or jd-GUI gives bad de-obfuscation even for the simplest code of if-else condition (they show a while(true) loop which has a return; on its first line .
are there any other freeware apps that do the same work of de-obfuscation? maybe something that can also use the mapping file of proguard ?
Actually the best alternative that I have tested is JEB Decompiler that works directly on Dalvik bytecode to generate the sources without conversion in Java bytecode(that is the main source of errors in decompilation procedure), but unfortunately is a commercial software a bit expensive for an individual.
Alternatively try Kivlad , but note that requires Ruby runtime 1.x to run, and is still an alpha release in development
Virtuous Ten Studio (VTS) is another nice tool that uses APKtool as engine, the quality of java src result is inferior to JEB and comparable to dex2jar + java decompiler, but the environment is very comfortable. (Has a donate license but works for free)

Small/toy language compiler/interpreter implemented in Java [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I'm looking for a small/toy programming language that is implemented in Java. The implementation should preferably not be much more than around a 1000 lines or so. It might e.g. be a simple imperative language, an expression parser/interpreter or something similar. The intention is to use it as an example for a paper I'm writing, and while I could mock up something myself, it would be better to be able to refer to something that already exists. Thanks!
It's not so small as to be called a "toy" but Andrew Appel's Tiger language (from the book Modern Compiler Implementation in Java was designed to teach the basics and has a reference implementation:
http://www.cs.princeton.edu/~appel/modern/java/project.html
If a Lexical Analyzer is okay for you, check JLex
not sure if my suggestion is on time. In Russian we say 'spoon is worth during lunch time only'.
But anyway, if you still interested you might consider IUMLS.
Thanks.

DiveIntoPython like for Java? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
Any Java tutorial that resembles Mark Pilgrim's approach for DiveIntoPython?
What about the official Java Tutorial? I found it pretty helpful to get started with the language.
I haven't read Dive Into Python but I do know that Bruce Eckels Thinking In Java is an excellent book and well worth a look.
Be warned though - it's monster size and not easy to carry around!
I don't think there is anything like Dive into Python in the Java world. The Java language doesn't lend itself to the model of 'Check out what we can do with these 15 lines of code!'
Best approach would be to dive in yourself, pick a project, and use the tutorial and the docs. Many people will recommend Eckel's Thinking in Java but know that it is the polar opposite of Dive into Python -- it is slow, methodical, and thorough.

Is there a pure Java framework for gesture recognition? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
Is there any specific Java gesture recognition out there? iGesture is very old. OpenCV is based on C/C++, I used some Java wrapper like JavaCV, but I cannot find any resource and documentation for it. Is there any pure Java framework for gesture recognition? Please suggest if you know.
after several days confusion and working on different solutions, and using C# wrappers or Java wrappers and different .Net frameworks and java frameworks. find out its better to install openCV and use it in visual studio 2008 and program it with C++... believe me thats the easiest way, these links at below were so helpful for using openCV libraries into Visual Studio 2008:
http://7evin.wordpress.com/2009/07/28/opencv-visual-studio-2008-in-windows-vista/
http://uowteaminvincible.wordpress.com/2010/01/09/getting-started-with-opencv-in-microsoft-visual-studio-2008-in-windows-vista/

Categories

Resources