Comment by Someone

9 years ago

”I agree in this environment ropes are too complicated. However, I don't see any good reason to architect a text editor in this way. Use abstractions.”

Abstractions can cost you dearly. If your abstraction for indexing into your buffer moves from O(1) with a small constant to O(log(n)) with a larger one, that global replace using regular expressions can get a lot slower. Even a simple page down may get noticeably slow when at the end of a large file with long lines.

Something I have always wanted to try is use a high level abstraction like say ropes for representing some domain specific data, but for some operations, navigating the high level data structure dominates. What if one could do a linear scan through memory and then collect the "hits", and map those back to handles in the high level data structure?

Some hits will be false positives, where by dumb luck, it looks like you have a match, all hits have to resolved against user data.

It feels analogous to a bidirectional lens, but instead of being between high level data structures, it is using the underlying raw memory.

So I'm an entrepreneur, and a native-born American citizen, so I'm obviously not talking my book here. My source is simply what I've observed trying to recruit co-founders. Folks with actual tangible skills and a realistic outlook would generally rather collect a paycheck for their skills. But I also don't consider lack of venture capital or mentorship to be an important barrier to my success. When I look at what I do daily, as a founder, there is very little that more money would help with. And their advice is generally pretty cookie-cutter; if you follow it blindly, you will look like every other company they fund, which will be the death of your company. The good ones recognize this, and what they look for in a founder is someone with an independent perspective who will do the legwork to verify their hunches with data, on their own, and don't trust anybody else's ideas of reality. The bad ones, you don't want to do business with.

https://thecedrus.com/user/TiffaniIncor/lessons/513199388727...

https://instasafari.com/discover/ycombinator

https://freshcalendars.com/november-2017-calendar