asheesh changed the topic of #sandstorm to: Welcome to #sandstorm: home of all things sandstorm.io. Say hi! | Channel glossary: "i,i" means "I have no point, I just want to say". b == thumbs up. | Public logs at https://botbot.me/freenode/sandstorm/ & http://logbot.g0v.tw/channel/sandstorm/today
|jemc| has joined #sandstorm
neynah has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
bb010g has joined #sandstorm
|jemc| has quit [Ping timeout: 276 seconds]
kentonv has quit [Read error: Connection timed out]
kentonv has joined #sandstorm
xet7 has joined #sandstorm
relicanth has quit [Ping timeout: 272 seconds]
relicanth has joined #sandstorm
kecolus has quit [Quit: Leaving]
rustyrazorblade has joined #sandstorm
|jemc| has joined #sandstorm
rustyrazorblade has quit [Quit: rustyrazorblade]
neynah has joined #sandstorm
neynah has quit [Client Quit]
neynah has joined #sandstorm
gambatte has quit [Ping timeout: 260 seconds]
dograt has quit [Remote host closed the connection]
dograt has joined #sandstorm
neynah has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
dograt has quit [Remote host closed the connection]
dograt has joined #sandstorm
neynah has joined #sandstorm
dlitz_ is now known as dlitz
neynah has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
neynah has joined #sandstorm
gambatte has joined #sandstorm
neynah has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
relicanth has quit [Quit: Leaving]
dograt has quit [Remote host closed the connection]
dograt has joined #sandstorm
mnutt has quit [Quit: mnutt]
rpdillon has quit [Ping timeout: 272 seconds]
kentonv has quit [Ping timeout: 240 seconds]
mnutt has joined #sandstorm
ArcTanSusan has joined #sandstorm
|jemc| has quit [Ping timeout: 264 seconds]
decipherstatic has quit [Ping timeout: 260 seconds]
kentonv has joined #sandstorm
joshbuddy has quit [Quit: joshbuddy]
mnutt has quit [Quit: mnutt]
joshbuddy has joined #sandstorm
ArcTanSusan has quit [Quit: ArcTanSusan]
neynah has joined #sandstorm
neynah has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
tbmb has joined #sandstorm
<tbmb> hi everyone ! I just discovered Sandstorm, it seems to be a great tool, but I have a question, do you think it should on a raspberry pi 2 model B ?
<kentonv> tbmb: Sorry, Sandstorm requires x86-64. We don't yet have good tools for app developers to be able to build for multiple architectures.
<kentonv> someday!
<tbmb> okay I'll try it on my server then , thank you ! :)
zeroish has joined #sandstorm
|jemc| has joined #sandstorm
tbmb has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
mnutt has joined #sandstorm
mnutt has quit [Quit: mnutt]
mnutt has joined #sandstorm
wolcen has quit [Ping timeout: 250 seconds]
larjona has joined #sandstorm
neynah has joined #sandstorm
mnutt has quit [Quit: mnutt]
mnutt has joined #sandstorm
mnutt has quit [Quit: mnutt]
neynah has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
isd has joined #sandstorm
|jemc| has quit [Ping timeout: 240 seconds]
thegp has joined #sandstorm
<thegp> salut, if I want to run sandstorm without sandcats, but with HTTPS, where do I configure it to find the certificates?
<dwrensha> thegp: you'll need nginx or something similar. https://docs.sandstorm.io/en/latest/administering/reverse-proxy/
<thegp> thank you. Do you think it would be reasonable to simply edit in a text segment into the HTTPS segment of the documentation to indicate that if you do not use sandcats you have to run it on http:127.0.0.1 locally and do reverse proxy ? would have saved me some time
|jemc| has joined #sandstorm
<dwrensha> thegp: yes! please submit a pull request on https://github.com/sandstorm-io/sandstorm/tree/master/docs if you have suggestions
<dwrensha> or just say here what you think needs to be changed. (I'm not sure which page you're referring to.)
relicanth has joined #sandstorm
<thegp> https://docs.sandstorm.io/en/latest/administering/ssl/, maybe add a step 13: delete the SANDCATS_BASEURL and HTTPS_PORT lines, bind on 127.0.0.1 and use the nginx.conf lfrom here https://docs.sandstorm.io/en/latest/administering/reverse-proxy/
<thegp> by the way, when I try to access a grain now, i get the error wss://mydomain.....websocket was interrupted while the page was loading.
<thegp> I'm using the linked nginx.con, I'm guessing I must have messed up somewhere
<dcb> dwrensha: what was the motivation to change how the error type works in capnp-rust?
isd has quit [Ping timeout: 264 seconds]
<dwrensha> dcb the big motivation was that I needed it to be Copy
<dwrensha> and ::std::io::Error isn't
<dwrensha> er, Clone
canuky has joined #sandstorm
<dwrensha> the simpler error type turned out to be a win all around, in my opinion
<dwrensha> it unblocked https://github.com/dwrensha/capnpc-rust/pull/25, for instance
canuky has quit [Client Quit]
<dcb> dwrensha: ah the clone thing is unfortunate
<dcb> I'm not really a fan, though. Mostly because the new version throws away a bunch of info
<dcb> For instance I was using the io error type, now that's gone
<dwrensha> I'm curious about how you were using it
<dwrensha> my hypothesis is that hierarchies of error types wrapping other error types does not really buy you much
<dcb> In my case it did. let me dig up a link
<dwrensha> like, you put in all this effort into making sure you inject exactly the right type of error, but then on the consuming end you always just retry or print a string or something
<dcb> in this case I think I can work around it by using io::Error in more places instead of capnp::Error
<dcb> except when you don't, like in that case
<dwrensha> ah, interesting
<dcb> I think you're right that it's uncommon, but it makes it always impossible if you throw away the info
<dwrensha> perhaps it would make sense to have WouldBlock variant of capnp::Error
<dcb> sure, but where do you stop? Eventually you end up reimplementing io::ErrorKind
thegp has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<dcb> io::Error should be clone, I think that's a design mistake
<dcb> there's probably a good reason that it's not that I'm unaware of
<dcb> too late now
<dwrensha> well, it seems like in your case you have control over all of the IO
<dcb> does that make it impossible?
decipherstatic has joined #sandstorm
<dwrensha> so using ::std::io::Error should be possible, as you say
<dcb> yah I'm still working through it, but I don't think it will be an issue. I was a little surprised at the change though
<dwrensha> I suppose into_inner could just always return None
<dcb> oh gotcha, I see the implication wrt clone now
<dcb> dwrensha: perhaps instead of wrapping io::Error, you could wrap io::ErrorKind
<dcb> ErrorKind is clone I think?
<dwrensha> yeah
isd has joined #sandstorm
<dwrensha> It has a lot of variants!
<dcb> yep, but for good reason
<dwrensha> And it doesn't have `Unimplemented`, which is an important one Cap'n Proto RPC
<dcb> I think you have designed capnp::Error with network connections in mind, but that's only half the story, with the other being files
<dwrensha> so when you do file operations, you'll have those std::io::Errors
<dwrensha> but when they propagate to the rest of your program, they'll become simpler capnp::Error s
<dcb> right
<dwrensha> by the time they're propagated, you no longer need that fine-grained information, because you have no way to act on it
<dcb> that's totally application dependent
<dcb> for instance a PermissionDenied may be recoverable
<dcb> most of them could be recoverable in the right circumstances
neynah has joined #sandstorm
<XgF> dwrensha: couldn't you put the io::Error inside an Rc?
<dwrensha> XgF: that would work, I think
<dwrensha> but would be rather ugly
<XgF> Well I think its generally uncommon to need to copy errors, so...
<dwrensha> anyway, if you're not using capnp::serialize, you're free to think of capnp::Error as the type of runtime decoding errors
<dwrensha> and you can wrap that up in your own error hierarchy
<dcb> Yah I may just use io::Error. There is an ErrorKind::InvalidData is a pretty good match for decoding error
neynah has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<dwrensha> XgF I need clonable errors so that I can fork promises http://docs.capnproto-rust.org/gj/struct.Promise.html#method.fork
<dcb> oh that was surprisingly easy. Mostly just moving the imports over
* asheesh waves from a coffee shop in Oakland.
relicanth has quit [Ping timeout: 264 seconds]
|jemc| has quit [Ping timeout: 260 seconds]
mnutt has joined #sandstorm
relicanth has joined #sandstorm
<asheesh> Hi relicanth ! I see your name is aneesh and my name is asheesh! So that's cool.
<asheesh> Also, cool that you're at MIT. I was just there for the Mystery Hunt.
<asheesh> (...are you possibly interested in getting a Sandstorm install going that MIT people can use!...? SIPB seems to have one, and they own sandstorm.mit.edu for it, but I think they have other things they're more excited about. And/or you could join SIPB and work on it through them!)
<relicanth> I was actually at the Sandstorm Boston meetup on Tuesday
<relicanth> :)