News for hackers. Stuff that matters.
Re:A plea for lean software (1995) [pdf] by RcouF1uZ4gsC on Wednesday August 29, 2018 @07:27PM (#17872963)
I find an interesting contrast between Niklaus Wirth and Bjarne Stroustrup.

Wirth made a bunch of languages that were based on the "right" way to do things: Pascal, Modula, Modula-2, Oberon. The languages either were used and became massively fragmented (see Pascal) or were not used much. Other than Borland (Turbo Pascal and Delphi) no other large company really embraced any of the Wirth languages.

Stroustrup, on the other hand, was more pragmatic, and released a language aimed at professional programmers. In addition, instead of creating new languages, he has spent decades evolving C++. As a result, C++ has been in the top 5 of most used programming languages for years (decades?) and forms the critical infrastructure of many of the largest tech companies. In addition, I bet the evolution between C with Classes, and C++17 is pretty comparable in scope to that between Pascal and Oberon.

Re:A plea for lean software (1995) [pdf] by lboasso on Wednesday August 29, 2018 @08:33PM (#17873245)
Go was heavily influenced by Oberon, in fact Robert Griesemer is a former Wirth's PhD.
Re:A plea for lean software (1995) [pdf] by informatimago on Thursday August 30, 2018 @10:24AM (#17876959)
Apple embraced it, and used Pascal to write the LISA OS and the Mac ToolBox (not the MacOS "kernel" which was written in assembler for speed and memory optimization). Until they switched to OpenStep and Objective-C.

PalmOS was also basically a simplified clone of MacOS; I don't know if it was itself written in Pascal, but it kept the same internal Pascal data structures IIRC.

Re:A plea for lean software (1995) [pdf] by robotresearcher on Wednesday August 29, 2018 @08:01PM (#17873098)
Apple was into Pascal through the Apple II, Lisa and early Mac.
Re:A plea for lean software (1995) [pdf] by huhtenberg on Thursday August 30, 2018 @09:04AM (#17876325)
Microsoft was too as evidenced by __stdcall calling convention used in Windows API.

[1] https://en.wikipedia.org/wiki/X86_calling_conventions#stdcal...

Re:A plea for lean software (1995) [pdf] by vfclists on Wednesday August 29, 2018 @09:50PM (#17873568)
C++ only still exists because by the time every software developer and their dog had realized that C++ was the wrong way to go it was too late.
Re:A plea for lean software (1995) [pdf] by maxxxxx on Wednesday August 29, 2018 @10:19PM (#17873687)
That's a very cheap way to dismiss C++. I think it's more that Stroustroup has the ability to develop a decent language, promote it, make it usable for real-world use and improve it long term. I would say Linus is in the same category. Despite all his antics he knows how to push a project forward while still keeping his old users. Both have a very good combination of vision and pragmatism.
Re:A plea for lean software (1995) [pdf] by pjmlp on Thursday August 30, 2018 @12:51PM (#17878245)
While I agree with you, and enjoy following Bjarne, the rise of VMs and scripting languages helped keeping C++ around.

Had Java and .NET do the proper thing, by following up on Oberon, Modula-3 and Eiffel, by having proper AOT compilation since day one, and on Java's case value types as well, developers would feel less pressured to turn to C and C++.

Basically if they had been released the same way Go was.

Re:A plea for lean software (1995) [pdf] by huhtenberg on Thursday August 30, 2018 @09:05AM (#17876331)
OP's remark was a sarcasm.
Re:A plea for lean software (1995) [pdf] by maxxxxx on Thursday August 30, 2018 @10:16AM (#17876887)
Really? I guess I have heard this too often said seriously to detect sarcasm there.
Re:A plea for lean software (1995) [pdf] by leibwiht on Wednesday August 29, 2018 @09:10PM (#17873404)
I have to ask - does anyone actually use half of the C++ features? Exactly how much of C++'s 1600-page specification can be attributed to its success?
Re:A plea for lean software (1995) [pdf] by jcelerier on Thursday August 30, 2018 @07:33AM (#17875809)
> I have to ask - does anyone actually use half of the C++ features? Exactly how much of C++'s 1600-page specification can be attributed to its success?

do you also use all the classes of Python or Java's standard library ? C++17's spec is ~1400 pages (http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2017/n471...) but the actual language spec stops at page 406, the remaining 1000 pages are the specifications for the standard library. And in these 400 pages of specs, there are a lot of examples, grammars... just look at the chapter on templates: it's ~80 pages but more than half are valid & invalid code examples.

Re:A plea for lean software (1995) [pdf] by tonyedgecombe on Thursday August 30, 2018 @04:18AM (#17874923)
Does anybody even understand half of it?
Re:A plea for lean software (1995) [pdf] by huhtenberg on Thursday August 30, 2018 @09:07AM (#17876341)

    I don't know half of it half as well as I should like; and 
    I like less than half of it half as well as it deserves.

    -- B.B.