News for hackers. Stuff that matters.
Re:When I tell the Windows Terminal team something is simple... by miiiiiike on Friday May 06, 2022 @09:35AM (#31284892)
Issue: Feeling bad after interaction with OSS developer at <BIG COMPANY>.

Steps to reproduce:

1) Report a bug.

2) Get called dumb by developers at <BIG COMPANY>.

3) Demonstrate that it is, in fact, a bug with examples, test cases, and offer a potential fix/PR.

4) Hear that it’s being “handled internally”.

5) Wait for the blog post re-iterating what they called dumb, talking about how great the team is that fixed it, and see your demonstration code or test cases in the linked commit.

6) Why are you still here? No, you’re not going to be credited, this is going in my promotion packet.

I’ve lost count of the times I’ve seen this over the past 20 years. Whenever I’m about to report a bug in a <BIG COMPANY> project I smile to my girlfriend and say “OK, I’m going to go get called dumb.”

Re:When I tell the Windows Terminal team something is simple... by Longhanks on Friday May 06, 2022 @09:51AM (#31285079)
And the Windows Terminal team reeks of this. There's so many blog posts saying look, we're so smart because they're reimplementing something both Linux and macOS had for *years*, as if the whole world of CLI was waiting for their savior.
Re:When I tell the Windows Terminal team something is simple... by ethbr0 on Friday May 06, 2022 @10:01AM (#31285189)
When CMD is your benchmark...

(In all fairness, PowerShell has a lot of good ideas)

Re:When I tell the Windows Terminal team something is simple... by thaway2839 on Friday May 06, 2022 @11:19AM (#31286200)
I get the feeling that there's a bunch of people working for, or being paid by, Microsoft who really love functional programming. Some of Microsoft's best outputs comes from those teams/folks.

It could just be a coincidence/confirmation bias, so I wonder if there's actually something to that.

Re:When I tell the Windows Terminal team something is simple... by vorpalhex on Friday May 06, 2022 @11:47AM (#31286554)
If you care about programming enough to really have preferences on things like functional or OO or other kinds of "deep" topics, then you're invested.
Re:When I tell the Windows Terminal team something is simple... by mananaysiempre on Saturday May 07, 2022 @02:36PM (#31297246)
> I get the feeling that there's a bunch of people working for, or being paid by, Microsoft who really love functional programming.

Simon Peyton Jones, Simon Marlow, Edward Kmett, Conal Elliott, and I’m sure a lot of other people with fundamental contributions to the Haskell ecosystem who I can’t remember offhand all work or previously worked at Microsoft Research, so that part is just straightforwardly true.

Re:When I tell the Windows Terminal team something is simple... by Narishma on Friday May 06, 2022 @11:16AM (#31286163)
cmd is a shell. The old terminal is called conhost I think.
Re:When I tell the Windows Terminal team something is simple... by ethbr0 on Friday May 06, 2022 @01:52PM (#31287991)
I figured I'd get this from someone. ;) I'm approximating that 99% of people who use Windows use default terminals for built-in legacy shells, and thus effectively analogous terminology. You're correct though!
Re:When I tell the Windows Terminal team something is simple... by stjohnswarts on Friday May 06, 2022 @11:15AM (#31286150)
Yeah it is far superior to cmd. But I mean cmd was frozen in the 90s it seems anyway.
Re:When I tell the Windows Terminal team something is simple... by kevinmgranger on Friday May 06, 2022 @11:36AM (#31286408)
Are PowerShell and Windows Terminal the same team?
Re:When I tell the Windows Terminal team something is simple... by miiiiiike on Friday May 06, 2022 @10:02AM (#31285202)
I can’t speak to that. I’ve pretty much Linux only since 1999, but, of the times I’ve used PowerShell, I’ve like it.
Re:When I tell the Windows Terminal team something is simple... by juki on Friday May 06, 2022 @10:39AM (#31285673)
Windows Terminal is a separate project from PowerShell. It's just a terminal that you can use with different shells (including PowerShell).

I have no idea what their blog posts are saying, but at least I've always found it pretty nice.

Re:When I tell the Windows Terminal team something is simple... by behnamoh on Friday May 06, 2022 @10:46AM (#31285761)
PS has been pretty slow though. I’ve liked the fact that you can pipe objects, but it seems to slow down the startup time of the shell.
Re:When I tell the Windows Terminal team something is simple... by juki on Friday May 06, 2022 @10:50AM (#31285823)
True, the slow startup is annoying (especially if you load modules in your profile), but overall I still think it's better than the alternatives. I usually just keep a terminal window always open.
Re:When I tell the Windows Terminal team something is simple... by rascul on Friday May 06, 2022 @01:21PM (#31287678)
PowerShell is available for Linux if you want to use it more without Windows.
Re:When I tell the Windows Terminal team something is simple... by KennyBlanken on Friday May 06, 2022 @10:41AM (#31285702)
> There's so many blog posts saying look, we're so smart

Have you read Casey's twitter feed? The man routinely goes into long twitter thread rants about how stupid everyone else is.

His favorite target seems to be...drumroll please...large corporation software teams.

Re:When I tell the Windows Terminal team something is simple... by yjftsjthsd-h on Friday May 06, 2022 @10:50AM (#31285818)
> rants about how stupid everyone else is.

> His favorite target seems to be...drumroll please...large corporation software teams.

To be fair, that's... not unreasonable. I've thought unkind things about large corporate software teams while I was working at said large corp.

Re:When I tell the Windows Terminal team something is simple... by phaistra on Friday May 06, 2022 @10:54AM (#31285878)
> rants about how stupid everyone else is.

> His favorite target seems to be...drumroll please...large corporation software teams.

I missed the part where he is wrong.

Re:When I tell the Windows Terminal team something is simple... by trapnii on Friday May 06, 2022 @01:01PM (#31287439)
the part where "he" is wrong, is the part where he tells everyone that his reference software can be compared to a real terminal. You cannot compare shoes with towels, nor cats with a TV. The tiling renderer "he" wrote as part of the reference software to demo isn't that bad as a product (to some degree), but that piece of software is garbage, as it has zero use. And almost none of the techniques "he" brags about can be applied to a real terminal. I mean, I like being educated. But so far, noone of the internet fanboys "he" has, has so far ever provided a real product out of his reference software. Admitted, some people tried (just look around), but they all failed. I wonder why. Do you know it?
Re:When I tell the Windows Terminal team something is simple... by dmitriid on Friday May 06, 2022 @01:31PM (#31287764)
> the part where "he" is wrong, is the part where he tells everyone that his reference software can be compared to a real terminal

He very clearly states that his implementation is a terminal renderer.

> And almost none of the techniques "he" brags about can be applied to a real terminal

Elsewhere one of the people from the screenshots says "we implemented the same approach" because these techniques can be and have been applied. Both in Windows Terminal and, as I understand it, in every single modern terminal emulator.

[dead]
Re:When I tell the Windows Terminal team something is simple... by dmitriid on Friday May 06, 2022 @04:41PM (#31289423)
He literally implements VT parsing etc.

Edit: Also read this https://news.ycombinator.com/item?id=31285723 "We implemented Casey's approach and most modern terminals implement it". You need more proof?

[dead]
Re:When I tell the Windows Terminal team something is simple... by dmitriid on Friday May 06, 2022 @06:31PM (#31290234)
Quoting from the author of the blogpost:

"We actually took the same approach Casey suggested... A lot of terminals implement it that way." [1]

I guess authors of a lot of terminals are trolling you.

From the refterm README: "VT codes for setting colors and cursor positions, as well as strikethrough, underline, blink, reverse video, etc." [2]

And, to begin with, Windows Terminal was horrendously slow even without VT codes. Also, for context, [3]

[1] https://news.ycombinator.com/item?id=31285723

[2] https://github.com/cmuratori/refterm

[3] https://news.ycombinator.com/item?id=31285339

[dead]
Re:When I tell the Windows Terminal team something is simple... by dmitriid on Saturday May 07, 2022 @04:33AM (#31293023)
> I am open for being corrected

No. No you're not. Because you keep shifting goalposts and ignoring inconvenient truths.

First you claimed that "almost none of the techniques "he" brags about can be applied to a real terminal".

To which I linked and quoted Windows Terminal team: "We actually took the same approach Casey suggested. A lot of terminals implement it that way."

Then you shifted the goalpost to saying "We should distinguish here between renderer and VT terminal backend."

To which I replied: he implements VT parsing and rendering.

Is it a complete VT parsing and rendering pipeline? No. Does it invalidate his approach? No.

And to put this into additional perspective, Windows Terminal was abysmally slow with no VT parsing, and with no color output to begin with. It couldn't handle most of Unicode, wide characters and dozens of other things.

And so on. Now it's "sickness", "plain garbage" and other stuff. Tell me, are you perhaps on Windows Terminal team? Because that's a fine if exaggerated example of their behaviour just a year ago. Now they are like "yup, we're doing exactly the same things that Casey is doing".

But wait, don't tell me. I'm definitely not going to engage in this useless thread any longer.

Re:When I tell the Windows Terminal team something is simple... by trapnii on Saturday May 07, 2022 @05:46AM (#31293272)
> > I am open for being corrected

> No. No you're not. Because you keep shifting goalposts and ignoring inconvenient truths.

I still am. Please submit a PR to refterm to that implements the VT sequences I mentioned above, until then I must continue to believe that you just repeat what other people say, without using your own brain. Shifting goalposts is probably not the best wording here. I keep listing arguments.

> First you claimed that "almost none of the techniques "he" brags about can be applied to a real terminal". > > To which I linked and quoted Windows Terminal team: "We actually took the same approach Casey suggested. A lot of terminals implement it that way."

"Almost none" does not mean "none". What WT applied is related to the tiling renderer. And I am sure I said "isn't that bad as a product" with respect to that. But Cassay also said that such things are super basic (if you know about it).

> Then you shifted the goalpost to saying "We should distinguish here between renderer and VT terminal backend." > > To which I replied: he implements VT parsing and rendering. > > Is it a complete VT parsing and rendering pipeline? No. Does it invalidate his approach? No.

VT parsing and actually doing something based on it, how often do I need to write that until you do understand that (!?), are two entirely different things. VT parsing is done in refterm, because it's needed for SGR and CUP, obviously. But everything else is discarded. All the other VT sequences that are parsed are not interpreted. Again, Please implement the VT sequences I mentioned above in refterm, without degradation of refterms claims.

> And to put this into additional perspective, Windows Terminal was abysmally slow with no VT parsing, and with no color output to begin with. It couldn't handle most of Unicode, wide characters and dozens of other things.

You use Cassays wording here. I'm fine with that, WT was and is in fact still slow. Just fork it, and make it faster. You guys keep saying it's simple, it's easy, it's all proven numerous times. Yet noone of you ever provided a terminal that is implementing enough VT sequences to be taken serious. refterm is a joke, it's garbage, and simply harmful. Not to its entirety, certainly not, it prove a point on rendering speed (7000 frames per second in a terminal-like application). Ignoring the usefulness of such for a moment, the reason why this whole rant of Cassay and his demo program is harmful to the public is, because you keep blindingly following him. Without questioning, without thinking about it, because thinking costs energy, one could say. I do not know your true reasons, but I can just encourage you to try.

I HEREBY CALL YOU OUT! Please work on refterm, and proof your point by implementing:

1. DECSTBM, DECSLRM 2. SM/RM/DECRQPM 3. alt-screen 4. DL, ICH, IL 5. rectangular operations (DECCRA, DECFRA, DECRQCRA, ...) 6. SD, SU (respecting margins set by DECSTBM) 7. DECAWM correctly applied.

> Tell me, are you perhaps on Windows Terminal team?

I am not part of Microsoft nor their WT team. I do however know how terminals work internally, because I have implemented one. So I do know what I am speaking about here. I even took refterm very serious and looked into the source code and tried to learn from it. Again, I was already saying repeatively that there are some good techniques applied, and also has some architecturally good decisions. But this does not hold on the performance level when you actually start implementing more than just bling-bling SGR plus CUP. Ignoring DECAWM is also a damaging descision.

> But wait, don't tell me. I'm definitely not going to engage in this useless thread any longer.

Because I call you out? That's cheap. Please at least have the balls and react on the actual content of my post (the VT sequences): technically!. Until then I must just assume you are (amongst many), a sickness of the internet: just repeating what narcissistic influencer keep saying, yet knowing nothing.

Re:When I tell the Windows Terminal team something is simple... by brhsagain on Wednesday May 11, 2022 @02:27AM (#31336460)
He never claimed refterm was a fully working terminal ready to use. He said it was a renderer. The entire point of refterm was:

    <casey> Windows Terminal is slow at rendering things
    <microsoft> Yes, rendering is a hard problem worthy of a doctoral research project
    <casey> No it's not, you literally just use a glyph atlas
    <microsoft> You are naive
    <casey> *writes refterm to demonstrate glyph atlas*
You keep complaining that it's not a fully working terminal. Casey, on the other hand, writes:

"These features are not designed to be comprehensive, since this is only meant to be a reference renderer, not a complete terminal."

— https://github.com/cmuratori/refterm#feature-support

Re:When I tell the Windows Terminal team something is simple... by trapnii on Thursday May 12, 2022 @06:10PM (#31360707)
Exactly. Therefore you cannot compare a renderers performance with some other that has a fully functional VT backend attached. The comparising result is meaningless. His renderer is good, but the VT throughput performance claims he makes are wrong. For that to be fair, he should not take shortcuts in functionality.
Re:When I tell the Windows Terminal team something is simple... by drdeca on Friday May 06, 2022 @09:10PM (#31291275)
Why is the word “he” in quotes? Are you implying that they’re trnsgnder or something? But you don’t put “his” in quotes, so that probably isn’t why?

It is confusing.

Re:When I tell the Windows Terminal team something is simple... by AnIdiotOnTheNet on Friday May 06, 2022 @12:07PM (#31286814)
Thing about Casey's rants is that he's completely right though. This is obvious to pretty much anyone who isn't being disingenuous about it. And his writing takes on an admittedly aggressive tone because, frankly, we've been dealing with shitty software that keeps getting shittier written by self-aggrandizing people for a decade or so now. He tried being diplomatic in his issue report and he was shit on for it. That happens all the time.
Re:When I tell the Windows Terminal team something is simple... by bitwize on Friday May 06, 2022 @11:23AM (#31286241)
He's not wrong though. Large corp software teams, paradoxically, tend to run stupid even if comprised of smart people.
Re:When I tell the Windows Terminal team something is simple... by mananaysiempre on Saturday May 07, 2022 @02:45PM (#31297327)
> There's so many blog posts saying look, we're so smart because they're reimplementing something both Linux and macOS had for years

It doesn’t really read like that for me, more of a look at this cool thing we made with an undercurrent of fucking finally, and that seems entirely fair.

Re:When I tell the Windows Terminal team something is simple... by anothernewdude on Friday May 06, 2022 @10:04AM (#31285229)
The whole world of CLI has been using a poor open source reimplementation of linux subsystems on windows for decades.
Re:When I tell the Windows Terminal team something is simple... by digisign on Sunday May 08, 2022 @05:53PM (#31308468)

    s/years/multiple decades/
Re:When I tell the Windows Terminal team something is simple... by palisade on Friday May 06, 2022 @10:22AM (#31285452)
I've pointed out flaws to the dev team at MS they were pretty quick about acknowledging it and fixing the problem. There were some showstoppers in the media encoders early on when they were developing win10. The only thing they asked is that I prove the issue was real and as soon as I did they were on top of it.

They were also pretty quick and helpful with answering any question I had. I guess it depends on what team you get ahold of. Or, maybe how you ask the questions. I always try to be polite and patient, which is hard to do when you're in a time crunch.

They really were trying to push azure hard in a situation that didn't require it. It was odd at the time. I chalked it up to the team evangelizing a new feature that they knew was going to rake in money, so they were required to bring it up. I remember it was funny and a little annoying to have to keep saying no... now let's get back on topic.

But, they never insulted me. It was a very professional experience. Sad to hear this kind of thing is happening now.

Re:When I tell the Windows Terminal team something is simple... by trapnii on Friday May 06, 2022 @01:24PM (#31287695)
Reading your post feels good, man. But your last sentence kind of bothers me. Why do you feel they are insulting you now? I think, if at all, someone else was, and kept doing, and still is, insulting them instead.

I'm just trying to understand here, thanks. :)

Re:When I tell the Windows Terminal team something is simple... by palisade on Sunday May 08, 2022 @06:48PM (#31308762)
In the last paragraph I indicated that they never insulted me. The very last sentence is referring to the article and that I'm sad to hear that this is the case now for others. When I personally interacted with Microsoft that wasn't the situation I had at all. I had a good experience.
Re:When I tell the Windows Terminal team something is simple... by haberman on Friday May 06, 2022 @10:56AM (#31285920)
I think this goes both ways. As a developer at a big company, I've definitely been called dumb or obstinate on issue trackers for not prioritizing certain feature requests, or for not moving forward with a specific design despite explaining why that design is incompatible with other requirements.
[dead]
Re:When I tell the Windows Terminal team something is simple... by mav88 on Friday May 06, 2022 @10:57AM (#31285934)
You're a liar. The entire thread on github [1] shows that it is a technical discussion about the unacceptably slow performance of virtual terminal sequences in Windows. Solutions are kicked around and debated until a Microsoft person steps in and calls what is essentially a weekend fix a 'doctoral research project' and accuses Casey of being 'combative'. Casey is rightly annoyed by this, closes the bug report and goes on to implement a proof of concept showing his blazingly fast approach that did indeed take a weekend. He's a good programmer, a good communicator and doesn't suffer fools gladly. This blog post merely proves he was right all along.

All your talk of 'narcissistic injury' and his personal motivations for anything is pure projection and tells me a lot more about you than about him. And yes, the New York Times is no better than reading Twitter.

[1] https://github.com/microsoft/terminal/issues/10362

Re:When I tell the Windows Terminal team something is simple... by ripley12 on Friday May 06, 2022 @11:44AM (#31286511)
Not a liar. Casey was being combative, and still is. He keeps mobilizing his entire community against a small team because 1 GitHub issue didn't go the way he wanted. I can't believe this is still going on.
Re:When I tell the Windows Terminal team something is simple... by mav88 on Friday May 06, 2022 @08:55PM (#31291185)
Yeah man, Casey just needs to leave poor Microsoft alone. Can't he see it's completely helpless against his good code and the people who follow him online?

I sometimes wonder if there are any adults on this site.

Re:When I tell the Windows Terminal team something is simple... by mrtranscendence on Friday May 06, 2022 @02:26PM (#31288316)
I don't believe Casey was being combative in the original thread, but ...

> And yes, the New York Times is no better than reading Twitter.

You're high as a kite if you believe that. Toking the dankest shit anyone's ever toked, long deep inhalations. You're dropping LSD you got from your friend's friend who you think is homeless and you're not sure what it's laced with. You're consuming craft psilocybin perfected in the lab to give the most detailed, most immersive hallucinations over hours and hours. You're babbling that you've seen God, that you know the secrets of the universe, that you're being bugged by the KGB, that your brother isn't really your brother but is an imposter who just looks and sounds exactly like your brother.

You're crazy.

Re:When I tell the Windows Terminal team something is simple... by mav88 on Friday May 06, 2022 @03:58PM (#31289087)
I'm a perfectly sane and sober individual, mrtranscendence. I think it's you who might need to ease up on the mind-altering stuff. Besides, I know the New York Times is a crock of shit because it's lied about me several times on its front page. So I have personal experience.
Re:When I tell the Windows Terminal team something is simple... by bfgoodrich on Friday May 06, 2022 @10:52AM (#31285858)
https://github.com/microsoft/terminal/issues/10362

The original discussion. There is absolutely nothing wrong with the way the Casey individual approaches it. At all. And yes it is simple. If your basic text terminal gets 30 FPS on modern hardware (or worse), you have started with a bad foundation. That is just gross.

The NYT commentary is a bit hilarious as you see that claim on here daily, repeatedly.

Re:When I tell the Windows Terminal team something is simple... by jodrellblank on Sunday May 08, 2022 @01:16PM (#31305986)
Your reply says it’s not rude it’s factual, and you defend it as factual by saying easy/hard is subjective with the skill of the developer (i.e. not factual), and you defend that it’s not rude by insulting the dev skills and calling them mediocre and laughable? And you don’t address the bit where he storms off in a huff when much less is said back to him?

Even if I agree it’s factually easy, walking up to someone and saying “walking is easy if you’re not a cripple, am I missing something?” is rude if the person is disabled and even more rude if they aren’t. “But they’re crippled! Fact!” doesn’t make it not-rude behaviour. He isn’t Linus Torvalds and even LT insulted devs on behalf of userland and good code and not just to make himself feel superior. And doesn’t have an eggshell thin skin.

Re:When I tell the Windows Terminal team something is simple... by jodrellblank on Saturday May 07, 2022 @12:51PM (#31296287)
nothing wrong?

> "Can you be more specific here about what you are talking about? While text output can be "hard", for some not particularly hard definition of "hard""

Insulting, dismissive, rude.

> "to me that a great deal of improvement could be made to the performance of the product if one were so inclined."

After someone said they'd been working on improving performance for 2 years and engaging in good faith with many detailed replies, someone who said they were dependent on changes in the OS which they couldn't make; to then insinuate that they just "weren't inclined" to make improvements is rude.

> "When we're at the stage when something that can be implemented in a weekend is described as "a doctoral research project", and then I am accused of "impugning the reader" for describing something as simple that is extremely simple, we're done. Consider the bug report closed."

Closing a bug report about performance which affects all users, an issue with many detailed comments from many people, because he's taken offense? And at something which was far less rude than the things he said to them in the same discussion? Prima-donna bullshit.

Re:When I tell the Windows Terminal team something is simple... by trapnii on Friday May 06, 2022 @03:58PM (#31289088)
> And yes it is simple.

I like. Please submit a PR and make Windows Terminal as fast as refterm, trivially speaking, 2GB/s, no slower than the unoptimized refterm. Just to quote you: simple.

:-D