If you can’t manage a linked list without someone else doing it for
you, IMO you need to spend a little less time on pretty graphics and
a little more time on fundamentals.
The issue here isn’t whether or not SDL should implement linked
lists?it has done so repeatedly because it’s a basic and common
implementation detail. The question is whether or not it should have
three or four copies of basically identical code to do it. Those who
recognize the inefficiency of this on every level (i.e., most of us)
agree that it should not.
The wheel was invented a long time ago, and several have been
installed in SDL. Someone argued that they should be the same brand.
And now we’re arguing about whether or not changing them constitutes
reinventing them or whether or not anyone’s concept of wheelness
falls under Copyright compatible with SDL.
What constitutes the concept of how to write a linked list is NOT
subject to Copyright, patent, or other intellectual property because
it is in no way novel, unique, or any sort of invention. Read some
examples of code showing how it’s done, understand them, and then
write it. You won’t have “copied” any of them unless you could be
said to have copied all of them. There’s only a couple of ways to do
a linked list, and they’re fundamentally all the same.
All this talk of using someone’s implementation is silly, because
every developer within eyeshot of this message should either be able
to write one or be taking this opportunity to learn how. Linked
lists are one of the basic building blocks of software development.
Any cleverness you may find in a given C-based implementation really
are attempt to circumvent the lack of abstraction in the language.
I’ve now devoted about three to five times the effort of doing the
work and testing it just writing this message. And, although I did
not personally test it myself, someone else DID actually write one
example of the code necessary already.
JosephOn Wed, Feb 05, 2014 at 05:23:28PM +0100, Daniel Gibson wrote:
“That’s easy, let’s just roll our own implementation instead of using
something existing that’s known to work” is pretty much the
definition of NIH.But I don’t really care in the end, it’s not my time that’s being
wasted by reinventing the wheelCheers,
DanielAm 05.02.2014 17:17, schrieb Melker Narikka:
I don’t think it makes much sense to try and rationalise the inclusion
of a whole library for something as straightforward as linked lists.
A “just one more header” approach doesn’t sound too clever to me.–
MelkerOn Wed, Feb 5, 2014 at 2:34 PM, Daniel Gibson wrote:
Am 05.02.2014 13:29, schrieb Gabriel Jacobo:
2014-02-05 Daniel Gibson <metalcaedes at gmail.com
<mailto:metalcaedes at gmail.com>>:Am 04.02.2014 22:49, schrieb Ryan C. Gordon: (perhaps for 2.0.3?). I'll have some spare time in a week and a half, so perhaps I can write a patch for one of these two options. I don't think we need a third-party library for linked lists. --ryan. NIH? Cheers, Daniel
Dependency hell, actually. One of the main under advertised features of
SDL is that “it just builds”–
Gabriel.sglib is just one header.
It could just be added to the SDL source => no additional external dependency.Cheers,
Daniel
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org