logo

drewdevault.com

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

Status-update-April-2021.md (2105B)


  1. ---
  2. title: Status update, April 2021
  3. date: 2021-04-15
  4. ---
  5. Another month goes by! I'm afraid that I have very little to share this month.
  6. You can check out the [sourcehut "what's cooking" post][0] for sourcehut news,
  7. but outside of that I have focused almost entirely on the programming language
  8. project this month, for which the details are kept private.
  9. [0]: https://sourcehut.org/blog/2021-04-15-whats-cooking-april-2021/
  10. The post [calling for contributors][1] led to a lot of answers and we've brought
  11. several new people on board — thanks for answering the call! I'd like to
  12. narrow the range of problems we still need help with. If you're interested in
  13. (and experienced in) the following problems, we need your help:
  14. [1]: https://drewdevault.com/2021/03/19/A-new-systems-language.html
  15. - Cryptography
  16. - Date/time support
  17. - Networking (DNS is up next)
  18. [Shoot me an email](mailto:sir@cmpwn.com) if you want to help. We don't have the
  19. bandwidth to mentor inexperienced programmers right now, so please only reach
  20. out if you have an established background in systems programming.
  21. Here's a teaser of one of the stdlib APIs written by our new contributors,
  22. unix::passwd:
  23. ```hare
  24. // A Unix-like group file entry.
  25. export type grent = struct {
  26. // Name of the group
  27. name: str,
  28. // Optional encrypted password
  29. password: str,
  30. // Numerical group ID
  31. gid: uint,
  32. // List of usernames that are members of this group, comma separated
  33. userlist: str,
  34. };
  35. // Reads a Unix-like group entry from a stream. The caller must free the result
  36. // using [grent_finish].
  37. export fn nextgr(stream: *io::stream) (grent | io::EOF | io::error | invalid);
  38. // Frees resources associated with [grent].
  39. export fn grent_finish(ent: grent) void;
  40. // Looks up a group by name in a Unix-like group file. It expects a such file at
  41. // /etc/group. Aborts if that file doesn't exist or is not properly formatted.
  42. //
  43. // See [nextgr] for low-level parsing API.
  44. export fn getgroup(name: str) (grent | void);
  45. ```
  46. That's all for now. These updates might be light on details for a while as we
  47. work on this project. See you next time!