Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
iarwain
@iarwain
Sounds like a good place to discuss options, including SWIG. I'd be happy to help with this but I'll definitely not be a driving force as I'd rather focus my main efforts on new features instead. :)
Enis Bayramoğlu
@enobayram
I'm willing to put in work on this front, but there should be at least 1 customer for it :)
iarwain
@iarwain
Sounds fair! :)
All the languages I'd potentially be using with orx can call C more or less directly, so I'm definitely not a customer at the moment.
Enis Bayramoğlu
@enobayram
I think it'd be great to make Python or Lua bindings and package it up so that it's awfully simple to build an Android game using that language
It'd be attractive to those communities
iarwain
@iarwain
definitely, I know one of our former orx user used Python with it, as far as I can remember (he's on the main channel)
thegwydd
@thegwydd
I'm more a c/c++/c# guy but if it can help i can test bindings
Charles Christie
@sonicbhoc
I work exclusively in C# these days. And when I say work I mean work, not personal projects.
I'm writing a native wrapper from scratch right now as a pet project and learning experience
iarwain
@iarwain
nice, I can't really help with that beside moral support :)
Enis Bayramoğlu
@enobayram
@sonicbhoc Sure, makes sense as a learning project, but if you're into cross-language stuff, I also recommend SWIG as a learning target.
By learning one interface definition language, you'll be able to interface 2 dozen languages.
Besides, if you dive deep into SWIG for interfacing with a specific language, say C#, you naturally learn the ffi basics for that language as well. Just looking at the SWIG-generated code is much faster than reading ffi docs since you have so much context to understand it.
after all, it's wrapping your C/C++ code.
It's also good reference material for, "Hmm, I need to do that and I don't know where to start. Let's write a similar interface in C++ and see how SWIG wraps it."
Charles Christie
@sonicbhoc
Cool. I'll definitely do that too.
Which one do you think I should try first though? I've already got some of the types wrapped.
kkrishnan90
@kkrishnan90
Hello Devs, Just curious to get things for the support of ffi (foreign function interface) in Android using .so files. Not sure if this is the right forum to shoot out . But I'm not able to get any other community that can answer over this point. Is it possible to read an so file using jnr ? Anyone tried this before?
iarwain
@iarwain
Hi @kkrishnan90, I'm afraid I don't know the answer to this question. I don't see why you wouldn't be able to get the symbols from a .so, there's nothing special about them. However I'm not familiar with jnr, is it some Java-related thing?
Charles Christie
@sonicbhoc
I'm clueless as well. Sorry man.
kkrishnan90
@kkrishnan90
@iarwain yeah man ! It's the java native runtime. The only library which can eradicate the efforts for building a jni interface. The jni is auto generated with jnr library .
This never works on Android. I tried about 500 stackoverflow posts and fixes but nothing works. :worried:
Charles Christie
@sonicbhoc
I haven't dealt much with Java. I'm just diving deep into the .NET Framework. I hear they're similar in some ways.
Sorry I can't help much though.
kkrishnan90
@kkrishnan90
@sonicbhoc yes .. no worries man ! Thank you so much for your response though !
iarwain
@iarwain
Ah I see, I'm not very knowledgeable with anything Java, haven't really touched it since 98 :)
Good luck!
kkrishnan90
@kkrishnan90
@iarwain no worries mate !! Thanks!