logo

drewdevault.com

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

Status-update-April-2020.md (2523B)


  1. ---
  2. date: 2020-04-15
  3. layout: post
  4. title: Status update, April 2020
  5. tags: ["status update"]
  6. ---
  7. Wow, it's already time for another status update? I'm starting to lose track of
  8. the days stuck inside. I have it easier than many - I was already used to
  9. working from home before any of this began. But, weeks and weeks of not spending
  10. IRL time with anyone else is starting to get to me. Remember to call your
  11. friends and family and let them know how you're doing. Meanwhile, I've had a
  12. productive month - let's get you up to date!
  13. In the Wayland world, I've made some more progress on the book. The input
  14. chapter is now finished, including the example code. The main things which
  15. remain to be written are the XDG positioner section (which I am dreading), drag
  16. and drop, and protocol extensions. On the code side of things, wlroots continues
  17. to see gradual improvements — the DRM (not the bad kind) implementation
  18. continues to see improvements, expanding to more and more use-cases with even
  19. better performance. Sway has also seen little bug fixes here and there, and
  20. updates to keep up with wlroots.
  21. For my part, I've mostly been focused on SourceHut and Secret Project this
  22. month. On the SourceHut side of things, I've been working on hub.sr.ht, and on
  23. an experimental GraphQL-based API for git.sr.ht. The former is progressing quite
  24. well, and I hope to ship an early version before the next status update. As for
  25. the latter, it's still very experimental, but I am optimistic about it. I have
  26. felt that the current REST API design was less than ideal, and the best time to
  27. change it would be during the alpha. The GraphQL design, while it has its
  28. limitations, is a lot better than the REST design and should make it a lot
  29. easier for services to interop with each other - which is a core design need for
  30. sr.ht.
  31. Here's a little demo of hub.sr.ht as of a few weeks ago to whet your appetite:
  32. <video src="https://yukari.sr.ht/hub.sr.ht.webm" muted autoplay loop controls>
  33. Your web browser does not support the webm video codec. Please consider using
  34. web browsers that support free and open standards.
  35. </video>
  36. As far as the secret project is concerned, here's another teaser:
  37. ```
  38. fn printf (fmt: str, ...) int;
  39. fn f (ptr: &int) int =
  40. {
  41. let x: int = *ptr;
  42. free ptr;
  43. printf("value: %d\n", x)
  44. };
  45. export fn main int =
  46. {
  47. let x = alloc &int 10;
  48. f(^x);
  49. 0
  50. };
  51. ```
  52. ```
  53. $ [redacted] -o example [redacted...]
  54. $ ./example
  55. value: 10
  56. ```
  57. That's all for today! I'll see you again next month. Thank you for your support!