[–]▶ No.878560>>878604 >>878618 >>878648 >>878649 >>878672 >>879439 >>879490 [Watch Thread][Show All Posts]
Xray is an experimental Electron-based text editor (written in Rust) informed by what we've learned in the four years since the launch of Atom. In the short term, this project is a testbed for rapidly iterating on several radical ideas without risking the stability of Atom. The longer term future of the code in this repository will become clearer after a few months of progress. For now, our primary goal is to iterate rapidly and learn as much as possible.
https://github.com/atom/xray
▶ No.878570>>878575 >>878603
Is it vim? Is it emacs? No? Then there's literally no reason anyone should ever use it.
▶ No.878575>>878576
>>878570
>implying vim and emacs aren't shit
▶ No.878584>>878638
I use vim. I am heterosexual. I eat meat.
▶ No.878587>>879028 >>879038
>Duration Action
>8ms Scrolling, animations, and fine-grained interactions such as typing or cursor movement.
>50ms Coarse-grained interactions such as opening a file or initiating a search. If we can't complete the action within this window, we should show a progress bar.
>150ms Opening an application window.
My monitor refreshes every 7ms.
Why do all these modern apps have to have so much vertical bloat? Vertical as in layers upon layers of abstraction as opposed to horizontal bloat which is kind of like emacs which has tons of different commands that you might not even use.
▶ No.878593>>878598
>>878576
An editor made for EDITING textfiles that people frankenstein due to massive sunk cost of learning keybinds. And a lisp environment with some primitive text editing that people turned into a lisp OS with primitive text editing.
Yep the peak of programming tools right there.
▶ No.878598
>>878593
And all these bloat are still less bloated than any electron software.
▶ No.878603>>878751 >>879035
>>878570
I use Emacs. It's shit.
▶ No.878604
>>878560 (OP)
Because nano is fine and literally 1/1000th the size.
▶ No.878617
your right we should all start using rust/xray immediatly
▶ No.878618
>>878560 (OP)
Because I don't want cancer.
▶ No.878623>>878726
What the fuck is with all these new text-editors made with XML and Web 3.0? People realize that a text editor is designed to edit text, and not render it, right?
▶ No.878629
▶ No.878638
▶ No.878648>>878772
>>878560 (OP)
but why if there's Sublime Text?
▶ No.878649
>>878560 (OP)
hmm it aims for some rather bizarre goals
like concurrent editing (similar to constantly resolving merge conflicts in real time)
but what are the use cases for that?
▶ No.878672
>>878560 (OP)
>Electron
I'd rather use anything else
▶ No.878726>>878727
>>878623
But text is boring, anon. There needs to be images, videos, and HTML5 games embedded in a .txt file so that little fatherless Tyrone has nice flashy moving pictures to help him read!
▶ No.878727
>>878726
Even Terry Davis used a language with embedded images.
▶ No.878772
>>878648
This. I know emacs about as far as one can, but most of the time I just use sublime these days. It's hassle free.
▶ No.878853>>878967
>Martin Fowler defines software architecture as those decisions which are both important and hard to change. Since these decisions are hard to change, we need to be sure that our foundational priorities are well-served by these decisions.
So they made sure they were all bad decisions.
▶ No.878962>>878966 >>878997 >>879032 >>879038
Wtf is electron, and why it smells of soy boy?
▶ No.878963
Because I already have a web browser
▶ No.878966>>879045 >>879109
>>878962
Imagine GTK or Qt but instead of a library it's a web browser and instead of C it's Javscript.
▶ No.878967
>>878853
Interesting distinction. So,
hard + unimportant = naming scheme/programming language used,
easy + unimportant = user interface,
easy + important = drivers/modules used?
▶ No.878997
>>878962
>Using some JS-shit instead of dd for disk-writing
GAY
▶ No.879028>>879038
>>878587
8ms is fast enough to perceive, that's insane.
▶ No.879032
>>878962
>Made with Cancer.
I challenge someone to find a useful project with that slogan attached.
▶ No.879035>>879041 >>879042 >>879562
>>878603
I'm curious as to what it is you hate the most about it.
▶ No.879038>>879109
>>878587
>My monitor refreshes every 7ms.
143hz
perhaps they are aiming for the majority who are limited with 60hz, that is, every 16.(6)ms
>>878587
>Why do all these modern apps have to have so much vertical bloat?
mostly ease of coding, especially when making huge changes
>>879028
well I am fucked then. my laptop can't do anything above 60hz. macOS doesn't even have any options in GUI to change refresh rate.
>>878962
btw, what are the other possible choices if I want to target a lot of platforms (for example, all desktop + Android) while not having to write too much platform specific code?
▶ No.879041
>>879035
could be >>878802
(I'm not him)
▶ No.879042>>879047 >>879073
>>879035
It likes to lock up in annoying ways because it's still living in 1980s synchronous terminal world, it has mediocre mouse support, its default behavior could be much more sane (it mixes tabs and spaces until you turn that off, what the fuck), among other things.
I don't hate it, I love it, I just think it's shit.
▶ No.879045>>879048
>>878966
GTK and Qt can't target web browsers, IIRC.
Javascript, as much as it's shit, is at least [mostly] memory safe (so is almost any other language, except C and C++)
The biggest actual problem is that it's bundling a complete Chromium with (kind of) static linking.
We did not do anything better in time, so we got the future we deserved.
▶ No.879047
>>879042
>I love it, I just think it's shit.
that's abusive relationship bro
tough shit you got there
▶ No.879048>>879057 >>879059 >>879074
▶ No.879057>>879059
>>879048
so it's sending already rendered (parts of) graphic bitmaps over the network?
▶ No.879059
>>879048
>>879057
…an interesting find nonetheless
▶ No.879064
more rust trash nobody asked for that probably performs better if it was written in c++
▶ No.879073
>>879042
>I don't hate it, I love it, I just think it's shit.
It has its warts, but when I think how cool it is to replace almost everything with LISP in real time, it's pretty neat. I use it less and less these days, but I'm glad it exists.
I'm sure I'd hate it more if I dug into the source code, I hear that it has collected a lot of cruft.
▶ No.879074>>879076
>>879048
As clever as that may be, it still makes me want to throw up.
▶ No.879076>>879077
>>879074
That's the proper reaction to clever things. Dijkstra was right.
▶ No.879077>>879080 >>879092 >>879175 >>879209
>>879076
What I just cannot understand is that so many other programmers are willing to excrete crap like Electron-based projects to their users. What happened to programming as an intellectual exercise, as something you can be proud of doing? Dijkstra must be spinning in his grave.
▶ No.879080
>>879077
target audience changed
▶ No.879092>>879206 >>879246 >>879402
>>879077
I believe in rapid application development through code reuse and code composition. Electron is a huge library of imminently usable code for use in common GUI applications. Electron is cross platform across Unix, OS X and Windows. I don't care about intellectual wanking as much as achieving results as quickly and efficienctly as possible.
▶ No.879109
▶ No.879175
>>879077
>What happened to programming as an intellectual exercise, as something you can be proud of doing? Dijkstra must be spinning in his grave.
You can't be proud of your work when you can't do the best you can. You can't do the best you can because shitty hardware and bloated OSes don't let you. The other problem is that everything is much more complicated. Universities used to build their own machines and their own OS without caring whether it ran anyone else's software. It used to take less time to build new computers with new CPU architectures and OSes than it did to update a CPU and OS. It still does, but practically nobody wants to. Dijkstra complained about the "software crisis" but now the crisis is much worse. At least back then, the bloatware was assembly programs made by people who generally knew what they were doing.
https://en.wikipedia.org/wiki/Software_crisis
▶ No.879206
>>879092
>achieving results
You still need to solve that part.
▶ No.879209>>879214 >>879218
>>879077
>intellectual exercise means going as low level as possible and doing everything as primitively as you can
No, fuck you. You can be clever in any language, not just muh C. In fact, C often encourages not being clever due to a lack of higher level constructs, which makes reinplementing these features all too complicated, clunky, time consuming and probably pointless since you may had as well choose a more suitable tool from the get go and get straight to the point of your project. In fact, you can be clever in JavaScript with dispatch tables and closures to the point programming becomes almost declarative, which in my opinion is peak clever.
▶ No.879214
>>879209
you got it wrong, it is only clever if it werks good and isn't a PITA to change, everything else is irrelevant
▶ No.879218
>>879209
When did I say that you could not be 'clever' in a high level language? I never even brought up C, but you can be as 'clever' as you like in Javascript, the problem is that current implementations are horrendous, especially with regard to memory management. No matter what, the electron project you ship will be a steaming pile of shit. Yes, even if you include the 'Made with Aids by Faggots' tagline, it still sucks.
▶ No.879227
▶ No.879246>>879544
>>879092
You can have code reuse with C. There are cross platform gui toolkits like Qt.
Why even care about macfags and winfags?
▶ No.879402>>879687
>>879092
it's literally bloat. Not "it's not written in assembly" meme bloat, but actual bloat where a single trivial user application written with it can take up a web browser amount of RAM and idle with non-trivial CPU usage. It's complete overkill in most every usage and it appeals to niggerlicious diversity-hires. It's Java^2. Even more bloat and even more memey.
▶ No.879410
>Xray
>Electron-based
>written in Rust
Super AIDS is real
▶ No.879439
>>878560 (OP)
because it's an experimental Electron-based text editor (written in Rust)
▶ No.879490
>>878560 (OP)
>written in Rust
▶ No.879544
>>879246
>Why even care about macfags and winfags?
you won't go far with that attitude, dude
▶ No.879562>>879715 >>879810
>>879035
Not him but Vi is just better. In Vi, every command is atomic and to do anything, you just fit together different commands and it all just works in an intuitive way.
This means that Vi is consistent across the board and you can learn and teach new commands just by using your imagination.
It also allows new features to be senselessly integrated into your existing workflow.
Emacs on the other hand has these autistic, mortal combat-esque key combos that hurt your hand to type in because they were designed by an autistic man who likes to contort his hands into unnatural ridge shapes.
It also has a ton of bloat and none of the emacs tools (like email, web, etc.) are any good. Certainly could use a suckless fork of emacs
The only advantage emacs is LISP extensibility.
▶ No.879687
>>879402
Using a web browser as their runtime was stupid, failing to use the browser built into every modern OS was dumb. But the cherry on their retarded sundae is the fact that each Electron program you install will put its own 100MB+ copy of the runtime on your drive, and each one you run simultaneously will load that 100MB+ copy into RAM, bit-for-bit identical.
That's a level of incompetence that verges on Poe's Law malware.
▶ No.879715
>>879562
they match her eyes fantastically.
▶ No.879806>>879811 >>879836
>autistic, mortal combat-esque key combos
Nope, most of the common ones memorable mnemonics. If you don't remember you can just execute the command by typing it out after M-x or use the editor's built in help system.
>that hurt your hand to type in
My hands never hurt when using emacs.
>into unnatural ridge shapes
Maybe you are holding your hand wrong and don't have proper form.
>none of the emacs tools (like email, web, etc.) are any good.
Take that back. I use mu4e and elfeed every day and they work great.
▶ No.879810>>879829 >>879899
>>879562
You make some good points but, the reason Emacs has some awkward keycombos is because of the unbelievable amount of shit they have to cram into one package.
Of course, modal is better for plain editing but you can just do so much more with Emacs' combos, including semi-modal style using branching combo-trees.
Also, in terms of built in tools, some of them are great, some are decent for their purpose (EWW in particular), and some are... bad (GNUS).
But, Emacs is very VERY easy to extend, and of course this has led to an absolute flood of viable alternatives to just about everything.
For every GNUS there's a MU4E to replace it.
Also, Emacs' term mode lets you use just about any CLI application as an Emacs program.
If you dislike EWW you can swap to W3M or something, and you can even use VI in the term buffer if you like it better for editing text.
▶ No.879811>>879815
>>879806
You use MU4E?
How can I get it to use SSL/TLS instead of STARTTLS?
▶ No.879815>>880680
>>879811
(setq smtpmail-stream-type 'ssl)
**I'm already assuming you have message-send-mail-function set to
smtpmail-sendit**
▶ No.879829
>>879810
what's wrong with gnus? It takes a lot of configuration and manual searching, but it works great for me.
▶ No.879836
>>879806
>my hands never hurt
Yeah and then one day they do. Enjoy your visits to the doctor after that.
▶ No.879899
>>879810
eww leaks memory like a late-stage Alzheimer's patient. Pity, because I liked it otherwise.
▶ No.879924
The CRDT thing actually sounds neat. Maybe someone will put a frontend on it that isn't bloated to shit.
▶ No.880293
▶ No.880680