Activity Graph

« Prev | Page 2 of 3 | Next »


[07:57:47] arne: dminuoso: can you elaborate on the TVar from yesterday? what would it do?
[07:57:55] arne: how would i write my own version of that thingie
[07:58:56] arne: uhm, buffer means multiple values, that get "hold back" and single key means 1, right?
[07:59:46] arne: well buffer would be cooler, ofcourse
[08:00:45] arne: do people still use rubinius? im just reading the tvar article of concurrent-ruby
[08:01:31] arne: and rubinius is listed in the graphs
[08:03:56] arne: oh well, i meant without concurrent-ruby
[08:04:20] arne: well it makes for a not so readable code, does it?
[08:04:35] arne: doesn't it*
[08:05:06] arne: well, fuck it, i add concurrent-ruby to the gemfile, could you show me a buffer version?
[08:05:47] arne: and how is this any different from Queue.pop.. that one blocks, too?
[08:07:19] arne: but a normal queue would block too if there is nothin gin there
[08:07:55] arne: well it can check the length of the queue, but that is pretty busy, so yeah
[08:08:31] arne: yeh, i see the beauty in there
[08:09:28] arne: having a producer thread like that wouldn't be expensive at all then, i guess even in ruby
[08:09:32] arne: since it sleeps all the time
[08:09:49] arne: but one question remains for me: the software architecture of this project im working on
[08:09:58] arne: has 8 programs.. using the same models
[08:10:14] arne: if i was to tell every program, to pre-buffer 8 rsa keys, for usage
[08:10:23] arne: it would peck my cpu at 100% for quite a while
[08:10:42] arne: how would one tackle that problem?
[08:27:40] arne: dminuoso: i don't want to steal time from your job :o
[08:28:03] arne: what are you doing btw, if i may ask
[08:28:36] arne: i mean for a living
[08:35:41] arne: that is cool, thank you
[08:36:54] arne: aren't short variable names like t,xss,r non-ruby-idiomatic?
[08:51:59] arne: thanks alot, i will tell you how good this performs
[08:54:02] arne: well, there will be written to it, i gues
[08:54:16] arne: dminuoso: but what do i do with the following problem
[08:54:24] arne: let's say i do a queue of 8 8192-length rsa keys
[08:54:34] arne: this code will start on ~8 processes
[08:54:45] arne: which results in 8*8 8192-length rsa keys being created on startup
[08:59:25] arne: well, not for me , i understand the code, kinda :)
[08:59:33] arne: but will this be part of concurrent ruby? then you maybe should
[09:08:36] arne: dminuoso: well... startup would be super expensive.. if 8 programs do fill this queue
[09:08:46] arne: there is no clever way to tackle this.. is there?
[09:12:12] arne: pls don't say redis or database
[09:17:48] arne: yeah but still, thats a lot of calculations
[09:18:03] arne: causes some lag in other proccesses
[09:18:14] arne: mini-IPC i wonder how you would do that
[09:18:31] arne: but i guess not possible, since each process is a docker container :/
[09:18:53] arne: well it would be tcpip.. and would need a stupid complexity for such simple task
[09:19:05] arne: well then i would just use the database as IPC
[09:24:26] arne: well i am sorry, usually you have really good ideas but that sounds like a terrible idea :D
[09:24:32] arne: even if i was about to do that
[09:24:38] arne: why not just do it with TCP/IP?
[09:24:47] arne: Socket.write "#{some_)ey}"
[09:24:54] arne: why would i have sinatra including rack for it
[09:28:34] arne: in this case it's DKIM keys cor e-mail signage
[09:28:43] arne: s/cor/for
[09:28:50] arne: so yes, it's rsa
[09:29:58] arne: well, my startup is going to bankrupt this next few month (maybe, maybe not)
[09:30:08] arne: this would be way to sophisticated


[08:26:30] arne: has joined #ruby
[10:15:43] arne: if i want to redefine a class method programaticially
[10:15:45] arne: what do i use
[10:15:48] arne: define_singleton_method
[10:17:25] arne: yeah still, what would i use
[10:17:36] arne: im just playing around how to solve this
[10:17:59] arne: well.. i want to exchange a method for a cached version of the methid
[10:18:20] arne: kinda, but not really
[10:18:31] arne: the code returns a rsa key, and that takes long
[10:18:36] arne: this is okay for most of my cases
[10:18:51] arne: but one program, using the same codebase, needs it quick
[10:19:36] arne: still would love to know, what would be the "correct" way, just so i know ruby
[10:19:41] arne: class = singleton object, right?
[10:21:08] arne: yeah, still i would love to know :> i know it wouldn't be pretty
[10:21:28] arne: my only "real" approach to this would be to safe the thing in the database
[10:21:48] arne: so.. def self.something;def self self.otherthing;"x";end;end; would work?
[10:22:20] arne: i have no clue what a tvar is
[10:24:16] arne: well but i don't have concurrent-ruby in my gemfile.. and it feels a bit overhead to use that just for that one feature
[11:26:23] arne: terens: hello!


[07:30:48] arne: Remote host closed the connection


[11:55:04] arne: when asking nokogiri for a value of an attribute
[11:55:16] arne: i get an escaped version of that attribute
[11:55:26] arne: why doesn't it unescape it?
[12:02:08] arne: i mean if i write a xml doc with nokogiri i would like to get the same value out that i put in, don't i?


[02:47:16] arne: *.net *.split
[02:47:58] arne: has joined #ruby


[18:46:06] arne: if i overload a private method, how can i make sure it remains private?
[18:46:54] arne: well, i guess it makes sense
[18:47:03] arne: nothing you say when defining it, says you don't want it public
[18:47:09] arne: it would actually be more confusing if it was..
[18:47:18] arne: soluation was obvious: "mark" it private with
[18:47:21] arne: private :method_name


[17:03:49] arne: has joined #ruby
[17:03:59] arne: is it true that if a method is called with a block and params
[17:04:15] arne: and i "overload" it, the block gets passed on implictly?
[17:05:04] arne: it's a bug.. nota feature :o
[17:05:09] arne:
[17:05:14] arne: pretty much what is said there
[17:05:58] arne: havenwood: well, exactly that's what i expected
[17:06:11] arne: but super() will still send the block
[17:06:29] arne: and so will super(some_fancy_params*)
[17:06:58] arne: wow, that really caught me offguard


[07:14:39] arne: Quit: leaving


[10:05:08] arne: has joined #ruby
[10:05:46] arne: wouldn't it be cool to have a magic variable inside an if true block that has the result of the rexpressio
[10:07:11] arne: dminuoso: why not :(
[14:56:48] arne: when i do eval "w = 3"
[14:56:58] arne: why don't i have eval inside the currenct scope?
[14:58:58] arne: does binding always return a new binding?
[14:59:30] arne: i see, thanks
[14:59:37] arne: i guess it does, except for <cases>
[14:59:43] arne: like being inside a proc or something?
[15:01:59] arne: ah, i even used this once
[15:02:06] arne: thanks alot
[15:02:11] arne: binding still confusing imho
[15:02:46] arne: is it Kernel#binding?
[15:02:48] arne: where can i read about it
[15:03:22] arne: so binding returns a copy of the current scope?
[15:03:29] arne: not the scope itself?
[15:03:41] arne: or rather a "child" of the scope?
[15:09:15] arne: man i love ruby c code
[15:13:09] arne: havenwood: but as far as i understand it creates a new binding and writes stuff to it, so it would be some sort of a copy?
[15:15:26] arne: havenwood: so a copy :D at that time
[15:18:00] arne: havenwood: okay, thanks alot


[14:36:23] arne: has joined #ruby
[14:38:01] arne: invalid multibyte escape: /\x89PNG/ why doesn't this work?
[14:38:33] arne: i mean, i get why it doesn't, but shouldn't that work?
[14:38:56] arne: okay, thanks


[13:32:41] arne: has joined #ruby
[13:32:58] arne: fukin gem namespaces is so polluted with unfinished projects :(
[13:33:04] arne: can't find a name for a project
[13:36:56] arne: what's an enum
[13:37:21] arne: sorry, can't follow
[13:37:28] arne: this is #ruby
[13:37:32] arne: oh, is this FFI?
[13:38:05] arne: wow, that's cool
[13:38:33] arne: but, there won't be information about enums in compiled files.. except with debugging activated
[13:39:27] arne: i guess so, even with debugging enabled, i doubt there is a standard format for "this is how an enum looks"
[13:39:31] arne: you'll have to live with (1..n)
[13:40:43] arne: Cork: but it seems Fiddle is also able to parse C files, so maybe there is a way


[14:43:37] arne: what do i do if i want to search fast in a array of strings?
[14:44:28] arne: i mean i could do a hash, which all =>nil
[14:44:33] arne: but, that's not the point, set maybe?
[15:39:50] arne: p4tch3s: >fast


[21:17:23] arne: has joined #ruby
[21:17:41] arne: if i have a set of numbers [1,2,3,5,6,99,100]
[21:18:30] arne: how would i detect ranges like this becomes [1..3,5..6,99..100]
[21:18:38] arne: i think i even asked that question before
[21:19:00] arne: each_cons and then ech if a.succ == b?
[21:23:31] arne: yeah this was my try .sort.chunk_while { |a,b| a.succ == b }
[21:23:40] arne: that min max thingie is cool


[10:15:22] arne: has joined #ruby
[10:15:32] arne: someone here having experience with "shrine"?
[10:15:47] arne: i upload files to a s3 bucket, which reference gets stored with shrine
[10:16:05] arne: now i work on that file.. but shrine downloads the file over and over and over
[10:16:19] arne: (that resulted in a amazon bill of 800 bucks once, which they nicely reverted)
[10:16:30] arne: it's really odd that this gem has no cache
[10:22:17] arne: what is a local partial
[10:23:11] arne: i feel like there is some explaining missing


[13:33:09] arne: add .map {|k,v| [k.to_s,v]}.to_s at the end :p
[13:33:28] arne: *to._h *
[13:43:08] arne: heftig: their class method returns something else


[13:59:27] arne: Ping timeout: 248 seconds
[14:01:06] arne: has joined #ruby
[14:38:05] arne: Ping timeout: 240 seconds
[14:39:55] arne: has joined #ruby


[08:47:38] arne: Quit: leaving
[13:21:05] arne: has joined #ruby
[13:21:08] arne: don't you guys think
[13:21:14] arne: there should be a shorthand for
[13:21:21] arne: method { x }
[13:21:31] arne: dminuoso: so meany
[13:22:22] arne: well but callable would be
[13:22:33] arne: ->() { x }
[13:23:06] arne: i like them, best thing about ruby
[13:23:12] arne: i want something like $ in haskell
[13:23:19] arne: uhm.. fake-dsls
[13:24:47] arne: for them too be looking good, i do
[13:24:54] arne: dminuoso: i never said
[13:25:01] arne: imho sometimes
[13:25:17] arne: if(pred) something(); looks better than if(pred){something();}
[13:26:04] arne: yes, same principle
[13:26:16] arne: if there is only one instruction you don't need {}
[13:26:20] arne: same thing for blocks in ruby
[13:26:22] arne: i'd like
[13:27:50] arne: well you can do do.. end
[13:27:52] arne: which i like
[13:32:37] arne: well it would look more ugly than the original thing, right?
[15:23:12] arne: dminuoso: interesting.. i get different behaviours for calling a method without arguments
[15:23:15] arne: and just sending it
[15:23:19] arne: i guess you're the right person for that
[15:23:54] arne: dminuoso: not really, it's huge
[15:24:02] arne: it's a class << self;...;end defined class method
[15:24:04] arne: does that matter?
[15:25:02] arne: i know, but it seems to matter
[15:25:04] arne: CPlus::Model::Realm._my_create
[15:25:07] arne: CPlus::Model::Realm._my_create
[15:25:16] arne: CPlus::Model::Realm.send(:_my_create)
[15:28:02] arne: weird it works now
[15:28:10] arne: guess i mispelled something
[15:28:11] arne: sorry false alarm
[16:03:20] arne: "sublty"


[16:18:49] arne: has joined #ruby
[16:18:58] arne: how does websockets integrate into rack?
[16:19:17] arne: is there something that does not force me into EM?
[16:22:47] arne: what does that mean.. that control will be stolen from rack?
[16:24:53] arne: why, what is the problem with rack supporting websockets and providing an interface for websockets
[16:32:16] arne: > The Websocket Callback Object
[16:32:19] arne: that thing exists?
[16:32:59] arne: can you use that in a sentence?
[16:34:14] arne: and the return value of that lambda should be an object implementing such methods?
[16:35:01] arne: and that is a thing that exists.. this is kind of the rack api to websockets?
[16:35:32] arne: im thinkking of wirting my own web framework
[16:35:56] arne: where if possible data between client and server should be moved over websockets
[16:36:22] arne: uhm, is rack 1.1 only?
[16:38:01] arne: and rack can't do that? i always assumed
[16:39:06] arne: and what if a browser doesn't want http2 ? will the http-2 package fallback to http-1?
[16:41:44] arne: man the opera mini guys will be really missing out
[16:42:18] arne: yeah i think that for a website that is not ebay that would be enough
[16:42:38] arne: and the ruby package is good?
[16:42:41] arne: has it good performance?
[16:42:47] arne: do i have 1 thread per connection?
[16:47:51] arne: but i won't run my rack applications on it
[16:48:03] arne: so that's sad
[16:49:03] arne: too bad :/
[16:49:57] arne: think that is a no for ruby then :(
[16:50:18] arne: for possible language to write thiss framework in
[16:51:02] arne: my plan is to have a solution for the client/server model stuff
[16:51:33] arne: and do handle all boring stuff, like uploading files, forms,
[16:52:05] arne: havenwood: how does h2 help me? i mean i want "realtime" stuff
[16:52:08] arne: havenwood: because i hate it
[16:52:10] arne: hate drives me
[16:52:16] arne: i mean all existing ones
[16:52:32] arne: writing models, rewriting them for client.. implement a method serverside
[16:52:37] arne: hey... write it on client again
[16:52:42] arne: test it.. it's broken
[16:52:58] arne: would've loved ruby.. because opal
[16:53:11] arne: havenwood: i wish i could use haskell but it's sooo ugly
[16:53:26] arne: maybe giving elixir a try
[16:53:29] arne: never heard of cowboy
[16:53:44] arne: haskells rack equivalent has it all.. http2.. websockets..
[16:56:55] arne: yes, wai
[16:58:29] arne: i really love the pure function philosophie but im too stupid or it is too stupid
[17:06:45] arne: well, not official i guess
[17:07:02] arne: alchemist would be much more arrogant :D and also sounds like none knows what he is doing
[17:08:22] arne: who names themselve thath
[17:14:40] arne: lol oh shit