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
<isd> Hm, figured out where the test binary was an ran it directly. Segfault, will investiage further.
leeola has quit [Quit: Connection closed for inactivity]
Zarutian has joined #sandstorm
harish_ has quit [Ping timeout: 260 seconds]
indiebio has quit [Quit: No Ping reply in 180 seconds.]
indiebio has joined #sandstorm
<isd> Unsurprisingly doesn't segfault on -O0. Interestingly, segfaults *sooner* on -O1 than -O2
<isd> I don't really have the energy for this right now. I'll come back to it later.
_habnabit has quit [Ping timeout: 260 seconds]
_habnabit has joined #sandstorm
aeternity has quit [Ping timeout: 260 seconds]
aeternity has joined #sandstorm
metaphysician has quit [Ping timeout: 260 seconds]
metaphysician has joined #sandstorm
metaphysician has joined #sandstorm
metaphysician has quit [Changing host]
Zarutian has quit [Quit: Zarutian]
aeternity has quit [Ping timeout: 260 seconds]
aeternity has joined #sandstorm
harish_ has joined #sandstorm
jemc has quit [Ping timeout: 260 seconds]
samba__ has quit [Quit: WeeChat 1.7]
samba_ has joined #sandstorm
<ocdtrekkie> So Dropbox is replacing FOSS with not-FOSS, it seems: https://hackpad.com/
samba_ has quit [Ping timeout: 240 seconds]
samba_ has joined #sandstorm
jemc has joined #sandstorm
* DanC wishes for a rust stdlib variant with no ambient authority http://www.madmode.com/2017/ocap-wish-list.html
<DanC> re refactoring in js: I've used flow to help with that. I suppose typescript is more mature, but its type system bothers me. I guess it's getting better.
<DanC> meteor bugs me because of all the global state (ambient authority)
samba_ has quit [Ping timeout: 245 seconds]
samba_ has joined #sandstorm
<ill_logic> zarvox: thanks.
samba_ has quit [Ping timeout: 260 seconds]
samba_ has joined #sandstorm
samba_ has quit [Quit: WeeChat 1.7]
yeehi has quit [Quit: Konversation terminated!]
jemc has quit [Ping timeout: 258 seconds]
<ill_logic> Is there any hope of having the sandstorm data dir symlink to another place?
<ill_logic> I have it installed on my system partition and I'm out of room.
<ill_logic> I symlink it and I get messages about /var/somethingorother not existing
<ill_logic> I guess this is the container stuff.
aundro has quit [Ping timeout: 260 seconds]
<ill_logic> I guess I'll resize my partitions. It's lvm2.
aundro has joined #sandstorm
harish_ has quit [Ping timeout: 240 seconds]
harish_ has joined #sandstorm
harish_ has quit [Ping timeout: 240 seconds]
harish_ has joined #sandstorm
grammar34 has joined #sandstorm
<grammar34> Hi folks. Quick question; is there support for bitmaps in capnproto, or do we have to model them still with a struct of Booleans?
leeola has joined #sandstorm
harish_ has quit [Ping timeout: 252 seconds]
<dwrensha> grammar34: nothing has changed on that front recently
<dwrensha> grammar34: can you elaborate on your use case?
harish_ has joined #sandstorm
<grammar34> I have a bitmap in C/C++ of possible values a = (1 << 0), b = (1 << 1) etc...
<grammar34> so I have to export it via RPC
<grammar34> I guess current options are a) struct with booleans b) List of enums, and check manually the uniqueness of the values in the list (sort of an std::set)
<dwrensha> A List(Bool) might work
<dwrensha> but struct-with-boolean-fields sounds better
<grammar34> would that be really compressed; i.e. a struct with say 5 bools would be 1 byte in the wire?
<dwrensha> grammar34: note that in capnproto-c++, it's possible to call AnyStruct.getDataSection() to recover the raw bitmap
<grammar34> Well yes, but if the bitmap extends 8 bits you have endianess issues
bodisiw has joined #sandstorm
<dwrensha> yes, capnproto tighely packs the fields
<grammar34> So I've already discarded data
<dwrensha> getDataSection gives you an array of bytes
<dwrensha> there should be no endianness issues
<grammar34> shift operations are endian dependent (1 << 12) over a 4 byte type is different in LE and BE
<dwrensha> the array returned by getDataSection() is in little-endian order
<grammar34> I know; but I have LE and BE systems :)
<grammar34> I could craft a library that does the bitmaping thing so that I could transport the bitmap as an array of octets, but I much prefer to use any facility capnp provides
<grammar34> So I think I will go with a list of enums on one case and a struct with bools on the other
jemc has joined #sandstorm
zopsi has quit [Ping timeout: 260 seconds]
jemc has quit [Quit: WeeChat 1.4]
jemc has joined #sandstorm
samba_ has joined #sandstorm
zopsi has joined #sandstorm
samba_ has quit [Quit: WeeChat 1.7]
samba_ has joined #sandstorm
aeternity has quit [Ping timeout: 240 seconds]
bodisiw has quit [Ping timeout: 240 seconds]
bodisiw has joined #sandstorm
bodisiw has quit [Quit: Leaving]
<simpson> grammar34: Note that Capn's padding means that you have an 8-byte minimum IIUC.
<simpson> grammar34: If you stick to the Capn accessors, then there shouldn't be endianness issues. I don't know whether that's too slow for you; I don't know what your speed targets are.
Telesight has joined #sandstorm
funwhilelost has joined #sandstorm
samba_ has quit [Quit: WeeChat 1.7]
aeternity has joined #sandstorm
aeternity has quit [Ping timeout: 260 seconds]
<grammar34> simpson; not sure I get your comment. Point is, directly copying the 4 byte storing the bitmap with data() won't work, because when I read back the value from a different endianesss machine, bitmaps won't match (if bitmaps > 8 bit)
<grammar34> even if I have enough room with 8 byte, problem is still there
<grammar34> one nice feature is endianess independence
<simpson> grammar34: I figured you'd use the list-of-bools approach.
<simpson> By moving the encoding into Capn, you completely remove the question of whether endianness matters.
<grammar34> sure, with list of bools work
grammar34 has quit [Ping timeout: 260 seconds]
<isd> DanC: yeah, I think there are a good number of PLs out there that could be decent re: ocap if you just fixed the stdlib
<isd> Go's stdlib is terrible in this regard, but it really doesn't need to be.
<isd> I think there's some work on porting python to cloudabi; I haven't looked but I'm interested to see what they're doing with the libs
yeehi has joined #sandstorm
Telesight has quit [Quit: Leaving.]
NwS has quit [Ping timeout: 261 seconds]
frew has quit [Ping timeout: 246 seconds]
aeternity has joined #sandstorm
frew has joined #sandstorm
aeternity has quit [Ping timeout: 260 seconds]
funwhilelost has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]