Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Aug 07 00:47
    amark updated the wiki
  • Aug 06 21:03
    amark updated the wiki
  • Aug 05 14:44
    fitouch commented #1268
  • Aug 05 14:42
    fitouch synchronize #1268
  • Aug 05 13:19
    fitouch commented #1268
  • Aug 05 13:19
    fitouch commented #1268
  • Aug 05 12:49
    amark commented #1268
  • Aug 03 23:33

    amark on master

    argh, axe needed skip reset. + … is this good enough? it's alive!!!! and 3 more (compare)

  • Aug 03 23:11
    amark updated the wiki
  • Aug 02 21:46
    fitouch commented #1267
  • Aug 02 21:46
    fitouch commented #1267
  • Aug 02 21:46
    fitouch commented #1267
  • Aug 02 21:44
    fitouch commented #1268
  • Aug 02 21:44
    fitouch opened #1268
  • Aug 01 23:44
    fitouch commented #1267
  • Aug 01 22:12
    amark updated the wiki
  • Aug 01 22:12
    amark updated the wiki
  • Aug 01 22:00

    amark on master

    fix ws error/reconnect ordering requery - oye, hopefully safer perf seemed worth it to add MC … and 4 more (compare)

  • Jul 30 22:35
    fitouch commented #1267
  • Jul 30 21:34
    fitouch commented #1267
Connor Davis
@connor-davis
Yeah, @amark What I mean is that app devs should be allowed to choose whether they want other peoples relays to store their data or not
Mark Nadal
@amark

UPDATE:
I'm gonna aggressively start pushing towards and testing against encrypted p2p webgl gaming.
If you didn't already see 1 of the demos, this is latest: https://twitter.com/marknadal/status/1465135435965878273
I then found out FireFox let's me push more triangles to screen than I can natively in Rust! (see my other tweet, I'm mind boggled by it) tho Chrome sucks, so that could be an adoption hiccup without downsampling.
This initiative will be split into 2 main categories:
(A) actually implementing a micro-game based on some sci-fi stories I have (or yours?)
(B) migrating learnings from (A) to an reusable p2p tools for it and R&D into stuff like Nanite-in-browser and AI-based evolutionary physic simulations.
If you'd like to help build a game, I'll be doing video calls teaching people how to learn webgl & stuff, let me know if you want to join.
this includes like cool interactive art projects and data visualizations ( and @i001962 & @noctisatrae are helping build a long run pipeline/platform for this, with a whole browser-based advanced statistical error tracker)
ok, gotta wake up in 5 hours :( cheers, cya!
(oh last comment: eventually one of these games is gonna explode, and AXE already cant handle the existing millinos of users, so we need need need DHT team to get things scaling ASAP! For the existing users, let alone for intense apps like gaming, will be even more performance/benchmark needing!)
Connor Davis
@connor-davis
Sweet @amark
James
@u007
@amark ive a stopper issue with nodejs where it hang on auth function, can u help?
lain
@lain:iwakura.xyz
[m]
lain
@lain:iwakura.xyz
[m]
ill try esbuild out
Robin Bron
@finwo
Unless you're doing a lot of metadata reflection things in typescript, esbuild works pretty well (and fast) for most platforms (node, browser, etc)
lain
@lain:iwakura.xyz
[m]
still getting the warnings with esbuild
Robin Bron
@finwo
Then at least it's not webpack specific.
@amark Any idea what section of gun may produce that warning?
lain
@lain:iwakura.xyz
[m]
i think it might be causing issues with my vercel build of the site but not 100% sure
it works locally, but on the vercel site im getting this error
may be unrelated to gun tho
Robin Bron
@finwo
That's trying to perform regular math between a bigint and a number, so probably something like bigint(5) * 12
6 replies
Manwë
@Manwe-777
yeah @amark 11am CA works for me too !
lain
@lain:iwakura.xyz
[m]
i dont use bigints anywhere, wasn't sure if gun did or something
Zlynt
@Zlynt
Greetings,
Does anyone know if Gun uses too much data when being used in a mobile app (when compared to a mobile app using a centralized architecture)?
James
@u007
Ya i think tend to sync data from all peers including clients
Robin Bron
@finwo
The n notation, so the 19n for example, are bigints
@lain:iwakura.xyz That line is fully using bigints, not mixing types, so that issue is rather odd
lain
@lain:iwakura.xyz
[m]
i found this which seems to be the same thing, doesnt look like a gun issue
Filipe Vieira
@fsvieira
Hi, I am new to gun, and I have a very basic question but its confusing me a lot. I am trying to make the friends example but I don't understand how to get/listen to alice friends. My code looks like this:
const GUN = require('gun/gun');

const gun = GUN({localStorage: false, radisk: false});

const alice = gun.get('alice').put({name: 'alice'});
const bob = gun.get('bob').put({name: 'bob'});

const users = gun.get('users');

users.map().on(user => console.log(user));

users.set(alice)
users.set(bob);

alice.get('friends').map().on(friend => console.log("Alice Friend", friend));

alice.get('friends').set(bob);
But alice.get('friends').map ... doesnt print anything.
Jasper Molgvits
@jaspermolgvits_gitlab

AFAIK you can just do:
gun.get('friends').get('name').put('alice')
gun.get('friends').get('name').put('bob')

Currently you're not putting anything into 'friends'.

Filipe Vieira
@fsvieira
I don't understand, I am making bob alice friend ?
on the last line
Jasper Molgvits
@jaspermolgvits_gitlab
Oh right
You're not making Bob Alice's friend. You're putting the Gun constructor in there
I think 'bob' should be a string
Filipe Vieira
@fsvieira

I copy from docs:

var gun = Gun();
var bob = gun.get('bob').put({name: "Bob"});
var dave = gun.get('dave').put({name: "Dave"});

dave.get('friends').set(bob);
bob.get('friends').set(dave);

But I don't know how to listen/get/use it

Filipe Vieira
@fsvieira
@jaspermolgvits_gitlab on your first example didn't you overwrite friends name = alice, and then overwrite with bob ?
lain
@lain:iwakura.xyz
[m]
so ive trying to understand how gun works but im a bit confused on some stuff. if i create a key value pair in my user graph that only i can update, how is this guaranteed? peers can reject the update if its not me that tried to update the value, but given the value can i prove that i was the only one that updated it?
Manwë
@Manwe-777
@lain:iwakura.xyz yes, because your public key is in the graph key, so you send that + a signature (SEA does this)
lain
@lain:iwakura.xyz
[m]
hmmmmm i think im, starting to get it. i keep thinking of it in terms of an immutable blockchain where you can view the whole history of a value, but if im understanding this right this is mutable in that you can only read the current value, not any past values
Manwë
@Manwe-777
Yeah this is definitely not like a blockchain :D
but the principles of authorization and ownership verification are the same
Filipe Vieira
@fsvieira

Found the problem,

const GUN = require('gun');

const gun = GUN(/*{localStorage: false, radisk: false}*/);

const alice = gun.get('alice').put({name: 'alice'});
const bob = gun.get('bob').put({name: 'bob'});

const users = gun.get('users');

users.map().on(user => console.log(user));

users.set(alice)
users.set(bob);

alice.get('friends').map().on((friend, k) => console.log("Alice Friend", friend, k));

alice.get('friends').set(bob);
alice.get('friends').set(alice);

So apparently I can't disable storage, so is there a way to run gun only in memory ?

Jasper Molgvits
@jaspermolgvits_gitlab
I think you need to run this before running GUN() to disable localstorage:
localStorage.clear();
rococtz
@rococtz:matrix.org
[m]
@fsvieira: Your example about friends it's only good to see how gun saves data, but it's not good for actually storing friends. You saved them using gun.get('users') which means they are in the public space which everyone edit/delete.
1 reply
If you want to store data that nobody can edit/delete, you have to save it in your own user sub-graph
gun.user().get('friends') (as opposed to gun.get('users')
Filipe Vieira
@fsvieira
@rococtz:matrix.org Hi, Thanks for the tip I didn't know that. But right now I am just experimenting with gun, and security or other users are not a concern right now. I am running this on node, and I would like to put this on unit tests of my project so having gun running only in memory it would be nice to have. So is there a way to run this only in memory, I was checking file adapter but it seems not to work with this example, it seems only to work with radisk.
rococtz
@rococtz:matrix.org
[m]
@fsvieira: I don't know how you can you do memory only, you probably have to build your own adapter. Maybe @amark can help you with some advice
tedd pasta
@resession
is app.element.io down for anyone?
rococtz
@rococtz:matrix.org
[m]