42 karma · joined Aug 11, 2023 (3y ago) · 17 submissions
comment 8mo ago · link · parent
https://github.com/githubnext/monaspace/blob/main/docs/Textu...
comment 1y ago · link · parent
The blog post uses "random" in quotations as well in its title.
I call it O(1) because the ordering is fully determined just by choosing an arbitrary prime number. It's constant time to "reorder" the elements and also constant time to get the i'th element in the permutation. This is in contrast to something like the the Fisher-Yates shuffle which permutes the elements in O(n) time.
comment 1y ago · link · parent
https://lemire.me/blog/2017/09/18/visiting-all-values-in-an-...
comment 1y ago · link · parent
Example here: https://forums.swift.org/t/noncopyable-generics-in-swift-a-c...
An added plus is that the Swift compiler seems to stack-promote a lot more often, compared to class/ManagedBuffer implementations.
comment 1y ago · link · parent
Unfortunately, there isn't much regulation for supplements in general. Some companies do 3rd party purity testing, though it's not always the case.
comment 3y ago · link · parent
With Stable Diffusion, you're able to use LoRAs to introduce specific characters, objects, concepts, etc. while maintaining the same visual qualities of the base model.
Why can't something similar be done with an LLM?
comment 3y ago · link · parent
Android 1.0
Android 1.1
Android Cupcake
Android Donut
Android Eclair
Android Froyo
Android Gingerbread
Android Honeycomb
Android Ice Cream Sandwich
Android Jelly Bean
Android KitKat
Android Lollipop
Android Marshmallow
Android Nougat
Android Oreo
Android Pie
Android 10
Android 11
Android 12
Android 12L
Android 13
Android 14
Android 15comment 3y ago · link · parent
It's doc description seems to be closer to what you need than the `id()` modifier.
<https://developer.apple.com/documentation/swiftui/view/equat...>
> Prevents the view from updating its child view when its new value is the same as its old value.
Also, https://swiftwithmajid.com/2020/01/22/optimizing-views-in-sw...