A scripting language, as fast as lua but has C syntax and none of the retarded things lua has (1 based arrays).

A scripting language, as fast as lua but has C syntax and none of the moronic things lua has (1 based arrays).
Does it exist? Classes and inheritance are a plus

Homeless People Are Sexy Shirt $21.68

The Kind of Tired That Sleep Won’t Fix Shirt $21.68

Homeless People Are Sexy Shirt $21.68

  1. 1 month ago
    Anonymous

    >1 based arrays
    Black personest reason to hate lua. If you weren't a memester homosexual you would know that lua doesn't have arrays or lists and instead it has tables and only tables. I won't spoonfeed you and explain to you what's the most equivalent data structure of more common programming language to a lua table but you will be able to figure it out if you are not an absolute moron. And if you do figure it out you will understand that having tables get auto indexed to 1 if you are not explicit with their index makes fricking sense.

    • 1 month ago
      Anonymous

      >If you weren't a memester homosexual you would know that lua doesn't have arrays or lists
      I know and that is Black personlicuous. But I didn't feel like writing all of that, assuming even the biggest autists will understand the spirit of my post
      Also if you want to be pedantic, new lua versions do optimize tables with consecutive numeric indexes to arrays internally.

    • 1 month ago
      Anonymous
      • 1 month ago
        Anonymous

        Ah yes, because I always call arr[3.14159]

    • 1 month ago
      Anonymous

      >And if you do figure it out you will understand that having tables get auto indexed to 1 if you are not explicit with their index makes fricking sense.
      I don't get it lua's table are hashmaps right? Why does it being indexed one make sense if its a hashmap?

    • 1 month ago
      Anonymous

      fpbp

      >And if you do figure it out you will understand that having tables get auto indexed to 1 if you are not explicit with their index makes fricking sense.
      I don't get it lua's table are hashmaps right? Why does it being indexed one make sense if its a hashmap?

      Lua tables aren't hashmaps they're tables. The way they are implemented is actually a cross between a hashmap and an array, but if they were hashmaps they'd be called as such in the documentation (they're not)

  2. 1 month ago
    Anonymous

    PHP obviously

  3. 1 month ago
    Anonymous

    closest is probably javascript tbh. not a recommendation.

  4. 1 month ago
    Anonymous

    Why not use Lua directly? It's fun.

  5. 1 month ago
    Anonymous

    squirrel?

    • 1 month ago
      Anonymous

      Seconding. Have used both this and Lua and I prefer Squirrel.

  6. 1 month ago
    Anonymous

    Its called AWK and people usually ignore it because they believe the python lie

  7. 1 month ago
    Anonymous

    Isn't that just C? It's not like C is slower than lua

    • 1 month ago
      Anonymous

      >C
      >scripting
      it kind of defeats the purpose, don't you think?

      • 1 month ago
        Anonymous

        Didn't see the scripting part. Yeah, Javascript is probably your best bet.

  8. 1 month ago
    Anonymous

    Lua syntax is fine aside from the indexing

  9. 1 month ago
    Anonymous

    just make it yourself moron

  10. 1 month ago
    Anonymous

    Angelscript

  11. 1 month ago
    Anonymous

    >1 based arrays
    array elements by index is based though

  12. 1 month ago
    Anonymous

    Write your own scripting language, it's not that hard.

    • 1 month ago
      Anonymous

      It will be slow

  13. 1 month ago
    Anonymous

    >C syntax
    >Classes and inheritance
    everything in this ballpark sucks more wiener than your mother so just pick any of them

  14. 1 month ago
    Anonymous

    anyone who complains about the indexing does not actually do programming. if you are a real programmer, then use luajit.

    • 1 month ago
      Anonymous

      1 based index is the work of the devil. Life is to short to deal with with that shit.

      • 1 month ago
        Anonymous

        you are not a real programmer.

  15. 1 month ago
    Anonymous

    Why would you want to ruin something like lua with inheritance and classes?

    • 1 month ago
      Anonymous

      pwototypes are too hawd 🙁

  16. 1 month ago
    Anonymous

    TypeScript

  17. 1 month ago
    Anonymous

    Just use C with dll hotloading or live++.

  18. 1 month ago
    Anonymous

    janet

  19. 1 month ago
    Anonymous

    Modern JS is actually very elegant and fast

    • 1 month ago
      Anonymous

      >Nan === Nan = false
      >null === undefined = false
      >null == undefined = true
      > "" == false = true
      >20 + "24" = 2024

      • 1 month ago
        Anonymous

        >>Nan === Nan = false
        that's moronic
        >>null === undefined = false
        makes sense because of strict equality ===
        >>null == undefined = true
        makes sense because of weak equality ==
        >> "" == false = true
        again, weak equality and convenient for ifs. simple to check if string is empty (falsy value)!
        >>20 + "24" = 2024
        Nothing wrong with this, that's how it should be

        • 1 month ago
          Anonymous

          i switched to typescript from lua. outside of legacy js meme shit like its pretty good. it has the hashmap style objects like lua but you can use classes and inheritance which i prefer

  20. 1 month ago
    Anonymous

    vouching for PHP too. surprisingly comfy and very similar to C

  21. 1 month ago
    Anonymous

    What do people need "scripting" for? You don't need something like LUA to hot-reload code. It doesn't even make it easier.

  22. 1 month ago
    Anonymous

    tcl bump (full respose inbound)

    • 1 month ago
      Anonymous

      > A scripting language, as fast as lua
      everything is implemented in C
      > has C syntax
      the base syntax is very-scripty, but as customizable as lisp.
      then, you can implement native commands in C and with tcc4tcl you can embed C in the script
      > Classes and inheritance are a plus
      yup, tcl got you covered

      and as a bonus-bonus, tk, the standard gui library is great and the community is very friendly and the guys on irc are very helpful

      • 1 month ago
        Anonymous

        >customizable as lisp
        lisp doesn't have "customizable syntax". No matter what you do its s-expressions. Having the default syntax be shit, so that you can override it with your own constructs that are also shit does not a good syntax make.

  23. 1 month ago
    Anonymous

    python is easier to integrate than lua because there's no guesswork as to what things needs to be pushed/popped and other Black persony. and it has classes and inheritance. just live with the syntax you'll be fine

    • 1 month ago
      Anonymous

      But Python is a behemoth compared to Lua.

      • 1 month ago
        Anonymous

        cry me a river

      • 1 month ago
        Anonymous

        if 5MB libpython is a behemoth then 200KB lua library was already too bloated for you in the first place

  24. 1 month ago
    Anonymous

    >none of the moronic things lua has (1 based arrays).
    People who bang this drum up and down will never get anything done in life.
    The first problem is that this stance is based on the assumption that Lua has numeric arrays. It does not. Lua only has associative arrays with some functions to treat them as numeric arrays. You are perfectly capable of re-implementing these functions in less then two hours for your own needs. So you're not concerned with the truth, but only a lie that you're parroting.
    The second and more critical issue is that you have no systematic way in life of developing new patterns. As we grow older our neuroplasticity goes down, meaning we are less capable of learning new things though exposure alone. Our ability to develop HABITS however will survive until you die, even if you have a stroke that knocks out your long-term memory. By letting one, tiny point of friction direct your life out of thousands(all very fixable by the way), you've habitulized ignoring roads less traveled because a pebble dropped in your shoe. You have sterilized your brain, shackled your soul, and made your existence weak and feeble.

    So no, There isn't such a scripting language, because even if it did exist you'd be too much of a coward to use it.
    God have mercy on you.

    • 1 month ago
      Anonymous

      >People who bang this drum up and down will never get anything done in life.
      I literally spend one more hour than I should because I was writing a tilemap and 1 based indexes frick arithmetic up, KYS homosexual

      • 1 month ago
        Anonymous

        Eh, seems like an overly emotional reaction to one frustration out of a thousand. It's literally just arithmetic in a single abstraction, if you're having trouble with that, maybe you have more serious problems elsewhere?

  25. 1 month ago
    Anonymous

    Imagine being filtered by mathematics

  26. 1 month ago
    Anonymous

    >having to do array.length()-1 everywhere and off by one errors
    >morons sleep
    >1 based index
    >morons seeth
    lol, lmao even

    • 1 month ago
      Anonymous

      >having to do array.length()-1 everywhere
      I am completely used to it now, which is why lua bothers me. you are a nocoder tho

      • 1 month ago
        Anonymous

        being used to eating shit doesn't change the fact that you're eating shit
        there's a reason why foreach and safe iterators that avoid exposing indices became mainstream. it's because of morons like you who keeps fricking up the array lengths
        but then again it's the fault of the language to have such moronic abstraction in the first place, literally nobody use the offset based nature of the array to make use of the pointer to the array and the pointer to the first element interchangeable, except compiler output and some niche cases.

        • 1 month ago
          Anonymous

          0 index makes sense because array is ptr and ptr + 0 is the flrst element
          You are just too new to understand

          • 1 month ago
            Anonymous

            1 based indexing is fine. here are some common copes
            cniles think the semantics for their 50 year old lang should be how arrays work everywhere

            >having to do array.length()-1 everywhere and off by one errors
            >morons sleep
            >1 based index
            >morons seeth
            lol, lmao even

            morons that write their own for loops lie and say you have to do more len-1 shit in their system, when it comes out to about the same

          • 1 month ago
            Anonymous

            Lua doesn't have arrays, it has tables that can reduce to arrays.
            Arrays *cannot* be empty in C.
            A Lua table can be empty.
            An offset of zero refers to the handle of the *table* itself, which can be empty
            Hence the first element is ptr + 1

          • 1 month ago
            Anonymous

            >Arrays *cannot* be empty in C.
            int arr[0];

          • 1 month ago
            Anonymous

            6.7.6.2 [Array declarators]
            1 Constraints
            In addition to optional type qualifiers and the keyword static, the [ and ] may delimit
            an expression or *. If they delimit an expression (which specifies the size of an array), the
            expression shall have an integer type. If the expression is a constant expression, it shall
            have a value greater than zero.

            https://www.iso-9899.info/n1570.html#6.7.6.2

          • 1 month ago
            Anonymous

            that's a very odd link to the gcc manual
            anyways, it works fine on the actual compiler, so that must be a misprint

          • 1 month ago
            Anonymous

            That's the C standard (you have to pay money for the actual standard, but the committee drafts are public)
            It's not even UB - it is illegal to declare an empty array.
            { }; is also illegal

          • 1 month ago
            Anonymous

            What about flexible array members in a structure in C?

          • 1 month ago
            Anonymous

            in C17 this is:
            [...] If this array would have no elements, it behaves
            as if it had one element but the behavior is undefined if any attempt is made to access that element
            or to generate a pointer one past it.
            https://files.lhmouse.com/standards/ISO%20C%20N2176.pdf

            So it's still not empty (size of one element) - but UB if you access it.

          • 1 month ago
            Anonymous

            >it is illegal to declare an empty array
            wtf???? I've been doing it this whole time not realizing I could have the police knocking at my door

            btw it works in clang and msvc as well. looks like enforcement is lacking, these c standards people need a better police force.

          • 1 month ago
            Anonymous

            I've alerted the authorities.
            You better lube up you bussy, I've heard those Rust inmates love grooming fresh meat.

  27. 1 month ago
    Anonymous

    Why do you think Lua is the fastest in scripting languages?

  28. 1 month ago
    Anonymous

    figure it out later.
    just use lua, and use WASM (but you need a wasm runtime with C++ exception support if you want to be able to recover from lua errors because lua normally uses set-longjmp which is not supported by wasm, however if your application is already using wasm using wasm for scripting could make things difficult if you don't plan around it).

  29. 1 month ago
    Anonymous

    Honestly PHP if you want performance.

    Really close to Lua.

  30. 1 month ago
    Anonymous

    >1 based arrays
    DO LUAgayS REALLY?

    • 1 month ago
      Anonymous

      >hmm yes I'd like to access the 0th element of this list
      moron

      • 1 month ago
        Anonymous

        i'd like to fricking access the variable at that memory location + 0 elements

        • 1 month ago
          Anonymous

          In Lua there's no concept of pointers, table[1] means access the first element of a table. Tables aren't numeric, they can contain a mix of types such as strings, functions, or even other tables, but there are functions in the standard library for operating on numeric table keys. In C when you access an array, array[0] means dereference array+0*size. That concept doesn't exist in Lua. Now what moron/

          • 1 month ago
            Anonymous

            >basic programming concepts don't exist in lua
            lua is moronic then

          • 1 month ago
            Anonymous

            C concepts aren't basic programming concepts. I finally am starting to understand the "cnile" meme, you are basically braindead
            Tables are ALWAYS dictionaries. Both the key and value of every pair are allowed to be any type, and any table can have a mix of types for both key and table. So the same table is allowed to simultaneously have an element called [2] and an element called ["two"] and an element whose key is any other absurd data type like a reference to a function. There's no concept of dereferencing an offset from a memory location multiplied by the size of the type stored in the array, because they aren't arrays, they don't have a fixed size, they don't have a type associated with them, and the digit you pass when indexing a table isn't a memory offset, it's a primitive of any type.

          • 1 month ago
            Anonymous

            C concepts aren't basic programming concepts. I finally am starting to understand the "cnile" meme, you are basically braindead
            Tables are ALWAYS dictionaries. Both the key and value of every pair are allowed to be any type, and any table can have a mix of types for both key and table. So the same table is allowed to simultaneously have an element called [2] and an element called ["two"] and an element whose key is any other absurd data type like a reference to a function. There's no concept of dereferencing an offset from a memory location multiplied by the size of the type stored in the array, because they aren't arrays, they don't have a fixed size, they don't have a type associated with them, and the digit you pass when indexing a table isn't a memory offset, it's a primitive of any type.

            I realize the Cniles are moronic, but so are you.
            {1, 2, 3, 4} does reduce into an array in Lua's very elegant hashtable implementation.
            Lua is designed to interface very seamlessly with C, so there is a very good reason for the 1 offset, described here

            Lua doesn't have arrays, it has tables that can reduce to arrays.
            Arrays *cannot* be empty in C.
            A Lua table can be empty.
            An offset of zero refers to the handle of the *table* itself, which can be empty
            Hence the first element is ptr + 1

            I strongly recommend you actually stitch Lua and C together (call a C function from Lua, or a Lua function from C) to form a real understanding.
            Lua does in fact have a concept of pointers, but you don't see it unless you look under the hood.
            If Cniles also did the same, they would also see why 1-indexing makes perfect sense.

          • 1 month ago
            Anonymous

            >confusing language design and paradigm for implementation
            Didn't read

          • 1 month ago
            Anonymous

            >hurrr just ignore implementation details bro
            The whole reason why Lua is minimal, and LuaJIT is fast as frick is because of implementation details.
            Pseuds obsessing over reinventing the wheel in the newest gayest paradigm is why so many languages are moronic and CS has gone to shit.
            "The computer industry is the only industry that is more fashion-driven than women's fashion" -- Richard Stallman

          • 1 month ago
            Anonymous

            You are literally too dense to comprehend what I am talking about you stupid gorilla monkey. Don't reply to me anymore. This conversation doesn't include you.

          • 1 month ago
            Anonymous

            >Lua does in fact have a concept of pointers, but you don't see it unless you look under the hood.
            No it doesn't. Userdata are not pointers. You don't deference them and lua is ambivalent to whether they contain data at all or how much data is in them.
            You're a fricking austistic piece of shit moron who didn't have a nice day so you have to prevent like your life has value by saying "um actually" but still being wrong.

          • 1 month ago
            Anonymous

            >{1, 2, 3, 4} does reduce into an array in Lua's very elegant hashtable implementation.
            Nowhere does this become relevant in the lua script. Your autistic explanation about arrays being empty is incorrect. It doesn't matter how it's implemented because pointers don't exist in lua, they are literally not a concept. have a nice day in the most painful way possible you stupid fricking moron.

          • 1 month ago
            Anonymous

            Ack

          • 1 month ago
            Anonymous

            modifiable_value = {123}
            pointer = modifiable_value
            pointer[1] = 321
            print(modifiable_value[1]) -- 321

            POINTED.

          • 1 month ago
            Anonymous

            >I strongly recommend you actually stitch Lua and C together (call a C function from Lua, or a Lua function from C) to form a real understanding.
            There is no difference you fricking worthless gorilla monkey. It's exactly the same syntax as calling a native lua function.
            God you're fricking stupid
            There is no "under the hood" a language spec stays the same regardless of how it's implemented.

          • 1 month ago
            Anonymous

            The C API is part of the Lua spec moron

          • 1 month ago
            Anonymous

            >type(Black personhomosexual) --output: function 0x000000
            Ok so is it a C closure or a pure lua function?
            Why don't you call it and find out? Oh wait it accepts arguments the exact same way and has no different behavior
            Fricking moron

          • 1 month ago
            Anonymous

            Lua is in fact, not a programming language at all. It's just a C library.
            Maybe one day you will understand the beauty of it.

          • 1 month ago
            Anonymous

            >Lua is in fact, not a programming language at all

          • 1 month ago
            Anonymous

            You're a midwit. have a nice day.

          • 1 month ago
            Anonymous

            Educate yourself
            https://www.lua.org/pil/24.html

          • 1 month ago
            Anonymous

            I can tell you're autistic because you keep namedropping the lua C API for some reason which you just discovered last week and now you've resorted to linking it directly as if you're revealing some arcane concept
            Everybody knows about the fricking C API already because the entire point of the langauge is that it's easy to embed in to C applications. So you are actually a dumb dunning kruger homosexual

          • 1 month ago
            Anonymous

            Also
            >"lua is not a programming language xDDDD"
            >links a book called Programming in Lua
            Actually swallow a grenade you subhuman shitskin low IQ homosexual. You're embarrassing.

          • 1 month ago
            Anonymous

            I can tell you're autistic because you keep namedropping the lua C API for some reason which you just discovered last week and now you've resorted to linking it directly as if you're revealing some arcane concept
            Everybody knows about the fricking C API already because the entire point of the langauge is that it's easy to embed in to C applications. So you are actually a dumb dunning kruger homosexual

            Educate yourself
            https://www.lua.org/pil/24.html

            um lua sisters?
            0x0.st/Xoi8.jpg

        • 1 month ago
          Anonymous

          So you want to larp as if you're deferencing the value at 'array+(n*size)' when you use a table in a in a language that doesn't have pointers, using a mixed dynamic data type that has no fixed size or type? And you can't enjoy a language unless it helps you with your larp?
          Cniles are basically the equivalent to braindead marvel soiboys who clap at returning characters, but the characters are programming concepts from the 70s

          • 1 month ago
            Anonymous

            In Lua there's no concept of pointers, table[1] means access the first element of a table. Tables aren't numeric, they can contain a mix of types such as strings, functions, or even other tables, but there are functions in the standard library for operating on numeric table keys. In C when you access an array, array[0] means dereference array+0*size. That concept doesn't exist in Lua. Now what moron/

            C concepts aren't basic programming concepts. I finally am starting to understand the "cnile" meme, you are basically braindead
            Tables are ALWAYS dictionaries. Both the key and value of every pair are allowed to be any type, and any table can have a mix of types for both key and table. So the same table is allowed to simultaneously have an element called [2] and an element called ["two"] and an element whose key is any other absurd data type like a reference to a function. There's no concept of dereferencing an offset from a memory location multiplied by the size of the type stored in the array, because they aren't arrays, they don't have a fixed size, they don't have a type associated with them, and the digit you pass when indexing a table isn't a memory offset, it's a primitive of any type.

            [...]
            I realize the Cniles are moronic, but so are you.
            {1, 2, 3, 4} does reduce into an array in Lua's very elegant hashtable implementation.
            Lua is designed to interface very seamlessly with C, so there is a very good reason for the 1 offset, described here [...]
            I strongly recommend you actually stitch Lua and C together (call a C function from Lua, or a Lua function from C) to form a real understanding.
            Lua does in fact have a concept of pointers, but you don't see it unless you look under the hood.
            If Cniles also did the same, they would also see why 1-indexing makes perfect sense.

            >just learn all this unnecessarily complex and moronic bullshit bro
            >trust me arrays should start at 1 because of this clusterfrick we created

  31. 1 month ago
    Anonymous

    really depends on what you need it for. There is a C interpreter you can easily set up. It was meant to be used for UAVs, so it should be real time complient.

    I personally use chaiscript sometimes if I need scripting support in my applications.

Your email address will not be published. Required fields are marked *