nedoPC.org

Electronics hobbyists community established in 2002
Atom Feed | View unanswered posts | View active topics It is currently 16 Apr 2024 09:10



Reply to topic  [ 10 posts ] 
Linus about C++ 
Author Message
Online
Admin
User avatar

Joined: 08 Jan 2003 23:22
Posts: 22518
Location: Silicon Valley
Reply with quote
Post 
Linus Torvalds wrote:
On Wed, 5 Sep 2007, Dmitry Kakurin wrote:
>
> When I first looked at Git source code two things struck me as odd:
> 1. Pure C as opposed to C++. No idea why. Please don't talk about portability,
> it's BS.

*YOU* are full of bullshit.

C++ is a horrible language. It's made more horrible by the fact that a lot
of substandard programmers use it, to the point where it's much much
easier to generate total and utter crap with it. Quite frankly, even if
the choice of C were to do *nothing* but keep the C++ programmers out,
that in itself would be a huge reason to use C.

In other words: the choice of C is the only sane choice. I know Miles
Bader jokingly said "to piss you off", but it's actually true. I've come
to the conclusion that any programmer that would prefer the project to be
in C++ over C is likely a programmer that I really *would* prefer to piss
off, so that he doesn't come and screw up any project I'm involved with.

C++ leads to really really bad design choices. You invariably start using
the "nice" library features of the language like STL and Boost and other
total and utter crap, that may "help" you program, but causes:

- infinite amounts of pain when they don't work (and anybody who tells me
that STL and especially Boost are stable and portable is just so full
of BS that it's not even funny)

- inefficient abstracted programming models where two years down the road
you notice that some abstraction wasn't very efficient, but now all
your code depends on all the nice object models around it, and you
cannot fix it without rewriting your app.

In other words, the only way to do good, efficient, and system-level and
portable C++ ends up to limit yourself to all the things that are
basically available in C. And limiting your project to C means that people
don't screw that up, and also means that you get a lot of programmers that
do actually understand low-level issues and don't screw things up with any
idiotic "object model" crap.

So I'm sorry, but for something like git, where efficiency was a primary
objective, the "advantages" of C++ is just a huge mistake. The fact that
we also piss off people who cannot see that is just a big additional
advantage.

If you want a VCS that is written in C++, go play with Monotone. Really.
They use a "real database". They use "nice object-oriented libraries".
They use "nice C++ abstractions". And quite frankly, as a result of all
these design decisions that sound so appealing to some CS people, the end
result is a horrible and unmaintainable mess.

But I'm sure you'd like it more than git.

Linus

_________________
:dj: https://mastodon.social/@Shaos


30 Sep 2007 19:25
Profile WWW
Online
Admin
User avatar

Joined: 08 Jan 2003 23:22
Posts: 22518
Location: Silicon Valley
Reply with quote
Post 
Если уже тут вспомнили про Линуса и его отношение к языку Си++, то вытаскиваю из небытия свой старый пост про это :roll:

P.S. Интересно, что человек на которого Линус наехал - русский, который в настоящее время работает в Майкрософте :no:

_________________
:dj: https://mastodon.social/@Shaos


Last edited by Shaos on 15 Apr 2011 13:42, edited 2 times in total.



14 Apr 2011 18:50
Profile WWW
Supreme God
User avatar

Joined: 21 Oct 2009 08:08
Posts: 7777
Location: Россия
Reply with quote
Post 
Если это оригинал - поставил бы ссылку, где это было. А так, с учётом даты -
2007 год - этот текст обнаруживается на многих сайтах, как, впрочем, перевод
и добавления типа:"Линусу Торвальдсу - Наш Ответ".


15 Apr 2011 05:08
Profile
Online
Admin
User avatar

Joined: 08 Jan 2003 23:22
Posts: 22518
Location: Silicon Valley
Reply with quote
Post 
оригинал - это список рассылки git, куда ссылку дать невозможно - разве что на архив...

P.S. http://thread.gmane.org/gmane.comp.vers ... .git/57918

_________________
:dj: https://mastodon.social/@Shaos


15 Apr 2011 06:10
Profile WWW
Senior

Joined: 28 Feb 2006 21:34
Posts: 180
Reply with quote
Post 
Shaos wrote:
оригинал - это список рассылки git, куда ссылку дать невозможно - разве что на архив...

P.S. http://thread.gmane.org/gmane.comp.vers ... .git/57918


Ну да - оно и есть. ))))


15 Apr 2011 12:15
Profile
Online
Admin
User avatar

Joined: 08 Jan 2003 23:22
Posts: 22518
Location: Silicon Valley
Reply with quote
Post 
на правах шутки:

Image

_________________
:dj: https://mastodon.social/@Shaos


23 Apr 2011 18:39
Profile WWW
Banned
User avatar

Joined: 20 Mar 2005 13:41
Posts: 2141
Location: От туда
Reply with quote
Post 
Ты ему эту картинку и пошли, лол. Заценит али нет?


23 Apr 2011 21:51
Profile
God
User avatar

Joined: 13 Nov 2010 04:06
Posts: 1345
Reply with quote
Post 
Сам создатель C++ признал, что в полном объёме этот язык ни один программист освоить не может. А вообще, в своей книге "Искусство программирования для UNIX" Эрик Реймонд достаточно хорошо написал, почему объектно-ориентированное программирование вообще и C++ в частности не имеют такого успеха в UNIX, как в других операционных системах.


03 Jun 2011 10:05
Profile
Supreme God
User avatar

Joined: 21 Oct 2009 08:08
Posts: 7777
Location: Россия
Reply with quote
Post 
VituZz wrote:
Сам создатель C++ признал, что в полном объёме этот язык ни один программист освоить не может. А вообще, в своей книге "Искусство программирования для UNIX" Эрик Реймонд достаточно хорошо написал, почему объектно-ориентированное программирование вообще и C++ в частности не имеют такого успеха в UNIX, как в других операционных системах.

А мне казалось, что для Венды объектно-ориентированная концепция не совсем применима.
Да и создатели Венды согласны, что её объекты не совсем полноценны с этой
точки зреня.


03 Jun 2011 10:26
Profile
Supreme God
User avatar

Joined: 21 Oct 2009 08:08
Posts: 7777
Location: Россия
Reply with quote
Post 
Забавную вещь я неожиданно прочитал! :o
Quote:
Никто не обладает правами на язык C++, он является свободным.
Однако сам документ стандарта языка (за исключением черновиков)
не доступен бесплатно.

Неужто правда? :roll:

_________________
iLavr


18 Nov 2012 19:07
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 10 posts ] 

Who is online

Users browsing this forum: No registered users and 11 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.