Re: [OpenOCD-devel] [libusb] Announcing libusb-1.0.18 (as well as libusbx-1.0.18 *FINAL*)

2014-01-27 Thread Jens Bauer
Hi Pete.

On Sun, 26 Jan 2014 17:07:42 +, Pete Batard wrote:
 I, and many others, happen to think users of libusb deserve more than 
 one release in 4 years, even more so as continuous major development has 
 been going on.

I disagree.
If libusb works fine, no need to fix bugs that are not present.
If the USB standard does not change, no need to change the library.
Since libusb is a core library, I find it much more important that it stays 
reliable.
Each time there is a non-bugfix change to a library, there is a risk of 
introducing new bugs.

I'd personally prefer stable quality code over code that has features added 
every day.

OpenOCD is a good example; it's been an open wound for a while, but the current 
developers are very serious and focus on fixing bugs, rather than adding new 
features. In my opinion, that's the right way to go.

So I'd prefer that if there's a version of the USB library the has to be 
changed often, that it would have a different name; it would be fine to keep 
the name libusbx for this purpose, so that the name libusb would not deviate 
from it's previous stable reputation.


Love
Jens
--
To unsubscribe from this list: send the line unsubscribe linux-usb in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [OpenOCD-devel] [libusb] Announcing libusb-1.0.18 (as well as libusbx-1.0.18 *FINAL*)

2014-01-27 Thread Pete Batard

Hi Jens,

On 2014.01.27 12:25, Jens Bauer wrote:

On Sun, 26 Jan 2014 17:07:42 +, Pete Batard wrote:

I, and many others, happen to think users of libusb deserve more than
one release in 4 years, even more so as continuous major development has
been going on.


I disagree.
If libusb works fine, no need to fix bugs that are not present.


Shall I remind you that, the only reason people can run OpenOCD on 
Windows, using libusb (rather than libusbx) is that *we* pushed Peter, 
through the release of libusbx, to release his version of libusb 1.0.9, 
that was the first to include Windows support. If you followed his 
earlier dismissive comments on OpenOCD and elsewhere about the Windows 
backend being subpar, then you can only come to the logical conclusion 
that he would probably never have released otherwise (since there hasn't 
been any other release of libusb until this new one).


So, you are basically implying that it was fine for OpenOCD to remain 
officially unavailable on Windows, until such time Peter felt that the 
Windows backend was to his liking.


But in the same sentence, you also kind of prove my point that, if the 
Windows backend was as subpar as Peter makes it to be, you couldn't 
really be saying that libusb works fine for your purpose, since I 
don't recall seeing much complaint from OpenOCD Windows users on our lists.


Furthermore, we also did fix some pretty major bugs since libusb 1.0.9 
was released (please take a look at our Changelog). Or are you under the 
impression that libusb is a lot more stable and much less in need of 
development and bugfix than OpenOCD?


You may have been lucky to never run into a libusb bug when using 
OpenOCD. But I think the vast majority of OpenOCD and libusb users will 
prefer relying on actual bug fixes, from an up to date library, rather 
than luck.



If the USB standard does not change, no need to change the library.


Ah, but the USB standard did change, and we did add support for a bunch 
of newly introduced USB 3.0 constructs (BOS, etc).


Also, if you are planning to use OpenOCD through an USB 3.0 controller 
on Windows 7, you very much want to use the latest libusb, as we have to 
regularly add the names of new HCD root hubs (which each manufacturer 
provides) into the library. Without this, you can forget about using 
OpenOCD through an USB 3.0 port.


This is very straightforward low risk fix to add (and we actually did 
one of those in this release - VIA xHCI support).


Do you really want to tell Windows 7 users with a VIA USB 3.0 
controller, and that want to use OpenOCD to access an FTDI device for 
instance, that they are MUCH better off waiting a couple of years for a 
more stable libusb release (whatever that means)?



Since libusb is a core library, I find it much more important that it stays 
reliable.


Which is our goal.

Contrary to Peter's propaganda, we are committed to fixing, improving, 
and trying to make libusb more reliable.


It looks to me like Peter seems to be under this weird impression that 
any software development that isn't under his direct control can only be 
rushed and have complete disregard for stability.


But if your idea of stability, when there are very important bug to fix 
as well as much requested features to add (such as hotplug), is to only 
release once in 5 years, I think you are mistaking stability for immobility.



Each time there is a non-bugfix change to a library, there is a risk of 
introducing new bugs.


Should you advise the cancellation the next release of OpenOCD then?

If not, it makes no more sense to be against this release of libusb as 
it is to be against the next release of OpenOCD. That is, unless you 
consider that, unlike OpenOCD ones, the current libusb developers and 
mailing list contributors are just a bunch of amateurs who have little 
clue on how to develop serious, stable code. But if that is the case, I 
will kindly ask you to try to back up what made you reach this 
conclusion with facts, rather than hearsay.



I'd personally prefer stable quality code over code that has features added 
every day.


Hyperbole. Disproved below.


OpenOCD is a good example; it's been an open wound for a while, but the current 
developers are very serious and focus on fixing bugs, rather than adding new 
features.


OK, so Peter's propaganda has worked, and you are under the impression 
that the current libusb development team and contributors are NOT 
serious, don't care about bugs and just want to add shiny features.


If perusing through the libusb-devel and libusbx-devel mailing lists is 
not enough to prove the opposite, let me show you our Changelog then, 
for 1.0.17 (libusbx, released 5 months ago) to 1.0.18, and which was 
linked in the announcement (http://log.libusb.info):


  2014-01-25: v1.0.18
  * Fix multiple memory leaks
  * Fix a crash when HID transfers return no data on Windows
  * Ensure all pending events are consumed
  * Improve Android and ucLinux support
  

Re: [OpenOCD-devel] [libusb] Announcing libusb-1.0.18 (as well as libusbx-1.0.18 *FINAL*)

2014-01-27 Thread Jens Bauer
Hi Pete.

What you are saying to me is meaningless.

On Mon, 27 Jan 2014 13:59:22 +, Pete Batard wrote:
 OK, so Peter's propaganda has worked.

Pete, you are young and have many good qualities. One of them is to analyze and 
find errors.
But you have a problem. You feel attacked whenever anyone says something that 
you do not agree with.
You start to defend yourself, instead of trying to understand the actual 
problem, thus you misunderstand people around you.
If you do not try to understand the problems, you will end up fixing the wrong 
errors and mark the errors fixed.
The errors won't go away that way. You need to understand what people are 
saying instead of pretending that you understand.
I am aware that you will feel attacked by what I'm writing, but that's not the 
purpose; the purpose is that you become aware of this, so you will have a 
chance of winning.


Love
Jens
--
To unsubscribe from this list: send the line unsubscribe linux-usb in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [OpenOCD-devel] [libusb] Announcing libusb-1.0.18 (as well as libusbx-1.0.18 *FINAL*)

2014-01-27 Thread Pete Batard

On 2014.01.27 20:44, Jens Bauer wrote:

Pete, you are young


Not a good start.

What if I told you I started programming in the mid 80s? Do I still qualify?


But you have a problem. You feel attacked whenever anyone says something that 
you do not agree with.


Yes, I tend to be annoyed when people seem to suggest to go against what 
the majority of our collective users and contributors has regularly 
expressed they wanted which is: a single libusb, where bugs get fixed on 
regular basis, and where much requested features, such as hotplug 
support, do make it into a release.


If your suggestion wasn't that it might be for the best if libusb was 
split into 2 separate projects, again, right after we finally managed to 
undo the earlier split which the vast majority of all of us (users, 
contributors, maintainers) would really have preferred to do without, 
then please clarify.


Also, as you should know, most projects, that have the capacity, tend to 
go around with a development branch and a stable branch, which is 
actually also something we've been toying about, with a long proposed 
but yet to be implemented 2.0 branch. How comes you didn't mention 
something like that?


So yeah, I am flabbergasted as to why you would even *remotely* suggest 
to go back to splitting libusb, especially when your argument appears to 
boil down to one's subjective perception of stability associated with a 
name.



instead of trying to understand the actual problem


You can try to clarify how one is to interpret what you said earlier. Or 
you can go on a meaningless ad-hominen. Your choice.


Regards,

/Pete

--
To unsubscribe from this list: send the line unsubscribe linux-usb in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html