28 Sep 2023 |
| nick_06622 joined the room. | 04:09:02 |
| .bignick123 joined the room. | 04:13:47 |
| zhilty4 joined the room. | 04:27:09 |
| danielhinton joined the room. | 14:36:37 |
| econbuddy_35453 joined the room. | 15:13:11 |
| imyjimmy joined the room. | 15:15:37 |
29 Sep 2023 |
ethantuttle | https://gitlab.com/lightning-signer/validating-lightning-signer | 14:39:43 |
ethantuttle | HSM signer. 🤔 | 14:39:52 |
| phenomenal_chipmunk_71164 joined the room. | 17:20:32 |
| jdcs9001 joined the room. | 17:32:14 |
| thenateway joined the room. | 22:20:33 |
1 Oct 2023 |
| cmb24k_57585 joined the room. | 02:50:55 |
| geoffreylgv joined the room. | 07:19:18 |
| sukram68 joined the room. | 20:52:57 |
2 Oct 2023 |
| godination joined the room. | 08:09:35 |
| @temp4096:matrix.org joined the room. | 13:02:09 |
3 Oct 2023 |
| @temp4096:matrix.org left the room. | 09:03:20 |
ethantuttle | https://fountain.fm/episode/00mcOBgkHHyDryS2AOQY
Fedimint mention in the wild. shaurya947_61140 this project might be of interest in your current project. | 19:15:07 |
shaurya947_61140 | Nice will check it out. It estimates average daily price, that might not be good enough for us at first thought.. but maybe it could come in handy some day as a backup of sorts | 19:31:31 |
ethantuttle | It’s a price oracle that won’t go bankrupt. 🤷♂️ | 19:32:05 |
4 Oct 2023 |
| gillbates369 joined the room. | 11:02:15 |
5 Oct 2023 |
| szach joined the room. | 00:24:06 |
| arshbot joined the room. | 13:54:16 |
6 Oct 2023 |
ethantuttle | Was attempting to do Rust things and came across this: https://github.com/ibraheemdev/derive-alias
Since I see a whole lot of: #[derive(Debug, Clone, Eq, PartialEq, Hash, Serialize, Deserialize, Encodable, Decodable)] repeated a bunch.
Is there a reason why this would be bad? | 01:32:36 |
dpcpw | Needs to be proc-macro for me to consider using it. 😄 | 02:41:49 |
| bigcurtncost.testnet joined the room. | 08:20:59 |
| himori123 joined the room. | 09:19:24 |
ethantuttle | Tbh. Idk what that means | 11:47:29 |
shaurya947_61140 | Rust has two different kinds of macros: declarative macros (declared with macro_rules!) and procedural macros. Both kinds of macros allow you to write code that writes more code and is evaluated at compile time, but they work in very different ways.
from https://blog.logrocket.com/procedural-macros-in-rust/ | 14:00:17 |
ethantuttle | Source of the derive-alias crate I found: https://stackoverflow.com/questions/56450533/is-there-a-way-to-alias-multiple-derives-as-a-single-one
It explains why it doesn't use proc-macros. To quote
As you mentioned, emitted attributes must be attached to an item, making a proc-macro like this impossible:
#[proc_macro_derive(Num)]
pub fn num_derive(_: TokenStream) -> TokenStream {
let gen = quote! {
#[derive(Eq, PartialEq, Ord, PartialOrd)]
};
gen.into()
}
proc-macros also come with the hassle of having to be defined in a separate crate, so generating them, or creating simple ones for ergonomic reasons is not worth it. | 15:10:08 |