Anonymous
Isc
check emscripten or wasm
Isc
you can even run OpenGL apps in web browser
Anonymous
What I mean is that you can't execute native machine code that was compiled via C++ in the browser. Sure, you can use Wasm, but that is a whole 'nother thing. It's a bytecode format.
Anonymous
Exactly my point.
Kelvin
Dima
using c++ for backend is pretty
Anonymous
?
Anonymous
using c++ for backend is pretty
It sure makes things run faster, but a heck of a lot harder to debug than writing the backend in, say, Python.
Kelvin
?
Writing web apps with c++
Dima
that's why I use c# for backend and c++ for my own projects
Dima
lul
Anonymous
Writing web apps with c++
Oh yeah, totally agree.
Anonymous
that's why I use c# for backend and c++ for my own projects
I never really found C# a great language. For me, at least. It's much too similar to Java, which I cannot stand.
Isc
ofc nothing is comparable to C++ but
Anonymous
comparing C# to Java..... c# is a very well designed language
Yeah. It's definitely better than Java. I'll give it that. But I still don't like it much.
Isc
i used to dislike it but when I came to work there are lots of business projects based in C#
Kelvin
Isc
and those projects are very well writen
Anonymous
😂😂
Isc
so seeing good C# code helps a lot understanding that the language itself has very nice possibilities
Anonymous
C++ is really nice. I don't understand why people talk trash on it (ahem ahem Linus Torvalds). Yeah, it has a bigger overhead being object-oriented and all, but that's the whole point.
Anonymous
so seeing good C# code helps a lot understanding that the language itself has very nice possibilities
It's definitely a very popular language in business software (especially Windows apps), but that's why I don't write Windows apps.
Anonymous
Never really seen a web app written in C#. Examples?
Anonymous
Oh. Seems StackOverflow was...
Dima
People talk trash about c++ because they cant handle it
Dima
the end.
Dima
Anonymous
People talk trash about c++ because they cant handle it
That's the point. People who doesn't know about something, talk trash about it. It happens with languages, with OSes and with everything.
Anonymous
modern C++ is sometimes faster than C if you use proper design and constexpr, move semantics etc
*sometimes*. But it's usually a little behind. That's just because the way C code is written is much closer to machine code than object-oriented C++, which has a ton of overhead when being compiled.
Anonymous
That's the point. People who doesn't know about something, talk trash about it. It happens with languages, with OSes and with everything.
Very true. I guess I don't understand Windows. But who does? Apparently none of their developers do, either.
Anonymous
*sometimes*. But it's usually a little behind. That's just because the way C code is written is much closer to machine code than object-oriented C++, which has a ton of overhead when being compiled.
I think that, it doesn't matter which language is more faster than other language. The important thing is, how well you write the code and how well you understand the language you are using. I've seen assembly code with poor performance against well C++ code. So...
Igor🇺🇦
*sometimes*. But it's usually a little behind. That's just because the way C code is written is much closer to machine code than object-oriented C++, which has a ton of overhead when being compiled.
It's not necessarily true. compiler knows better in many situations. And can optimize better things that cannot be expressed easily in C. For example std::sort is better and faster than qsort
Anonymous
It's not necessarily true. compiler knows better in many situations. And can optimize better things that cannot be expressed easily in C. For example std::sort is better and faster than qsort
In those certain off-cases. But for the majority of programs, writing in C is much more barebones than C++, and will this generate more optimized machine code. Object-oriented languages tend to leave more garbage code in the end result.
Anonymous
Will this*
Anonymous
Thus*
Anonymous
Jeez
Anonymous
lol
Igor🇺🇦
*best C 😉
Anonymous
I have to agree that certain algorithms and data structures are better expressed and executed with the object-oriented paradigm.
Anonymous
no way, I don't believe it
Anonymous
😂 but 80% of cases are probably better written in C.
Igor🇺🇦
@seanld444 in any case , C is almost a subset of C++, so you can write C using C++
Anonymous
Which I was thinking as I wrote that. Writing Fibonacci in C++ is the same as in C, and compiles as so. This argument could go on for ages, but I personally think they both have their ups and downs. C++ is a lot easier to use in games, apps, and web stuff that requires a higher level of abstraction, while C is much more applicable in environments such as microprocessors and embedded systems.
Anonymous
And what makes constexpr the cover-all for C++?
Niko
Can someone help me out by letting me know where to start learning OCR with c++
Niko
Need to use this to identify liscene plate numbers with image recognition
Niko
Could you send me some resources
Niko
So that I can start?
Anonymous
I personally don't know much about it myself, as I'm not into computer vision, but you could probably start at docs.opencv.org. I bet most of the major programming tutorial sites have some intros.
Anonymous
Or learnopencv.com looks good as well.
Igor🇺🇦
Can someone help me out by letting me know where to start learning OCR with c++
I don't have a lot of experience with this, but there're libraries specifically for this like https://github.com/openalpr/openalpr
Ибраги́м
Shut up! I don't have to
Ибраги́м
And what makes constexpr the cover-all for C++?
Because u can do evaluations at compile-time instead of runtime.
Ибраги́м
And when it can't be done compile-time, it's deferred to runtime
Ибраги́м
And for the curious: http://en.cppreference.com/w/cpp/language/constexpr
....
Hi guys could you tall me about loop and how to work essley
Anonymous
essley?
Ибраги́м
essley?
Easily
Anonymous
ah
Ибраги́м
Someone can't make mistake in peace?!
Anonymous
i honestly didnt get it lol
Anonymous
anyways
Anonymous
Because u can do evaluations at compile-time instead of runtime.
That's actually extremely useful. I'm a newbie to C++ this year (taking a college class for it in high school), and I haven't learned about constexpr yet.
Ибраги́м
Let me see if I can get more
Anonymous
👍