+ 3

Why not make libraries for c/c++ instead of new stupid language from c?

People , I don't hate other language but c created for unity instead of assembly for each architecture Now , we make language for each usage and this isn't best solution Hello guys I ask why people instead of making library for example " libcello.h" to add high level features or any library increasing productivity of the language instead of making another language solve one or two problems but also limited usage and lower performance

12th Aug 2019, 1:59 AM
Kyrillos Akram
Kyrillos Akram - avatar
18 Answers
+ 1
I agree to that one, like I said, if performance is your main aim, and you don't really care how long will it take and how hard it can be to do that, then lower level language like C or C++ is the best for you. However, when performance is not a big issue, to some people, it's best to use a language that is more flexible.
13th Aug 2019, 1:48 PM
Agent_I
Agent_I - avatar
+ 4
Maybe some people prefer a different syntax to C?
12th Aug 2019, 4:32 AM
Sonic
Sonic - avatar
+ 4
Hello guys I ask why people instead of making library for example " libcello.h" to add high level features or any library increasing productivity of the language instead of making another language solve one or two problems but also limited usage and lower performance
12th Aug 2019, 6:14 AM
Kyrillos Akram
Kyrillos Akram - avatar
+ 3
I also respect your opinion , I for sure talk for critical project developing library do all what you need just call macro function or function to pass parameters You work one time not every time you spend the same time or more in making new language that is the concept
13th Aug 2019, 1:18 PM
Kyrillos Akram
Kyrillos Akram - avatar
+ 3
For sure for non critical , right time project or just one time project choose python over c/c++ But refuses using python in some thing like self driving in commercial level as you will spend more than u think in hardware or building os using JavaScript A lot of people considering using c/c++ for server side in heavy work crazy but it crazy like fox
13th Aug 2019, 1:35 PM
Kyrillos Akram
Kyrillos Akram - avatar
+ 2
I'm not sure what is it that you ask, but are you saying that we should have one universal programming language instead of creating a new language?
12th Aug 2019, 2:12 AM
Agent_I
Agent_I - avatar
+ 2
Agent_I I'm not too sure, but I think he is saying that - having known that C is a general purpose programming language, that is capable of (almost) anything, why people make specific purpose languages (by architecture? functionality?) and probably he's not too happy by that (just a raw deduction)
12th Aug 2019, 2:22 AM
Ipang
+ 2
Ipang I guess we never really know until he answer it
12th Aug 2019, 2:42 AM
Agent_I
Agent_I - avatar
+ 2
Agent_I I designed self driving car as graduation project I used python but for sure used tensorflow library also thier is tensorflow library for c++ but we go to python for safe memory management , I suffered with python in very important point ( the performance and exploitation of resources ) but after I finished my project shocked when I discovered libcello all what I was need in python it easily provided in c just because a library . If you think about what makes python very strong its community and tons of library you import to get the tools you need not typing evey thing yourself Say c/c++ are compiled language sometimes you need interpreter Also c cauld be interpreted https://stackoverflow.com/questions/584714/is-there-an-interpreter-for-c C could be high level features http://libcello.org/ You can use c for very limited server by cppspx So I still see that people go to lazy solution that smart one using c is really good investigation
12th Aug 2019, 9:27 AM
Kyrillos Akram
Kyrillos Akram - avatar
+ 2
Agent_I what I wand to say the power of any general purpose language its libraries which providing you the tools to finish your project faster and community who make libraries or any thing easier Real example cello !!! I don't know if read that cello providing you garbage collection easy for threads also you can use var for creating beside the low level features and high performance .
12th Aug 2019, 12:59 PM
Kyrillos Akram
Kyrillos Akram - avatar
+ 2
I don't know if my opinion is clear to understand
12th Aug 2019, 1:00 PM
Kyrillos Akram
Kyrillos Akram - avatar
+ 2
Agent_I why do you think that c/c++ can't do all what python can isn't python general purpose also c general purpose before python guys jumb on my do you forget that python consider a program in c šŸ˜‚ Python could be use for web development with flask or Django C++ could be used for web development with wt or cppspx C is the best for embedded systems specially for 8-bit architecture which python can't reach lower than 32-bit architecture C could be used for mobile applications Also for ML with tensorflow C in any field can be shoulder above the others C/C++ is more than a language it is power Conclusion One powerful general purpose language with libraries for every usage much better than slower languages for each usage C will never die for sure but it still carrying great hope for the future of development business Also the Rust is a great hope as general purpose can be a main key
13th Aug 2019, 11:38 AM
Kyrillos Akram
Kyrillos Akram - avatar
+ 1
Agent_I True, that is if he ever does : )
12th Aug 2019, 3:36 AM
Ipang
+ 1
Kyrillos Akram It may not accurate, but this is how I see it. The reason for that is the same reason why people don't make an axe that can do a screwdriver's works. Axes and screwdrivers have a different purpose, it's simply hard to make a tool that is big enough to cut a tree but small enough to fasten some screws. Even if there is one, I don't think people will feel comfortable using it. The same thing happens with the programming language. The problem doesn't lie in its library, but the language itself, its features and basic capabilities. C/C++ is designed to have a low level access on the hardware, if you compare it with other languages, you can call it complicated. So basically it's designed to do a low level task. But what if the task is focused on something like ML? C/C++ can do it, but it's not the perfect tool, that's why people create another language for that purpose, like python. It's true that some languages hasve limited usage, that's why some of them are popular, some of them aren't
12th Aug 2019, 7:15 AM
Agent_I
Agent_I - avatar
+ 1
Kyrillos Akram I respect your opinion, I really do, but I was just answering your question, you asked why did people create a language instead of create a library for the existing language, like libcello. This is the reason why, most people think that it's impractical to rely on one single language to do everything, like using C for ML, and libcello doesn't really change C, it's still C, it's still impractical for some particular task. If people create a library that change C to its very core, it's better to create a new language instead of doing that. Once again, I respect your opinion, but most people think that saving few hours of their time in developing software is better than saving a few seconds of CPU time.
13th Aug 2019, 1:03 PM
Agent_I
Agent_I - avatar
0
Kyrillos Akram It's true that many people still choose python over other languages. And yes, it's because it has tons of library you can use with ease. Moreover, python language itself is flexible. That's why python is used in data science, where performance is not the main concern. You said that all you need in python can be done in C with the libcello library. I read a bit about it, and all it does is basically turning C into C++. So, I assume what you need in python is nothing too specific, still in general field. But when the task is specific, some languages might be best for it, some of it don't. Like I said earlier, different language has different capabilities in some of their parts
12th Aug 2019, 12:14 PM
Agent_I
Agent_I - avatar
0
Kyrillos Akram I aware how that library change C, but it's still C, it can't do everything that python can do, even if such library exist, it will change whole language itself, effectively creating a new language, so there is no difference, even in performance
12th Aug 2019, 2:37 PM
Agent_I
Agent_I - avatar
0
Kyrillos Akram I may not make myself clear, by when I said C can't do what python do, I was referring to the language itself, like its syntax or paradigm, for example, you cannot create class in C. I wasn't referring to what the language can achieve. However, just like you said, C is the best for embedded systems, I know that it doesn't mean that it cannot be used for apps development or ML. There are reasons for that, and one of it because it's highly impractical. There are millions of various software and programs, each of them can do various tasks, from a simple task to something that is highly complex task. Not all programs consider performance as its first priority. Imagine that a software dev want to create a simple calculator with GUI. He can use either C++ or Java, if he use C++, it will cost him not only a lot of time and energy, but also more money, it's simply because C++ is more sophisticated than Java, plus it doesn't have standard library for graphic.
13th Aug 2019, 1:02 PM
Agent_I
Agent_I - avatar