Oliver
Ok
Ludovic 'Archivist'
Please teach me
Take a ticket, wait for your turn
A. Sumant
Hi are you working professional
Rose
Hi are you working professional
Offtopic discussions should be done in the C/C++ Offtopic group. Please take your discussion/questions there.
A. Sumant
Ya
What is your role
Martha
Anybody familiar with golang?
Rose
Anybody familiar with golang?
Offtopic discussions should be done in the C/C++ Offtopic group. Please take your discussion/questions there.
Neon
Hello someone there
Oma
C++
Oma
Is the best
Martha
Is the best
Yh No doubt
Mohammed
Welcome!
How are you? Is there a question you want to understand?
Orange Juice
How are you? Is there a question you want to understand?
Yes, how do I print hello world in c programming?
CodeBy
Yes, how do I print hello world in c programming?
Just use printf command that's basic
Martha
Yes, how do I print hello world in c programming?
It depends on what u want to print on the console Basic-> printf
Gurpreet
Give me the video for loops in c++
Rose
User KRISH 2.​O has 1/2 warnings; be careful! Reason: ad
Igor
Need to make an app to generate thousands of pdf files with data from a database and upload the result to an object storage. I have a dilemma: whether build it on python or on c++. What do you, guys, think?
Vlad
If it requires processing it would really slow
Vlad
If it is gluing database and rendering lib together then it doesn't matter
Vlad
But if it's simple like that you probably should do it in C++ anyway if you can stomach it and not bitch and moan too hard
Vlad
Cause if requirements change you will have a leeway
Igor
Thanks
Igor
I’ll stick to python
Vlad
I’ll stick to python
If it gets slow you may rewrite some parts as a C module
Vlad
Given that the gluing itself is not a bottleneck
Vlad
Which it might be if it's a lot of data and you use a crappy orm
Vlad
good #ot topic
Vlad
#ot
Rose
#ot
Offtopic discussions should be done in the C/C++ Offtopic group. Please take your discussion/questions there.
Devil Within
Okay thanks
Dot
If it gets slow you may rewrite some parts as a C module
I don't think it will be that much slow to force him to use another language, while the libraries he is going to use are probably written in C or C ++.
Vlad
I don't think it will be that much slow to force him to use another language, while the libraries he is going to use are probably written in C or C ++.
If his orm gives him some shitty ass python dict as a result and then he needs to feed every record from it line by line into the lib it would really slow
Vlad
Also overhead on duplication, copying data over
Vlad
And he said that it would be thousands of files
Vlad
Also we don't know how slow his queries would be
Ludovic 'Archivist'
I am doing web development in C++, it is fun, except the web parts
Ludovic 'Archivist'
I don't want to do web design
Ludovic 'Archivist'
But hey, I can serve 60000 request a second on 4 cores from 2011
Vlad
Cool but will there ever be at least 60000 users?
Ludovic 'Archivist'
Cool but will there ever be at least 60000 users?
of course no, but I don't plan to use 4 cores on the server
Dot
Also we don't know how slow his queries would be
True. But the reason for doing this is probably to archive, and that was my impression, and I don't think the execution speed is that important, otherwise if what you said is implemented, yes, it will be slow. But in the data field, Python is mostly used, so I think the language and library itself are optimized enough for this, and with a little optimization from the programmer himself, I don't think it will be a problem.
Mr. Jack Sparrow
Hii friend
Vlad
And one hour of archiving might become a week
Ludovic 'Archivist'
😂 Legendary level
Quite similar to JS in the end, it's just middlewares and coroutines
Dot
But hey, I can serve 60000 request a second on 4 cores from 2011
If you were to build the project with JavaScript or .NET, how many users would you be able to handle?
Ludovic 'Archivist'
already tested
Ludovic 'Archivist'
With JS, optimistically 85% of what dotnet would handle if I do not screw up the templating
Dot
And one hour of archiving might become a week
We hope this doesn't happen. If this happens, I can't imagine people working with Python Big Data.
Dot
already tested
1/12? You mean around 5000 users? This is a huge difference.
Vlad
We hope this doesn't happen. If this happens, I can't imagine people working with Python Big Data.
I can't imagine using python for anything but scripting, but here we are
Dot
With dotnet, around 1/12 that
May I ask what C++ framework and library you are using to complete the project?
Ludovic 'Archivist'
1/12? You mean around 5000 users? This is a huge difference.
Yeah, dotnet is still pretty good, but it is not lean at all and wastes a lot of time in sync IO because of the design of the framework
Ludovic 'Archivist'
Ludovic 'Archivist'
I made my own web page generator, called it overreact as a mockery of the underwhelming other framework
Dot
I can't imagine using python for anything but scripting, but here we are
😂😂You can't imagine my face when I found out that the language used for the world's largest and most complex AI and data processing projects is Python. I felt a little better when I found out that the libraries used were written in C and C++, but only a little.
Ludovic 'Archivist'
Yeah, dotnet is still pretty good, but it is not lean at all and wastes a lot of time in sync IO because of the design of the framework
Also, my CPU is from a decade and a half ago, my L3 cache is just like 32MB and the dotnet framework does a lot of indirection, wreaks havoc in the cache usage with its sheer size too
Vlad
Since it's literally 'everything is a heap pointer' the lang
Dot
Also, my CPU is from a decade and a half ago, my L3 cache is just like 32MB and the dotnet framework does a lot of indirection, wreaks havoc in the cache usage with its sheer size too
Thank you for sharing your experience. I have probably never seen such a detailed comparison between the performance of C++ and the top web languages. If you publish the web page generator you wrote on GitHub, we would be very happy if you could send us the link so we can follow along.
~
With dotnet, around 1/12 that
Umm I'm surprised .Net can only do this much, what app are you making?
Ludovic 'Archivist'
Umm I'm surprised .Net can only do this much, what app are you making?
Nothing too complicated really, mostly a website with a templating engine on top of it
Ludovic 'Archivist'
I am, like I said, pretty sure that cache evictions are the main slowdown for dotnet
Ludovic 'Archivist'
I will profile it against C++ and drogon when I have time
Vlad
Umm I'm surprised .Net can only do this much, what app are you making?
Probably the site is too light so it's kind of the worst case scenario for dotnet
~
Nothing too complicated really, mostly a website with a templating engine on top of it
Umm so like most websites, .Net should be able to handle more than that on 4 cores. On my 10th gen I5 laptop with 8 cores, .Net 9 can handle more than 200,000 req/s
Vlad
Probably the site is too light so it's kind of the worst case scenario for dotnet
Usually it's for the sites where you're database bound and some heavy logic going on on the back end
Ludovic 'Archivist'
Yeah dotnet is very much OK for static files, it is on-par with C++ there