Compilation Algorithm NetBeans Java [closed] - java

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
It might sound stupid, but i decided to take the challenge to program the Translation Algorithm with help of OOP NetBeans - Java, having only basic knowledge of Java, and the theory only in the Translation Algorithm (Compiler).
I am here to ask for your assistance, if somehow any of you did something like Translation from one programming language into another I happy if you could provide me with the links to the information you've used or set me on to the right direction so I could start correctly!
Thank you in Advance
Best
Armani

Theory of compilation is a huge field of research, that among others include formal languages, graph theory, low level optimizations and more.
A good place to start learning about it is the Dragon Book .
If you are using java, a useful tool that helps you do most of the front-end tasks of a compiler is JavaCC

Related

Building a Charting Library on the JVM from Scratch [closed]

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 2 years ago.
Improve this question
I thought I would ask around here as there are a lot of experienced devs with much more understanding of the Java ecosystem than me.
So, I am looking to build a plotting library for some simulation data I am working on. This will consist of having some subset of matplotlib's functionality. From what I understand I can use the following on the JVM:
JavaFX / Swing
Java2d / java3d
Java OpenGL
Could anyone kindly tell me if any of those are suitable for what I am intending to do, or suggest a better alternative?
I do not want to use an existing plotting library as this is for a project which prevents me from doing so. I can however use a lower level library to build higher level components.
Thanks!
JFreeChart is based on Java2d (AFAICT), so that is definitely an option. You could start by looking at their code, understand their approach and then re-implement the pieces you need. Some will argue that in that case use the library, but as you stated you can't. But there is no shame in using what others have done.

Techniques for converting OO C++ to Java (No conversion tools) [closed]

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 6 years ago.
Improve this question
I have looked around, and there are no solid guidelines to converting Object Orientated C++ to Java. Most are references to conversion tools.
My question is what are the steps one should take to not get overwhelmed and lost, especially for heavily OO projects.
For example, given one method that accomplishes a task. That method is called, which is dependent on several other cpp, and those helper methods are also dependent on other cpp files, and so on. How should this be addressed?
What are techniques that can be used to break it down, while properly combining .hpp and .cpp?
I understand JNI can be used, however, it is desired to have only Java code, unless something can literally only be done in C++
Tips, suggestions, and ideas will be much appreciated.
PLEASE do NOT mark this as a DUPLICATE, there are only questions posted in respect to specific code, or using conversion tools, not for general techniques.
Also, if this is a terrible question, let me know, I'll take it down, no need to thumb it down. Thank you.

Java: SQL and Statistics/Machine Learning [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I have a question for you concerning Java. I am basically a Java user and did most of my work with it. However, in the machine learning classes I took in college, we used mostly python with the scikit-learn and numpy packages.
Now I want to do a project where I crawl data from the web, store it in SQL databases, and then do machine learning on this data. Maybe some of you have experience with those things and share some of it? I mean, of course it is possible to do these things with java, but maybe you have had some particular experiences on why I should use something else or what to consider?
I am happy for all your thoughts :-)
Have a great weekend!
It turns out that programming language and database implementation are secondary problems. Think first about the machine learning you want to do. Review the existing packages (in any language) and pick one according to how well it fits the needs of the business problem you are trying to solve. Then work with whatever language is most convenient for that package. You will probably find that no single language is suitable for all parts of the problem; you will end up gluing together Java, Python, R, shell scripts, etc, to make a complete solution, and there's nothing wrong with that. Consider that your job is problem solving instead of programming in a specific language and go from there.

Lamport's logical clock implementation [closed]

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
I'm working on a Lamport's logical clock for my college assignment and have to either implement or simulate it.
I'd Google a lot and searched here too but not getting any good result. Will anybody help me out in implementing this?
At least can provide some link or resource helpful to me which java classes of Java-API will be helpful or to be used for the implementation.
The most useful resource is going to be your own mind. Re-read the paper. What is the essential condition under which a Lamport clock is correct? (Hint -- you can guarantee one event happened after another.)
Have a look at this presentation. This tutorial is also helpful.
Then try to write out a description of the algorithm and how it works. Draw pictures.

What should I read when returning to C++ (from Java)? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I am working with Java at my current day job. When I learned programming, I learned C++, but haven't touched it (or had to) since 2002. I don't even remember how to do the simplest of things.
Lately, my work has been expressing a need for a C++ application built for windows.
I am looking for books/articles/blog-posts (resources) that:
teach the basics of C++?
for n00bz?
for someone who's already been programming?
teach the differences between C++ and Java?
teach the basics of the Visual .* platform?
teach the specificities of building with Visual Studio?
Why ask the question?
This question was brought on by the fact that my first program is 5 lines of C++ (sourced from documentation with a dependency on a DLL.) It's quite intimidating to figure out how to build it in the way I'd like to.
That being said, there are many elements in the snippet that I don't understand.
I definitely see that the original need is small, but I'd like to get some background on the platform/subject before I embark on even some simpler development (like the snippet) in the future.
Thanks in advance.

Categories