News for hackers. Stuff that matters.
Re:Show HN: Lite – A small, fast text editor by rfeague on Saturday May 09, 2020 @02:03PM (#23126945)
Since there are a lot of text editors, I'd like to see more detail on the motivations for yet another one. How does this compare to the current top-five open source editors?
Re:Show HN: Lite – A small, fast text editor by vijaybritto on Saturday May 09, 2020 @02:45PM (#23127324)
The resident memory was 10MB in my windows machine when I ran this. A strong reason for me to use this would be in a low powered device. I want to write markdown in a tiny editor like this. I want to run multiple projects side by side and this is good for that. If I'm a beginner trying do dev on a machine lower than 4G of RAM. So many more examples come to my mind. I'm pretty sure there are more

Also the immediate UI library from the same author is very good and the examples are amazing.

1. https://github.com/rxi/microui

2. https://floooh.github.io/sokol-html5/index.html

Re:Show HN: Lite – A small, fast text editor by neop1x on Sunday May 10, 2020 @06:04AM (#23131496)
I upgraded to 64 GB of RAM and now my average usage is around ~40% so hopefully I will be able to live with that for some time. Browsers, VSCode and other webapps and Electrons are using crazy amounts of memory. But... RAM is cheap now so who cares. :P It's about time to start telling kids legends about old days where people were using memory leak detectors and analyzers.
Re:Show HN: Lite – A small, fast text editor by fouric on Tuesday May 12, 2020 @02:02AM (#23150968)
Out of curiosity, what's your CPU utilization? Every bloated Electron-based app I've ever seen also happened to consume cycles while sitting there doing nothing. I'm willing to give up my RAM, but not my CPU.
Re:Show HN: Lite – A small, fast text editor by sergiotapia on Tuesday May 12, 2020 @11:05AM (#23154764)
wtf
Re:Show HN: Lite – A small, fast text editor by stephen82 on Saturday May 09, 2020 @04:43PM (#23128161)
On my GNU / Debian testing 64-bit, with 10 tabs opened it consumed 31 MiB of RAM and my CPU pushed itself to reach 0.75% at its busiest processing during typing.

To me this is simply mind-blowing.

Re:Show HN: Lite – A small, fast text editor by alcover on Saturday May 09, 2020 @07:01PM (#23128947)
Not as mind-blowing as SublimeText leaking 3 solid GB of RAM after a few days on my Debian..
Re:Show HN: Lite – A small, fast text editor by vijaybritto on Sunday May 10, 2020 @05:16AM (#23131327)
Its always the extensions. Not sublime itself. That has been my experience so far
Re:Show HN: Lite – A small, fast text editor by anthk on Saturday May 09, 2020 @07:47PM (#23129173)
Wut, I opened 12 files in 9MB back in the day on a 32MB device as nothing.
Re:Show HN: Lite – A small, fast text editor by cormacrelf on Saturday May 09, 2020 @11:19PM (#23130052)
Right now, I'm editing all the files in a 3kLOC project in neovim, doing completion with an LSP host, in 14.8MB. Keep it going for a few days and you might rack up 40MB. People can keep creating lightweight editors all they like, but you really need to bring more to the table than that when vim already exists.
Re:Show HN: Lite – A small, fast text editor by barrkel on Saturday May 09, 2020 @07:12PM (#23129002)
We used to be able to open 10 files at a time on 4MB systems back in the 90s.

(They weren't big files, of course, but still. Standards have slipped.)

Re:Show HN: Lite – A small, fast text editor by stephen82 on Saturday May 09, 2020 @07:59PM (#23129223)
Yes, those were the days...every once in a while, I visit https://kolibrios.org/en/screen to get nostalgic.

Indeed standards have slipped or better say have been sacrificed at the altar of "quantity over quality".

For a simple "Hello, World!" string message, nowadays you need how many MBs of RAM.

Madness, complete madness!

Re:Show HN: Lite – A small, fast text editor by david_draco on Saturday May 09, 2020 @02:19PM (#23127120)
What would you say are top open source editors one would consider, and by what criteria should one benchmark the comparison?

While subjective criteria are perhaps most important (usability, integration with favorite programming language, extensibility), for technical quality perhaps there can be some meaningful numerical benchmarks. For example, the lag and memory use when opening a many-GB text file and editing the middle of it with syntax highlighting.

Supposedly editors using ropes are good at this.

Re:Show HN: Lite – A small, fast text editor by stOneskull on Saturday May 09, 2020 @04:42PM (#23128155)
Personally, I'm thinking of its comparison to Geany. A wonderful editor but I have a feeling the first difference is it's going to seem real bloated. Time to see.
Re:Show HN: Lite – A small, fast text editor by zoom6628 on Saturday May 09, 2020 @08:37PM (#23129377)
Second that about Geany. Wonderful editor that i have been using for years - anytime find a new system or need to have 1 editor that will handle any type of file in a civilised manner, then my first install is Geany.

That said looking at the author's main.c this looks really nice as a shell for anyone looking to create a tool with lua scripting. Im going to download and study this one!

Re:Show HN: Lite – A small, fast text editor by alcover on Saturday May 09, 2020 @07:05PM (#23128973)
Geany is lean and fast but has some warts.

I.e. side-panel is too large, find+replace menu is modal and confusing.

Re:Show HN: Lite – A small, fast text editor by jackhalford on Saturday May 09, 2020 @02:24PM (#23127162)
how are "usability, integration with favorite programming language, extensibility" subjective? these all seem like very objective features.
Re:Show HN: Lite – A small, fast text editor by akho on Saturday May 09, 2020 @02:38PM (#23127269)
Usability is only objective if you use the word in a dictionary sense: "it is possible to use this editor". It is very much subjective in its usual use: how easily it can be used by a certain user to do certain things. Say, to me a text editor without Vim key bindings is not usable. To someone else, Ctrl-C / Ctrl-V bindings may be preferable. 'Usable code editor' and 'usable screenplay editor' are completely different categories, even though both are text editors.

Different approaches to extensibility can exist, all of them good in certain areas. Both Emacs and VS Code are extensible; which approach is better? You'll find different opinions.

You'll need, as a minimum, to specify a language to move "integration with favorite programming language" towards objectivity.

Re:Show HN: Lite – A small, fast text editor by janderland on Saturday May 09, 2020 @02:29PM (#23127207)
They are subjective in the degree to which they are measurable. How would you measure how well a text editor “integrates with a programming language”? There are many ways to measure this, making any single measurement choice subjective to a degree.
Re:Show HN: Lite – A small, fast text editor by crazygringo on Saturday May 09, 2020 @02:35PM (#23127240)
There is absolutely an objective process for identifying criteria and identifying how well it meets those criteria.

First, an open-ended survey among text editor users to identify the features/requirements that matter to them.

Second, tag and categorize those responses into a standardized list of features/requirements.

Third, survey users to determine both the relative importances of those features/requirements, as well as how well each editor meets their needs for each feature/requirement. Both of these can be done using Likert scales, most commonly giving a score between 1 (does not meet needs at all) to 5 (completely meets needs), with intermediate values being "mostly doesn't", "somewhat", and "mostly". Several hundred randomly chosen survey respondents will generally give you the statistical precision you need.

Companies do this all the time. It's bread and butter for many product managers and user researchers, to justify to execs why a particular feature ought to be built rather than other ones (combined with other factors like cost, risk, strategy, etc.).

And there you have it. To answer your specific question, to measure how well a text editor integrates with a programming language, you just ask its users to rate how well it does. Since user opinion is all that matters in the end, that's the objective answer.

Re:Show HN: Lite – A small, fast text editor by IAmEveryone on Saturday May 09, 2020 @07:01PM (#23128946)
A survey doesn’t eliminate subjectiveness, it merely averages over it.
Re:Show HN: Lite – A small, fast text editor by crazygringo on Saturday May 09, 2020 @08:11PM (#23129273)
You're missing the point.

When it comes to products, people's average evaluation is the objective answer. Because people's evaluations are what lead to usage, purchase, subscriptions, etc. There is no other "objective" answer.

There's nothing subjective about it. What users think about your product is your product in the marketplace. That's the entire meaning of "the customer is always right".

Satisfying user demand for a capability isn't a mathematics problem where there's some independently objectively right answer.

Re:Show HN: Lite – A small, fast text editor by the_hoser on Saturday May 09, 2020 @11:49PM (#23130150)
"The customer is always right." was a marketing slogan used by retailers in the late 19th century to convince people to shop in their stores. It doesn't mean anything.
Re:Show HN: Lite – A small, fast text editor by crazygringo on Sunday May 10, 2020 @12:43PM (#23133995)
That's its origin, but it's certainly been repurposed today in product design to mean a very real thing, which is that the customer will buy what the customer wants, regardless of whether you think they should or not.

In other words, there's no objective product goodness/badness. Only what the customer wants. In that sense, the customer (market) is always right.

Inexperienced restauranteurs often experience the same shock. You don't cook the food you want to make, or that you think people ought to eat -- you cook the food people want to eat. Otherwise you'll go out of business.

Re:Show HN: Lite – A small, fast text editor by the_hoser on Monday May 11, 2020 @03:06PM (#23145720)
It's created an inappropriate sense of entitlement for many consumers. You're absolutely right that a product will fail if people don't want it, but it's also true that people often don't get the products that they want because there's no way to deliver that product to them and turn a profit. In these cases, the customer is most certainly not always right.

It's a bad slogan that only portrays half of the reality of the situation.

Re:Show HN: Lite – A small, fast text editor by bachmeier on Saturday May 09, 2020 @02:16PM (#23127098)
And Textadept, which is also written in Lua.