logo

drewdevault.com

[mirror] blog and personal website of Drew DeVault git clone https://hacktivis.me/git/mirror/drewdevault.com.git

Status-update-July-2021.md (2481B)


  1. ---
  2. title: Status update, July 2021
  3. date: 2021-07-15
  4. ---
  5. Hallo uit Nederland! I'm writing to you from a temporary workstation in
  6. Amsterdam, pending the installation of a better one that I'll put together after
  7. I visit a furniture store today. I've had to slow a few things down somewhat
  8. while I prepare for this move, and I'll continue to be slower for some time
  9. following it, but things are moving along regardless.
  10. One point of note is that the maintainer for [aerc][0], Reto Brunner, has
  11. stepped down from his role. I'm looking for someone new to fill his shoes;
  12. please [let me know][1] if you are interested.
  13. [0]: https://aerc-mail.org
  14. [1]: mailto:sir@cmpwn.com
  15. As far as the language project is concerned, there has been some significant
  16. progress. We've broken ground on the codegen rewrite, and it's looking much
  17. better than its predecessor. I expect progress on this front to be fairly quick.
  18. In the meanwhile, a new contributor has come onboard to help with floating-point
  19. math operations, and I merged their first patch this morning — adding
  20. math::abs, math::copysign, etc. Another contributor has been working in a
  21. similar space, and sent in an f32-to-string function last week. I implemented
  22. DNS resolution and a "dial" function as well, which you can read about in my
  23. [previous post about a finger client][2].
  24. [2]: /2021/06/24/finger-client.html
  25. I also started writing some POSIX utilities in the new language for fun:
  26. ```hare
  27. use fmt;
  28. use fs;
  29. use getopt;
  30. use io;
  31. use main;
  32. use os;
  33. export fn utilmain() (io::error | fs::error | void) = {
  34. const cmd = getopt::parse(os::args);
  35. defer getopt::finish(&cmd);
  36. if (len(cmd.args) == 0) {
  37. io::copy(os::stdout, os::stdin)?;
  38. return;
  39. };
  40. for (let i = 0z; i < len(cmd.args); i += 1z) {
  41. const file = match (os::open(cmd.args[i])) {
  42. err: fs::error => fmt::fatal("Error opening '{}': {}",
  43. cmd.args[i], fs::strerror(err)),
  44. file: *io::stream => file,
  45. };
  46. defer io::close(file);
  47. io::copy(os::stdout, file)?;
  48. };
  49. };
  50. ```
  51. We're still looking for someone to contribute in cryptography, and in date/time
  52. support &mdash; please [let me know][1] if you want to help.
  53. In SourceHut news, I have mostly been focused on writing the GraphQL API for
  54. lists.sr.ht. I have made substantial progress, and I had hoped to ship the first
  55. version before publishing today's status updates, but I was delayed due to
  56. concerns with the move abroad. I hope to also have sr.ht available for Alpine
  57. 3.14 in the near future.