Posts by divyaranjan@mathstodon.xyz
(DIR) Post #B1coZAcvN06aZF0MbY by divyaranjan@mathstodon.xyz
2025-12-26T01:30:45Z
0 likes, 0 repeats
Proof that we are still lightweight :)
(DIR) Post #B1whAjJUSJeSO9Vo6i by divyaranjan@mathstodon.xyz
2026-01-04T15:42:06Z
0 likes, 1 repeats
I'm going live to work on #Emacs Reader. Today I'll fix some segfaults, improve the latency for text selection and do other work in the `text-features` branch.https://tv.dyne.org/w/aqbcMQuPaBV8X92EZaxx1d
(DIR) Post #B2PR4EqJXuuRWDtyPg by divyaranjan@mathstodon.xyz
2026-01-18T12:28:16Z
0 likes, 1 repeats
I'm going to be live again to work on #Emacs Reader, fixing a memory leak and also trying to work on Isearch integration.The stream would be live in 2hrs from now:https://tv.dyne.org/w/aqbcMQuPaBV8X92EZaxx1d
(DIR) Post #B2PREq4C0HO9rWRplA by divyaranjan@mathstodon.xyz
2026-01-18T12:30:14Z
0 likes, 1 repeats
Also, we're looking for name ideas for our upcoming major release (v0.3.0).So if you have some interesting name that is related to #Emacs, #Lisp, and books/reading. Let us know in the comments.
(DIR) Post #B2Vlg55DAQ6i1OVAxc by divyaranjan@mathstodon.xyz
2026-01-21T13:46:58Z
0 likes, 0 repeats
@dheerajshenoy Oh, yeah I'm aware of that. That is one of the core features we have planned in Emacs Reader, something that will take quite a lot of refactoring, but is certainly something we want to support in the near future.https://codeberg.org/divyaranjan/emacs-reader/issues/21
(DIR) Post #B2VloSJgfZ4EOaGZ4y by divyaranjan@mathstodon.xyz
2026-01-21T13:49:01Z
0 likes, 0 repeats
@dheerajshenoy Also, you're welcomed to join our IRC channel at #phi-mu-lambda for these discussions. You can also join it through XMPP.
(DIR) Post #B2aZdbBz6NCp4uWH44 by divyaranjan@mathstodon.xyz
2026-01-23T21:26:07Z
0 likes, 2 repeats
I sort of made a breakthrough, I originally thought this would be impossible but it eventually worked!We now have a cursor for navigating the text in a document in #Emacs Reader! And you can navigate entirely by keyboard!!!Right now in the demo below it can only emulate forward and backward movement, but I'll be implementing vertical movement. Not just that, you would be able to set marks and highlight just by keyboard!!
(DIR) Post #B2aa12EMjvSRb3oC0G by divyaranjan@mathstodon.xyz
2026-01-23T21:30:24Z
0 likes, 1 repeats
A bit of history, once integrated #Emacs Reader would be the only document reader inside #Emacs, and actually beyond Emacs even to support a fully keyboard-driven document reader. Even zathura or sioyek only navigate the page, not at character, word or line level.Notoriously there was a huge (3K!) LOC PR to pdf-tools to enable this, which implements exactly this but it never got merged:https://github.com/vedang/pdf-tools/pull/39
(DIR) Post #B2aaUyPBWkumQ592Xo by divyaranjan@mathstodon.xyz
2026-01-23T21:35:48Z
1 likes, 3 repeats
Another goal with this, is to allow differently abled people (say, without sight) to have more accessibility. If we hook up a TTS to this, then it will speak aloud each character as they navigate with their keyboard. This is hugely ignored in document readers.
(DIR) Post #B2bpt2YRRdjIi1MuY4 by divyaranjan@mathstodon.xyz
2026-01-24T12:02:57Z
0 likes, 0 repeats
@freya Noted, thank you Ra!
(DIR) Post #B2iSpRYjJb17Zy5JHU by divyaranjan@mathstodon.xyz
2026-01-27T16:47:32Z
0 likes, 1 repeats
Introducing PALE (Picture & Animation Library for Emacs)I have been trying to push the limits of #Emacs to do real-time graphics since I started working on Emacs Reader (~1 year).Emacs Reader has to do a lot of hacks to be efficient in performance, and in doing so we encountered memory leaks of horrible kinds (in Emacs itself), GC overloading of strings and other issues.Finally over the last month or so, I decidee to build a graphics library called PALE for Emacs which will leverage dynamic modules for efficiency. And here's the result, the animation below is hardware-accelerated, i.e the textures are rendered on GPU and then displayed on Emacs.There are jitters here and there, but I still have a lot of room for optimization (I think!). The library will provide an API similar to svg.el, on top of that I will provide a C API so that dynamic module packages like Reader can directly provide image data from C and use it. Right now it lives inside Emacs Reader's git, but it will eventually be separated:https://codeberg.org/divyaranjan/emacs-reader/src/branch/partial-rendering/pale
(DIR) Post #B2iTmUbpcPng7kgytE by divyaranjan@mathstodon.xyz
2026-01-27T16:58:14Z
0 likes, 0 repeats
Note: I haven't yet pushed code that integrates with EGL and OpenGL which is used in the demo, I'm still cleaning it up.
(DIR) Post #B2iVOU4u8pORR2yELI by divyaranjan@mathstodon.xyz
2026-01-27T17:15:57Z
0 likes, 0 repeats
@hajovonta 25-30 FPS I think, not that stable yet.
(DIR) Post #B2jrvQp5emoL2teJ28 by divyaranjan@mathstodon.xyz
2026-01-28T09:03:27Z
0 likes, 1 repeats
Some trippy gradient animation:
(DIR) Post #B2kMlQOdUAQ7PCz2pc by divyaranjan@mathstodon.xyz
2026-01-28T14:49:01Z
0 likes, 1 repeats
And a new screensaver, circa 2007:
(DIR) Post #B2lCJi1tWlNLbOS5HE by divyaranjan@mathstodon.xyz
2026-01-28T19:24:42Z
0 likes, 1 repeats
Okay another serious breakthrough. After declaring PALE yesterday I stupidly wondered if I can hook this to ffmpeg to decode a video in realtime and play it.Bloody hell it worked. #Emacs is actually rendering a full video in your ordinary text buffer, no xwidgets nothing.I cannot still believe my eyes.
(DIR) Post #B2lCJj6XWygYw5dJ9k by divyaranjan@mathstodon.xyz
2026-01-28T22:42:37Z
0 likes, 1 repeats
I fixed a whole chunk of flickering and now it is 30FPS smooth!
(DIR) Post #B2lCJpxa2gg6CKUkfA by divyaranjan@mathstodon.xyz
2026-01-28T21:35:22Z
0 likes, 1 repeats
The library has been separated from Reader:https://codeberg.org/pale/pale
(DIR) Post #B2lEWK4a6oFayUqpOa by divyaranjan@mathstodon.xyz
2026-01-28T22:54:22Z
0 likes, 0 repeats
@tiang Right?! I am still not sure if this is a dream even though my commits tell me they are not!
(DIR) Post #B2mS9qe2QzAtqnZasa by divyaranjan@mathstodon.xyz
2026-01-29T14:58:53Z
0 likes, 0 repeats
@idlip @tusharhero 😁😁