Advertisement

Latest angelscript Activity

I've been learning quite a lot of language design lately, so i decided to try my hand by implementing template functions for angel script, thing is I don't know much about the project structure. I was hoping to get some pointers on where to look and how angelscript manages some things, my rough ide…

3 views
Advertisement

I would have to investigate this to see what can be easily be optimized. There are multiple levels to look at:

  • Bytecode optimizations: The raw output from the compiler is quite often full of overhead. I have logic for bytecode optimizations but it doesn't catch everything, so this is likely the firs…
  • 998 views

    WitchLord said:
    Add the @ symbol to show you really want a handle assignment.

    @hitbox = {{ 0.0f, 0.0f }, 10.0f, 10.0f, 2};

    That actually solved the problem. I didn't tihk to look at the scripting language section in the docs thinking all I need would be the developer manual. Thank you! 

    3,103 views
    WitchLord
    October 31, 2023 08:41 PM
    Context crash during exception handling in DetermineLiveObjects

    I've fixed this now in revision 2871.

    I ended up doing a slightly different solution that avoids keeping more asOBJ_VARDECL in memory (and storing to disk on bytecode serialization), but your analysis was perfect.

    4,160 views
    WitchLord
    October 28, 2023 11:57 PM

    By the way, adding simple support for variadic arg lists on registered functions can probably be done quite easily.

  • add support for the … token in the tokenizer
  • add support for the … token in the parser for function signatures
  • add support in the compiler to allow matching function calls to functions t…
  • 5,240 views
    WitchLord
    October 28, 2023 11:44 PM

    You could potentially use the metadata system in the CScriptBuilder add-on, to collect information on what to serialize in a class, and then build a generic serialize function that can read the serializable attributes from the class and convert them to the json structure.

    3,215 views
    WitchLord
    October 17, 2023 03:01 PM

    Yes, if you don't need to dynamically load the libraries from the script, your solution is much cleaner and easier to maintain.

    4,951 views
    WitchLord
    September 24, 2023 07:27 PM

    I've fixed this in revision 2867.

    Regards,
    Andreas

    3,296 views
    WitchLord
    November 15, 2021 02:03 AM

    Violet CLM said:
    This has broken a lot of code for me that did this: shared interface i {} shared interface i {} Obviously that looks a bit silly in that minimal example, but the context is that there are two library files intended for use with #include, each of which has the same identical shared i…

    7,969 views
    WitchLord
    September 14, 2021 02:35 PM

    I think this is a problem with WRAP_MFN_PR, and not datetime.

    Can you check how AS_METHOD_AMBIGUITY_CAST and TMPL are evaluated in the preprocessor?

    These are compiler specific and may need to be tweaked for macOS with clang similar to how they are set for other compilers in angelscript.h and aswrapp…

    3,312 views

    Thanks for the suggestion. I've added this to the to-do list.

    3,477 views

    @jonus01 Off topic, but thanks for sharing your thoughts, I'm pleased to know you tried out my library before deciding not to use it. If you wish to continue to discuss pros and cons of angelscript compared to other solutions please start a new topic.

    6,817 views

    In this case, I am the development team ?

    Code contributions are welcome, as long as the changes are aligned with my vision for the library.

    You can send me the modified files (or a diff patch), either by posting them here or directly to my e-mail andreas@angelcode.com. 

    I normally don't merge th…

    6,631 views

    Thanks for the confirmation. ?

    Regards,
    Andreas

    4,271 views
    WitchLord
    February 13, 2021 07:08 PM

    I've finally fixed the assert failure that happened when CreateScriptObjectCopy was called with an asITypeInfo for a script function. 

    This fix is available in rev 2703.

    Regards,
    Andreas

    5,802 views
    WitchLord
    December 28, 2020 03:51 PM

    Nice. I'll add a link to this on the ‘further resources page

    Thanks for sharing

    3,519 views

    I meant on subsequent passes attempt to re-initialize only those variables that failed on the previous initialization.

    For example, here b1 throws an error because it attempts to read from int_holder sink which has yet to be initialized in the first pass. So, once the first pass finishes, b1 will be…

    4,576 views

    Imho, being able to put more type information into the anonymous function signature would be nice.

    4,692 views
    Clipsey
    November 12, 2020 02:54 AM

    It is in fact a bug, but due to that just being a part of the D ABI the main D developers have decided to keep the “broken” ABI so that it doesn't break backwards compatibility.

    My changes amount to reversing the int argument array when the ICC calling convention is any of the newly added ICC_DDECL …

    3,819 views
    WitchLord
    September 08, 2020 02:26 PM

    Thanks for letting me know about this.

    I'll look into it as soon as I can.

    4,786 views
    Advertisement
    Advertisement