News for hackers. Stuff that matters.
Re:Show HN: Phi-editor, a text editor implemented in Go and SDL by ishaanbahal on Monday April 16, 2018 @02:27AM (#16847042)
"Phi is a minimal text editor designed to look pretty, run fast, and be easy to configure and use. It's primary function is for editing code."

"The editor is written as if it's a game, so it will probably eat up your battery, as well as run possibly quite slow - especially if you dont have a dedicated GPU - and probably crash frequently."

Can't quite understand what it wants to be, a fast editor that's minimal or one that's like a game and kills my battery and run slow?

Re:Show HN: Phi-editor, a text editor implemented in Go and SDL by aorth on Monday April 16, 2018 @03:00AM (#16847162)
My guess (hope) is that Phi is just very new and alpha, and that the author was trying to say "it might eat your homework." Nevertheless, contrast that with Xi, another new, modern text editor written in Rust:

> Incredibly high performance. All editing operations should commit and paint in under 16ms. The editor should never make you wait for anything.

> Reliability. Crashing, hanging, or losing work should never happen.

https://github.com/google/xi-editor

Re:Show HN: Phi-editor, a text editor implemented in Go and SDL by zippoxer on Monday April 16, 2018 @06:23AM (#16847914)
Xi is orders of magnitudes more mature than Phi. You can't compare 76 contributors and 1128 commits vs 1 contributor and 103 commits.
Re:Show HN: Phi-editor, a text editor implemented in Go and SDL by Chris2048 on Monday April 16, 2018 @09:40AM (#16848875)
Of course you can compare them. One is way more mature, use that.
Re:Show HN: Phi-editor, a text editor implemented in Go and SDL by noobermin on Monday April 16, 2018 @03:10PM (#16851815)
I don't even think Phi is intended to be anything other than an individual/hobby project. Has the author even commented here yet?

My point is it's not like they are intending Phi to replace sublime, they're probably just doing it for fun. Even if they are more serious, they're being honest about its short comings right now.

Re:Show HN: Phi-editor, a text editor implemented in Go and SDL by always_good on Monday April 16, 2018 @11:04AM (#16849436)
If you thought they were trying to determine which one to use, you misread the situation.
Re:Show HN: Phi-editor, a text editor implemented in Go and SDL by zippoxer on Monday April 16, 2018 @11:58AM (#16849901)
You can also compare apples to oranges.
Re:Show HN: Phi-editor, a text editor implemented in Go and SDL by codetrotter on Monday April 16, 2018 @10:07AM (#16849062)
There’s and interesting video about Xi called Xi: An editor for the next 20 years. I remember it was a good talk and I would recommend watching it. https://youtu.be/4FbQre9VQLI
Re:Show HN: Phi-editor, a text editor implemented in Go and SDL by dilap on Monday April 16, 2018 @10:17AM (#16849134)
I love what Xi's trying to do, but last time I tried the OS X frontend, it was very, very slow on large files.

I think the Phi page is just including "current state of editor" as well as "aimed for state of editor" in the README.

Re:Show HN: Phi-editor, a text editor implemented in Go and SDL by raphlinus on Monday April 16, 2018 @11:24AM (#16849581)
We've done quite a bit of performance work, and there's a bit more in the pipeline, especially horizontal scrolling of very large lines. Some of the slowness at the latter is performance bugs in CoreText; we're considering more aggressively working around those. If you're still seeing slow performance, please file an issue.
Re:Show HN: Phi-editor, a text editor implemented in Go and SDL by dilap on Monday April 16, 2018 @03:37PM (#16852017)
alright, tried it out on a ~10K line file i have; lines can get pretty long, up to 1000 characters. xi is better than last time i checked -- it can open the file, and is snappy near the top. it slows down a lot near the bottom, which is where the longer lines are.

sublime, for comparison, is very snappy on the file.

i also tried it out on a pathological json file, which is just one line, 429984 characters long. it hung xi for a long time, and when it loaded, was very slow. again, sublime is completely snappy on the file.

probably not worth a bug since i think it's related to long-line support, which i think is already on your radar?

Re:Show HN: Phi-editor, a text editor implemented in Go and SDL by dilap on Monday April 16, 2018 @11:54AM (#16849855)
cool to hear. i will check out the latest, and report perf problems, if any.

(i hope my comment didn't come across as overly negative. i am very excited about xi! :-)

Re:Show HN: Phi-editor, a text editor implemented in Go and SDL by felixangell on Monday April 16, 2018 @09:09AM (#16848672)
It's mostly a disclaimer for the time being. I'm making no guarantees that the editor will meet those claims at it's current state - but that's the end goal.
Re:Show HN: Phi-editor, a text editor implemented in Go and SDL by ema on Monday April 16, 2018 @02:59AM (#16847158)
It's trying to be the former but is still the later.
Re:Show HN: Phi-editor, a text editor implemented in Go and SDL by abtinf on Monday April 16, 2018 @10:50AM (#16849334)
I don’t know anything about this editor other than what’s in the readme, but I can make an educated guess.

It can be a minimal and fast editor in terms of text operations.

It can be a heavy and slow editor in terms of screen rendering.

There is no inherent reason why, as it matures, it couldn’t become lighter and faster overall compared to other editors, since it actually uses available modern hardware.

Re:Show HN: Phi-editor, a text editor implemented in Go and SDL by primitur on Monday April 16, 2018 @04:15AM (#16847436)
Tight game-loops can be a battery drain, and especially if there are local 'go-lang' things running, inevitably, alongside the SDL bridge. I'd put it in as a clever and educated 'packages may damage your battery' fair-warning, myself.