AdventOfCodeGlobal
swift
AdventOfCodeGlobal | swift | |
---|---|---|
1 | 220 | |
0 | 66,270 | |
- | 0.5% | |
7.7 | 10.0 | |
6 months ago | 7 days ago | |
TypeScript | C++ | |
- | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
AdventOfCodeGlobal
-
-🎄- 2022 Day 5 Solutions -🎄-
Day 05 Solution
swift
-
Apple didn't fix Swift's biggest flaw
Yes, I've never written a line of Swift, but these cases don't seem to be of the usual variety that cause Hindley-Milner to blow up. It seems like the Swift compiler source is available, and these test cases are small. This is encouragement for someone to spend a small amount of time digging into this, just for the curiosity of it. I'll give you my next upvote on HN when you write up your results.
https://static.aminer.org/pdf/20170130/pdfs/popl/o8rbwxmj6h2...
https://github.com/apple/swift
-
Optimizing 128-bit Division (2020)
Lenore’s approach uses rejection sampling, which translates to needing an uncertain amount of input — a uint128 may or may not be enough.
But there is one related algorithm that doesn’t: https://github.com/apple/swift/pull/39143. This method only requires (output word size + 64) bits, which is really convenient for us since we probably don’t have 2^64 buckets.
With this method the output value will be very not-scrambled relative to the high bits of the hash. Now whether that’s a problem is… someone else’s question.
-
Swift's native Clocks are inefficient
https://github.com/apple/swift/pull/73429
-
Evolving the Go Standard Library with math/rand/v2
This algorithm produces biased result with probability 1/2^(32-bitwidth(N)). Using 64 or 128 random bits can make the bias practically undetectable. Comprehensive overview of the approach can be found here: https://github.com/apple/swift/pull/39143
- Swift: Differentiable Programming Manifesto
-
Embedded Swift on the Raspberry Pi Pico
Because of C/C++ interop, and integration with CMake, you can just add Swift to a Zephyr project and it pretty much Just Works. [The docs](https://github.com/apple/swift/blob/main/docs/EmbeddedSwift/...) should mostly apply to the Zephyr SDK as well.
-
A Deep Dive Into Observation: A New Way to Boost SwiftUI Performance
Fortunately, the Observation framework is part of the Swift 5.9 standard library. We can learn more information by examining its source code.
-
Swift was always going to be part of the OS
They do! See https://github.com/apple/swift/blob/main/docs/LibraryEvoluti...
You can also see an example of what a different high level language integration with Swift ABI looks like here: https://github.com/dotnet/designs/blob/main/proposed/swift-i...
-
Differentiable Swift
So is differentiable Swift a package for Swift or is it part of the Swift standard library? The video says go to swift.org but I can't find any info about differentiable Swift on that site.
-
Beyond Backpropagation - Higher Order, Forward and Reverse-mode Automatic Differentiation for Tensorken
Swift's Differentiable Programming Manifesto. Swift has a powerful differentiable programming component, integrated with the compiler.
What are some alternatives?
solidity - Solidity, the Smart Contract Programming Language
cpp-lazy - C++11/14/17/20 library for lazy evaluation
Elixir - Elixir is a dynamic, functional language for building scalable and maintainable applications
tree-sitter - An incremental parsing system for programming tools
hummingbird - Hummingbird compiles trained ML models into tensor computation for faster inference.
lobster - The Lobster Programming Language
swift-evolution - This maintains proposals for changes and user-visible enhancements to the Swift Programming Language.
mimalloc - mimalloc is a compact general purpose allocator with excellent performance.
Enzyme.jl - Julia bindings for the Enzyme automatic differentiator
sourcekit-lsp - Language Server Protocol implementation for Swift and C-based languages
dioxus - Fullstack GUI library for web, desktop, mobile, and more.
fastapi - FastAPI framework, high performance, easy to learn, fast to code, ready for production