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


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