These are chat archives for ProtoDef-io/node-protodef

6th
Apr 2017
mhsjlw
@mhsjlw
Apr 06 2017 11:44
what is etherium
like I read it
but why
I don't get it
you pay to host these smart contracts
but it seems like they can't do much
CertainLach
@CertainLach
Apr 06 2017 12:52
@roblabla May be create protodef as low level library? And add ability to add custom config section to protodef file? So all transmission will be managed by protodef wrapper basing on config section
Hans Elias J.
@hansihe
Apr 06 2017 12:58
I disagree with this, let me try to explain my thoughts
So, my thoughts behind how I would want protodef to be, is a way for the user to eliminate the majority of the effort when serializing and deserializing binary data
In my mind protodef should NOT be a way to handle a complete protocol including transport/compression/encryption, it should be very good at serializing/deserializing binary data, but we should avoid feature creep outside that
CertainLach
@CertainLach
Apr 06 2017 13:01

and I want protodef to be smart enough to understand "hey, it's TCP, so it's a stream by default"

So, then i don't unterstood this...

Hans Elias J.
@hansihe
Apr 06 2017 13:03
If you look at many binary protocols/file formats, you will see that in the majority of them being able to avoid manually writing tedious serialize/deserialize code is already a huge win, having to implement the rest of the code that deals with transport/compression/encryption would not take very long
Being able to represent most binary formats generically is already such a big project in and of itself, if we expand the scope even more nothing will ever be finished
CertainLach
@CertainLach
Apr 06 2017 13:05
May be i am dont unterstood roblalba, it seemed to me that he meant that the protodef should handle tcp independently...
Hans Elias J.
@hansihe
Apr 06 2017 13:05
I am also confident there is no way we could possibly make protodef generic enough to represent all/most binary formats in the wild, let alone their transport/compression/encryption/statefullness
I didn't quite understand exactly what he meant when he said that either
I think he means that protodef should be aware that it's interacting with a stream, not a discrete piece of data
CertainLach
@CertainLach
Apr 06 2017 13:11
Then all is ok :D
CertainLach
@CertainLach
Apr 06 2017 19:58
blob
server.on('WS /**',(req,socket,next)=>{
    spaceLogger.ident('Auth');
    spaceLogger.timeStart('ID generation');
    req.id=randomBytes(20).toString('hex');
    spaceLogger.timeEnd('ID generation');
    next();
    spaceLogger.deent();
});
server.on('WS /ide',(req,socket)=>{
    spaceLogger.log('User(%s) connected to main socket',req.id.blue);
});
server.on('WS /ide/:project',(req,socket)=>{
    spaceLogger.log('User(%s) connected to project socket (%s)',req.id.blue,req.props.project.green);
});
Wrong chat
(How to delete messages in Modern Gitter (Windows mobile client)? :D)