eGospodarka.pl
eGospodarka.pl poleca

eGospodarka.plGrupypl.comp.programmingCo jest nie tak z C++ (było: Rust)Re: Co jest nie tak z C++ (było: Rust)
  • X-Received: by 10.31.137.76 with SMTP id l73mr32710vkd.10.1503390110972; Tue, 22 Aug
    2017 01:21:50 -0700 (PDT)
    X-Received: by 10.31.137.76 with SMTP id l73mr32710vkd.10.1503390110972; Tue, 22 Aug
    2017 01:21:50 -0700 (PDT)
    Path: news-archive.icm.edu.pl!news.icm.edu.pl!news.nask.pl!news.nask.org.pl!news.unit
    0.net!weretis.net!feeder6.news.weretis.net!feeder.usenetexpress.com!feeder-in1.
    iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!v29no26
    09319qtv.0!news-out.google.com!i9ni48030qte.0!nntp.google.com!v29no2609314qtv.0
    !postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
    Newsgroups: pl.comp.programming
    Date: Tue, 22 Aug 2017 01:21:50 -0700 (PDT)
    In-Reply-To: <0...@g...com>
    Complaints-To: g...@g...com
    Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=213.192.95.134;
    posting-account=f7iIKQoAAAAkDKpUafc-4IXhmRAzdB5r
    NNTP-Posting-Host: 213.192.95.134
    References: <f...@g...com>
    <1...@g...com>
    <7...@g...com>
    <b...@g...com>
    <a...@n...v.pl>
    <2...@g...com>
    <a...@n...v.pl>
    <on23a3$85s$1@node1.news.atman.pl>
    <a...@n...v.pl>
    <on75ke$g4u$1@node2.news.atman.pl>
    <5...@g...com>
    <onfotu$lh6$1@node1.news.atman.pl>
    <0...@g...com>
    User-Agent: G2/1.0
    MIME-Version: 1.0
    Message-ID: <3...@g...com>
    Subject: Re: Co jest nie tak z C++ (było: Rust)
    From: g...@g...com
    Injection-Date: Tue, 22 Aug 2017 08:21:51 +0000
    Content-Type: text/plain; charset="UTF-8"
    Content-Transfer-Encoding: quoted-printable
    Lines: 44
    Xref: news-archive.icm.edu.pl pl.comp.programming:211225
    [ ukryj nagłówki ]

    W dniu wtorek, 22 sierpnia 2017 09:42:53 UTC+2 użytkownik M.M. napisał:

    > > Tak! Madrze ktos zacytowal filozofa: "granice mego jezyka wytyczaja granice mego
    swiata"
    > > Twoj swiat bolesnie ograniczaja kraty ++.
    >
    > Ale jaka konkretnie mądrość z tego cytatu płynie w kontekście
    > języków programowania?

    Pozwolę sobie odpowiedzieć nieco większym cytatem, pochodzącym od
    Alana Kaya, twórcy języka Smalltalk:

    Allen Newell visited PARC with his theory of hierarchical thinking
    and was challenged to prove it. He was given a programming problem
    to solve while the protocol was collected. The problem was: given
    a list of items, produce a list consisting of all of the odd indexed
    items followed by all of the even indexed items. Newell's internal
    programming language resembled IPL-V in which pointers are manipulated
    explicitly, and he got into quite a struggle to do the program.
    In 2 seconds I wrote down:

    oddsEvens(x) = append(odds(x), evens(x))

    the statement of the problem in Landin's LISP syntax--and also
    the first part of the solution. Then a few seconds later:

    where odds(x) = if null(x) ? null(tl(x)) then x
    else hd(x) & odds(ttl(x))
    evens(x) = if null(x) ? null(tl(x)) then nil
    else odds(tl(x))

    This characteristic of writing down many solutions in declarative
    form and have them also be the programs is part of the appeal
    and beauty of this kind of language. Watching a famous guy much
    smarter than I struggle for more than 30 minutes to not quite
    solve the problem his way (there was a bug) made quite an impression.
    It brought home to me once again that "point of view is worth 80 IQ points."
    I wasn't smarter but I had a much better internal thinking tool to
    amplify my abilities.

    http://worrydream.com/EarlyHistoryOfSmalltalk/

Podziel się

Poleć ten post znajomemu poleć

Wydrukuj ten post drukuj


Następne wpisy z tego wątku

Najnowsze wątki z tej grupy


Najnowsze wątki

Szukaj w grupach

Eksperci egospodarka.pl

1 1 1

Wpisz nazwę miasta, dla którego chcesz znaleźć jednostkę ZUS.

Wzory dokumentów

Bezpłatne wzory dokumentów i formularzy.
Wyszukaj i pobierz za darmo: