You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Instantly share code, notes, and snippets.
🦀
Daniel Henry-Mantilla
danielhenrymantilla
🦀
Thinking about the immortality of the 🦀
https://danielhenrymantilla.github.io
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Script to collect Rust workspace coverage using kcov
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Querying one's favorite search engine with the text "a monad is" yields this answer on StackOverflow,
which explains, in excruciating mathematical symbology, what a monad in fact is. But, don't worry. Understanding monads doesn't require
you to learn the nuances of such concepts as moirails and eigenfunctors.
I would suggest that the concept of monads can be distilled into a clearer single sentence.
A monad is a control abstraction that defines a composition of effectful functions.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Compiling rust libraries under Catalyst (macabi) on Ventura (macOS 13.1)
Fixing rust to support compiling libraries for use with Catalyst (Dec 2022)
The problem is that rustc emits synthetic libraries (symbols.o and lib.rmeta) which Apple's ld then chokes
on when targetting aarch64-apple-ios-macabi, as they lack an LC_BUILD_VERSION load command to identify them
as being intended for use with Catalyst.
The errors produced look like:
ld: in /Users/matthew/workspace/matrix-rust-sdk/target/aarch64-apple-ios-macabi/dbg/deps/libstatic_assertions-fdafb4b8ba800a8a.rlib(lib.rmeta), building for Mac Catalyst, but linking in object file built for , file '/Users/matthew/workspace/matrix-rust-sdk/target/aarch64-apple-ios-macabi/dbg/deps/libstatic_assertions-fdafb4b8ba800a8a.rlib' for architecture arm64