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


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