HNHacker News
TopNewBestAskShowJobs

enugu

457 karma · joined February 12, 2016

Google email id : harshavr
submissionscomments
enugu··on Wasmer 5.0
Javy project seems more active.
enugu··on Wasmer 5.0
For sandboxing in JS, we can use sandboxed iframes or webworkers. Both of those communicate to hosted code via postmessage which serializes an object and this can be used as a base for implementing function calls.

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.

enugu··on Wasmer 5.0
Could this ever function as a less resource intensive substitute for Electron apps? WASM doesn't have DOM access, but could it be added in these extensions?

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.

enugu··on Why Slight Failed: A Slight Post-Mortem
Is there a good way for a startup to find a vendor who has agreements with larger companies and is willing to ship the startup's product?
enugu··on Building Document-Centric, CRDT-Native Editors
This is a very cool video. I am interested in making a dynamic notes app with user defined types and cutomizable flows. This is partly done already in Roam, AnyType... if you include the plugin system. But it seems like there is a lot of history.

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.

enugu··on Building Document-Centric, CRDT-Native Editors
This is something I think about, and there are some underlying technical issues as well, in coordinating all the plugins with common interfaces. We do not have workflow centric software even in the open source world which has managed to build a large family of apps in the usual mode.

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.

enugu··on OOP is not that bad
This post doesn't seem like a criticism of FP so much as the module system in Haskell, ML has a more powerful module system.

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.

enugu··on Adding row polymorphism to Damas-Hindley-Milner
Somtime ago, there was a debate on the ability of a static type system to model an 'open-world situation' where fields are added to records as model changes. (based on a post[1] which responded to a Rich Hickey talk).

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.

[1] https://news.ycombinator.com/item?id=22090700

enugu··on Ribbonfarm Is Retiring
It's not just that the social media is filled with low on substance posts with excess anger and snark, but this incentivizes everyone to be more forceful - as otherwise the louder voices can dominate the discussion. So, it's not just a quality of people issue but also an emergent dynamic which encourages tribalism instead of substantive posts. The same people can make reasonable posts in other contexts

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.

enugu··on Jazz – Apps with Distributed State
The analogy is more like an easier to implement version of a system(Custom Frontend Data Store) is worse than the standardized system (Database) rather than one system(database) being implemented on top of another system(filesystem).

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

https://en.wikipedia.org/wiki/Greenspun%27s_tenth_rule

https://wiki.c2.com/?GreencoddsTenthRuleOfProgramming

enugu··on The Rise of Worse Is Better (1991)
Ironically, the main feature that separates LISP from other modern languages is homoiconicity/macros(now that features like garbage collection are mainstream).

And this leads to an easier implementation - parsing is easier(which is why code transformation via macros becomes easy).

enugu··on Gleam Is Pragmatic
Your point on unnesting is apt but don't you mean functor instead of monoid?
enugu··on What P vs. NP is about
This is a good insight.

> 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.

enugu··on Fraud, so much fraud
Many solutions involving posting data in repositories or audits are being discussed in the comments.

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.

enugu··on Should Sports Betting Be Banned?
Legalized gambling with big enterprises running it and ads visible to most people, many of whom wouldn't usually gamble, should be orders of magnitude worse than informal networks. One may not get rid of the latter, but stopping the former has a very great value.
enugu··on Show HN: I Wrote a Book on Java
Why is it bad form to expose a record type only via custom functions and not its field accessors? Isn't this just like exposing a more usual object with its public functions and private functions remain inaccessible?
enugu··on Show HN: I made crowdwave – imagine Twitter/Reddit but every post is a voicemail
Funny reply. But consider that making twitter posts audible and experiencing the full rage is fundamentally different from starting with audio first.

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).

enugu··on How to succeed in MrBeast production (Leaked PDF)
Yes, correction of a detail is good and not a problem. But using that to mock the central point is a popular strategy in discourse.

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.

enugu··on The disunity of consciousness in everyday experience
Yes, we misrepresent others constantly. A more basic point is that we are misrepresenting ourselves - Without a clear, detailed vision of thought/emotion flow, statements like 'I did this' are reifying this flow into an agent(not as a convenient abstraction to stand for a group of thoughts, but a felt sense that there is an 'I' actually doing something).
enugu··on The disunity of consciousness in everyday experience
There is an important issue with reducing this problem to linguistic conventions of how we use words.

'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).

enugu··on The disunity of consciousness in everyday experience
Discreteness doesn't imply there is no relation in the sequence. For instance, consider a processor in a robot processing sensations at clock cycle speed.

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.)

enugu··on Why Haskell?
Haskell doesn't stop you from mutation, it just makes you explicitly mark it, like types of inputs/output are explicit in statically typed languages instead of being implicit or borrowing is explicit in Rust.

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.

enugu··on Japan’s Temple-Builder Kongō Gumi, Has Survived Nearly 1,500 Years
There is a lot of individual creative energy in Japan, both in art and engineering. A great deal of care is taken to ensure the quality of products.
enugu··on Japan’s Temple-Builder Kongō Gumi, Has Survived Nearly 1,500 Years
There is a lot of individual creativity in Japan. How much you care for the interest of group (family/company/nation) is different from how much expressiveness there is at a personal level. The fomer being higher doesn't mean the latter is low.

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.

enugu··on Former Google CEO Eric Schmidt's Leaked Stanford Talk
This is an interesting point. But the spikes in revenue when tax policy changes indicates sensitivity. Further, that there are other countries with wildly different tax revenues as of GDP implies that there is lot of scope for change. https://en.wikipedia.org/wiki/List_of_sovereign_states_by_ta...

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.

enugu··on Former Google CEO Eric Schmidt's Leaked Stanford Talk
US did X is different from saying US defeated communism by doing X. I am not disputing the former and indeed there were terrible actions including bombing of civilians, and the removal of elected governments.

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.)

enugu··on Former Google CEO Eric Schmidt's Leaked Stanford Talk
It is not clear that the wars you cited, especially Vietnam, were necessary to fight and defeat communism, anymore than the Iraq was needed to reduce WMDs. This might be the reason for the wars given by the government, even a sincerely held position, but that is not to say that it is correct. Having a better economic system relative to communism, diplomacy with China to part ways from USSR - these seem more important.

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.)

enugu··on Tensors, the geometric tool that solved Einstein's relativity problem
A tensor field is a finite dimensional object varying over space. The space of all tensor fields is infinite dimensional. An operator in QM is infinite dimensional at a single point itself, and in QFT we have fields of such operators.
enugu··on Galois Theory
There is a nice topological proof which gives a more direct and visual understanding what solving by radicals means. It is quite short but might take some time to absorb the concepts.

https://jfeldbrugge.github.io/Galois-Theory/

enugu··on Galois Theory
The prime importance of solving by radicals is actually, that it led to the theory of groups! Groups are used in all sorts of places. (One nice pictorial example is fundamental group of a topological space). Just like Complex numbers arose in trying to solve the cubic. Also, the statement of Fermat's Last Theorem doesn't have any applications but its solution led to lot of interesting theory like how ideals get factorized in rings, elliptic curves, Galois representations...

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...

← PreviousPage 4 of 9Next →