Code Monkey home page Code Monkey logo

Comments (6)

achingbrain avatar achingbrain commented on May 17, 2024 6

@aurium this works today, if the stars align. The reason success is not always guaranteed is because in order to publish an IPNS name, the node running in the browser needs to be able to dial network peers that are KAD-close to the public key used to publish the IPNS name, in order to ask them to store the IPNS record.

Historically the only transports available to the browser were WebSockets and WebRTC-star. WebSockets need a TLS certificate to be dialable which is impractical for most users, and go-libp2p (the most commonly used implementation) has never supported WebRTC-star so typically a browser can't dial most of the network.

This is changing with the new WebTransport and WebRTC transports which allow browser nodes to dial server nodes without pre-configured certificates.

Helia ships with these enabled, and they are supported by recent versions of go-libp2p and rust-libp2p but we are limited by the speed at which the network upgrades to these newer versions so it would be hard to say "This will work in Q3" when it's mostly out of our hands.

from helia.

aurium avatar aurium commented on May 17, 2024 4

I would love to see "Publish IPNS names" on the roadmap. Working just with the browser, without a backend help.

from helia.

jbsolomon avatar jbsolomon commented on May 17, 2024 2

I don't understand why the solution to the problem is yet another divergent implementation instead of a shared library of common functionality which can be compiled as asmjs or wasm and given a sane and ergonomic interface in any language.

from helia.

MichaelJCole avatar MichaelJCole commented on May 17, 2024 2

I don't understand why the solution to the problem is yet another divergent implementation instead of a shared library of common functionality which can be compiled as asmjs or wasm and given a sane and ergonomic interface in any language.

As a web developer, I don't want wasm in my application unless I have to. While wasm works in the browser, it has a hard time going through all the tooling, unfamiliar protocols and data structures, amongst other non-technical problems.

More or less, it's the same reasons go developers don't go to npmjs.com, find a library they like and transpile it to go for their go project.

from helia.

pgk83 avatar pgk83 commented on May 17, 2024

I don't understand why the solution to the problem is yet another divergent implementation instead of a shared library of common functionality which can be compiled as asmjs or wasm and given a sane and ergonomic interface in any language.

Very good question, I have the feeling it's already a task with the ipfs project to solve not the integration of the solution to create a universal tool but porting implementation, disassembly and complication of the whole development

from helia.

achingbrain avatar achingbrain commented on May 17, 2024

@MichaelJCole has it in a nutshell. WASM is a great idea on paper but the DX in reality often leaves a lot to be desired.

Where it is really useful is for very hot codepaths that can take advantage of the speed increases it brings, but they need to be quite self contained with well defined entry and exit points to make debugging easier when things go wrong.

I'm going to close this issue as it's quite old. If anyone has items or ideas they'd like to see in the roadmap for the future please open an issue for discussion.

from helia.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.