From 1bc3902d9882e77bbb4662dc4ed8bf04bde15683 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 19 Mar 2025 06:40:06 -0500 Subject: [PATCH] now using the awesome golang 1.24 'iter' --- LICENSE | 27 +++++++++++++++++++++++++++ README | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 LICENSE create mode 100644 README diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..2a7cf70 --- /dev/null +++ b/LICENSE @@ -0,0 +1,27 @@ +Copyright 2009 The Go Authors. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above +copyright notice, this list of conditions and the following disclaimer +in the documentation and/or other materials provided with the +distribution. + * Neither the name of Google LLC nor the names of its +contributors may be used to endorse or promote products derived from +this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/README b/README new file mode 100644 index 0000000..7315433 --- /dev/null +++ b/README @@ -0,0 +1,39 @@ +PLEASE ACCEPT MY APPOLOGIES FOR DOING THIS. +I DID THIS TO MAKE OLD VERSIONS OF GO WORK. + + +If you are reading this, I'm sorry. + +GO 1.24 added 'iter' and it is awesome. I want to use +it and I've converted autogenpb to use it in the auto +generated Sort() and Gui() functions. + +The problem is I have so many systems and os's to support +that I can't be sure that I can even get version 1.24 installed +which means I can't even compile the tooling I need +to figure out what is going on. + +This is because there are so many embedded riscv half ass, broken, +or poorly configured enviornments that there are no known things. +Then there are all the hardware design enviornments that are +complicated. (skywater, tiny tapeout, efabless, etc devs) + +It's probably going to take me all year to convert everything +and even know if I can get version 1.24 to work everywhere. + +This package is more difficult than it should be because +I couldn't use: + + internal/race + internal/abi + internal/goarch + +I would vote against having anything in the compiler marked +as internal/ other than an example of how that feature +works for the developers that want it. It is NOT a feature +the compiler itself should use. I would suggest making + + /internal/example + +This package would be better as golang.org/iter but I don't +know who to ask about doing that.