Live data from Hacker News

Emacs Is Not Enough

project-mage.org

101–110 of 163 posts

Re: Emacs Is Not Enough

#101
post #21
post #16

Earlier quoted context omitted.

Print debugging is a technique that will never go out of style. It works on any system, is used by programmers of any level of experience, is very quick to use and requires no tooling to understand. And sometimes, even if you do have other great tools at your disposal, it’s still the easiest way to track down a problem.

Well yes, but I must quibble... > Print debugging.... It works on any system No it does not. It requires a console, and not all systems have a console.

> No it does not. It requires a console, and not all systems have a console.

It does not. You just send the log output somewhere (often a different system). If you have a deployment with no logging infrastructure (either local for smaller setups or distributed for large scale), you have a major problem beyond just debugging visibility.

Re: Emacs Is Not Enough

#102

Earlier quoted context omitted.

> trying to find a general structure and fit it for everything is a path to failure Depends on whether you consider everything literal. That nothing can solve everything and your mother is obvious. But solutions which can handle majority, or even 99.99% of relevant cases of your domain, I think we already have that today for structures. XML for example was optimized for decades to handle structures. Not all parts are…

> So instead of build yet another new solution, maybe just look at the existing tools and how we can make them more useable for your usecases. Existing solutions don't integrate within an environment, and not within each other. > XML I go into much trouble to explain my position on general data structures in the article I have linked previously. You can't, in general, really optimize general data structures for speci…

> Existing solutions don't integrate within an environment, and not within each other.

Integration is surface, the interface to the user. Not the concepts or libs.

> I go into much trouble to explain my position on general data structures in the article I have linked previously.

Sorry, but not reading that, not after the first article. Too long, not enough meat, too unfocused. You should write shorter articles and stick to the topic when you want to reach people. Life is too short and full of content.

> If you start doing all that, you are then trying to fit logs through a meatgrinder. You then have bloat, inefficiency, and all that other good stuff.

And if you don't work with a solid foundation, you will start accumulating bloat of small pieces.

> I mean, you see, this is exactly why we have so many problems right now: people trying to use a general solution for everything.

That's wrong. Problems will always exist. Everything is a compromise of tradeoffs. It's not possible to have no problems. Well, except to no do it at all. The main reason why people tend to use more generalized solutions, is because it allows them to move faster, and specialize later if necessary.

Structures are also such a compromise. It enables you to handle more and press it into a form, but you will lose liberty to use forms outside your structure. Understanding and managing the tradeoffs is relevant here. There is a reason why we have types in the first place, and not write everything directly in memory like on a canvas. Similar there is a reason why we not have a thousand different types doing slightly the same thing, but use inheritance to build specialized types from a handful of basic types. XML is such a basic type, for tree-structures. And it is a good starting-point to build a foundation for structured editing. It is not the only type, but at the moment, the problem is, that there is not even this.

> It may be complex in comparison to notepad, sure, but,

Notepad is not an advanced editor. Is there even any editor which has a more complex editing than the vi-family?

> I mean I haven't seen what's so cryptic about it, not really.

Then maybe you just don't understand the problems tackled here at all.

Re: Emacs Is Not Enough

#103

Earlier quoted context omitted.

For a text editor mediocricity is fine. It has to solve many tasks for many people. It has to be shown that structural editing makes an editor simpler, faster and in suited for a broader range of tasks. Until then, text is the king. > Yeah, but is it even good? Yes, it is. Is the only solution which was able to replace several outlines + highly specialized solutions like OmniFocus for me. And that, being a simple tex…

> For a text editor mediocricity is fine. No, not for the text editor, but may be for some users. If a tree falls, does it make a sound? After all, maybe you are just not a power user and don't have the same frame of reference that power users have. > It has to be shown that structural editing makes an editor simpler, faster and in suited for a broader range of tasks. Until then, text is the king. Text might be the k…

> After all, maybe you are just not a power user and don't have the same frame of reference that power users have.

Maybe. Or maybe your ideal of an editor has nothing to do with what everyone else wants from it, including power users.

> Text might be the king until then, yes, but so is C++ and the children running with AKs in Africa. Doesn't mean it's right or acceptable.

I will ignore the "but the children" polemics, because it is true for C++ and that is what Rust shows. The important part is "shows" - rants do not. In the end, talking is cheap - show me a better editor than emacs first, because a promise cannot edit text.

> Yes, I can see how strange it is to not see what's claimed to be a very powerful language overtake the world. I agree on that, it's a bit mysterious.

Yeah, indeed, if you have a wrong premise about a language being "very powerful" per se and refuse to re-evaluate it, then it is "strange". Or you accept that the powerful parts of lisp do not matter in the end, the disadvantages are real and that it comes from an era with little collaboration and small-scale software in general. Then you shrug and move to, you know, actually delivering something.

> Is it amazing? Haven't played it, don't know. Maybe? But what exactly is all that software you are expecting to begin with?

Ah, the inevitable CL debate :) You can find a bunch of libraries, half-written and abandoned decades ago, but the fact is also - I have software written in rust on my mac right now, and be it the inevitable RipGrep, but I cannot remember ever using or having something installed in CL. And it will be true for most people. It is a pretty much dead language which is, on the other side, made undead by claims about some perceived PL-superiority which does not result in any significant number of useful software being written. When you stop drinking the lisp-superiority-coolaid, not much remains to see, such is my perception after some diving into CL and Clojure.

Re: Emacs Is Not Enough

#104

Earlier quoted context omitted.

> So instead of build yet another new solution, maybe just look at the existing tools and how we can make them more useable for your usecases. Existing solutions don't integrate within an environment, and not within each other. > XML I go into much trouble to explain my position on general data structures in the article I have linked previously. You can't, in general, really optimize general data structures for speci…

> Existing solutions don't integrate within an environment, and not within each other. Integration is surface, the interface to the user. Not the concepts or libs. > I go into much trouble to explain my position on general data structures in the article I have linked previously. Sorry, but not reading that, not after the first article. Too long, not enough meat, too unfocused. You should write shorter articles and st…

> Integration is surface, the interface to the user. Not the concepts or libs.

That's the kind of viewpoint you get after years of using Unix or Windows.

> Sorry, but not reading that, not after the first article.

Ok. That one is not a rant, but whatever, you are arguing against its contents, and I don't see why I should be repeating myself. Sorry it's too long.

> And if you don't work with a solid foundation, you will start accumulating bloat of small pieces.

Exactly: you need a solid foundation to give you all the flexibility & meta-flexibility that you need. Otherwise meet bloat.

> That's wrong. Problems will always exist. Everything is a compromise of tradeoffs Hey, look, you keep arguing with the article you have decided not to read, and you are arguing with a strawman. I don't know what you think I am trying to do.

> Structures are also such a compromise. It enables you to handle more and press it into a form

You know what real flexibility means? It's the ability to decide when you want structure and when you don't. And this is the kind of structural editing I am proposing: you can simply recreate a string-based editor within it, for any of your elements. At the higher-level, it can be reused. No structure where none is required? Sure. I am all for it. But there's much more structure out there that meets the eye.

> Then maybe you just don't understand the problems tackled here at all.

Or maybe you don't? Because, explain your point better, please.

Re: Emacs Is Not Enough

#105
post #21

Earlier quoted context omitted.

Well yes, but I must quibble... > Print debugging.... It works on any system No it does not. It requires a console, and not all systems have a console.

Unless you're debugging something so simple that it can only flash a led, you can have a serial console onto it You can print debug on an Arduino for example So, yes, it works on pretty much any system.

Even then, you could write a print function that writes morse code pattern to the led :p

Re: Emacs Is Not Enough

#106

Earlier quoted context omitted.

> For a text editor mediocricity is fine. No, not for the text editor, but may be for some users. If a tree falls, does it make a sound? After all, maybe you are just not a power user and don't have the same frame of reference that power users have. > It has to be shown that structural editing makes an editor simpler, faster and in suited for a broader range of tasks. Until then, text is the king. Text might be the k…

> After all, maybe you are just not a power user and don't have the same frame of reference that power users have. Maybe. Or maybe your ideal of an editor has nothing to do with what everyone else wants from it, including power users. > Text might be the king until then, yes, but so is C++ and the children running with AKs in Africa. Doesn't mean it's right or acceptable. I will ignore the "but the children" polemics…

Alright, I get it, you don't like CL. Coolio.

> show me a better editor than emacs first

I will. Just one correction: it's not going to be an editor. It's going to be many editors forming a cohesive whole.

Rune: Rune Is Not an Editor.

Other than that, what can I say? Yes, I have to prove my words, even though, in my opinion, the writings have enough to convince you that it can be done. And I will do my best to deliver.

Re: Emacs Is Not Enough

#107
post #11

I can't but reflect back on another post I made today, which is that everything fails at scale. Literally everything. They just fail in different ways and made different tradeoffs along the way. For example, this is why I find myself using "print" debugging on a process of 10^4 values. It is fun to think that, "maybe I can step debug this" on that many values, but... that is well beyond my capability to keep it in my…

I just, can't imagine what benefit you get from opening an X gigabyte file.

Maybe I don't fully understand the context, but... why shouldn't you open a big file?

I haven't read the whole article, but I did read that the author complains that a 172 kb text file makes the editor slow. It seems that the syntax highlighting is the culprit.

I have a similar problem with my current editor of choice. I used to have a "raw" visualizer for all kind of files. Sometimes the file format is just unknown and it's useful to take a look at its contents (does it start with PK?) or you want to make a quick overwriting edit (to change some binary flags) or edit text in a huge machine-generated text file without any formatting beyond line feeds.

If I understood the author correctly, he's saying that structured editors are superior to a syntax highlighting system that's based on regexps, when you use them for programming. I agree wholeheartedly. It's a clear-cut case of the "don't repeat yourself" principle.

Re: Emacs Is Not Enough

#108
post #107
post #11

I can't but reflect back on another post I made today, which is that everything fails at scale. Literally everything. They just fail in different ways and made different tradeoffs along the way. For example, this is why I find myself using "print" debugging on a process of 10^4 values. It is fun to think that, "maybe I can step debug this" on that many values, but... that is well beyond my capability to keep it in my…

I just, can't imagine what benefit you get from opening an X gigabyte file. Maybe I don't fully understand the context, but... why shouldn't you open a big file? I haven't read the whole article, but I did read that the author complains that a 172 kb text file makes the editor slow. It seems that the syntax highlighting is the culprit. I have a similar problem with my current editor of choice. I used to have a "raw"…

Where's the pragmatism?

I personally don't open GB size files (that's not true, I sometimes do but it depends on the format and I tend to use vim (which is a very minimal configuration on my system these days, since I've moved to Emacs) for them because I'm typically already in a terminal munging the thing anyway).

I prefer to use the terminal to deal with these things because those tools can help me decompose the problem to a more reasonable space. That seems like a more useful way to spend my time than complaining that a massive file of text won't open on my editor for $REASONS, when it's, IMO, most likely that I wouldn't be able to make sense of the damned thing if I had it all opened in front of me anyway.

Post reply on HN