Originally posted by tildearrow
View Post
Announcement
Collapse
No announcement yet.
GCC Developers Look At Transitioning Their Codebase To C++11
Collapse
X
-
- Likes 1
-
Originally posted by pal666 View Postall cool kids are already switched to kotlin
Simple Mobile Tools are written in Kotlin, and every application has around 4MB of bloat.
Simple Thank You (their simplest app) is 4.4MB in size, when it should just be ~30KB. What a joke!
- Likes 1
Comment
-
Originally posted by coder View PostCool. Thanks for letting us know.
Originally posted by coder View PostWell, you can mitigate that using namespace aliases, the using keyword, typedefs, etc.
Furthermore, you can put your own symbols with private visibility in an anonymous namespace.
Comment
-
Originally posted by pal666 View Postas a c++ user my mind boggles at how you scheme programmers survived without static typing
Originally posted by pal666 View Postin c++ they are certainly not procedures. they are unnamed class objects with overloaded operator() (functors)
Edit: In fact, I recommend you look up what a functor is, so you can understand my point better. What is a class object with overloaded operator()? It's a function expression lol, aka, a callable object. You are just looking at it from the C++ perspective, but what you don't understand is that it is implemented this way due to the fact that C++ is a lot more primitive than other languages with runtime dynamism and the ability to instantiate objects at will instead of having to use classes. I almost said "newer" languages there, but I had to catch myself because Lisp has been around since like the 40s lol.
Originally posted by pal666 View Postc++ had proposal with similar syntax, it was rejected due to technical issues. you see, c++ committee has to design sane language, unlike javascript. but maybe someone comes with improved proposal in fufure
Originally posted by pal666 View Postall cool kids are already switched to kotlinLast edited by cynical; 01 October 2019, 03:10 PM.
- Likes 1
Comment
-
Originally posted by coder View Post
One of its saving graces. But, it's not hard to find flagrant overuse/abuse of lambdas, in Javascript. While AJAX code is immensely helped by them, it's not uncommon to see most of a source file written in lambdas.
Originally posted by coder View PostI didn't say it wasn't good. However, from the beginning, it seems to veer straight into language laywering, before it really starts to pay off (IIRC). That could be off-putting for some, but it's definitely worth pushing through.
My recollection is that his earlier C++ books started with a much more gentle tone, offering advice you can use straight away.
- Likes 1
Comment
-
Originally posted by pal666 View Postyou are pretty wrong. msvc is the worst one. and it has improved recently, some years ago it was like separate language when every crossplatform codebase had to support non-standard prehistoric msvc
and for lulz msvc is still not fully c++98 (though they are getting close)
Either way, I was talking about C++ adoption of the company, not of their compiler.
Originally posted by pal666 View Postthat's enterprise. they sell it asap even if it still has rough edges
Originally posted by pal666 View Postmodules are jointly designed by all big 3 compiler devs
Again that's from memory so I might be mistaken on details, but I'm pretty sure it went like that.
- Likes 1
Comment
-
Originally posted by pal666 View Postc arrays decay to pointers. it's advisable to forbid constant size c arrays
Originally posted by pal666you are pretty wrong. msvc is the worst one. and it has improved recently, some years ago it was like separate language when every crossplatform codebase had to support non-standard prehistoric msvc
and for lulz msvc is still not fully c++98 (though they are getting close)Last edited by carewolf; 01 October 2019, 05:12 PM.
- Likes 1
Comment
Comment