Compare commits

...

4 Commits

5 changed files with 78 additions and 2 deletions

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
*.swp
go.mod
go.sum

27
LICENSE Normal file
View File

@ -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.

46
README.md Normal file
View File

@ -0,0 +1,46 @@
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.
This probably won't work because of src/runtime/coro.go
But, it might fucking limp along and maybe fucking compile
enough of some sort of monster that'll work enough to
get out of some mess and help find and build golang 1.24
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.
coro.go patch:
~/go/src/go.googlesource.com/go/src/iter$ git whatchanged -1 -p a9c9cc07ac0d3dc73865a57e6ce45c22ada3b5c9

View File

@ -209,7 +209,7 @@ And then a client could delete boring values from the tree using:
package iter
import (
"internal/race"
"go.wit.com/iter/race"
"runtime"
"unsafe"
)

View File

@ -7,7 +7,7 @@
package race
import (
"internal/abi"
"go.wit.com/iter/abi"
"unsafe"
)