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

Re: [PATCH] Introduce Git.pm (v3)

From
Jakub Narebski <jnareb@gmail.com>
Date
Jun 26, 2006, 23:20 UTC
Message-ID
<200606270120.42031.jnareb@gmail.com>
In-Reply-To
<20060623124539.GM21864@pasky.or.cz>
Dnia piątek 23. czerwca 2006 14:45, napisałeś:
Show 10 quoted lines
> Dear diary, on Fri, Jun 23, 2006 at 08:03:23AM CEST, I got a letter
> where Jakub Narebski <jnareb@gmail.com> said that...
>> Perhaps Git.pm should provide also generic, pure Perl (and slower)
>> fallback implementation (when for some reason we cannot compile XS).
> 
> I fiercely want to avoid this if there is any other possible way to go
> about it - this is a path to hell of massive code duplication and
> additional work, as the number of routines will grow. If it is question
> of spending many developer-hours uselessly duplicating code in a way
> that'll be much slower than possible anyway OR building with -fPIC... ;-)

I have thought about reimplementing only the parts which are in XS. In C one would probably write

#if can_asm
 asm (...)
#else
 /* C code equivalent */
#endif

In addition to allowing use of Git.pm for people who cannot compile Git.xs, it would be helpful I guess in Git.pm development.

-- 
Jakub Narebski
Poland
Previous: Petr BaudisNext: Junio C Hamano
Message 10 of 20 in “Introduce Git.pm (v3)”
  1. Introduce Git.pm (v3)Petr Baudis, Jun 22, 2006
  2. Junio C HamanoJun 22, 2006
  3. Petr BaudisJun 22, 2006
  4. Junio C HamanoJun 23, 2006
  5. Petr BaudisJun 23, 2006
  6. Junio C HamanoJun 23, 2006
  7. Jakub NarebskiJun 23, 2006
  8. Nguyễn Thái Ngọc DuyJun 23, 2006
  9. Petr BaudisJun 23, 2006
  10. Jakub NarebskiJun 26, 2006
  11. Junio C HamanoJun 23, 2006
  12. Eric W. BiedermanJun 23, 2006
  13. Petr BaudisJun 23, 2006
  14. Junio C HamanoJun 24, 2006
  15. Junio C HamanoJun 24, 2006
  16. Junio C HamanoJun 24, 2006
  17. Johannes SchindelinJun 24, 2006
  18. Junio C HamanoJun 25, 2006
  19. Johannes SchindelinJun 25, 2006
  20. Junio C HamanoJun 24, 2006

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.