HNHacker News
TopNewBestAskShowJobs

injuly

286 karma · joined September 4, 2023

https://injuly.in
submissionscomments
injuly··on Loro's rich text CRDT
I've gone through the Peritext paper several times, and attempted to implement support for lists/tables/sections myself, but found it to be difficult owing to the limited scope of the original paper. I reached out to Martin Kleppman about this, and this is what he told me:

"Thanks for your message. I've written up a document on how to extend Patreon with nested block elements such as bullet points. It's not properly published yet, but you can find a draft here: https://martinkl.notion.site/Block-elements-in-rich-text-CRD... My colleagues are currently in the process of integrating this algorithm into Automerge, and creating bindings to the ProseMirror rich text editor."

Personally, I found the document to be very helpful.

injuly··on A 2024 Plea for Lean Software
Web programmers massively outnumber systems programmers. The market has been this way for quite some time now. I'm not a web programmer myself, at least not professionally, but it is far too easy to prototype with Electron/Electrino/Tauri/whatever than any other toolchain out there. I've used Xamarin, Qt, ImGui (not the same league, I know), and several other lower-level rendering libraries like SDL, SFML, raylib, GLFW. Nothing comes close to the vast expanse of features that CSS exposes with - often - a single attribute like `transform` or `object-fit`. Of course you can do it with any other language/framework, but it'll be dozens more lines of code. More time. This is assuming equal proficiency in both tech stacks.

JavaScript might be a disaster of a language, but it is faster to make a UI with CSS. I can totally see why startups pick web programming to ship desktop apps.

injuly··on A 2024 Plea for Lean Software
I feel that we would've had better tooling for writing performant GUI apps today if electron JS never took off.

It certainly has its place, and I laud the authors for their efforts, but seeing how every startup is using electron for their native applications, I have little hope for lean software.

At the end of the day, developers need to finance their projects. No other toolchain out there [1] is going to give you the flexibility, development speed, and freedom to develop beautiful looking desktop apps using the muscle memory you trained while writing webpages. Of course, you can write the same application in Qt, GLFW, whatever, but I don't think anyone will disagree that it's much slower to build and prototype responsive UIs with these tools.

[1] Wry and Tauri (https://tauri.app/) might be noteworthy, but I don't know how much of a difference they make, as the runtime is still JavaScript, HTML, and CSS.

injuly··on Polymorphic Types in C [pdf]
Polymorphic types are certainly useful, and I wish C had a better way to go about it, but this proposal feels like an odd patch to C's type system. Especially this part:

``` Using a run-time value of type _Type T in _Var(T) can be allowed in general (and is useful), but needs to be restricted to contexts where full type information is not required at compile-time. ```

Semantic rules that conditionally apply only in some contexts is a common tendency of the C++ standard that many C programmers often dislike.

injuly··on Polymorphic Types in C [pdf]
It's for backwards compatibility of C compilers (and lack of proper namespaces). All identifiers starting with an underscore are reserved for use by compiler intrinsics and such. Although most compilers don't complain if your variable names start with a leading underscore, it is recommended to not have such identifiers in your code.
injuly··on ArXiv now offers papers in HTML format
For anyone who needs it, arxiv-vanity is amazing: https://www.arxiv-vanity.com/
injuly··on Maze Generator
I remember writing a maze generator for a personal game project (a Nuclear clone-like). The wikipedia article for maze generation [1] was surprisingly helpful, though I ended up using something closer to a pseudo-random walker.

[1] https://en.wikipedia.org/wiki/Maze_generation_algorithm

injuly··on Show HN: Heynote – A dedicated scratchpad for developers
This is so neat. Good work! I've tried Obsidian, Notion, Typora, and a myriad of other local editors only to come back to vim every time.

My ideal text editor is one that has syntax highlighting, scratchpad, markdown support, block based editing, ability to link between documents and vim keybindings. No cloud login, AI assistant, cross-device sync, or other bloat.

I try to avoid using electron apps for lightweight tasks, but Heynote looks like its worth a try.

injuly··on Xa: Open-source 6502 cross assembler
The community around retro consoles based on the 6502 never ceases to amaze me. The Xa project looks very promising.

For anyone interested, there is a transistor level simulator for the 6502 CPU called Visual6502: http://www.visual6502.org/JSSim/expert.html

← PreviousPage 2 of 2