Scott Vokes

Results 117 comments of Scott Vokes

Any algorithm preference? Is there any code dependent on the dictionary internals that wouldn't be obvious? I know streaming & reading will also be affected...

That's what I figured. I will meditate on it.

The verb dispatch table has a DICT tag to note where dictionary changes would be necessary. Moving the dict code into its own file with an abstract interface will help...

It would indeed involve a LOT of changes throughout the codebase. I think some kind of dynamically resized, internally-chained hash table would be a good fit - fewer allocations, in...

Maybe linenoise (http://github.com/antirez/linenoise) instead? Much, much lighter dependency, and readline is GPL (_NOT_ LGPL), which is also problematic. The lack of readline functionality doesn't bother me, but I run kona...

1. It's bloated as hell. readline is massive, somehow _a line editing library_ grew to several times larger than all of kona. (Bloat is what the FSF does best.) 2....

> libedit status on BSD OpenBSD has it, not sure about FreeBSD.

Ok, looks like a "GPL-compatible" license is allowed. Was not aware of that. I've heard complaining about readline having a "linking -> GPL" issue from other projects (which is why...

Another issue: the select loop. line editing libraries seem to be blocking. rlwrap isn't, but that's because it runs in a separate process.

linenoise has none, so, scratch that. Avoiding a separate thread just for input definitely sounds like a good idea. Any readline-like library should avoid editing behavior if the terminal type...