--- Log opened Sat Aug 06 00:00:09 2011 | ||
@sonney2k | blackburn, do you know what java.io.OjectOutputStream is? | 00:08 |
---|---|---|
CIA-87 | shogun: Soeren Sonnenburg master * r7013309 / (2 files in 2 dirs): | 00:09 |
blackburn | sonney2k: it is byte output stream able to write/read objects | 00:09 |
CIA-87 | shogun: derive java modular classes from Serializable and add dummy | 00:09 |
CIA-87 | shogun: write/readObject functions - http://bit.ly/nsIyiM | 00:09 |
CIA-87 | shogun: Soeren Sonnenburg master * rf27d051 / (40 files in 9 dirs): Merge branch 'master' of github.com:shogun-toolbox/shogun - http://bit.ly/pD6nk7 | 00:09 |
@sonney2k | blackburn, because I managed to do the changes | 00:09 |
@sonney2k | to java modular | 00:09 |
@sonney2k | the problem now is how to use shogun's self.save_serializable() with these streams | 00:10 |
blackburn | you probably should pull before commit hehe | 00:10 |
@bettyboo | crazy | 00:10 |
blackburn | sonney2k: OutputStream is a base class for output (write) byte streams | 00:11 |
blackburn | it is able to write bytes, not some chars | 00:11 |
blackburn | any *OutputStream is an facade or so | 00:11 |
blackburn | e.g. ObjectOutputStream to write objects | 00:12 |
@sonney2k | so chars would work as well - currently I need to create some temporary file with this on disc - then load this and then I could stream the stuff java stylequestion is whether I should create a temporary file or | 00:13 |
@sonney2k | not | 00:13 |
@sonney2k | this would involve some new io thingy that does everything in memory | 00:13 |
blackburn | hmm why you want to make temporary file? | 00:13 |
-!- serialhex [~quassel@99-101-148-183.lightspeed.wepbfl.sbcglobal.net] has quit [Read error: Connection reset by peer] | 00:14 | |
@sonney2k | blackburn, to dump the object in there - it is all filename based currently | 00:14 |
blackburn | if you want to use chars you could use OutputStreamWriter class | 00:14 |
blackburn | it is designed to be adapter between char and byte streams | 00:15 |
blackburn | sonney2k: so when you want to serialize object it is stored in file and after some interface load it? | 00:17 |
@sonney2k | blackburn, in shogun you can just write somesgobject.save_serializable(someserializablefile) | 00:23 |
blackburn | how could it work with java? | 00:23 |
@sonney2k | someserializablefile can be xml dump of shogun objects, ascii file, hdf5, json ... | 00:23 |
@sonney2k | I don't understand the question | 00:24 |
@sonney2k | how not? | 00:24 |
@sonney2k | if one implements serializable interface | 00:24 |
blackburn | of course it will | 00:24 |
blackburn | I mean how could you use it | 00:24 |
blackburn | in java write/readObject | 00:24 |
@sonney2k | and then the writeObject/readObject functions (which I would make to work by just doing sgobject.save_serializable(serializableasciifile('/tmp/x') then load that with java and write in this out stream) | 00:25 |
@sonney2k | same with loading | 00:25 |
blackburn | okay, got it | 00:26 |
@sonney2k | I only meant one could save i/o if one does this immediately in memory avoiding the tmp file | 00:26 |
blackburn | yes, I would say it is better | 00:27 |
@sonney2k | yeah but not implemented right now | 00:27 |
blackburn | I see | 00:27 |
@sonney2k | so I will first do the file bases solution and then we can improve later (no user visible change...) | 00:28 |
blackburn | I'll make a try to make distances parallel now | 00:29 |
@sonney2k | enjoy... | 00:30 |
@sonney2k | I need sleep | 00:30 |
@sonney2k | cu | 00:30 |
@bettyboo | kiss | 00:30 |
blackburn | see you | 00:30 |
blackburn | ahah | 00:30 |
-!- serialhex [~quassel@99-101-148-183.lightspeed.wepbfl.sbcglobal.net] has joined #shogun | 00:31 | |
CIA-87 | shogun: Sergey Lisitsyn master * r86e9ed9 / (2 files): Made CDistance parallel - http://bit.ly/pDx1gD | 02:09 |
blackburn | okay sleep now | 02:09 |
-!- blackburn [~blackburn@188.122.237.5] has quit [Quit: Leaving.] | 02:12 | |
-!- blackburn [~blackburn@188.122.237.5] has joined #shogun | 12:06 | |
-!- f-x [~user@117.192.222.6] has joined #shogun | 12:10 | |
f-x | sonney2k: hey, are you free? | 12:21 |
-!- f-x [~user@117.192.222.6] has quit [Remote host closed the connection] | 12:27 | |
-!- f-x [~user@117.192.222.6] has joined #shogun | 12:37 | |
-!- f-x [~user@117.192.222.6] has quit [Ping timeout: 260 seconds] | 13:35 | |
-!- f-x [~user@117.192.222.6] has joined #shogun | 14:00 | |
-!- blackburn [~blackburn@188.122.237.5] has quit [Ping timeout: 255 seconds] | 14:03 | |
-!- blackburn [~blackburn@188.122.237.5] has joined #shogun | 14:05 | |
CIA-87 | shogun: Sergey Lisitsyn master * r74f775f / (2 files): Made Isomap Heap-Dijkstra parallel - http://bit.ly/oEUrW6 | 14:57 |
-!- blackburn [~blackburn@188.122.237.5] has quit [Quit: Leaving.] | 15:08 | |
-!- blackburn [~blackburn@188.122.237.5] has joined #shogun | 15:08 | |
blackburn | SG_FREE(sonney2k) :D | 15:09 |
-!- blackburn [~blackburn@188.122.237.5] has quit [Quit: Leaving.] | 15:40 | |
-!- heiko [~heiko@134.91.55.30] has joined #shogun | 16:28 | |
-!- heiko [~heiko@134.91.55.30] has quit [Remote host closed the connection] | 16:29 | |
-!- heiko [~heiko@134.91.55.30] has joined #shogun | 16:35 | |
heiko | sonney2k, it is not possible to use templates with two parameters right? class_list.cpp instanciates always with one type | 16:36 |
-!- heiko [~heiko@134.91.55.30] has quit [Quit: Leaving.] | 17:37 | |
-!- f-x [~user@117.192.222.6] has quit [Ping timeout: 260 seconds] | 17:55 | |
-!- f-x [~user@117.192.213.25] has joined #shogun | 19:14 | |
-!- blackburn [~blackburn@188.122.237.5] has joined #shogun | 19:48 | |
f-x | sonney2k: could we make index_t unsigned int? (it's signed int now) and also including the typedef in common.h would be very convenient | 21:52 |
@sonney2k | f-x, making it unsigned int will probably cause a couple of issues | 22:06 |
@sonney2k | f-x, so it is timing wise a bad idea when we want a release in 3-4 weeks. | 22:06 |
@sonney2k | but it certainly should be in common.h | 22:06 |
CIA-87 | shogun: Alesis Novik master * r94d79dc / src/shogun/clustering/GMM.cpp : Some fixes and checking for illegal use. - http://bit.ly/nhDOdU | 22:07 |
CIA-87 | shogun: Soeren Sonnenburg master * re1eac74 / src/shogun/clustering/GMM.cpp : | 22:07 |
CIA-87 | shogun: Merge pull request #269 from alesis/gmm | 22:07 |
CIA-87 | shogun: Some fixes and checking for illegal use. - http://bit.ly/oz3gvd | 22:07 |
f-x | then is it ok to use size_t? because replacing with index_t would cause some incompatibilites (that could be dealt with if i replace size_t with uint32_t but i don't like that) | 22:07 |
@sonney2k | f-x, size_t is a dangerous choice | 22:08 |
@sonney2k | because you don't know if it is 32 or 64 bit | 22:08 |
@sonney2k | f-x, I am just reading your patch - why didn't you move substring to SGIO ? | 22:09 |
f-x | sonney2k: because i would need to rewrite the IO functions to use it | 22:10 |
@sonney2k | I mean these are only isolated helper functions | 22:10 |
@sonney2k | no | 22:10 |
f-x | sonney2k: you mean i should move substring to SGIO but not do the get_vector_* modifications now? | 22:13 |
@sonney2k | yes | 22:15 |
f-x | we should make AsciiFile buffered later on too, but it seems using the buffer is slower on my computer, and faster on yours and John's | 22:16 |
f-x | so i want to wait for some more testing | 22:16 |
@sonney2k | f-x, but it was not really slower... I mean we were talking 1 mu sec or so | 22:16 |
f-x | sonney2k: that's right, but again the improvement also is just 1 mu sec, so I was kind of hesitant to replace a thing like AsciiFile | 22:18 |
@sonney2k | f-x, yeah but you compared agains GNU getline... | 22:18 |
f-x | anyway i have the buffered readers more or less ready | 22:19 |
f-x | sonney2k: yes | 22:19 |
f-x | okay, so it would make a huge difference on OS X | 22:19 |
f-x | for which the flimsy version is implemented | 22:19 |
@sonney2k | f-x, anyway - so move it to SGIO | 22:20 |
f-x | ok | 22:20 |
@sonney2k | and then we will see :) | 22:20 |
@bettyboo | :^) | 22:20 |
f-x | sonney2k: is it better if i make substring a class and include the functions as member functions? | 22:28 |
f-x | or is it ok the way it is? | 22:28 |
f-x | the only difference would be s.float_of_substring() instead of float_of_substring(s) | 22:28 |
f-x | etc | 22:28 |
@sonney2k | f-x, no don't make it a class | 22:34 |
@sonney2k | serialhex, around? | 22:37 |
@sonney2k | serialhex, if so time to rub-rub-ruby? | 22:37 |
f-x | sonney2k: is including <string> in SGIO allowed? or should it be avoided? | 22:49 |
@sonney2k | would be great if you could avoid it | 22:50 |
@sonney2k | (like all std:: stuff) | 22:50 |
@sonney2k | f-x, blackburn sry but I need to sleep *again* | 23:18 |
@sonney2k | cu | 23:18 |
blackburn | see you :) | 23:19 |
blackburn | SG_FREE(sonney2k); | 23:19 |
f-x | sonney2k: see ya | 23:22 |
-!- f-x [~user@117.192.213.25] has quit [Remote host closed the connection] | 23:37 | |
--- Log closed Sun Aug 07 00:00:20 2011 |
Generated by irclog2html.py 2.10.0 by Marius Gedminas - find it at mg.pov.lt!