#ruby - 20 January 2018
« Back 1 day Forward 1 day »
[04:09:14] tamouse__: has left #ruby: (""Poets have been mysteriously silent on the subject of cheese" -- G.K.Chesterson")
[12:57:51] cousin_luigi: ACTION doesn't know the first thing about ruby, but he'd like to make this thing work from command line: RbConfig::CONFIG['ruby_version'].gsub(/^(\d+\.\d+).*$/, "\1")
[13:04:54] go|dfish: cousin_luigi: well, what exactly are you doing? what exactly is generating this error?
[13:07:27] cousin_luigi: go|dfish: I've extracted that snippet from an existing non ruby macro. It's supposed to output x.y.z, e.g. 2.1.0. Right now I'm seeing -e:1:in `gsub': no implicit conversion of Fixnum into String (TypeError)
[16:24:31] havenwood: arne: Well, it's a socket hijacking API, so yeah - basically. Or there's partial hijacking.
[16:24:53] arne: why, what is the problem with rack supporting websockets and providing an interface for websockets
[16:39:06] arne: and what if a browser doesn't want http2 ? will the http-2 package fallback to http-1?
[16:40:56] havenwood: arne: Rack only supports HTTP 1.1 at this point. Aaron and Eileen added some Push support if I recall, but most of the spec is unimplemented.
[16:51:32] havenwood: arne: I'd recommend you pursue H2 not WebSockets whatever stack you choose. Good luck!
[16:55:09] havenwood: arne: Based on what you've been saying, I'd suggest looking at Elixir Plugs or Phoenix Channels. You'd have to say more about what you're doing and at what scale for better suggestions.
[16:55:46] havenwood: arne: ActionCable is probably the best option for a websockety type channel in Ruby.
[17:07:02] arne: alchemist would be much more arrogant :D and also sounds like none knows what he is doing
[21:42:02] FCser: Hmm with a regex how can I target \r\n ? According to this tool it’s not /\r\n/ - for example I basically want to remove everything except ‘text to keep’ in this example http://rubular.com/r/2mGWKIUGTO
[22:10:21] fredolinhares: If I write a lib for Ruby that uses code from a C lib, is okay to implement the Ruby code in C or is better to do bindings first?
[22:11:39] fredolinhares: I don't want to do the entire biding for some libs to only after implement the lib I want.
[23:27:20] kspencer: Does anyone know of a markdown linter that can be used easily inside code, instead of using it as a shell command, I'd like to lint markdown given as input, but can't find any libraries where thats easily accessible, mdl/markdownlint are both 99% just used as a executable, and i don't see an easy entry point