HNHacker News
TopNewBestAskShowJobs

hailruda

18 karma · joined February 18, 2023

submissionscomments
hailruda··on Show HN: Edsger – A handwritten Clojure REPL for the reMarkable 2
I find getting stuff up on the rM2 screen a hassle.

The challenge comes from the way the e-paper works. To turn a pixel from white to black (or vice versa) it needs multiple actual frames. The pixel data must also be packed in a specific format. Instructions for how many frames a single operation requires are coded in a wbf[0] file, which comes included with the OEM firmware.

The most commonly used approach is hooking into xochitl, since it handles all of the user facing stuff like the notebooks but also the actual drawing. This is somewhat brittle and tends to break with software updates, because all of the actual function addresses have to be updated as well.

I was excited to find waved[1], a C++ library that allowed to drive the display directly using a sane API. Although it's not been updated for quite a while it still works and you can compile and run it yourself.

Since I was interested in driving the display myself, I tried to rewriting waved in Zig. It works - I can now get pixels up on the screen. Unfortunately the code is a mess and its only redeeming quality (stemming from being written in Zig) is that I can cross compile a statically linked binary that 'just werks' using just the Zig toolchain as the only dependency. For debugging purposes, I also implemented a SDL emulator for the display. [2]

While writing this, I stumbled upon a recent Rust implementation of the same ideas. Nice. [3]

Since the xochitl display implementation is the most optimized, that's probably the reason why it's being used most commonly*, even though it might be 'ugly'.

* Citation needed

[0] https://gitlab.com/zephray/glider#understanding-waveform

[1] https://github.com/matteodelabre/waved

[2] https://github.com/jakubvf/dazed

[3] https://github.com/yobert/swtcon

hailruda··on I'm Tired of Talking to AI
I’m curious, what was their reaction? :)
hailruda··on Ratty – A terminal emulator with inline 3D graphics
User name doesn’t checkout.

Any technical reason for such a strong opinion?

hailruda··on Build real-time knowledge graph for documents with LLM
I’d appreciate a writeup! I’d like to implement this myself, maybe add reminders.
hailruda··on Show HN: NoteUX – Fast and minimalist note-taking app
I get your point and I agree.
hailruda··on Show HN: NoteUX – Fast and minimalist note-taking app
>without the hassle of creating new notes or organizing folders

Have you missed this part?

hailruda··on Show HN: I made a app that uses NFC as a physical switch to block distractions
NFC tags can be scanned using a phone. An app on the phone can then detect the action and act accordingly. The phone can differentiate between different tags.

I use an NFC tag to lock the house using Home Assistant.

hailruda··on Show HN: connet – A P2P reverse proxy with NAT traversal
So if I understand correctly, this should be comparable to what Tailscale is doing?
hailruda··on Mouseless – fast mouse control with the keyboard
After watching the video, I think this is an exciting experiment to see if there exist better ways to control PCs without a mouse and just a keyboard. The standard of today being keyboard shortcuts.
hailruda··on Tsoding livestreams trying out C3 (programming language) [video]
How does it compare to Zig? Does it inherit C macros?
hailruda··on Ladybird browser spreads its wings
Chosing Discord was a deliberate choice. I remember when Serenity was using IRC as the only communication channel and immediately after setting up a new Discord server the community gravitated towards it. Infact, the number of community members sky rocketed.

The fact is, Discord as a platform is more accessible compared to IRC.

hailruda··on Metabolism of autism reveals developmental origins
I can relate to this. Could you point me to any resources about keto diets?
hailruda··on .NET 8 Standalone 50% Smaller On Linux
Most of Visual Studio is written in C# since VS2010. [0]

[0]: https://en.wikipedia.org/wiki/Visual_Studio#2010

hailruda··on A robot in South Korea mistook a man for a box of vegetables and killed him
This reminds me of Five Nights at Freddy's animatronics mistaking a human for an endoskeleton and murdering the human by shoving them into a suit [0]. Didn't think this could happen for real.

[0] https://en.wikipedia.org/wiki/Five_Nights_at_Freddy%27s#Game...

hailruda··on Was Rust Worth It?
Seamlessly as in @cInclude("raylib.h")
hailruda··on TabFS – a browser extension that mounts the browser tabs as a filesystem
Exactly, why isn't more software made to be accessible from a filesystem?