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.
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 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.
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 trying to learn objective-c and am having a hard time coming from (java / C#). Does anyone have sample code that explains how the inner workings of objective-c work? I found a couple tutorials (below) but I'd like to start working through some examples that are a little more complex than "hello world".
http://cocoadevcentral.com/d/learn_objectivec/
http://www.otierney.net/objective-c.html
http://mobileappmastery.com/objective-c-tutorial/
Ray Wenderlich has some very good tutorials. His Simple iPhone App Tutotial is in 3 parts. If you follow it step by step, it will give you a great overview on how an iOS app works. Once you complete it, you can follow is more complex tutorials. Good luck.
I'd recommend a decent book, too: it's a complex language, and unless you get an end-to-end grounding in its peculiarities (and there are a number of them), you're almost certain to confuse yourself at some point. (There are definitely more opportunities to confuse yourself with Objective-C than C++, in my opinion...)
A book I like a lot is "Learning Objective-C 2.0", by Robert Clair, published by Addison-Wesley...
If you're looking for example working code, I've been using two main source -
Cocoa Controls - for specific UI elements
Binpress - for complete applications and SDKs
For me, the most effective way to learn is by going over actual working code from real applications, instead of mock code used in tutorials and very basic examples. Maybe it's because I already have background in other languages and don't need to cover the basics.
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've looked around quite a bit for a fast math parser in either C or Objective-C Almost all of the libraries I saw are written in C++, and I don't really want to go through the hassle of getting that to compile. Can anyone make a recommendation?
I haven’t used them myself, but you could try GCMathParser and DDMathParser.
There won't be any hassle with the compiling, ObjC can work side by side with any C++ class. Search for ObjC++ here, its really pretty easy (its basically just renaming everything from *.m to *.mm)
See my ae library (which uses Lua) and libmatheval.
There is a Code Project where this problem was addressed. Note this is for C++ -- sorry just saw that you're looking for C / Objective-C. As it builds a library, you could write a simple interface and expose it to C. There's a really succinct explanation here of how to go about doing this.
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 would like to start developing an application for Ipad (a simple one).
My doubt is that i heard that is only possible if you have a Mac, and isnt with a PC. Is it true?
Normally i use to develop applications using .Net and Visual Studio, how is the learning curve taking in count this fact?
Do you have any good web reference or tutorials about objective C?
Yes,native Ipad development using XCode requires a Mac.. there is just no getting around that.
Objective C 's syntax is a little weirder than what you will be used to... lots of [] instead of .
but the concepts are going to be pretty much the same. If you have an Ipad, there are lots of free apple docs in the ibook store that you can go though. or if you have joined the developer program, then developer.apple.com has some amazing stuff with downloadable examples.
All the best
It's true that you need a Mac. Objective-C isn't a very complicated language, so factor in maybe a day or two for getting used to Xcode and learning the language. Then it has so far taken me about ten years to get an incomplete understanding of the APIs...but only because there are things I didn't need to use yet :-).
Apple has very good documentation of Objective-C at its website, developer.apple.com.
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.