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.gmi (2408B)


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