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 |
It's All Fucked Shirt $22.14 |
straight up C++
I will give it a go. The only c++ devs I know are meth addicts though
>straight
>C++ 21
Anon...
my language which isn't finished and only i have the compiler for
gpt1.5 post
Use D.
https://tour.dlang.org
Pascal, of course.
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?
not doing your work for you, just use them
HolyC
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).
isn't everything made by google backdoored by the NSA?
Everything made by anyone is backdoored. Stop worrying and live your life.
https://en.wikipedia.org/wiki/Room_641A
>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.
>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.
Koka... Duh?
look im just gonna go with c++ they seem alright.
syntax looks horrible lol
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.
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.
vimscript
C language. Because is Cimple and Competent.
Use butterflies.
>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.
>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.
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.
>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.
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.
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.
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.
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).
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.
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.
>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.
This is a severe case narcissism, being shut-in and semi-moronic.
That's just being autistic, I am.
>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!
Js is single threaded
Don't listen to these guys, wtf. Just use golang.
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.
Mandarin or Hindi, the languages have large and chatty userbase.
kek
also good morning sir
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
Erlang
Utilize irc as backend
And language C
If you're making an app, which means Android just go with Java lol
bcpl
JAVASSSIIIIIIIIIRRRR
java actually has rly good thread support built in
>Thinks JavaScript is the language of choice when wanting an app to require little memory