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 was wondering if anyone is familiar with an abstract machine that is capable of executing Java bytecode. Note I'm looking for something I can extend, and by abstract machine, I don't mean the JVM, as I need to specify the semantics.
Specifically, I am looking for a way to keep track of what is going to be on the stack at a given point of time, without actually having to simulate all the instructions by myself. Does anyone know of a good framework for this?
Consider looking at the MLJVM project. I've never really looked at the internals, but it appears to be a JVM implementation produced in such a way that one could potentially extend or experiment with the semantics.
It might be somewhat stale, and implements only a subset of the JVM, but I assume if you're really looking at experimenting with semantics you're unlikely to want the whole JVM.
Alternatively, the Jikes Research Virtual Machine is often a nice starting point. The lines between "VM" and "Abstract Machine" start to blur at some point, and I suspect Jikes is close to that line, wherever it may be.
Related
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 big project (not mine) in java EE , at first when I looked at it there were many many classes, when I try to understand a method of class there is another class which calls method in it and again and again, It's really hard to understand the code (there is no documentation) is there any tool to help me ?
Unfortunately there aren't really any tools to help with this, the most that you can hope is that someone created a UML Doc for the code you're viewing. However, as this is not the case, the best place to start is at the main method and slowly traverse the setup. I find that it helps to keep notes and diagrams, describing (functionally) what things do and in what order they happen.
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
With Mirah, I am refering to the JVM language: http://www.mirah.org/
The only useful documentation available online are the examples. I understand it says it has a ruby-like syntax, but I do believe there are Mirah-specific quirks to it.
How would I go on identifying the various syntax quirks? Will learning Ruby itself suffice in learning Mirah?
Thanks!
If you know Java pretty well, you can start off by thinking of Mirah as Java with some funny syntax and type inference. You don't need to know Ruby's semantics to use Mirah, because Mirah uses Java's semantics for the most part.
There aren't really any tutorials about learning the language yet because the language is still changing and evolving.
Once you start trying to look at Mirah's internals, you'll want to beef up on your Ruby though, because most of Mirah is currently implemented in Ruby, JRuby in particular. If you have any questions about JRuby, the #jruby IRC channel has helpful people in it-- #mirah works too, but there are fewer regulars at the moment.
No, I don't think that learning Ruby will be sufficient for learning Mirah, although it would probably be sufficient to get started. As I understand it, the syntax is fairly similar but isn't identical - Mirah has optional type annotations and doesn't allow metaprogramming. Still, they're probably sufficiently similar that it would help.
However, the best way to learn any language is just to try something in it - write a little app, and learn as you go.
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 read this book:
Head First Object-Oriented Analysis and Design
Now i am looking forward to find a Software that make it easy to collect all my Ideas etc (specific Software for OOA).
At the moment i am using my Whiteboard to collect/design Ideas etc. Afterwards i am taking pictures of it and add text to our Wiki/Trac.
At school, we're using Objecteering, which is easy to use, integrated to Eclipse, but not free.
IMO blank paper is a must, but not always the easier to share and to edit.
Install mediawiki (the stuff that powers wikipedia, don't settle for anything less you will need the full feature set eventually) and put all your ideas in there. This makes it easy to refine them and to improve then as time goes by.
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
Anyone know of any examples that shows COM programming via Lua? Could require a library.
I need to write some external scripts for Photoshop, so wondering if it's possible with Lua.
Have a look at Lua for Windows. It contains LuaCOM. I haven't tried it myself, though.
As gimpf said, take a look at LuaCOM. You can either get it from its official site, which is the latest version (1.4). Unzip it somewhere and take a look at the folder "Demo", which includes examples for:
ADO
Powerpoint
SAPI (Speech API)
WMI
They are more like test cases than examples but you can get the idea.
You can roll your own system using CInvoke and some custom C/C++ code combined with Lua meta-tables.
http://www.nongnu.org/cinvoke/
From experience though I can't recommend this, it is pretty complicated and requires a lot of effort to get it right and make it bulletproof.
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 curious if anyone have any really good tutorials/articles/books for learning about stack machines in general, and the JVM in particular. I know these ones:
http://www.artima.com/insidejvm/applets/EternalMath.html
http://www.ibm.com/developerworks/ibm/library/it-haggar_bytecode/
http://www.theserverside.com/tt/articles/article.tss?l=GuideJavaBytecode
Appearently the books Inside the JVM by Bill Winners and Programming for the JVM are good, even though they are old.
These are all on my "toread" list, for rainy autumn weekends.
Anyone have any other suggestions?
I learned what the JVM did by reading The "Java Virtual Machine Specification" by Tim Lindholm back in 1999.
I don't really know where to find as good a resource about more modern technologies like the JIT compilation that the Hotspot VM can do.
I've found a lot of what I was looking for now, in the final chapter of "Structure and Interpretation of Computer Programs". You are going to have to read through all the book though since they constantly build on examples and concepts from earlier on.