WHAT LANGUAGE TO USE!!!!!!!!!

I'm making a chat app.

I dont fricking want to use processes, all of the fricking apps out there are bloated as shit and use 500mb of ram to handle 2 users. Im not about to do the same thing, I need fricking threads. Someone help me pick a language that does threads.

Should I go with javascript? But then, tech inclined people would look at that and go "yeah the js dev dont care about security" and plus I fricking hate this language anyways.

WHAT DO ANONS PLEASE

It's All Fucked Shirt $22.14

Unattended Children Pitbull Club Shirt $21.68

It's All Fucked Shirt $22.14

  1. 2 years ago
    Anonymous

    straight up C++

    • 2 years ago
      Anonymous

      I will give it a go. The only c++ devs I know are meth addicts though

    • 2 years ago
      Anonymous

      >straight
      >C++ 21
      Anon...

  2. 2 years ago
    Anonymous

    my language which isn't finished and only i have the compiler for

  3. 2 years ago
    Anonymous

    gpt1.5 post

  4. 2 years ago
    Anonymous

    Use D.
    https://tour.dlang.org

  5. 2 years ago
    Anonymous

    Pascal, of course.

    • 2 years ago
      Anonymous

      Use D.
      https://tour.dlang.org

      give me reasons to use these languages.
      Is it the syntax? Multithreading is efficient? What about socket support? Low level?

      Most importantly, what projects did you build with those languages?

      • 2 years ago
        Anonymous

        not doing your work for you, just use them

  6. 2 years ago
    Anonymous

    HolyC

  7. 2 years ago
    Anonymous

    Golang sounds like the language for you, friend. IQfy hates it, but that's because /IQfy hates everything that's actually good, and shills things that suck (like linux and thinkpads).

    • 2 years ago
      Anonymous

      isn't everything made by google backdoored by the NSA?

      • 2 years ago
        Anonymous

        Everything made by anyone is backdoored. Stop worrying and live your life.
        https://en.wikipedia.org/wiki/Room_641A

        • 2 years ago
          Anonymous

          >https://en.wikipedia.org/wiki/Room_641A
          >The Electronic Frontier Foundation (EFF) filed a class-action lawsuit against AT&T on January 31, 2006, accusing the telecommunication company of violating the law and the privacy of its customers by collaborating with the National Security Agency (NSA) in a massive, illegal program to wiretap and data-mine Americans' communications. On July 20, 2006, a federal judge denied the government's and AT&T's motions to dismiss the case, chiefly on the ground of the state secrets privilege, allowing the lawsuit to go forward.
          >On August 15, 2007, the case was heard by the Ninth Circuit Court of Appeals and was dismissed on December 29, 2011, based on a retroactive grant of immunity by Congress for telecommunications companies that cooperated with the government. The U.S. Supreme Court declined to hear the case.

          • 2 years ago
            Anonymous

            >On August 15, 2007, the case was heard by the Ninth Circuit Court of Appeals and was dismissed on December 29, 2011, based on a retroactive grant of immunity by Congress for telecommunications companies that cooperated with the government.
            I hate politicians so fricking much it's unreal. It would be a better world with out them, if only they could just... disappear. Like ash blowing away in a purifying, cleansing wind. If only.

  8. 2 years ago
    Anonymous

    Koka... Duh?

    • 2 years ago
      Anonymous

      look im just gonna go with c++ they seem alright.

      Pascal, of course.

      syntax looks horrible lol

  9. 2 years ago
    Anonymous

    If you don't want bloated shit, then avoid any JVM languages. If you want multi-threading shit, then JavaScript is out of question. Sounds like you want C++ or Go.

  10. 2 years ago
    Anonymous

    This sounds like a work for Go or Elixir. MAYBE a JVM for the ecosystem but i don't know how threads are there nowadays.

  11. 2 years ago
    Anonymous

    vimscript

  12. 2 years ago
    Anonymous

    C language. Because is Cimple and Competent.

  13. 2 years ago
    Anonymous

    Use butterflies.

  14. 2 years ago
    Anonymous

    >I'm making a chat app.
    I use C++ and I could help you but you don't realize how over ambitious you are, and C++.
    Don't use it, it's not good.
    If you are under 18 years old, I would recommend just for the learning experience, because it's a terrible language, when you try out another language it will be much easier to use than C++, making you a better programmer since you've dealt with worse, and C++ is like 5 different languages combined in one, truly the only language out there that can say that, and it has so many difficulties and untold gotchas that it will easily take you 4 years before you will start to visualize how stupid you really are, and how much more you have to learn to properly call yourself a "good C++ programmer" with any spine.
    Not to say you can't get started with C++, like I made a little grid based game prototype in my first month, just watched a tutorials on youtube with SDL, and read lazyfoo tutorials, and boom I didn't even study C++ that much (I did pirate some books on genesis library but I never finished them), and it's pretty easy (and my code was horrible up until like 6-8 years~, but I started when I was 13 and I had bad grades and dropped out and spend 80% of my time collecting porn, at least I never completely stopped programming and I had fun).
    If you really hate javascript, maybe you would like typescript more, since it's compiled and typos aren't as big of a problem.
    I would even say that for an absolute beginner, using Rust would actually prepare you for C++ more than using C++ directly (even though rust doesn't have anything in common with C++, rust will teach you how memory should work, and it will not ignore mistakes you make like in C++, and the error messages are easier to read).
    As a C++ programmer C++ is also very bad for cooperation, because beginner C++ programmers can so easily give a net negative amount of help to a project by making simple mistakes that take hours to debug because of UB.

    • 2 years ago
      Anonymous

      >mistakes that take hours to debug because of UB
      I've written literally millions of lines of C++ and I've never had problems with bugs caused by undefined behavior. It's just a meme parroted by people shilling other languages.

      • 2 years ago
        Anonymous

        undefined behavior is just a way of saying "an error that won't show itself right away"
        like a off by 1 error, sure you could use std::vector::at() for everything, but if you forgot to use.at() or if you used a C style arrays, you aren't gonna notice anything. If you used address sanitizer it won't find all off by 1 issues, like if you used your own memory allocater for performance, or if you used to wrong stride / offset in opengl or whatever.

        • 2 years ago
          Anonymous

          >undefined behavior is just a way of saying "an error that won't show itself right away"
          No "undefined behavior" is something it says in the standard at several places.
          "You might not get the same result every time you do this" and "different compilers might behave differently".
          Anti-C/C++ shills love mentioning this as a reason why their meme language is superior, but it has barely no practical implications.

          • 2 years ago
            Anonymous

            if you access invalid memory, the fact that it segfaults is chance (if you aren't running address sanitizer and you aren't using a custom memory allocator), and this is especially true if you have an off by one error, which very unlikely to happen if you assume that the security mechanism that uses page boundaries is how those errors are caught.
            This is mostly a problem with how C works, and I write code that mostly uses the C API when possible, so if you like using C++ abstractions and using C++ libraries only, I can see how you can avoid most UB problems, but once you start using C, all it takes is a single mistake, and this is more true for libraries like opengl, and it would be really nice if you could just get a nice clean error message, but no you just get GL_INVALID_ENUM and if you want a message you can use a debug callback, but it won't show exactly where your code made an error exactly (same problem and even worse with vulkan, you need to manually annotate your code, at least opengl has a debug callback system that just works, and you can just use glGetError for every line as a work around if you want the exact location of an error in expense of a huge slowdown).
            Personally I like the idea of my errors being shown when I make them, because even if my code works, I can't really be certain if it really works, and now you have these once in a blue moon errors which you now need to recreate when a client receives them (and you can use core dumps for that, but it needs binaries with a debug/unoptimized build, and that itself can be confidential especially for video games with DRM, and with optimizations you can only have a very vague idea of where an error occurred if you only have a stacktrace and some registers).
            C++ just isn't as easy as C# or javascript, and the only people that can really make good stuff with it have like 4-10 years of experience with it.
            >meme language is superior
            different languages are better at different things.

    • 2 years ago
      Anonymous

      I've been programming seriously since I'm 16. Now I'm 19, the only languages I know are javascript and PHP. Im confident in my ability to program in those languages (see my git page in OP).

      Now, you're telling me there's a few gotchas in C++, and that newbies always get caught up in them. I'm not, though. I never touched the language but I won't get caught up in stupid mistakes like a novice would. Yes, I know the mastering of the language will take many years, but I think I can program a simple websocket library. PHP even uses the same names for socket functions present in C, so I think I can manage.

      The thing I don't know how to handle is memory, and that's the thing that's scaring me the most, especially since I'm making something that connects to the internet and accepts user input.

      >javascript
      Unfortunately, this is the main reason WHY the internet is as bad as it is. Try to avoid it.
      FreeBasic is my choice for simple, although C might be better in general. C++ is hell in my opinion, but it's not the worst thing out there, its standard IS improving.

      Good luck anon, I want to see it when it's done!

      Don't worry I'll show you, hopefully before this decade ends.

      Now, many people are saying C++ is shit/bloated. But it seems to be working for many people, so I will give it a go and make another thread soon.

      • 2 years ago
        Anonymous

        you need a lot of free time on your hands. and I think one of the problems you have is over ambitiousness.
        I don't know how much of a hardcore javascript programmer you are, but if you can't make a video game or chat app in javascript, you probably won't have a fun time with C++ if your goal is getting stuff done. The thing I liked about C++ as a kid was that I was masochistic and I would stay up to 4am programming every day when I am following my todo list, and my motivation when I was 13 was a video that said "if you know how to do OOP in C++, don't stop, you are already 10 miles ahead of everyone else, don't make the same mistake as me" from "programming is terrible".
        Also I think i'm very autistic but diagnosed, so maybe if you consider yourself the same, and you have parents who are not gonna kick you out of the house being a NEET for a decade then it's possible (but really, working alone is a one man army, you need a mentality of steel, the fact that you went on IQfy to post about what language to use shows you have a weak mentally and you need your hand held, when I was 13 I was helping people with C++ on a forum, I never asked for any help, even though half of my posts were wrong, I think helping people has actually made me learn more about programming and C++ than whatever information the person asking for, it's like I'm doing their homework).

        • 2 years ago
          Anonymous

          thanks. I really needed an autist to answer me. Most people here just spit random languages at me and expect me to understand why it's the best choice. Anyways, yes, I'm able to build a chat app in javascript. I'm very confident I would be done with the backend within a week (I work 40hours at a tiresome job). But, I hate the language, and I wish to make the end game of discord clones that will replace em all.

          In terms of motivation, yes, it's lacking a little bit but it's mainly due to my job. Frick, i'm 19 and im already fricking tired all the time. Shit sucks man.

          • 2 years ago
            Anonymous

            I think typescript is OK, and the web isn't gonna disappear for the foreseeable future (but it's probably gonna change a ton like it already has).
            Also JS does have web workers for multi threading but it's kind of a complicated thing because shared memory requires security cross origin stuff, so that means you might need to pay the price of copying / piping data across threads (and you could lower the overhead of JS if you used assemblyscript which is like typescript, it still uses a GC, but it can do calculations faster so yeah).
            You should stick to javascript if you want a job in programming ASAP (if your current one isn't already programming related). You might get burnt out but if the pay is good and the hours not bad that's all that matters.
            I don't have a job and I live with my parents, I'm 23.

          • 2 years ago
            Anonymous

            >In terms of motivation, yes, it's lacking a little bit but it's mainly due to my job. Frick, i'm 19 and im already fricking tired all the time. Shit sucks man.
            This is a serious post.
            I'm 30 and was in a similar boat; focusing all my energy on my job, almost nothing left for personal projects. I've improved that a fair bit now, this may be obvious shit but here goes anyway.
            Everyone is different, but my honest advice to improve your situation is to stop cooming/vidya if you do that, and focus hard on your side project(s).
            Burning the midnight oil is rarely a good idea too, unless you have a very specific goal/timeframe in mind.
            Don't fall into the trap of burning the shit out of yourself and getting stuck, but at the same time don't fall into the trap of thinking 'uh I'm tired because too much work, time to coom'.
            It's all about making working on side-projects into a routine.
            If you have to do vidya/IQfy/whatever, you have to keep yourself in check or it WILL consume all your spare time.

            Good luck kid.

        • 2 years ago
          Anonymous

          >I'm making a chat app.
          I use C++ and I could help you but you don't realize how over ambitious you are, and C++.
          Don't use it, it's not good.
          If you are under 18 years old, I would recommend just for the learning experience, because it's a terrible language, when you try out another language it will be much easier to use than C++, making you a better programmer since you've dealt with worse, and C++ is like 5 different languages combined in one, truly the only language out there that can say that, and it has so many difficulties and untold gotchas that it will easily take you 4 years before you will start to visualize how stupid you really are, and how much more you have to learn to properly call yourself a "good C++ programmer" with any spine.
          Not to say you can't get started with C++, like I made a little grid based game prototype in my first month, just watched a tutorials on youtube with SDL, and read lazyfoo tutorials, and boom I didn't even study C++ that much (I did pirate some books on genesis library but I never finished them), and it's pretty easy (and my code was horrible up until like 6-8 years~, but I started when I was 13 and I had bad grades and dropped out and spend 80% of my time collecting porn, at least I never completely stopped programming and I had fun).
          If you really hate javascript, maybe you would like typescript more, since it's compiled and typos aren't as big of a problem.
          I would even say that for an absolute beginner, using Rust would actually prepare you for C++ more than using C++ directly (even though rust doesn't have anything in common with C++, rust will teach you how memory should work, and it will not ignore mistakes you make like in C++, and the error messages are easier to read).
          As a C++ programmer C++ is also very bad for cooperation, because beginner C++ programmers can so easily give a net negative amount of help to a project by making simple mistakes that take hours to debug because of UB.

          This is a severe case narcissism, being shut-in and semi-moronic.

          • 2 years ago
            Anonymous

            That's just being autistic, I am.

  15. 2 years ago
    Anonymous

    >javascript
    Unfortunately, this is the main reason WHY the internet is as bad as it is. Try to avoid it.
    FreeBasic is my choice for simple, although C might be better in general. C++ is hell in my opinion, but it's not the worst thing out there, its standard IS improving.

    Good luck anon, I want to see it when it's done!

  16. 2 years ago
    Anonymous

    Js is single threaded

  17. 2 years ago
    Anonymous
  18. 2 years ago
    Anonymous

    Don't listen to these guys, wtf. Just use golang.

  19. 2 years ago
    Anonymous

    Processes are not the problem, you can make extremely lightweight processes.

    The problem are inefficient data structures, lack of data sharing, complex runtimes doing duplicate work, frameworks keeping oodles of intermediate objects for their abstractions etc. etc.

    If you want to be memory-efficient you need to handroll things, have fewer abstraction layers and only use those with lower overhead.

    This generally comes at a cost of having non-portable code / needing separate code paths for different platforms because you're going to use platform-specific APIs directly.
    And it comes at the cost of more work because you can't use the kitchen sink frameworks.

  20. 2 years ago
    Anonymous

    Mandarin or Hindi, the languages have large and chatty userbase.

    • 2 years ago
      Anonymous

      kek

      also good morning sir

  21. 2 years ago
    Anonymous

    considering that you dont want to waste bandwidth and just use WebSockets you should either look into how to use websockets with c/c++/rust or just use c# with signalR(which uses websockets behind the scenes).
    if you dont use web-technologies (javascript) you dont have to worry about high memory usage

  22. 2 years ago
    Anonymous

    Erlang

  23. 2 years ago
    Anonymous

    Utilize irc as backend
    And language C
    If you're making an app, which means Android just go with Java lol

  24. 2 years ago
    Anonymous

    bcpl

  25. 2 years ago
    Anonymous

    JAVASSSIIIIIIIIIRRRR

    java actually has rly good thread support built in

  26. 2 years ago
    Anonymous

    >Thinks JavaScript is the language of choice when wanting an app to require little memory

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