Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #87959

Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel

From Muttley@dastardlyhq.com
Newsgroups comp.lang.c++
Subject Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel
Date 2022-12-15 16:18 +0000
Organization Aioe.org NNTP Server
Message-ID <tnfhc0$2e6$1@gioia.aioe.org> (permalink)
References (5 earlier) <a2ac3973-a9f1-42ff-974b-5c9e7a898773n@googlegroups.com> <tnctvr$gt4$1@gioia.aioe.org> <tnd485$2rgf5$1@dont-email.me> <tnepss$rnj$1@gioia.aioe.org> <tneu2t$32pff$1@dont-email.me>

Show all headers | View raw


On Thu, 15 Dec 2022 11:49:01 +0100
David Brown <david.brown@hesbynett.no> wrote:
>On 15/12/2022 10:37, Muttley@dastardlyhq.com wrote:
>> On Wed, 14 Dec 2022 19:21:57 +0100
>> David Brown <david.brown@hesbynett.no> wrote:
>>> On 14/12/2022 17:35, Muttley@dastardlyhq.com wrote:
>>> people who program in C would be better off in other languages - but I
>>> still enjoy C and write a lot of code in C and frequent comp.lang.c.
>> 
>> C is good for low level where the C++ runtime couldn't be supported and
>> for smallish system programs/utilities that don't require complex data
>> structures. As soon as it looks like you need STL type functionality or black
>
>> boxing you're better off with C++. IMO, YMMV.
>> 
>
>Oh, I am quite happy to agree that C has its place, and is the best 
>choice of language for a number of things.  Even when something like 
>C++, D, Rust, whatever, would be as efficient, the simplicity of C and 
>the convenience in connecting to other languages can make it the best 
>choice.
>
>But often it is used even when it is /not/ the best choice.  You see 
>people asking questions like "how do I write a parser for this kind of 
>text file in C?" - the answer is, "you don't".  You use a language 
>better suited for the task.  Even in the old days when C was the only 

I disagree with you there. C's pointer abilities make it a first class
language in which to write a text parser. Doing the equivalent using array
indexing along with substr() and find() type functionality would be inefficient
and long winded.

>sane choice for something like a parser, you didn't write the code in C 
>- you used tools that generated the C for you.

Lexx and yacc? Hmm, they were ok but limited and the code they generated could
often be described as a dogs dinner.

>There is nothing wrong with using C for tasks for which C is the best 
>choice - I only disapprove of using it for tasks where there are much 
>better alternatives.

People use what they know. Python might be the best language for quick and
dirty scripts but for a dev who only knows C it would be far quicker for them
to write it in C than spend 2 weeks learning python first.

Back to comp.lang.c++ | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

"Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel Lynn McGuire <lynnmcguire5@gmail.com> - 2022-12-12 14:53 -0600
  Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel Öö Tiib <ootiib@hot.ee> - 2022-12-12 17:40 -0800
  Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel Marcel Mueller <news.5.maazl@spamgourmet.org> - 2022-12-13 08:55 +0100
    Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel scott@slp53.sl.home (Scott Lurndal) - 2022-12-13 15:06 +0000
  Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel Juha Nieminen <nospam@thanks.invalid> - 2022-12-13 08:37 +0000
    Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel Lynn McGuire <lynnmcguire5@gmail.com> - 2022-12-13 14:15 -0600
      Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel d thiebaud <thiebauddick2@aol.com> - 2022-12-13 17:03 -0500
        Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel Lynn McGuire <lynnmcguire5@gmail.com> - 2022-12-13 19:35 -0600
          Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel d thiebaud <thiebauddick2@aol.com> - 2022-12-13 21:13 -0500
          Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel d thiebaud <thiebauddick2@aol.com> - 2022-12-14 04:40 -0500
        Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel Muttley@dastardlyhq.com - 2022-12-14 09:39 +0000
          Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel Juha Nieminen <nospam@thanks.invalid> - 2022-12-14 12:34 +0000
            Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel Muttley@dastardlyhq.com - 2022-12-14 16:33 +0000
          Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel Michael S <already5chosen@yahoo.com> - 2022-12-14 05:56 -0800
            Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel Muttley@dastardlyhq.com - 2022-12-14 16:35 +0000
              Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel David Brown <david.brown@hesbynett.no> - 2022-12-14 19:21 +0100
                Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel Michael S <already5chosen@yahoo.com> - 2022-12-14 12:09 -0800
                Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel Lynn McGuire <lynnmcguire5@gmail.com> - 2022-12-14 15:53 -0600
                Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel Muttley@dastardlyhq.com - 2022-12-15 09:52 +0000
                Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel scott@slp53.sl.home (Scott Lurndal) - 2022-12-15 15:04 +0000
                Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel Muttley@dastardlyhq.com - 2022-12-15 16:20 +0000
                Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel David Brown <david.brown@hesbynett.no> - 2022-12-15 20:09 +0100
                Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel Muttley@dastardlyhq.com - 2022-12-16 10:14 +0000
                Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel David Brown <david.brown@hesbynett.no> - 2022-12-16 13:38 +0100
                Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel "Fred. Zwarts" <F.Zwarts@KVI.nl> - 2022-12-16 14:15 +0100
                Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel David Brown <david.brown@hesbynett.no> - 2022-12-16 14:20 +0100
                Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2022-12-16 12:36 -0800
                Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2022-12-23 17:09 -0800
                Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel Lynn McGuire <lynnmcguire5@gmail.com> - 2022-12-15 18:44 -0600
                Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel Muttley@dastardlyhq.com - 2022-12-16 10:24 +0000
                Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel scott@slp53.sl.home (Scott Lurndal) - 2022-12-16 15:19 +0000
                Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel Muttley@dastardlyhq.com - 2022-12-16 15:27 +0000
                Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel Lynn McGuire <lynnmcguire5@gmail.com> - 2022-12-16 14:03 -0600
                Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel Muttley@dastardlyhq.com - 2022-12-17 10:18 +0000
                Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2022-12-17 02:27 -0800
                Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel Muttley@dastardlyhq.com - 2022-12-17 10:42 +0000
                Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2022-12-17 13:15 -0800
                Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel scott@slp53.sl.home (Scott Lurndal) - 2022-12-17 16:05 +0000
                Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2022-12-17 13:15 -0800
                Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel scott@slp53.sl.home (Scott Lurndal) - 2022-12-18 17:37 +0000
                Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel Muttley@dastardlyhq.com - 2022-12-19 09:43 +0000
                Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel scott@slp53.sl.home (Scott Lurndal) - 2022-12-19 15:28 +0000
                Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel Muttley@dastardlyhq.com - 2022-12-19 16:58 +0000
                Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2022-12-19 19:28 -0800
                Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2022-12-19 19:35 -0800
                Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel scott@slp53.sl.home (Scott Lurndal) - 2022-12-20 14:49 +0000
                Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel Lynn McGuire <lynnmcguire5@gmail.com> - 2022-12-20 17:51 -0600
                Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel Muttley@dastardlyhq.com - 2022-12-20 10:14 +0000
                Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2022-12-23 20:32 -0800
                Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel Lynn McGuire <lynnmcguire5@gmail.com> - 2022-12-17 19:20 -0600
                Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel Muttley@dastardlyhq.com - 2022-12-19 09:46 +0000
                Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel Lynn McGuire <lynnmcguire5@gmail.com> - 2022-12-19 18:28 -0600
                Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel Muttley@dastardlyhq.com - 2022-12-20 10:11 +0000
                Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel Lynn McGuire <lynnmcguire5@gmail.com> - 2022-12-20 17:52 -0600
                Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel Lynn McGuire <lynnmcguire5@gmail.com> - 2022-12-17 19:13 -0600
                Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel Muttley@dastardlyhq.com - 2022-12-15 09:47 +0000
                Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel Jorgen Grahn <grahn+nntp@snipabacken.se> - 2022-12-17 21:49 +0000
                Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel Muttley@dastardlyhq.com - 2022-12-15 09:37 +0000
                Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel David Brown <david.brown@hesbynett.no> - 2022-12-15 11:49 +0100
                Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel Muttley@dastardlyhq.com - 2022-12-15 16:18 +0000
                Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel "daniel...@gmail.com" <danielaparker@gmail.com> - 2022-12-15 12:54 -0800
                Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel Öö Tiib <ootiib@hot.ee> - 2022-12-15 21:54 -0800
                Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel Malcolm McLean <malcolm.arthur.mclean@gmail.com> - 2022-12-24 11:40 -0800
                Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel Öö Tiib <ootiib@hot.ee> - 2022-12-24 18:19 -0800
                Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel scott@slp53.sl.home (Scott Lurndal) - 2022-12-25 17:07 +0000
                Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel "daniel...@gmail.com" <danielaparker@gmail.com> - 2022-12-25 10:55 -0800
          Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel Lynn McGuire <lynnmcguire5@gmail.com> - 2022-12-14 12:54 -0600
            Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel Muttley@dastardlyhq.com - 2022-12-15 09:41 +0000
      Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel Öö Tiib <ootiib@hot.ee> - 2022-12-13 20:06 -0800
        Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel "daniel...@gmail.com" <danielaparker@gmail.com> - 2022-12-13 20:17 -0800
          Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel Michael S <already5chosen@yahoo.com> - 2022-12-14 05:37 -0800
  Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2022-12-14 13:57 -0800
    Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel Lynn McGuire <lynnmcguire5@gmail.com> - 2022-12-14 18:20 -0600
    Re: "Why ISO C++ Is Not Enough for Heterogeneous Computing" by Intel Lynn McGuire <lynnmcguire5@gmail.com> - 2022-12-14 18:40 -0600

csiph-web