[00:00:45] <fredreichbier> uhm [00:00:48] <fredreichbier> why move it at all? :D [00:01:04] <duckinator> because it's going to be needed in part of TCPSocket [00:01:27] *** MayDaniel has quit IRC [00:01:47] <duckinator> and it's technically for TCPSocket, i just put it in ServerSocket for...i believe the very reason i'm having to add TCPServerReaderWriterPair right now >.> [00:02:10] <duckinator> (i did ReaderWriterPair -> TCPReaderWriterPair for consistency, so...) [00:02:26] <fredreichbier> uhuw [00:02:51] <fredreichbier> mmm [00:02:53] <fredreichbier> ah, yeah [00:03:10] <fredreichbier> https://github.com/fredreichbier/ooc-mongodb/blob/master/mongodb/Database.ooc#L13 :D [00:03:52] <duckinator> lol [00:04:25] <duckinator> it's interesting how even if there's features missing from ooc, there's almost always a workaround that's at least understandable even if disgusting [00:04:52] <duckinator> and it's usually a corner-case that's not worth adding such a large feature, anyways [00:05:10] <duckinator> in this case with the TCPReaderWriterPair i'm not sure how common it is, but yea [00:13:24] <duckinator> bbl [00:22:59] <fredreichbier> okay, let's go to beeed \o/ [00:22:59] <fredreichbier> bye [00:23:01] *** fredreichbier has quit IRC [00:52:47] <duckinator> hi [02:07:41] *** shahri has quit IRC [02:22:49] *** Oddity007 has quit IRC [02:43:12] <duckinator> anyone lurking here, by chance? [03:01:09] *** aanderse has quit IRC [03:34:48] <locks> duckinator: kinda [03:37:11] <duckinator> locks: https://github.com/duckinator/oocbot/blob/master/oocbot.ooc [03:42:17] <locks> that's chinese for me :p [03:42:22] <duckinator> what? [03:43:05] <locks> don't really understand ooc :p [03:43:16] <duckinator> ah :P [03:43:22] <duckinator> well, that's an irc bot [03:43:50] <duckinator> and https://github.com/duckinator/ooch/blob/master/ooch.ooc is an httpd [03:44:07] <duckinator> both using the awesome new socket API i just put some finishing touches on :D [03:45:26] <duckinator> locks: look at https://github.com/nddrylliog/rock/pull/299 -- the original message for that demonstrates why i bothered spending nearly 10 months on that xD [03:46:22] <locks> first version is much more explicit, i prefer it O:) [03:46:38] <duckinator> you can still use it if you wish [03:46:45] <duckinator> i don't believe i broke anything whatsoever :) [03:47:44] <locks> looks pretty good, nice job [03:48:12] <locks> so ooc is getting more unbroken? [03:48:16] <duckinator> it is [03:48:43] <duckinator> and thanks ^^ i tried to make the socket API use a sane number of layers of abstraction, so you could basically go anywhere from the almost-C-like level all the way up to that 5-liner server :) [03:49:04] <duckinator> TECHNICALLY you could make it even shorter, but after a certain point it's basically the equivalent of molesting your source code ;P [03:49:31] <locks> right, there's such a thing as too much abstraction [03:49:49] <duckinator> well actually it wouldn't be more abstraction, just abusing too many features [03:50:00] <duckinator> i believe this would work: [03:50:17] <duckinator> ServerSocket new("0.0.0.0", 8000) accept(|conn| conn out write("Hello, from the ooc socket world!"); true) [03:50:22] <duckinator> if that doesn't, i believe this would: [03:50:37] <duckinator> ServerSocket new("0.0.0.0", 8000) ~accept(|conn| conn out write("Hello, from the ooc socket world!"); true) [03:50:45] <duckinator> or whatever the hell symbol is used for chaining, since almost nobody uses it [03:51:39] <locks> haha [03:52:36] <locks> that ain't too bad :P [03:52:47] <duckinator> yea...it's not pretty, but not too bad ;P [03:54:00] <locks> the new API makes more sense [03:54:08] <locks> it's more scriptey [03:54:12] <duckinator> yea [03:54:40] <duckinator> i took a lot of influence from ruby for the mid-level version (ie, above C but not the most-abstracted one), which is what inspired me to add loop(|| ...) [03:54:57] <locks> ruby <3 [03:54:57] <duckinator> then for the highest-level one i made it a bit more node.js-ish, lots of callbacks and such [03:55:27] <duckinator> the highest-level one is basically the mid-level one + callbacks [03:56:13] <duckinator> whereas the mid-level one is basically shorthand for the over-verbose C/berkeley sockets crap ^^ [03:56:33] <locks> :P [03:57:10] <locks> getting a lot of steve jobs on my twitter stream [03:57:44] <duckinator> yea [03:59:01] <locks> oh, he resigned [03:59:03] <locks> NNOOOOO [03:59:22] <locks> who will whip the poor engineers every other day? [04:45:10] *** curtism has joined #ooc-lang [05:10:32] *** mickael9` has quit IRC [05:23:40] *** aanderse has joined #ooc-lang [06:03:01] *** echelog-2 has joined #ooc-lang [07:31:15] *** echelog-2 has joined #ooc-lang [07:31:15] -asimov.freenode.net- [freenode-info] help freenode weed out clonebots -- please register your IRC nick and auto-identify: http://freenode.net/faq.shtml#nicksetup [07:59:37] *** joshthecoder has quit IRC [08:58:43] *** MayDaniel has joined #ooc-lang [09:42:37] *** MayDaniel_ has joined #ooc-lang [09:44:37] *** MayDaniel has quit IRC [09:47:37] *** MayDaniel_ has quit IRC [11:45:56] *** shahri has joined #ooc-lang [12:54:33] *** MayDaniel has joined #ooc-lang [15:32:01] *** gcmalloc has joined #ooc-lang [15:32:15] *** gcmalloc has left #ooc-lang [16:02:59] *** bakkdoor has quit IRC [16:07:24] *** bakkdoor has joined #ooc-lang [16:13:48] *** mickael9 has joined #ooc-lang [16:45:10] *** mickael9` has joined #ooc-lang [16:46:02] *** mickael9 has quit IRC [16:54:44] *** shahri has quit IRC [17:09:58] *** nddrylliog has joined #ooc-lang [17:09:58] *** ChanServ sets mode: +v nddrylliog [17:10:14] <nddrylliog> so [17:10:17] <nddrylliog> sockets! [17:10:30] * nddrylliog celebrates [17:15:38] <locks> Steve Jobs quit in protest of sockets being finished [17:15:43] <locks> he called it immoral [17:16:04] <nddrylliog> aww [17:55:11] *** joshthecoder has joined #ooc-lang [17:55:15] *** ChanServ sets mode: +v joshthecoder [18:02:10] *** nddrylliog has quit IRC [18:30:22] *** Oddity007 has joined #ooc-lang [19:20:09] *** MayDaniel has quit IRC [19:34:25] *** MayDaniel has joined #ooc-lang [19:52:02] *** MayDaniel has quit IRC [20:13:50] <CIA-126> rock: Nick Markwell master * rf78048a / sdk/net/TCPSocket.ooc : Added TCPSocket connect(fn), for more awesomeness. - http://git.io/PJ_LOw [20:13:52] <CIA-126> rock: Nick Markwell master * r0bab0b8 / (sdk/net/ServerSocket.ooc sdk/net/TCPSocket.ooc): Well, that's not a *NICE* fix, but now it's ready for me to make TCPSocket even nicer to work with - http://git.io/FldUfA [20:13:53] <CIA-126> rock: Amos Wenger master * r89c64d8 / (8 files): [20:13:53] <CIA-126> rock: Merge pull request #299 from duckinator/sockets [20:13:53] <CIA-126> rock: New socket API by @duckinator - http://git.io/twtGIA [20:14:34] <Oddity007> w00t [20:14:57] <Oddity007> been years since I've seen that good ol' bot speak [20:20:49] *** fredreichbier has joined #ooc-lang [20:20:49] *** ChanServ sets mode: +v fredreichbier [20:47:47] *** shahri has joined #ooc-lang [20:49:43] <duckinator> hi [21:20:21] *** curtism has quit IRC [21:21:50] *** curtism has joined #ooc-lang [21:29:53] *** fredreichbier has quit IRC [22:00:49] *** locks has quit IRC [22:03:41] *** shahri has quit IRC [22:05:49] *** curtism has quit IRC [22:07:41] *** curtism has joined #ooc-lang [22:28:33] *** curtism has quit IRC [22:28:36] *** locks has joined #ooc-lang [22:29:44] *** curtism has joined #ooc-lang [22:39:38] *** fredreichbier has joined #ooc-lang [22:39:39] *** ChanServ sets mode: +v fredreichbier [23:51:10] *** fredreichbier has quit IRC