News for hackers. Stuff that matters.
Re:How Dark Deploys Code in 50ms by conorgriffin on Tuesday July 09, 2019 @01:38PM (#20394475)
What is Dark’s biggest weakness (excluding the current lack of adoption)?
Re:How Dark Deploys Code in 50ms by pbiggar on Tuesday July 09, 2019 @01:40PM (#20394499)
Wow, what a start :) Probably the biggest one is that you have to leave your editor. If you've spent 20 years carefully configuring your vim or emacs setup, you're not going to be happy to give that up. Don't have a good solution to this right now either.
Re:How Dark Deploys Code in 50ms by Sophistifunk on Tuesday July 09, 2019 @09:03PM (#20398323)
Over all my years it's become clear to me that this attitude of refusing to give up a specific tool (and it's always something married to plain 1d text) is the biggest thing holding out industry back.

I don't know if you can convince people to do it, but I'm glad somebody's trying.

Re:How Dark Deploys Code in 50ms by jrockway on Thursday July 11, 2019 @08:32AM (#20410992)
I think people don't want to leave their editor because navigating and typing code is a large part of programming. If you try some new editor, it's always going to be pretty wonky. For example, I've been using the Arduino IDE recently. I am used to navigating lines with C-n and C-p. It's something I do thousands of times a day. In the Arduino IDE, those keys create a new sketch (something I want to do maybe once a week) and print the current sketch (something I imagine nobody wants to do ever).

The UI is just not thought out at all. I don't think I'm being resistant to change. I think their IDE is just garbage.

Some people have done new IDEs well, VSCode comes to mind. But replicating 40 years of features is not going to happen overnight, and some of those features are actually important. Figuring out which ones are the key. If you don't hit a developer's critical set of features, they aren't going to use your thing.

Re:How Dark Deploys Code in 50ms by imglorp on Thursday July 11, 2019 @07:06AM (#20410633)
I'm glad someone's trying also.

And the reason 1d text is hard to get rid of is not merely an editor (ie, an "app") but a galaxy of languages, tools, and operating systems built around 1d character streams. Everything from the serial driver to the style sheet can be manipulated with primatives for mapping, filtering, and composing character streams and operations on them.

There ARE a bunch of benefits to structured code, for example Docker and npm/pip/etc have recently showed us a hint of what composition of standard components can bring.

What might be missing from structured code is the rest of the primitives on ASTs. Once we have all that we can talk about backporting to emacs :)

Re:How Dark Deploys Code in 50ms by icebraining on Thursday July 11, 2019 @11:17AM (#20412171)
All code is structured, otherwise it couldn't be compiled/interpreted. The Go community, for example, doesn't need to store their code in some sort of custom binary format to apply changes: gofix works fine with plain text. Text is just a serialization format for those ASTs, no different than any binary format.
Re:How Dark Deploys Code in 50ms by icebraining on Thursday July 11, 2019 @11:18AM (#20412185)
What do you see we could improve if we only left text? I've read the promise many times, but never actually saw any convincing reasons. Text is just another format anyway.
Re:How Dark Deploys Code in 50ms by oftenwrong on Thursday July 11, 2019 @08:56AM (#20411112)
One editor setup cannot satisfy all of the diverse preferences of all "religious" editor users. You have to support significant customisation to "convert" us.

Maybe the editor should be customisable via Dark itself?

Alternatively, allow us to use our editor-of-choice and provide a language server to facilitate the creation of structured editing plugins for Dark.

I would add that most applications, including most non-vi-or-emacs editors and web browsers, do not allow much customisation of how their input is mapped to actions in the software. For someone like me, a person that is a vi die-hard because of its ergonomics, this is absolutely critical. Post-input customisation, no matter how advanced, cannot satisfy this need.

Re:How Dark Deploys Code in 50ms by pbiggar on Thursday July 11, 2019 @04:40PM (#20415609)
> Maybe the editor should be customisable via Dark itself?

That's the plan!

Re:How Dark Deploys Code in 50ms by conorgriffin on Tuesday July 09, 2019 @01:51PM (#20394639)
Haha figured I’d get in early with a hard question. I signed up a long time ago out of curiosity, it’s been a while since then, looking forward to trying it out