LiarPrincess

Results 27 issues of LiarPrincess

First batch of tests from [Violet - Python VM written in Swift](https://github.com/LiarPrincess/Violet) (connected to [ #98 Using tests from “Violet - Python VM written in Swift”](https://github.com/attaswift/BigInt/issues/98)). # Test failures ##...

Hi, Recently I had to write my own `BigInt` implementation for [Violet - Python VM written in Swift](https://github.com/LiarPrincess/Violet). Internally I decided to use [ManagedBufferPointer](https://developer.apple.com/documentation/swift/managedbufferpointer) instead of Swift `Array`. The whole...

Hi, As I mentioned in [#97 Using `ManagedBufferPointer` instead of `Array` as a storage](https://github.com/attaswift/BigInt/issues/97) I also implemented my own version of `BigInt` for [Violet - Python VM written in Swift](https://github.com/LiarPrincess/Violet)....

From [developer.apple.com/ManagedBufferPointer/Capacity](https://developer.apple.com/documentation/swift/managedbufferpointer/1641779-capacity): > This value may be nontrivial to compute; it is usually a good idea to store this information in the “header” area when an instance is created. #...

enhancement

Test `-Xswiftc -cross-module-optimization` compilation flag for release. Described in: - [vapor](https://github.com/vapor/template/blob/main/Package.swift#L25) - [swift-server](https://github.com/swift-server/guides/blob/main/docs/building.md#building-for-production)

enhancement

Currently we use [GenericLayout](https://github.com/LiarPrincess/Violet/blob/main/Sources/Objects/Memory/GenericLayout.swift) to calculate offsets of PyObject members ([like this](https://github.com/LiarPrincess/Violet/blob/0a4268649b0eec3ab631d19015d7043394c6571e/Sources/Objects/Generated/Types%2BGenerated.swift#L4157)). Instead we could do the usual `offset/size` dance: ```Swift extension PyObject { public static let member2Offset = calculateOffset(...

enhancement

# CPython In CPython they use manual reference counting: - each object has a reference count and an address of the previous and the next allocated object (doubly linked list)...

enhancement

Currently we store tuple elements inside Swift array (elements: `[PyObject]`). The better idea would be to allocate more space after the tuple and store elements there (this is called flexible...

enhancement

According to [About billing for GitHub Actions](https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions) the macOS minute costs 10 units. Given that a [single build + tests take 6 min](https://github.com/LiarPrincess/Violet/pull/5/checks) this is 60 units for a single...

help wanted
good first issue

With the new object model (see: #1) it should be possible to run unit tests with `--parallel` enabled (because `py` is no longer a global variable). Maybe. Probably… - `UnicodeDataDoesNotCrashTests....

enhancement