9 Dec 2020 |
@sturtz_nate:matrix.org | Redacted or Malformed Event | 20:16:34 |
@sturtz_nate:matrix.org | Redacted or Malformed Event | 20:30:46 |
@sturtz_nate:matrix.org | Redacted or Malformed Event | 20:30:55 |
@mott:matrix.org | Nice | 21:24:29 |
@sturtz_nate:matrix.org | Redacted or Malformed Event | 21:25:10 |
@sturtz_nate:matrix.org | Redacted or Malformed Event | 21:28:02 |
@mott:matrix.org | Okay. They will review it soon probably. | 21:30:50 |
@sturtz_nate:matrix.org | Redacted or Malformed Event | 21:48:49 |
10 Dec 2020 |
@petabyte:matrix.org | Instead of making some kind of configuration file, could we just load a struct from a file? | 23:11:20 |
@petabyte:matrix.org | I don't think it would work well, but I thought it would be worth sharing. | 23:11:37 |
11 Dec 2020 |
@sturtz_nate:matrix.org | Redacted or Malformed Event | 00:23:03 |
@sturtz_nate:matrix.org | Redacted or Malformed Event | 00:24:12 |
@petabyte:matrix.org | My what? | 00:30:28 |
@mott:matrix.org | In reply to @petabyte:matrix.org Instead of making some kind of configuration file, could we just load a struct from a file? That is why we have configuration formats. They are often much easier to parse than arbitrary structs. In addition, it is easier for someone to write in a configuration language than to write C structs. | 07:22:54 |
@mott:matrix.org | Also, C, unlike some other languages, cannot directly translate structs to strings or vice versa. | 07:23:28 |
@mott:matrix.org | Which would make it difficult to implement. | 07:23:41 |
Jonatan 畠山 Zeidler | And don't forget version management. You can extend a configuration file formats without destroying compatibility (if done right). You can't do that with serialized structs. | 08:55:11 |
Jonatan 畠山 Zeidler | And structs can be represented differently in memory depending on platform/compiler (e.g. padding). | 08:55:44 |
@petabyte:matrix.org | Of course. But I thought it would be worth mentioning | 13:09:03 |
@mott:matrix.org | It was. And it may have worked if not for those issues. | 13:10:50 |
@petabyte:matrix.org | Those were the main two points I thought of when thinking about it. | 13:35:46 |
@petabyte:matrix.org | Human readability and requiring a fixed size. | 13:37:11 |
13 Dec 2020 |
@sturtz_nate:matrix.org | Redacted or Malformed Event | 20:01:02 |
@sturtz_nate:matrix.org | Redacted or Malformed Event | 20:01:08 |
@sturtz_nate:matrix.org | Redacted or Malformed Event | 20:01:35 |
@sturtz_nate:matrix.org | Redacted or Malformed Event | 20:01:43 |
@mott:matrix.org | How does that work? | 20:01:52 |
@sturtz_nate:matrix.org | Redacted or Malformed Event | 20:02:24 |
@sturtz_nate:matrix.org | Redacted or Malformed Event | 20:02:54 |
@sturtz_nate:matrix.org | Redacted or Malformed Event | 20:03:01 |