Announcement

Collapse
No announcement yet.

Vulkan Cracks 2,500 Projects On GitHub

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #11
    Originally posted by uid313 View Post
    Do you have to use some tricky language like C or C++ to code in Vulkan?

    Or can you use something easier like C#, JavaScript, Python?
    Yes you can, just as there are OpenGL bindings to call it from whatever language, there are Vulkan bindings for other languages too.

    Just note that js or Python will not be anywhere as fast as C/C++ (C# will not be as good as C/C++ either but it will be better than js or Python) so you will have to keep that in mind.

    Just look for projects providing Vulkan bindings for your favorite language (the following are found by a simple google search and looking at dates and descriptions to weed out WIP and dead ones, I don't know how good they are).

    C#/.Net https://github.com/mono/VulkanSharp
    javascript (node.js) there is just a WIP one https://github.com/maierfelix/node-vulkan
    Python https://github.com/realitix/vulkan
    Java https://www.lwjgl.org/ (which does OpenGL and Vulkan and audio and OpenCL)

    But as Kravemir said, the best way is using an engine, where the important parts are already written in high-performance code, and you are using Lua or .NET or whatever else to write the rest.
    Last edited by starshipeleven; 14 October 2018, 03:28 PM.

    Comment


    • #12
      Most games engines are written in "tricky" C++

      Comment


      • #13
        Originally posted by kravemir View Post
        But, I played some cheap indie games, and they were great, because they were made well. And, some pricy AAA were terrible. Good steam now provides refunds to get back money for shit games... So, still, quality matters.
        I discovered the refund option recently when I bought a Ubisoft title only to find out they had their own DRM and data collection layer on top of Steam. No thanks.

        Comment


        • #14
          Originally posted by onicsis View Post
          Most games engines are written in "tricky" C++
          Yeah, that's the whole point of a game engine.

          Comment


          • #15
            Originally posted by starshipeleven View Post
            Yes you can, just as there are OpenGL bindings to call it from whatever language, there are Vulkan bindings for other languages too.

            Just note that js or Python will not be anywhere as fast as C/C++ (C# will not be as good as C/C++ either but it will be better than js or Python) so you will have to keep that in mind.
            Maybe Vulkan on Python or JavaScript is still faster than OpenGL on Python or Java?
            Maybe coding against Vulkan is easier than coding against OpenGL? I don't know.

            Comment


            • #16
              Originally posted by uid313 View Post
              Maybe Vulkan on Python or JavaScript is still faster than OpenGL on Python or Java?
              Maybe coding against Vulkan is easier than coding against OpenGL? I don't know.
              I'll let you know that Vulkan is definitely not easier to code against than OpenGL.

              Also, it wouldn't surprise me if you gain more performance to rewrite a 3D engine in Python/OpenGL into C++/OpenGL than to rewrite it from Python/OpenGL into Python/Vulkan. And on top of that it's much easier to learn C++ than to learn Vulkan.

              Comment


              • #17
                Originally posted by uid313 View Post
                Because I've tried it, and I am not as productive in it as other languages.
                It didn't feel as easy and modern.

                Linus Torvalds don't want any C++ in the kernel, because he wants to keep the idiots away.
                But you also called C "tricky" so using your own logic you must be one of those idiots he wants away.

                Originally posted by uid313 View Post
                It is is so hard to have a full understanding of that language and to code well in it.
                Yeah, C++ is a little convoluted in some rules, but in MOST cases you don't have to worry about them because they related to generic code/templates mainly. And don't tell me every C++ programmer writes generic template libraries, come on, nobody forces you to do that, you can always use it like C with a few extra (and VERY useful) features.

                Originally posted by uid313 View Post
                My understanding is that few of even professionals who work with it seem to understand it.
                Implying professionals are good at programming. Most outsourced programming quality is laughable and they still get paid (small) so they must be "professionals" but doesn't mean shit.

                See: https://en.wikipedia.org/wiki/Hacker_culture

                Those are the real programmers.

                Comment


                • #18
                  Originally posted by Weasel View Post
                  But you also called C "tricky" so using your own logic you must be one of those idiots he wants away.
                  By his own logic he is one of those that Linus would think are too dumb to work properly with C, and it's correct. Serious performance-oriented C programming isn't for everyone.

                  "idiots" is just the way Linus would have described it.
                  Last edited by starshipeleven; 15 October 2018, 09:41 AM.

                  Comment


                  • #19
                    Originally posted by Weasel View Post
                    But you also called C "tricky" so using your own logic you must be one of those idiots he wants away.
                    Yes, I am one of those idiots.
                    I consider C and C++ way too cumbersome and tricky to program in.
                    People like me should stay away from the Linux kernel and other low-level programming.
                    I am better suited to do web stuff in Python and JavaScript.

                    I acknowledge that I am an idiot.

                    Comment


                    • #20
                      Originally posted by uid313 View Post
                      I am better suited to do web stuff in Python and JavaScript.
                      Unrelated, and not necessarily about language mind you, but I just can't take the "web developer" thing as some serious position or related to programming. It's like someone who claims he is a programmer because he knows how to code in html manually (back in the day). To me they're no different.

                      Or someone who says he's a programmer because he can use the terminal/command line and some bash scripts.

                      Comment

                      Working...
                      X