Life is Tetris @ tetrislife @leminal.space Posts 1Comments 5Joined 2 wk. ago
Apparently, this should be possible now (and, for apps, the result would be as "usable" as Electron) thanks to WebIDL. For example, Webkit's code to support Javascript access of browser objects is generated from a WebIDL spec. Generating support for
<your_language>
's access to Webkit's browser objects is "just work".Actually, https://tauri.app/ ...
Enough of this tangent now!
I suspect writing cross-platform desktop/mobile apps in HTML/CSS/JS was another big pull in this direction.
Many popular languages are bad, yet JS is the one with a widely-deployed OS interface written in it (WebOS).
If free-software/open-source devs hadn't got caught up chasing all this, there was a chance of replacing JS with other languages in the stack. HTML/CSS/your_language probably for apps initially, even making browsers support plugging in languages later. The docs say anything other than JS is not supported, so no script type="text/your_language". If only!
The first fully-developed prototype-based OO language was Self, original Javascript seems quite similar.
There must be plenty of non-evil companies doing healthy business and giving out good dividends that you could invest in. It would be a bad idea only if you are in an arms race against other investors and they'd make more money investing in evil companies.
Risk seems unavoidable, and you would have to be deliberate in deciding what to invest in. Real estate in climate-change-facing regions too ended up being a risky investment.
I believe most people aren't bad actors. But also, most people can see what is good for them. And cooperatives prove that people can run with it to their advantage.
David Graeber made a very good point that the concept of money is only necessary for war. Take money out of the equation and the next local group will have to stretch to avoid mutual care.