logo

drewdevault.com

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

Status-update-February-2021.html (2349B)


  1. ---
  2. title: Status update, February 2021
  3. date: 2021-02-15
  4. ---
  5. <p>
  6. Salutations! It's officially a year of pandemic life. I hear the vaccine
  7. distribution is going well, so hopefully there won't be another year of this. In
  8. the meanwhile, I've been working hard on free software, what with having little
  9. else to do. However, I'm afraid I cannot tell you about most of it!
  10. <p>
  11. I've been working on todo.sr.ht's GraphQL API, and it's going quite well. I hope
  12. to ship a working read-only version later this month. There have been a number
  13. of bug fixes and rote maintenance work on sr.ht as well, but nothing
  14. particularly exciting. We did upgrade everything for Alpine 3.13, which went off
  15. without a hitch. Anyway, I'll go over the minor details in the sr.ht "what's
  16. cooking" post later today.
  17. <p>
  18. The rest of the progress was made in secret. Secret! You will have to live in
  19. ignorance for now. Sorry!
  20. <details>
  21. <summary>(unless you click this)</summary>
  22. <p>Here's a peek at our progress:</p>
  23. <pre>
  24. use fmt;
  25. use io;
  26. use os;
  27. export fn main() void = {
  28. if (len(os::args) == 1) match (io::copy(os::stdout, os::stdin)) {
  29. err: io::error =&gt; fmt::fatal("Error copying &lt;stdin&gt;: {}",
  30. io::errstr(err)),
  31. size =&gt; return,
  32. };
  33. for (let i = 1z; i &lt; len(os::args); i += 1) {
  34. let f = match (os::open(os::args[i], io::mode::RDONLY)) {
  35. s: *io::stream =&gt; s,
  36. err: io::error =&gt; fmt::fatal("Error opening {}: {}",
  37. os::args[i], io::errstr(err)),
  38. };
  39. defer io::close(f);
  40. match (io::copy(os::stdout, f)) {
  41. err: io::error =&gt; fmt::fatal("Error copying {}: {}",
  42. os::args[i], io::errstr(err)),
  43. size =&gt; void,
  44. };
  45. };
  46. };
  47. </pre>
  48. <p>
  49. I'm looking for a few volunteers to get involved and help flesh out the standard
  50. library. If you are interested, please email
  51. <a href="mailto:sir@cmpwn.com">sir@cmpwn.com</a> to express your interest,
  52. along with your sr.ht username and a few words about your systems programming
  53. experience &mdash; languages you're comfortable with, projects you've worked
  54. on, platforms you grok, etc.
  55. </p>
  56. </details>