112 points · by bjenik · 7y ago · 72 comments
script, style { display: block; }
I have no words.> Warning: All of this doesn’t really follow any best practices for working with html, css or javascript - on the contrary: what we will be doing may look horrible to some people, and rightfully so - so you may not want to try those things at work just yet.
Changing editor capabilities on-the-fly!
An all-native solution on top of a powerful modern language (rust?) would be ideal, but that doesn’t seem to be the direction things are moving. We’ll probably end up with Flutter/Native.
Unfortunately the providers of the OS'es we use don't bother with this.
What would the world be like if you could run anything anywhere and most importantly: how would you decide that you prefer a mac to a windows-machine?
I think web technologies are a bridge that many like to use because of the sad state of things in the UI domain.
There's more experimental forks for macos and qt.
Can you elaborate on what you mean by an all-native solution on top of a powerful modern language?
The way I see it is that a new toolkit like GTK or Qt is required in the target language.
The way i See it is that a new toolkit like GTK or Qt is required in C so that it can interface with any language as to avoid unnecessary duplication between languages (it is much easier to convince people switch toolkit than switch programming languages), ensure no language-specific indirect dependencies (especially if it is to included in OSes like OpenBSD that are traditionally C oriented) and with a stable backwards compatible ABI to avoid wasting the time and effort of whoever maintains the bindings (no need to rewrite them every few years), whoever decides to learn the new API (no need to learn something new for doing the exact same thing as before, only now in a slightly different yet incompatible way) and perhaps hopefully become a "standard" API people can target on Linux without having to carry 29892482923TB of libraries for a trivial app since you cannot rely on anything outside of X11 being there (and if GNOME people have their way, you wont be able to rely on even that). And of course all that in a permissive license that leaves everyone happy.
Now guess how likely all of this is going to happen.
VS Code, Slack, Signal, probably Keybase, Skype, MS Teams, Discord, RamBox, IRCCloud, Postman, Insomnia, Light Table, Hyper, and...
The list goes on.
But those are apps I have used and know are Electron. Thats at least 10 different instances of Chrome on a system running at any given time.
Too bad all apps are now electron.
In data centers, loading data from networked server, where it's in memory, can be used over loading data from a disk, because disk is comparatively slow.
A web app can load JavaScript assembler, which isn't much slower than a desktop app written in C.
Bigger - and slower - parts of the web app can be loaded after the app starts interacting. So - at least in principle - no sizeable speed difference, which would blow somebody away.
Advantage of web app is cross platform uniformity. Write once, run everywhere.
Of course, reality can make adjustments, but we can see and invent things.
Obviously starting the app is going to take longer, especially from cold, but if you ignore things like DNS resolution and download time then 200ms is more than enough for most things to get from 'downloaded' to 'interactive'.
I personally wouldn't want the developers of the software I depend on most to waste resources speeding up something of such marginal significance.
[Edit: an instant-start editor for config file, vim commit edits etc is of course crucial]
Make my changes, save/quit and it appears in my text box in the browser. Obviously doesn’t work on my phone (why would I want it to?) but it’s a super nice workflow (if a bit jarring to have another program/terminal pop open).
I’m using qutebrowser for this, and this mechanism is an officially supported part of the browser.
https://www.reddit.com/r/qutebrowser/comments/780u6a/how_to_...