457 karma · joined February 12, 2016
Whereas if I understand correctly, WASM can be provided with host approved JS functions to call directly in importObject. This seems more convenient and fast.
But for a plugin system, many people would prefer to write plugins in JS itself, so for WASM plugins, they might have to be compiled to WASM first. Dont know how if there is a mature implementation of JS->WASM.
Edit: Maybe this question doesn't make sense as the OS would need to have the runtime installed, and if that can be assumed, we would have lightweight apps already.
Nevertheless, I am more optimistic about such a product. The key issue is building composable interfaces to which plugins can glue in.
Piracy is not such a big problem as one can give the product free of charge to users and charge for hosting or charge commercial businesses for whom piracy is not a risk worth taking.
If anything, the business implication of a ubiquitous workflow interaction is its threat to the ads model (users dont visit social media sites but read in data via apis). The ad model might need to be replaced by something like micropayments to content creators, but that is a distant issue.
Or maybe we have done it in the past(interactive software in SmallTalk), but have forgot about it.
Also, the business reasons are not prohibitive - if lot of users use the workflow model, there can be a store where they can request, raise funds for plugins with a specific functionality. Developers won't ignore it, even if the moat is weak, as there is potential revenue. It would be like consultants providing solutions rather than selling a product.
On r/haskell, user mutantmell gave a implementation of the code (assuming such a module system) closely following the Dart code given in the original post.
https://gist.github.com/mutantmell/c3e53c27b7645a9abad7ef132...
https://www.reddit.com/r/haskell/comments/1fzy3fa/oop_is_not...
https://www.reddit.com/r/haskell/comments/1fzy3fa/oop_is_not...
>(Java-style) OOP offers a solution for this: you can code against the abstract type for code that doesn't care about the particular instance, and you can use instance-specific methods for code that does. Importantly, you can mix and match this single instance of the datatype in both cases, which I believe to be a superior coding experience than having two separate datatypes used in separate parts of your code.
>"Proper" module systems (ocaml, backpack, etc) offer a better solution that either of these: when you write a module that depends on a signature, you can only use things provided by that signature. When you import that module (and therefore provide a concrete instance of the signature), the types become fully specified and you can freely mix (Logger -> Logger) and (SpecificLogger -> SpecificLogger) functions. This has the advantage of working very well with immutable, strongly-typed functional code, unlike the OOP solutions.
>This is in essence the same argument for row-polymorphism, just for modules rather than records. It can be better to code against abstract structure in part of your code, and a particular concrete instance that adheres to that structure in other parts.
The crucial point was that structural typing on which row-polymorphism is based can model such open-world situations.
Also, having such a system can free you from having overly nested types.
It would be great if Purescript or row-polymorphism became more popular.
This need not be a unsolvable problem, and that one has to retreat places like HN relying on a single moderator(good, but doesn't scale).
One can also rely on timelines/feeds being based on Distributed moderation - A user selects moderators or custom-algorithms who they find valuable. The moderation can be along different dimensions like accuracy, interest, or aligned with some political view.
There could a moderator whose style is to purely check the soundness of the reasoning without taking any position on the issue itself. This can lead to improved standards of discussion.
A key issue is how to reduce the energy required to moderate - typically a moderator evaluates the quality and rely on networks of other moderators each handling smaller domains.
Current discourse encourages users to sort into strongly polarized groups, whereas more nuanced feeds in social media can lead to coalitions which don't neatly align with the standard fault lines. Platforms like Polis actively encourage common points of agreement across different groups.
The database has more features relative to filesystem, so we wouldn't miss the filesystem whereas a powerful indexing system is a feature in database missing in frontend data stores.
Some other examples below(Firefox plugins which are file browsers, FTP clients, C programs informally implementing subset of Common LISP features).
https://en.wikipedia.org/wiki/Inner-platform_effect
And this leads to an easier implementation - parsing is easier(which is why code transformation via macros becomes easy).
> To me, the essence of deep learning has nothing to do with trying to mimick biological systems or something in that sense; it’s the observation that if your circuits are continuous, there’s a clear algorithmic way of inverting/optimizing them using backpropagation.
> From the perspective of someone used to algorithms like Dijkstra’s algorithm, quicksort, and so on, this declarative approach of thinking in terms of loss functions and architectures, rather than how the net is actually optimized, sounds very alien. But this is how the whole algorithmic world would look like if P equaled NP! In that world, we’d all program declaratively in Prolog and use some kind of .solve() function at the end that would internally run a fast SAT solver to solve the problem defined by our declarations.
But given that many people are saying that they noticed and quit academia, how about also creating a more direct 'whistleblower' type of system, where complaints (with detailed descriptions of the fraud or a general view on what one sees in terms of loose practices) goes to some research monitoring team which can then come in and verify the problems.
The reason I say that is because I have frequently seen the same people who rage in text based media, have a very civil, even productive conversations on video (possibly because the human element is more obvious).
There is an open field out there for better functioning discussion sites, maybe audio/video micro-conversations could play a role (auto-transcribed as text is easier to skim and focus on chosen parts).
In the disagreement hierarchy(https://paulgraham.com/disagree.html) this is level 4 or 5, but pretending to be level 6. Like using a bug to say that the software lacks basic value.
'This block of ice is actually made up of lot of atoms and will melt away soon, but meanwhile it is a useful abstraction to treat it as a single block'
Compatibilists tackle the free-will issue in a similar way, Dennet says something like 'This chess program is perfectly deterministic, but it has free will - Even its programmer has to guess, as to what is its next move.'
The above usage of terms is OK at some level, but there is something independent of definitions - How we actually see the self, and the cause of actions. When somebody insults me, does it feel like the insult is describing I/me or does it feel like describing a bundle of thoughts/habits? Was the bad thing done by 'me' or was it done by desire and anger? Even if these are processes, we can't help but reify them into unitary agents and actions.
A major claim made by Hindu/Buddhist teachings is that once there is a shift in *internal perception* of how actions are happening, towards a more analytical view which breaks up the ego(ahamkara), this causes a major shift leading to liberation from cycles of suffering.
In Cognitive Behaviour Therapy, there is an analysis of thoughts and feelings behind actions, with a goal of liberation from chronic problems. This is very similar to a stage of manana(intellectual contemplation of certain statements in Vedanta).
The memory chip or processor cores or software cant be used as a basis for unity, because a relation between successive elements of the sequence is not the same as there being an underlying unity as all parts can be individually swapped out in upgrades (like in the Ship of Theseus).
Buddhist vipassana descriptions use the analogy of seeing a line of ants - From afar, they look like a single black line, but on going nearby one sees the discrete nature. Similarly, on becoming adept at mind noting practice, one can see thoughts/sensations this way.
(Not saying that I agree with the above take, as I do think there is an underlying consciouness which gives unity, but here I am attempting to steelman the argument. Also, as you indicate, the original article is talking about a different aspect - unity at a single time vs unity across moments, and a discussion of how reflection alters the contents of consciousness.)
Mutations becomes first class values like numbers or arays, and hence can be primitives for more complex mutations, whose types can be inferred from the types of primitive mutations.
This means that the we have compile time guarantees that certain piece of code wont change anything in certain part of the state - This function wont change anything in that part of the data.
It is no joke, though not strictly true, that Haskell has been called the world's best imperative language.
Also, for a group to be resilent, there actually needs to be a lot of creativity at in its members as otherwise it will collapse when it meets challenges.
But in the US itself, if it is true that high tax regimes(for both income and corporate tax) did not prevent dynamism in the economy (because of what Hauser observed or otherwise), that would be an interesting to note. One analysis I read, in Jacobin - a pro-socialist magazine, was that the critical difference was that in the US, companies were allowed to fail, whereas in the USSR failures continued due to political reasons and absorbed a lot of resources.
But that is not to say that X was the cause of victory. For too many cases, it actually lead to a backlash with regimes which were not friendly to US interests coming to power(Iran, Vietnam,..). Also, the USSR did similar acts (Hungary, Afghanistan) but could not win.
That the US prevailed owes a lot to its economic dynamism relative to USSR. (As an aside, US had a high tax regime and state-funded research during much of the Cold War, so the victory doesn't necessarily validate a lot of the libertarian rhetoric.)
That great violence unleashed in various wars wasn't actually necessary for realizing the goals of the countries involved is a very important history lesson which can prevent future violence.
(Similarly, one of the motivations for World Wars - who gets control of the colonies, seems futile in hindsight as the system of colonies was anyway dismantled.)
BTW, the same theory can be extended to differential equations and Differential Galois Theory tells you if you can get a solution by composing basic functions along with exponentials.
Historically, radicals can be motivated by looking at people trying to solve linear, then quadratics, medieval duels about cubics and quartics, the futile search for solving quintics etc. Incidentally, quintics and any degree can have a closed form solution using modular functions.
More discussion on the MathOverflow page https://mathoverflow.net/questions/413468/why-do-we-make-suc...