Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c > #159257
| From | David Brown <david.brown@hesbynett.no> |
|---|---|
| Newsgroups | comp.lang.c |
| Subject | Re: STC - A "Standard Template Containers" library for C, similar to STL |
| Date | 2021-03-09 17:55 +0100 |
| Organization | A noiseless patient Spider |
| Message-ID | <s2899p$csb$1@dont-email.me> (permalink) |
| References | (5 earlier) <e408f2db-2e39-4b81-8beb-307dea578e72n@googlegroups.com> <s25bpu$jhc$1@dont-email.me> <s25oa2$ral$1@gioia.aioe.org> <s25sao$s1n$1@dont-email.me> <s28705$vpa$1@gioia.aioe.org> |
On 09/03/2021 17:16, Manfred wrote: > > A webserver is somewhat peculiar nowadays, because the Internet is so > widespread, and you find a plethora of different contexts where a > "webserver" is deployed, from ISPs to IOT chips. Being so widespread, > some higher level languages even ship most of the http stack as part of > their standard library - a webserver in Java is next to trivial. Fair enough. > > More in general, thinking things like e.g. fileservers or VPN gateways, > as far as I can see C pretty hard to beat. > I think you would be very hard pushed to make a fileserver in C that is much faster than, say Go or Rust. It would likely be a challenge even to make it measurably faster than Python. The thing about a lot of servers these days is that the application code is not the bottleneck. That code spends most of its time waiting for data from disks, data through networks, data being encrypted or compressed (the encryption and compression stuff being written in C, regardless of the higher level language). And even when processor work at the high level code point (rather than underlying libraries or OS code) is the issue, certain languages other than C can make it easier to make more efficient use of the processor. In C, you do things manually (memory management, threading, etc.). This gives you full control - but it means you need to do the work in the code, and that might not be the priority for the development. Your C code needs to handle memory allocation and deallocation, both taking time - a garbage collected language with more sophistication might do all the freeing in the background on another thread, reducing the effort needed during the critical paths. I am not saying you are wrong here - I have no numbers to justify such a claim. But I think the situation is a good deal more complex than just "C has minimal overheads and is therefore the fastest language". It may be the fastest language for some many of code (though other compiled languages like C++, Fortran, Ada, D, etc., could challenge it), but the code is often not the only consideration for the speed of a task.
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
STC - A "Standard Template Containers" library for C, similar to STL tylo <tylovset@gmail.com> - 2021-03-03 07:16 -0800
Re: STC - A "Standard Template Containers" library for C, similar to STL Ben Bacarisse <ben.usenet@bsb.me.uk> - 2021-03-03 21:36 +0000
Re: STC - A "Standard Template Containers" library for C, similar to STL "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2021-03-03 20:49 -0800
Re: STC - A "Standard Template Containers" library for C, similar to STL "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2021-03-03 13:50 -0800
Re: STC - A "Standard Template Containers" library for C, similar to STL "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2021-03-03 13:56 -0800
Re: STC - A "Standard Template Containers" library for C, similar to STL John Dill <jadill33@gmail.com> - 2021-03-03 14:17 -0800
Re: STC - A "Standard Template Containers" library for C, similar to STL olcott <NoOne@NoWhere.com> - 2021-03-03 16:21 -0600
Re: STC - A "Standard Template Containers" library for C, similar to STL Ben Bacarisse <ben.usenet@bsb.me.uk> - 2021-03-03 22:45 +0000
Re: STC - A "Standard Template Containers" library for C, similar to STL olcott <NoOne@NoWhere.com> - 2021-03-03 17:21 -0600
Re: STC - A "Standard Template Containers" library for C, similar to STL John Dill <jadill33@gmail.com> - 2021-03-03 15:05 -0800
Re: STC - A "Standard Template Containers" library for C, similar to STL olcott <NoOne@NoWhere.com> - 2021-03-03 17:28 -0600
Re: STC - A "Standard Template Containers" library for C, similar to STL "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2021-03-03 20:44 -0800
Re: STC - A "Standard Template Containers" library for C, similar to STL "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2021-03-03 20:45 -0800
Re: STC - A "Standard Template Containers" library for C, similar to STL jacobnavia <jacob@jacob.remcomp.fr> - 2021-03-04 10:16 +0100
Re: STC - A "Standard Template Containers" library for C, similar to STL David Brown <david.brown@hesbynett.no> - 2021-03-04 12:09 +0100
Re: STC - A "Standard Template Containers" library for C, similar to STL Bart <bc@freeuk.com> - 2021-03-04 12:00 +0000
Re: STC - A "Standard Template Containers" library for C, similar to STL David Brown <david.brown@hesbynett.no> - 2021-03-04 14:15 +0100
Re: STC - A "Standard Template Containers" library for C, similar to STL tylo <tylovset@gmail.com> - 2021-03-07 14:51 -0800
Re: STC - A "Standard Template Containers" library for C, similar to STL Anton Shepelev <anton.txt@g{oogle}mail.com> - 2021-03-04 19:19 +0300
Re: STC - A "Standard Template Containers" library for C, similar to STL Malcolm McLean <malcolm.arthur.mclean@gmail.com> - 2021-03-04 11:41 -0800
Re: STC - A "Standard Template Containers" library for C, similar to STL Ian Collins <ian-news@hotmail.com> - 2021-03-05 10:19 +1300
Re: STC - A "Standard Template Containers" library for C, similar to STL tylo <tylovset@gmail.com> - 2021-03-08 00:23 -0800
Re: STC - A "Standard Template Containers" library for C, similar to STL David Brown <david.brown@hesbynett.no> - 2021-03-08 11:46 +0100
Re: STC - A "Standard Template Containers" library for C, similar to STL tylo <tylovset@gmail.com> - 2021-03-08 05:36 -0800
Re: STC - A "Standard Template Containers" library for C, similar to STL David Brown <david.brown@hesbynett.no> - 2021-03-08 15:19 +0100
Re: STC - A "Standard Template Containers" library for C, similar to STL tylo <tylovset@gmail.com> - 2021-03-08 08:23 -0800
Re: STC - A "Standard Template Containers" library for C, similar to STL Manfred <noname@add.invalid> - 2021-03-08 18:53 +0100
Re: STC - A "Standard Template Containers" library for C, similar to STL David Brown <david.brown@hesbynett.no> - 2021-03-08 20:01 +0100
Re: STC - A "Standard Template Containers" library for C, similar to STL Manfred <noname@add.invalid> - 2021-03-09 17:16 +0100
Re: STC - A "Standard Template Containers" library for C, similar to STL David Brown <david.brown@hesbynett.no> - 2021-03-09 17:55 +0100
Re: STC - A "Standard Template Containers" library for C, similar to STL Kaz Kylheku <563-365-8930@kylheku.com> - 2021-03-09 17:19 +0000
Re: STC - A "Standard Template Containers" library for C, similar to STL David Brown <david.brown@hesbynett.no> - 2021-03-09 19:58 +0100
Re: STC - A "Standard Template Containers" library for C, similar to STL Manfred <noname@add.invalid> - 2021-03-09 18:42 +0100
Re: STC - A "Standard Template Containers" library for C, similar to STL "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2021-03-08 17:41 -0800
Re: STC - A "Standard Template Containers" library for C, similar to STL "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2021-03-08 17:45 -0800
Re: STC - A "Standard Template Containers" library for C, similar to STL Eli the Bearded <*@eli.users.panix.com> - 2021-03-04 18:46 +0000
Re: STC - A "Standard Template Containers" library for C, similar to STL "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2021-03-04 23:35 -0800
Re: STC - A "Standard Template Containers" library for C, similar to STL "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2021-03-08 17:05 -0800
Re: STC - A "Standard Template Containers" library for C, similar to STL "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2021-03-08 17:18 -0800
Re: STC - A "Standard Template Containers" library for C, similar to STL tylo <tylovset@gmail.com> - 2021-03-16 14:49 -0700
Re: STC - A "Standard Template Containers" library for C, similar to STL Siri Cruise <chine.bleu@yahoo.com> - 2021-03-09 21:25 -0800
csiph-web