Ecosyste.ms: OpenCollective
An open API service for software projects hosted on Open Collective.
Hackpad
We strive for making code editing in the browser a powerful, streamlined experience.
Collective -
Host: opensource -
https://opencollective.com/hackpad
- Website: https://hackpad.org
- Code: https://github.com/hack-pad
Pointer types may appear in expressions *P and we don't know if
we have an indirection (P is a p...
Address several areas where documentation was inaccurate or unclear
regarding generic types. Als...
The -p flag specifies the import path of the package being compiled.
This CL makes it required w...
This is a feature that is not understood well enough and may have
subtle repercussions impacting...
Git versions before v2.10.0 do not support --no-show-signature.
Using "-c" allows Git to ignore ...
When building the inlining deck, correctly identify which is the last
frame in the deck. Otherwi...
Unified IR wasn't marking instantiated generic functions as DUPOK,
even though they can appear i...
In function prologue and epilogue, we save and restore FP and LR
registers, and adjust RSP. The ...
This CL adds the defines for ABI registers on riscv64.
Updates #40724
Change-Id: I53a89d88b6fe...
github.com/hack-pad/go - 1045faa38c660b8a0ac3fbf5b0a01dde26a3cf75 authored over 2 years ago by Meng Zhuo <[email protected]>
One of the files in CompileGoFiles is actually _cgo_import.go, but
that file is only generated f...
Type parameter lists are not ambiguous for function declarations in the
way that they are ambigu...
Given that we have seen failures with the same failure mode on both
openbsd/arm and android/arm6...
As a follow-up to https://golang.org/cl/371474, add the OS version to
the metadata printed for e...
Knowing whether test failures are correlated with specific CPU models on
has proven useful on se...
When describing call stacks that include inlined function calls, the
runtime uses "fake" PCs to ...
All other platforms providing the pipe2 syscall already implement it
that way. Do so as well on ...
All platforms with the pipe2 syscall now provide syscall.Pipe2. Use it
to implement os.Pipe.
T...
github.com/hack-pad/go - 085ef537c4a2c57d373e72f4a110d9fae9a287be authored over 2 years ago by Tobias Klauser <[email protected]>Other platforms already define Pipe2, so add it for solaris as well.
Change-Id: If0d2dfc9a36134...
github.com/hack-pad/go - de8ddd97accb417450db014d1f45723515cb5d80 authored over 2 years ago by Tobias Klauser <[email protected]>
This test was failing locally in my clone of the go repo due to a Git
branch ending in ".go", wh...
Also switch float64 NaN encoding to use hexadecimal, and accept
hexadecimal encoding for all oth...
If you attempt to instantiate a generic type or func and run 'go build'
with a language version ...
Implement compare using loops that process 32 bytes, 16 bytes, 4 bytes
or 1 byte depending on si...
Implement memequal using loops that process 32 bytes, 16 bytes, 4 bytes
or 1 byte depending on s...
The fieldtrack support is experimental and used mainly inside Google,
where we have included thi...
The old code picks a random number n and then tests n, n+2, n+4, up to
n+(1<<20) for primality b...
Type inference for types was always a "nice to have" feature.
Given the under-appreciated comple...
When framesize <= objabi.StackSmall, 128B, the stacksplit prologue is:
MOVD 16(g), R16
MOVD ...
Replace 24 spaces added in CL 389434 with 3 tabs,
so the new line is indented like other lines a...
This should always be true, but use the HWCAP2 bit anyways.
Change-Id: Ib164cf05b4c9f0c509f41b7...
github.com/hack-pad/go - d9d55724bd8ff10d8de5c13fd77122a37ac73719 authored over 2 years ago by Paul E. Murphy <[email protected]>Change-Id: I4e09d4f2cc77c4c2dc12f1ff40d8c36053ab7ab6
github.com/hack-pad/go - f49279383901af656e40f225eb67ff62f507e13d authored over 2 years ago by David Chase <[email protected]>
This patch allows to zerocopy using MultiReader.
This is done by MultiReader implementing Writer...
This change includes several smaller changes based on feedback
received so far.
These changes w...
github.com/hack-pad/go - 3bb90a278a09c889fe936b2c5053116e48312ba2 authored over 2 years ago by Robert Griesemer <[email protected]>
go/build is one of the packages that contributes the most towards
cmd/go's init cost, which adds...
Inference for type instances has dependencies on type-checking order
that can lead to subtle bug...
Fixes #50887
Change-Id: I451d66b067badcfb7cf2e2756ea2b062366ac9d4
Reviewed-on: https://go-revie...
Due to instance de-duplication, we were failing to record some type
instances in types.Info.Inst...
In Checker.typInternal, the SelectorExpr case was the only case that
didn't either set or pass a...
Change-Id: I64d00d523092dc3cce6d2787c26bb7897ff0812e
Reviewed-on: https://go-review.googlesource...
The comparable bit was handled incorrectly. This CL establishes
a clear invariant for a type set...
Now that we always use types2 to validate user source code, we can
remove the constSet logic fro...
This makes it easier to figure out where the crash is occurring.
Change-Id: Ie1f78a360367090dcd...
github.com/hack-pad/go - cc9d3f548a0265124766dfdb45e77cf05579219d authored over 2 years ago by Michael Pratt <[email protected]>
Previous value used in the float32 roundtrip used float32(math.NaN())-1
which caused the quiet/s...
The test case is already working with unified IR, so add it to make
sure we don't regress while ...
This CL changes unified IR to include itabs in its serialized
dictionary format.
Change-Id: I33...
github.com/hack-pad/go - ac3ba9790762113bbc4ce1e8068654ce9579d3d6 authored over 2 years ago by Matthew Dempsky <[email protected]>
None of the current generic type switch test cases exercise type
switches where the instantiated...
This CL switches unified IR to using ir.DynamicType for derived
types. This has an immediate eff...
A few of the tests were printing garbage to stderr,
since FlagSet's default Output is os.Stderr:...
Before #46477, the Go generics proposal allowed `type T = U` where `U`
was an uninstantiated gen...
We shouldn't need to read in function bodies for new functions found
during inlining, but someth...
Change-Id: I7dfae0fc91c2d70873ec7ec920be7c0a4888153a
Reviewed-on: https://go-review.googlesource...
Fixes #51419
Change-Id: I0a32f41a6e6e01481ad58c7dddb57ec7085d77af
Reviewed-on: https://go-revie...
Change-Id: I7389da0c3a63fea3be5c820f2ce0d0168a95ab4c
Reviewed-on: https://go-review.googlesource...
Use dup3(oldfd, newfd, O_CLOEXEC) to atomically duplicate the file
descriptor and mark is as clo...
Fixes #51196.
Change-Id: I0ee4d8234f11e4f3b71b81546518647e07fafd7d
GitHub-Last-Rev: 8fd1a77adff...
Improve the test coverage of encoding/xml package by adding
the test cases for the execution pat...
Fixes #51258
Change-Id: I3c8b785ac912d66e1a6e2179625e6903032b8330
Reviewed-on: https://go-revie...
In a recent change CL 388654 a function was updated so it
no longer needed stack space, but the ...
For #51153
Change-Id: I4374c63498b62ba7a08f146eebd034cbd50623f6
Reviewed-on: https://go-review....
It's more trouble than it's worth. New code should be using x/sys/unix
anyhow.
Fixes #40564
Fix...
An extra "go build" was happening, for the sake of -tags=testgo,
which would insert some extra b...
This should be a bit faster and slicker than the very old ANSI X9.31,
which relied on the system...
The X9.31 expander is now only used for plan9. Perhaps once upon a time
there was a use for abst...
Import the following commits (and minor comment fixes):
* 17a0e59 - field: fix heap escape ...
github.com/hack-pad/go - 27ec2bf0dd67a11036626cef26899df7280b0000 authored over 2 years ago by Filippo Valsorda <[email protected]>Code essentially mirrors AMD64 implementation.
Change-Id: Ie97627a3041d1858fb1a30d2fc500302ab40...
github.com/hack-pad/go - 81767e23c2f0e3edf0a329d9f00f5683c9851692 authored over 2 years ago by eric fang <[email protected]>For #45713
Change-Id: Ia2901cbfc5deb52503e74fcf9dff26a56ec582c3
Reviewed-on: https://go-review....
Otherwise, the behavior of 'go work use -r' (without arguments)
may be surprising.
Change-Id: I...
github.com/hack-pad/go - 4f8094386c3c015f6b6f3efc3a002d188433d388 authored over 2 years ago by Bryan C. Mills <[email protected]>Fixes #51448
Change-Id: I86719b55037c377eb82154e169d8a9bbae20b77c
Reviewed-on: https://go-revie...
On Linux, the minimum required kernel version for Go 1.18 was be changed
to 2.6.32, see #45964. ...
The finalizer is called using reflectcall. When register ABI is
used, the finalizer's argument i...
Both endians perform syscalls similarly. Only CR0S0 and R3 hold
the resultant status of a syscal...
CL 386017 added new API for encoding/binary package.
This file was accidentally not updated in t...
Also correct scope position for such variables.
Adjusted some comments.
Fixes #51437.
Change-I...
github.com/hack-pad/go - d3fe4e193e387f250ba53a80f669eac465b1641d authored over 2 years ago by Robert Griesemer <[email protected]>
The preferred form of nop is ori 0,0,0. What was being generated was
or 0,0,0.
Fix a quirk in t...
github.com/hack-pad/go - 86371b0360302b68c29f5eb39b02b82a52e0e341 authored over 2 years ago by Paul E. Murphy <[email protected]>
Workaround the minor endian differences, and avoid needing to
stack a frame as extra VSRs can be...
The test to enter the 32b copy loop always fails, and execution
falls back to a single 8B/iterat...
The existing codegen strategy in sort.go relied on parsing the sort.go source
with go/ast and a ...
This adds an asm implementation of aes-cbc for ppc64le to
improve performance. This is ported fr...
For #51390
Change-Id: I805e66809b2aafb48f7040dee72910dd7d6c1396
Reviewed-on: https://go-review....
Fixes #51442
Updates #50051
Change-Id: I1bfbc08c907077467fd50febbec6299a9b73af41
Reviewed-on: h...
Async preemption needs to save and restore almost all of the registers,
currently this is done b...
Advertise to DNS resolvers that we are willing and able to accept up
to 1232 bytes in a DNS pack...
This CL is a bit overkill, but it is pretty safe for 1.18. We'll
want to revisit for 1.19 so we ...
This template is based on CL 342070 and previous ones like it.
Continue to eagerly include often...
The Go 1 compatibility guarantee permits us to break code if there is
a specification error or a...
Introduced in CL 347917.
Change-Id: I99b34341f787e779bd45b967110e70a035fa6558
Reviewed-on: http...
This adds big endian support for the assembly implementation of
sha512. There was a recent reque...
AppendByteOrder specifies new methods for LittleEndian and BigEndian
for appending an unsigned i...
Modify Value.Bytes to be callable addressable byte arrays.
While related, the behavior of Value....
For #29666
Change-Id: Ibae3d75bb2c19571c8d473cb47d6c4b3a880bba8
Reviewed-on: https://go-review....
accept is no longer used on Linux since CL 346849 changed Accept to use
accept4 only.
For #4596...
github.com/hack-pad/go - 6c6a8fb702fcf3c2d23dc68976a831b2bdcad03e authored over 2 years ago by Tobias Klauser <[email protected]>
The latter returns a uintptr, while the former returns a unsafe.Pointer.
A uintptr is unsafe if ...
For cases where RFC 1952 requires a field, the code returns the error
io.ErrUnexpectedEOF except...
cmd/compile uses "noalg.struct {...}" as type name when hash and eq algorithm generation of this...
github.com/hack-pad/go - f79a983891123f57dd7d37d09a51a287ac6d4cad authored over 2 years ago by MoZhonghua <[email protected]>Correct the slice expression in the description of Index functions.
Change-Id: I97a1b670c4c7e60...
github.com/hack-pad/go - 40e24a942bce7b10e23a7282e673ac8a758ca378 authored over 2 years ago by Jinwook Jeong <[email protected]>
The benchmarks added in this change revealed that ValidString
runs ~17% faster than Valid([]byte...
If name is empty or a keyword, we can skip the loop entirely.
Otherwise, we do the same amount o...
Fixes #50940.
Change-Id: Ie2a0c4505ca9d7e448017d9d00a020a6b3996be3
GitHub-Last-Rev: afd8c6b5598...
Confirm that the current implementation of core type unification
looks correct and update the re...
When doing constraint type inference, we must consider whether the
constraint's core type is pre...
Currently we only include static entries in the hint for sizing
the map when allocating a map fo...