Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I'm planning on designing and implementing my own programming language. Is it a good idea to build my language in Java and run it off of the JVM or would my language be faster if I wrote it in C and ran the code off of my own virtual machine?
Maybe you can write your compiler in Java and let it compile to Java byte code.
If you want to do this, you can have a look at the book "Compiler Construction" by Niklaus Wirth for the compiler part and use ASM(Java) to generate the bytecode.
But you should think, wether you really want to build a compiler - it is not very easy.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
threads are not used, generics are not used.
Android uses only fraction of Java features, i know this, but what parts are NOT used?
p.s. this is not opinion type of question - i m asking about actual parts, i.e. specific answer, facts.
my opinion: threads are not used, generics are not used.
That's wrong. The whole java.util.concurrent package was ported up to java 1.6. And Generics are also full supported. What is not yet in, is the new java 1.8 features, like streams and lambda, and part of java 1.7, the new File.NIO 2
How about AWT and Swing? Android has it's own UI Framework.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I was wonderning efficiency of implemeting some Java EE APIs in Scala but not all of them. For instance JNDI would be faster in Scala because we can take advantage of supporting of high order function and so on.
I am interesting in which APIs implementation can be replaced for improve the effectiveness.
The logically correct answer is: no.
Both results run on the same JVM, so both implementations can be exactly the same in terms of processing efficiency. That Scala offers different language features doesn't change that.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I just completed my post graduation and I know core java, advance java and oracle and little bit android, so to start my carrier i have option to choose java/.net platform. I am also interested to learn .net so which choice is better to learn .net or continue with just java platform? give me your suggestions.
Learning is always a good thing. There is no such thing as the one language to rule them all.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
this is more a philosophical question. I want to start implementing MCMC algorithms in a programming language that is not matlab or R.
What would you suggest to use? C/C++ or Java?
I want after implmentetion to draw histograms etc but like those in R, matlab. Does any of the above languages have anything like "routine" to do this or after obtaining the results i can do this in matlab or R for example?
For what is worth, i don't know any of the above languages (C/C++ or Java). So i will take it from scratch.
To do MCMC in Java, C, or C++, you will either need to write a lot of code yourself or look for third-party libraries. The features you are looking for are not included in the core language for any of these.
(Also note that C and C++ are very distinct languages. They have diverged a long way from their common roots more than 30 years ago -- ancient history in computer years.)
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
but of strange question here, but i have an existing windows product developed with .net framework and i want to create an equivalent for java - i don't want to use mono
Java will actually execute on every platform that has a JVm, anyway to lock this down?
I don't want it to be runnable on windows for example.
With regards to mono, i have nothing against it but Java seems to have more compatible libraries. Anyone have any comments on this?
You can use System.getProperty("os.name")to detect the operating system in the main method, then exit the application if it's not what you expect.