abakobo

Forum Replies Created

Viewing 15 posts - 121 through 135 (of 455 total)
  • Author
    Posts
  • in reply to: Monkey as a Systems Language #13715

    abakobo
    Participant

    As long as it’s compiled and can have some inline assembly it works… You could write a new target for hardware drivers! But who would do that? ;P
    Yes of course C and C++ are the main sys languages nowadays.

    in reply to: Monkey as a Systems Language #13697

    abakobo
    Participant

    IMHO a system language is a language that let you do everything possible with the hardware+os you have with absolutely no restrictions.
    So for bootloaders and cpu initialization you must have assembler (or machine language), even C is not fully featured for that kind of programming.
    For Oses you must have some cpu specific features like multi-thread. Those things would have to be implemented for monkey2 and it would be a lot of work. For this reason I don’t think mx2 is suitable for sys programming. Mx2 is a high level, “easy to manage” language, focused on productivity. Setting up all your externals all the time can be a waste of time, you’ll be better with the native stuff in the end.

    But well you can do a lot of things with mx2 externals, those externals are actually not mx2 language and they are your interface with the OS, using various available API’s. And all the stuff is finally compiled/linked like a native c++ code. mx2 should just make your life easier there.

    https://wiki.osdev.org/

    in reply to: Your Monkey needs you – post your project link. #13601

    abakobo
    Participant

    I’m on a box2d module (WIP), including RUBE importer/exporter. (Unfortunately RUBE is not a free product, not expensive though)
    It contains a b2Manager Class that does a lot of work and let you with a very readable code.
    There’s already a small bunch of working bananas.
    It’s not in the form a module for now, so you can just download open and run bananas. It is intended to become a module though.
    https://github.com/abakobo/box2d

    in reply to: Compiling on Ubuntu 14.04 LTS (fresh install) #13568

    abakobo
    Participant

    -Most bananas are using Vsync signal, so it’s supposed to run at your screen refresh rate (which is usually 60FPS). But some use a timer, I don’t remember which one though. You can search for the word Timer in the files and you’ll find them.
    -I don’t think anybody has solved the non-launchable icon problem.
    -nice indeed!

    in reply to: OnFinalize #13483

    abakobo
    Participant

    Looks like I’ll be able to use OnDiscard() Only (i’m storing native classes refs in an array).

    But i’m a bit confused with the fact that OnDiscard() might not be called! In which situation can this happen?

    If I understand, in normal situations the GC is supposed to call OnDiscard() when cleaning and seeing the Resource object is now out of scope. So OnFinalize() is called on abnormal situations only?

    I have mx2 class containing several native classes (OS agnostic ones). So I just want each native one to be deleted when the GC takes care of my Class instance.
    Is it OK to create a Resource that has no OnFinalize actions? Or should I use a native data structure to store my native classes refs (instead of an mx2 array)?

    My aim is that the module end-user won’t have to take care of that, in order to keep the monkeyish feeling of a memoryleaks-safe zone.

    thx (sorry there is a lot of question marks in this post..)

    in reply to: how to check if an asset exists #13457

    abakobo
    Participant

    I looks like I’ll have to check for Null result.

    Thx

    in reply to: Monkey Docs – Hosted on http://turdus.be?? #13456

    abakobo
    Participant

    Yes, I was maintaining the docs uptodate at that adress. Seeing some negative feedback on the fact mx2 online docs were not updated, I proposed Mark to link his Doc page if he wanted..

    The site is odd but… the docs are up to date!

    Pretty cool that mx2 is getting a more ‘pro’ feeling though.

    in reply to: Is your Ted2Go crashing in Window 7 when debugging? #13440

    abakobo
    Participant

    Yes, Mark has stated that the official dev platform was W10 and that he would not try to resolve that problem (due to lots of platforms to manage already). A Pull request could help!

    in reply to: Chipmunk working in latest version? #13411

    abakobo
    Participant

    It’s working here with almost latest dev branch (27-01-2017)!

    in reply to: Help wrapping C struct #13373

    abakobo
    Participant

    I’ve made some test with C style function pointer/callbacks if you want to have a look. No struct here though. (code is attached)

    in reply to: Monkey 3d dead #13350

    abakobo
    Participant

    @markb , you’re supposed to use some sign to show you’re not being serious. For example the ;P smiley. 😉

    in reply to: Any suggestion on how to deal with std::vector ? #13330

    abakobo
    Participant

    I’ve finally used bbArray and it is way better than messing up with void casts.. (just had to #include “bbtypes” (in .h) and “bbarray” (in .cpp) in the native code, they were detected automatically)

    in reply to: Loops: For…End is Allowed? #13226

    abakobo
    Participant

    In complex loops I’m even writing the var letter for the Next

    For i
    For j

    Next ‘j
    Next ‘i

    and must say I miss the fact that the compiler refuses to compile without the comment token “‘”

    in reply to: canvas.Rotation vs Trig function rotation #13192

    abakobo
    Participant

    Consistency over all the “rotation” angles would be cool if doable without breaking previous angles things!

    in reply to: OnFinalize #13191

    abakobo
    Participant

    Thanks, will check if the class is compatible with a resource extend!

Viewing 15 posts - 121 through 135 (of 455 total)