git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Make "git reset" a builtin. (incomplete)

From
Linus Torvalds <torvalds@linux-foundation.org>
Date
Aug 22, 2007, 19:58 UTC
Message-ID
<alpine.LFD.0.999.0708221252040.30176@woody.linux-foundation.org>
In-Reply-To
<86absjcqfq.fsf@lola.quinscape.zz>
On Wed, 22 Aug 2007, David Kastrup wrote:
> 
> Actually, the same holds for assembly language vs C.  Once the
> prototyping is over...
No. Portability.

The point is, C is *more* portable (and thus maintainable) than shell, but assembly language is *less* portable than C.

So no, "the same holds" is not at all true.

It's not about whether something is evolving or not: it's about whether something is *maintainable* or not.

And C is most definitely maintainable, in ways that scripting languages often are *not*.

Show 5 quoted lines
> > Having tried to do internal scripting languages, I can say that it's
> > just easier to do it in C once you get past the hump of getting it
> > written in C in the first place.
> 
> But it is not "once" that you need to do this.  It is a permanent job.
Sure, and that's exactly where C shines.

C is not great for "quick and dirty, and I'm not sure where this is going".

But once you know where it's going, and once it's not "quick and dirty" any more, very little beats C. It's easy to extend on, and if all the infrastructure is in C, there simply IS NO BETTER WAY TO GLUE THINGS TOGETHER.

There are "C bindings" for other languages (like LUA), but the fact is, none of them hold a candle to the "C bindings" of native C.

So you're seemingly ignoring the fact that all the infrastructure is in C (and absolutely _needs_ to be in C - there are no valid alternative languages at that level).

> Maintenance: yes.  Development: no.  If you want a product you do not
> want to touch again, C is a good final choice.
That's simply not true.
Look around. Most C language projects are really well maintained.

In contrast, a lot of _scripting_ languages are basically write-only. They may be write-only because that's their fundamental design (perl), or they may be write-only because they are limited enough that you can not easily extend them to do new things.

But your statement is provably wrong. Just *look* at well-maintained projects that have extended way past their original design and usage model. A lot of them are in C.

So why do you make these idiotic arguments that are clearly crap?
			Linus
Previous: David KastrupNext: David Kastrup
Message 13 of 49 in “Make "git reset" a builtin. (incomplete)”
  1. Make "git reset" a builtin. (incomplete)Carlos Rica, Aug 22, 2007
  2. David KastrupAug 22, 2007
  3. Andreas EricssonAug 22, 2007
  4. David KastrupAug 22, 2007
  5. Mike HommeyAug 22, 2007
  6. Chris ShoemakerAug 22, 2007
  7. David KastrupAug 22, 2007
  8. Nicolas PitreAug 22, 2007
  9. Johannes SchindelinAug 22, 2007
  10. David KastrupAug 22, 2007
  11. Linus TorvaldsAug 22, 2007
  12. David KastrupAug 22, 2007
  13. Linus TorvaldsAug 22, 2007
  14. David KastrupAug 22, 2007
  15. Linus TorvaldsAug 22, 2007
  16. David KastrupAug 22, 2007
  17. Linus TorvaldsAug 23, 2007
  18. Wincent ColaiutaAug 23, 2007
  19. Nicolas PitreAug 23, 2007
  20. Jon SmirlAug 23, 2007
  21. Linus TorvaldsAug 23, 2007
  22. Junio C HamanoAug 23, 2007
  23. Johannes SchindelinAug 23, 2007
  24. Reece DunnAug 22, 2007
  25. Johannes SchindelinAug 23, 2007
  26. Theodore TsoAug 23, 2007
  27. Johannes SchindelinAug 23, 2007
  28. David TweedAug 23, 2007
  29. Theodore TsoAug 23, 2007
  30. Johannes SchindelinAug 23, 2007
  31. Jon SmirlAug 23, 2007
  32. Reece DunnAug 23, 2007
  33. Alex RiesenAug 23, 2007
  34. David KastrupAug 23, 2007
  35. Alex RiesenAug 23, 2007
  36. David KastrupAug 23, 2007
  37. Nicolas PitreAug 22, 2007
  38. Johannes SchindelinAug 23, 2007
  39. Nicolas PitreAug 23, 2007
  40. Reece DunnAug 22, 2007
  41. Johannes SchindelinAug 23, 2007
  42. Robin RosenbergAug 23, 2007
  43. Nguyen Thai Ngoc DuyAug 23, 2007
  44. Matthieu MoyAug 22, 2007
  45. David KastrupAug 22, 2007
  46. Andy ParkinsAug 22, 2007
  47. Johannes SixtAug 22, 2007
  48. Alex RiesenAug 22, 2007
  49. Johannes SchindelinAug 23, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.