What are you working on? - Programming On Unix
Users browsing this thread: 1 Guest(s)
|
|||
Been making a text editor in 100% pure v0.10 Node.js, i.e. in JavaScript. https://github.com/noedit
Since JS is a high-level language, like the last month has been spent on coding up the FS layer, cause Node.js comes with an FS layer but editing a file is hell if you want to avoid reading the entire file and/or writing the whole file to make an edit. So far I've figured out how to read certain bytes from a file without reading the whole thing, actually it's quite simple. Writing to a certain part of a file is also simple, BUT, editing part of a file, like a simple "replace these 5 bytes with these 10 new bytes" is hard as crap cause just doing that would delete the old 5 bytes, put in 5 of the new bytes, and then it's essentially gonna overflow into the text I didn't want to eddit and delete 5 bytes I didn't want to delete, replacing them with the remaining 5 bytes. Make sense? Anyway it's hell, you guys in C have it easy. lol So that's me, everybody probably already knows about the editor, but now you know why there hasn't been progress on it. |
|||