mostlybadfly has quit [Quit: Connection closed for inactivity]
<havenwood>
hays_: i didn't mean to omit the `do`, sorry for the confusion
bronson has quit [Ping timeout: 255 seconds]
<havenwood>
mea culpa
<al2o3-cr>
hays_: well spotted =)
ResidentBiscuit has joined #ruby
<hays_>
just making sure i understand :) novice eyes
<hays_>
what i don't understand about that code is if you don't give a block, then wouldn't you have overridden the initializer that allows for :baz and :bar to be initialized the other way?
<havenwood>
hays_: I was lazy and didn't try my code, sec.
<hays_>
the purpose of this code is nothing, just learning. but im trying to figure out a sensible coding style to hold myself to
<hays_>
i like passing blocks to initialize because it creates relatively self-documenting code. whereas passing (non-keyword) args can sometimes feel arbitrary with the order of args
<al2o3-cr>
another thing i like in 2.5 is Hash#slice
<hays_>
im tempted to just pass blocks
guille-moe has joined #ruby
<hays_>
but then you get to reimplementing enforcement of mandatory parameters
IJsbrand has joined #ruby
<havenwood>
hays_: Yeah, your code was actually totally correct for what you're meaning to do. I do think the slightly-strange seeming constant assignment style is worth it rather than Class.new.
MaksimPinigin has joined #ruby
alfiemax has joined #ruby
Yzguy has joined #ruby
chouhoulis has joined #ruby
guille-moe has quit [Ping timeout: 255 seconds]
r3kz has joined #ruby
Azure has quit [Ping timeout: 255 seconds]
jeffreylevesque has joined #ruby
dviola has quit [Quit: WeeChat 2.0.1]
ResidentBiscuit has quit [Remote host closed the connection]
Azure has joined #ruby
chouhoulis has quit [Client Quit]
Cork has quit [Ping timeout: 240 seconds]
jameser has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
alfiemax has quit [Ping timeout: 256 seconds]
jeffreylevesque_ has quit [Ping timeout: 256 seconds]
<havenwood>
hays_: Here's one that allows both kwargs and block at once, for fun: Foo = Struct.new(:bar, :baz, keyword_init: true) do; def initialize **kwargs; yield self if block_given?; super(to_h.merge(kwargs)) end end; Foo.new(bar: 42) { |f| f.baz = 84 } #=> #<struct Foo bar=42, baz=84>
<havenwood>
(Actually check it this time. >.>)
<havenwood>
checked**
<hays_>
cool
ap4y has joined #ruby
rrutkowski_ has joined #ruby
elcontrastador has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<hays_>
i have to be careful of new ruby stuff. some of our installations probably have 2.2 or 2.3
<hays_>
2.5 must be new. i don't even have it on my machine
guardianx has joined #ruby
jnyw has quit [Quit: WeeChat 2.0.1]
guardianx has quit [Client Quit]
Cork has joined #ruby
chouhoulis has joined #ruby
justicefries has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
banisterfiend has joined #ruby
fmcgeough has joined #ruby
jnyw has joined #ruby
Yzguy has quit [Quit: Zzz...]
Stazer has quit [Remote host closed the connection]
chouhoulis has quit [Remote host closed the connection]
<hays_>
cool. 2.5 fixes something i always thought was annoying (securerandom)
clemens3 has quit [Ping timeout: 256 seconds]
fmcgeough has quit [Quit: fmcgeough]
nadir has joined #ruby
bmurt has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jnyw has quit [Quit: WeeChat 2.0.1]
Azure has quit [Read error: Connection reset by peer]
Guest29688 has quit [Ping timeout: 252 seconds]
cdg has joined #ruby
Azure has joined #ruby
ogres has quit [Quit: Connection closed for inactivity]
Nicmavr has joined #ruby
Nicmavr is now known as Guest2997
alfiemax has joined #ruby
cdg has quit [Ping timeout: 256 seconds]
rrutkowski has joined #ruby
tamouse__ has joined #ruby
nopolitica has joined #ruby
tamouse__ has left #ruby [#ruby]
rrutkowski_ has quit [Ping timeout: 248 seconds]
alfiemax has quit [Ping timeout: 248 seconds]
rrutkowski has quit [Quit: rrutkowski]
ap4y has quit [Quit: WeeChat 1.9.1]
rrutkowski has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rrutkowski has quit [Remote host closed the connection]
AJA4350 has quit [Quit: AJA4350]
rrutkowski has joined #ruby
alfiemax has joined #ruby
cschneid_ has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rrutkowski has quit [Remote host closed the connection]
marr has quit [Ping timeout: 256 seconds]
rrutkowski has joined #ruby
rrutkowski has quit [Client Quit]
theRealGent has joined #ruby
rrutkowski has joined #ruby
Tempesta has quit [Quit: See ya!]
rrutkowski has quit [Client Quit]
rrutkowski has joined #ruby
gizmore|2 has joined #ruby
Dimik has quit [Ping timeout: 248 seconds]
rrutkowski has quit [Client Quit]
gizmore has quit [Ping timeout: 256 seconds]
armyriad has quit [Read error: Connection reset by peer]
rrutkowski has joined #ruby
armyriad has joined #ruby
<hays_>
oh, interesting. if I do Foo=Struct.new :bar, I access that with bar, not @bar
armyriad has quit [Read error: Connection reset by peer]
armyriad has joined #ruby
rrutkowski_ has joined #ruby
<al2o3-cr>
hays_: yep, because it creates accessor methods for you :)
rrutkowski has quit [Ping timeout: 256 seconds]
<hays_>
but it actually skips making the @foo thing
<hays_>
or probably has it somewhere else, since as you said, its wrapped in an accessor
bronson has joined #ruby
raatiniemi has quit [Ping timeout: 276 seconds]
<hays_>
i guess that's good form since if there is an accessor, it should probably be used
ur5us has quit [Remote host closed the connection]
rrutkowski has quit [Client Quit]
cdg has joined #ruby
s3nd1v0g1us has quit [Ping timeout: 276 seconds]
rrutkowski has joined #ruby
ali_g has joined #ruby
Kugz has joined #ruby
<havenwood>
Kugz: Like I was saying in #rubyonrails, those are each serialization formats - Marshal, JSON and YAML.
<havenwood>
Kugz: There are multiple reasons why we have so many formats.
<havenwood>
Marshal, for example, is Ruby-specific. It's not appropriate for sharing with other languages unless they implement Ruby's Marshal themselves.
<havenwood>
JSON is a subset of YAML. JSON is human readable and can't serialize nearly as much as YAML, so it's safer.
cdg has quit [Ping timeout: 276 seconds]
<Kugz>
It looks like YAML is escaping the characters or something at the end?
<havenwood>
Kugz: those are newlines
<havenwood>
it pretty-prints by default
<havenwood>
you can get the JSON to do that
<mikhael_k33hl>
How do I refer to the instance variable within a class from a module?
<havenwood>
mikhael_k33hl: You can just reference them directly inside a module instance method.
<havenwood>
Kugz: So you could just eval code, like: 42.inspect #=> "42"
<havenwood>
Kugz: But that's ^ extremely dangerous for user input, because they can run any code they want.
<mikhael_k33hl>
havenwood: So basically inside a class I have @log = RsyncLogg.assign_logger
<havenwood>
Kugz: Also, like Marshal, it doesn't work for sharing data across languages.
<havenwood>
Kugz: So we have serialization!
<havenwood>
Kugz: One you deserialize your JSON, it no longer matters that it *was* JSON. It becomes Ruby objects once deserialized, pure Ruby.
<Kugz>
So does serialization convert the data into a uniform structure, so that no matter what language you use it's Ruby readable?
<havenwood>
Kugz: It converts data specifically to text. Plain text.
naprimer3 has joined #ruby
naprimer has quit [Ping timeout: 276 seconds]
<Kugz>
Oh, that's easy to understand. When you deserialise, can you specify what format to put it in (Marshal, YAML, JSON etc)?
<Kugz>
(I'm Australian so it's autocorrecting the Z to an S sorry hahaha)
<havenwood>
Kugz: So the serialized text is in a format, like JSON or MsgPack. When you deserialize it it becomes data in the language you're deserializing it to.
iMadper has joined #ruby
<havenwood>
Kugz: So if we serialize something like 42 in any language, it'll be the same String that results.
<havenwood>
"42"
<Kugz>
Right. So would it convert { "data": { "field" : "example" } } to { data: { field : example } }?
<Kugz>
Serialization*
<havenwood>
Deserializing it in Ruby will be a Ruby `42` Integer, or in Objective-C it'll be an NSString, etc.
<havenwood>
Kugz: JSON happens to be a readable format, so maybe it's a bit confusing. It's just text.
<havenwood>
Kugz: Then every language it supports can turn that `"*"` into a native `42`.
<Kugz>
Oh, that's a little strange. Why did it choose a wildcard symbol for the number 42?
kapil___ has joined #ruby
<havenwood>
Kugz: MessagePack is fast and small. It uses neat tricks to be concise like that and do it quickly.
<havenwood>
Kugz: If you jump over to any of those other languages you can see you'll get 42 back.
<havenwood>
Or from another Ruby on another machine.
<Kugz>
All righty. So if I've got a bunch of JSON formatted data and I serialize it, it will be converted to plain text?
<havenwood>
Yes
rrutkowski has quit [Quit: rrutkowski]
<Kugz>
I found a method/function that is in built to ruby, I think it was JSON.parse(variable), is that the correct thing to do to serialize it?
<havenwood>
Kugz: JSON.load is only meant for trusted data. JSON.parse is correct for external or user data.
<havenwood>
JSON.load warning: "BEWARE: This method is meant to serialise data from trusted user input, like from your own database server or clients under your control, it could be dangerous to allow untrusted users to pass JSON sources into it."
<Kugz>
So if you're fetching data from an external API it's best to use JSON.parse, but if you've got JSON data on your own server that can't be tampered with and you trust you use JSON.load?
<Kugz>
So if you serialize data that has something malicious in it (might try to execute a database command for instance), will that stop it from happening?
<havenwood>
Then JSON.dump or #to_json if you don't care if it's pretty for human readability, or JSON.pretty_generate if you do care.
bronson has joined #ruby
<havenwood>
Kugz: JSON and MessagePack are two serialization formats that don't let you do much of anything, which tends to keep it safe.
<havenwood>
Kugz: YAML, a superset of JSON, or Marshal can serialize quite malicious things fairly easily.
dionysus69 has quit [Ping timeout: 256 seconds]
<havenwood>
Eval can do *anything*.
<havenwood>
#inspect and #eval are more homoiconicity than serialization - it's code *as* data rather than converted to data
<havenwood>
i dunno, maybe the conversion is still considered serialization?
<havenwood>
Kugz: But yeah, code to text. Text back to code. Varying degrees of danger!
<havenwood>
Kugz: JSON.parse is safe with user-supplied JSON.
<havenwood>
Kugz: Same with MessagePack.
<Kugz>
Well that explains it pretty well :D I'm super sorry but I have to leave work now to catch my train, is there any way to contact you or should I just come back to this IRC channel later on (I don't use IRC much, first time really)
bronson has quit [Ping timeout: 256 seconds]
<havenwood>
Kugz: I'm usually around, or someone else can probably help!
<havenwood>
Kugz: Later!
<Kugz>
thanks so much and have a good night!
yeticry has quit [Ping timeout: 256 seconds]
iMadper has quit [Remote host closed the connection]
yeticry has joined #ruby
ali_g has quit []
roshanavand has joined #ruby
Kugz has quit [Ping timeout: 260 seconds]
ali_g has joined #ruby
roshanavand has quit [Client Quit]
roshanavand has joined #ruby
anisha has quit [Quit: Leaving]
sanscoeur has quit [Remote host closed the connection]
russt has quit [Quit: That's all, folks!]
cgfbee has quit [Remote host closed the connection]
<mikhael_k33hl>
al2o3-cr: oh okay, so I'll just define the close method, or is there a better way to do it?
<al2o3-cr>
`def close; @logger.close end` something like this
Kugz has joined #ruby
Kugz has quit [Client Quit]
Kugz has joined #ruby
<mikhael_k33hl>
al2o3-cr: but if the script is closed via ctrl+c, that method isn't invoked though right?
conta has joined #ruby
ledestin has joined #ruby
<al2o3-cr>
right.
Kugz has quit [Client Quit]
iMadper has joined #ruby
russt has joined #ruby
Kero has quit [Ping timeout: 256 seconds]
d_kam has quit [Quit: Be back later ...]
Kero has joined #ruby
<havenwood>
trap('SIGINT') { close; exit 130 }
andikr has joined #ruby
Kugz has joined #ruby
<al2o3-cr>
hey, that is actually the right code for sigint :)
<al2o3-cr>
not many people use that.
<Kugz>
havenwood: I'm back! Would it help if I uploaded what code I've got/tried to get my JSON stuff working?
bronson has joined #ruby
d_kam has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
iMadper has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 255 seconds]
<havenwood>
Kugz: Have a gist that shows the issue you're running into? I've got to go here in a sec but someone else might be able to help now or I'll check the backlog.
<Kugz>
havenwood: I've had a bit of a breakthrough actually in the last 10 minutes, managed to get a single set of data to appear properly! Just need to figure out how to do a each statement for every entry now :D
<ruby[bot]>
havenwood: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
<havenwood>
#=> 130
<havenwood>
Kugz: nice!
<Kugz>
havenwood: I think there is something wrong with my JSON data that I have saved, when I copied it from the URL given (I only get 10 requests a day, so I thought I would save it locally) but it was all minified. When I copied just one character's worth of data and it wasn't minified, it seemed to work fine? My code editor shows the big list as if it was commented out, whereas the single amount of data is shown formatted and colored
<Kugz>
correctly
<Kugz>
havenwood: but it's not commented out, the file is 2.4MB so maybe that's an issue hahaha. It's a lot of data!
jameser has joined #ruby
jameser has quit [Client Quit]
yokel has quit [Remote host closed the connection]
alfiemax has joined #ruby
jsaak has quit [Ping timeout: 248 seconds]
jsaak has joined #ruby
mark_66 has joined #ruby
yokel has joined #ruby
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
raatiniemi has quit [Read error: Connection reset by peer]
raatiniemi has joined #ruby
minimalism has quit [Quit: minimalism]
deathsparton has joined #ruby
ur5us has joined #ruby
alfiemax has quit [Remote host closed the connection]
iMadper has joined #ruby
Kugz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jnyw has joined #ruby
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Veejay has quit [Quit: WeeChat 0.4.2]
darkhanb has joined #ruby
jtdoncas has quit [Ping timeout: 276 seconds]
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Burgestrand has joined #ruby
claudiuinberlin has joined #ruby
belmoussaoui has joined #ruby
vondruch has joined #ruby
darkhanb has joined #ruby
InfinityFye has joined #ruby
roshanavand has quit [Ping timeout: 256 seconds]
Dimik has quit [Ping timeout: 276 seconds]
InfinityFye has left #ruby [#ruby]
alfiemax has joined #ruby
bronson has joined #ruby
Kugz has joined #ruby
KevinSjoberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_aeris_ has quit [Remote host closed the connection]
_aeris_ has joined #ruby
alfiemax has quit [Remote host closed the connection]
tomphp has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
tomphp has quit [Client Quit]
bkxd has joined #ruby
bkxd has quit [Client Quit]
bkxd has joined #ruby
belmoussaoui has joined #ruby
elphe has quit [Quit: Lost terminal]
belmoussaoui has quit [Client Quit]
ldnunes has joined #ruby
belmoussaoui has joined #ruby
nibbo has joined #ruby
<darix>
mikhael_k33hl: that works differently. this is not string replace, the library gets the query with the ???? and the array with params and fills it in. that happens inside the sqlite library
tomphp has joined #ruby
bronson has joined #ruby
tomphp has quit [Client Quit]
bronson has quit [Ping timeout: 256 seconds]
alfiemax has joined #ruby
amatas has joined #ruby
John____ has left #ruby ["Систем политик аметзит, крэтин щй ваи д ел."]
alfiemax has quit [Remote host closed the connection]
Cavallari has quit [Ping timeout: 256 seconds]
Cavallari has joined #ruby
bkxd_ has joined #ruby
bkxd has quit [Ping timeout: 248 seconds]
AJA4350 has joined #ruby
Cavallari has quit [Ping timeout: 256 seconds]
goatish has joined #ruby
Cavallari has joined #ruby
iamarun has quit [Remote host closed the connection]
TinkerTyper has quit [Read error: Connection reset by peer]
TinkerTyper has joined #ruby
belmoussaoui has quit [Quit: belmoussaoui]
thinkpad has quit [Quit: lawl]
splargle has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
mostlybadfly has joined #ruby
jaruga has joined #ruby
cdg has joined #ruby
KevinSjoberg has joined #ruby
bronson has joined #ruby
aufi has joined #ruby
bronson has quit [Ping timeout: 248 seconds]
thinkpad has joined #ruby
bkxd_ has quit [Ping timeout: 264 seconds]
bkxd has joined #ruby
Riddell has quit [Ping timeout: 256 seconds]
nopolitica has joined #ruby
tcopeland has quit [Quit: tcopeland]
Riddell has joined #ruby
fredx has joined #ruby
fredx_ has joined #ruby
fredx_ has quit [Remote host closed the connection]
splargle has joined #ruby
TomyLobo has joined #ruby
r3kz has quit [Quit: Connection closed for inactivity]
MaksimPinigin has quit [Quit: My computer went into sleep mode or I turned it off]
s3nd1v0g1us has quit [Ping timeout: 265 seconds]
goatish has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
marens_ has quit [Ping timeout: 255 seconds]
bkxd_ has joined #ruby
bkxd has quit [Ping timeout: 276 seconds]
nopolitica has quit [Quit: WeeChat 1.9]
bronson has joined #ruby
goatish has joined #ruby
bkxd_ has quit []
Azure has quit [Read error: Connection reset by peer]
Azure has joined #ruby
bronson has quit [Ping timeout: 260 seconds]
thejamespinto has joined #ruby
cdg has quit [Remote host closed the connection]
sepp2k has joined #ruby
thejamespinto has quit [Ping timeout: 264 seconds]
Cavallari has quit [Read error: Connection reset by peer]
KevinSjoberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Cavallari has joined #ruby
KeyJoo has joined #ruby
KevinSjoberg has joined #ruby
bhaak has quit [Ping timeout: 240 seconds]
synthroid has joined #ruby
govg has quit [Ping timeout: 255 seconds]
Mia has quit [Read error: Connection reset by peer]
tcopeland has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
fmcgeough has joined #ruby
fmcgeough has quit [Client Quit]
belmoussaoui has quit [Quit: belmoussaoui]
chocoelho has joined #ruby
cdg has joined #ruby
hfp_work has quit [Ping timeout: 255 seconds]
s3nd1v0g1us has joined #ruby
cdg has quit [Ping timeout: 265 seconds]
rgr has joined #ruby
s3nd1v0g1us has quit [Ping timeout: 276 seconds]
shinnya has joined #ruby
InfinityFye has left #ruby ["Leaving"]
hfp_work has joined #ruby
apparition has joined #ruby
Mortomes|Work has quit [Ping timeout: 260 seconds]
bronson has joined #ruby
KevinSjoberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dionysus69 has quit [Ping timeout: 255 seconds]
bronson has quit [Ping timeout: 256 seconds]
Cavallari has quit [Quit: Cavallari]
deathsparton has joined #ruby
deathsparton has quit [Excess Flood]
goatish has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aupadhye has quit [Ping timeout: 255 seconds]
k0mpa has quit [Quit: k0mpa]
k0mpa has joined #ruby
AgentVenom has joined #ruby
Toledo is now known as croberts
ur5us has quit [Remote host closed the connection]
goatish has joined #ruby
cdg has joined #ruby
ta_ has quit [Remote host closed the connection]
fmcgeough has joined #ruby
belmoussaoui has joined #ruby
raynold has quit [Quit: Connection closed for inactivity]
troulouliou_div2 has joined #ruby
k0mpa has quit [Ping timeout: 272 seconds]
Guest62716 has joined #ruby
silpy has joined #ruby
QualityAddict has joined #ruby
splargle has quit [Ping timeout: 276 seconds]
lightstalker has quit [Remote host closed the connection]
lightstalker has joined #ruby
k0mpa has joined #ruby
lightstalker has quit [Remote host closed the connection]
lightstalker has joined #ruby
LastWhisper____ has joined #ruby
govg has joined #ruby
nowhereman_ has quit [Ping timeout: 256 seconds]
chocoelho has quit [Ping timeout: 276 seconds]
ta_ has joined #ruby
bronson has joined #ruby
rippa has joined #ruby
chocoelho has joined #ruby
nowhereman_ has joined #ruby
shinnya has quit [Ping timeout: 256 seconds]
<Trel>
If I want to host gems on an internal site to be freely downloadable by people who can reach the site, is there any document with the requirements I would need to set that up?
thejamespinto has joined #ruby
<Trel>
I'm not familiar with ruby or the wordings to know what to search for to find this
banisterfiend has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
deathsparton has joined #ruby
tomphp has joined #ruby
deathsparton_ has joined #ruby
tomphp has quit [Client Quit]
depesz has left #ruby ["WeeChat 1.9"]
deathsparton has quit [Ping timeout: 256 seconds]
ta_ has quit [Remote host closed the connection]
deathsparton_ has quit [Ping timeout: 264 seconds]
<darix>
Trel: "gem server"
<darix>
is the search term you are looking for
<darix>
Trel: gem help server
<darix>
as a basic implementation
<Trel>
Thanks, I'll google on that. I probably only need a basic one since it'll likely be a docker container
tomphp has joined #ruby
Rapture has joined #ruby
Press10 has quit [Remote host closed the connection]
Ishido has quit [Ping timeout: 276 seconds]
zigzig has quit [Remote host closed the connection]
netherwolfe has joined #ruby
tomphp has quit [Client Quit]
zigzig has joined #ruby
splargle has joined #ruby
deathsparton_ has joined #ruby
orbyt_ has joined #ruby
chocoelho has quit [Ping timeout: 256 seconds]
KevinSjoberg has joined #ruby
mtkd has quit [Ping timeout: 276 seconds]
mtkd has joined #ruby
tomphp has joined #ruby
Ishido has joined #ruby
s3nd1v0g1us has joined #ruby
s3nd1v0g1us has quit [Max SendQ exceeded]
s3nd1v0g1us has joined #ruby
s3nd1v0g1us has quit [Max SendQ exceeded]
tomphp has quit [Client Quit]
deathsparton_ has quit [Remote host closed the connection]
<enrique_webwork>
<havenwood> the only refference of the rbenv is in the $PATH
<dminuoso>
or rather `w a -> w (w a)` and `w a -> a`
<enrique_webwork>
I get the error right after I login
chouhoulis has joined #ruby
<adaedra>
Check your ~/.bashrc and ~/.bash_profile
<havenwood>
enrique_webwork: It's likely in one of your dotfiles. What adaedra said.
<enrique_webwork>
all clean
<adaedra>
~/.profile ?
<havenwood>
enrique_webwork: Check more dotfiles.
<enrique_webwork>
no sign of of rbenv in those files
Riddell has joined #ruby
mtkd has joined #ruby
<adaedra>
In related file in /etc?
<adaedra>
files*
deathsparton_ has joined #ruby
deathsparton_ has quit [Excess Flood]
<havenwood>
enrique_webwork: what OS?
deathsparton_ has joined #ruby
<dminuoso>
havenwood: Essentially it models problems that somehow calculate values based on some "neighborhood", which is what that (w a -> b) is about. So given some large data structure `w a`, and some function that knows how to operate on a (usually) local neighborhood `w a -> b`, it applies it to the entire thing.
<enrique_webwork>
no sign of rbenv in any of the /etc/ files
<havenwood>
enrique_webwork: Did you check?: /etc/profile, ~/.bash_profile, ~/.bash_login, ~/.profile and /etc/bash.bashrc?
chocoelho has quit [Quit: Konversation terminated!]
<rh10>
akryll, sorry, did not see instantly. thanks too
* rh10
has to change some color in irc client
<havenwood>
akryll: Have you checked out TruffleRuby?
zigzig has quit [Remote host closed the connection]
<havenwood>
akryll: Also, Roda!
zigzig has joined #ruby
<havenwood>
(Saw your Rails convo.)
<akryll>
haha i already chosen techtopia to get back into ruby after all these years
<akryll>
what did you think of that discussion man?
<havenwood>
I just skimmed it, but I love talking Ruby performance!
<havenwood>
akryll: CRuby has really had a nice focus on performance lately. Some of the neat JIT work might land soon, which give a great performance for memory tradeoff when that works for you.
<havenwood>
akryll: JRuby continues to be production-ready and fast, when you have the memory and can spare the startup time.
<akryll>
im glad i stayed in here to see you say this
<havenwood>
akryll: TruffleRuby uses SVM to startup impressively fast, and then Graal for high level JIT.
<havenwood>
It's not production ready for Rails yet, but actually runs almost everything and it seems like they're closing in!
fusta has quit [Ping timeout: 255 seconds]
<havenwood>
It's a lot of fun to contribute to as well, since the core team is super active, give great feedback and much of it is implemented in Ruby.
<havenwood>
"Using the SVM it is possible to ahead-of-time compile TruffleRuby and the Graal dynamic compiler to a single, statically linked native binary executable, that has no dependency on a JVM, and does not link to any JVM libraries."
<akryll>
i just wanted to know if the community is still actively improving performance options for ruby and rails and you've let me know exactly that rails is perfectly fine to get into right now, appreciate it
<havenwood>
akryll: Rails is doing great stuff. They're starting to focus more on performance.
ryzokuken has joined #ruby
<havenwood>
akryll: Ruby has a huge focus on it across different implementation teems.
<havenwood>
akryll: Roda takes the performance crown, for Rack adapters - being fast and light.
<havenwood>
akryll: The fastest thing in Ruby-land is actually on the mruby front, because they embed it in Nginx and then add caching for more speed.
_aeris_ has quit [Remote host closed the connection]
_aeris_ has joined #ruby
desperek has joined #ruby
Riddell has quit [Ping timeout: 256 seconds]
sepp2k has quit [Quit: Leaving.]
Riddell has joined #ruby
ta_ has joined #ruby
r3kz has joined #ruby
Riddell has quit [Changing host]
Riddell has joined #ruby
bronson has joined #ruby
kies has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
xpt has joined #ruby
amatas_ has quit [Quit: amatas_]
splargle has quit [Ping timeout: 256 seconds]
KevinSjoberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
KevinSjoberg has joined #ruby
Dimik has quit [Ping timeout: 260 seconds]
justinfaler has joined #ruby
rh10 has quit [Remote host closed the connection]
ldnunes has quit [Quit: Leaving]
kossae has joined #ruby
Axy has joined #ruby
Axy has quit [Changing host]
Axy has joined #ruby
Riddell has quit [Ping timeout: 256 seconds]
mtkd has quit [Ping timeout: 276 seconds]
Mia has quit [Ping timeout: 240 seconds]
conceivably has joined #ruby
mtkd has joined #ruby
Riddell has joined #ruby
drewmcmillan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Dimik has joined #ruby
troys_ is now known as troys
SCHAPiE has quit [Read error: Connection reset by peer]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
WA9ACE has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
<conceivably>
Hi. I'm trying to call a new instance of each class whose file is in a given directory. In order to get a list of the classes within the folder /foo/bar/baz, I'm trying to use Foo.constants, Foo::Bar.constants, Foo::Bar::Baz.constants. However, mysteriously only some of the constants available in the respective modules get shown. Any ideas of what might be going on would be greatly appreciated :)
SCHAPiE has joined #ruby
claudiuinberlin has joined #ruby
Toggi3 has quit [Ping timeout: 255 seconds]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rikkipitt has joined #ruby
claudiuinberlin has joined #ruby
<conceivably>
Ah never I mind. I guess those constants weren't available from the point of call.
linetrace has quit [Read error: Connection reset by peer]
KeyJoo has quit [Ping timeout: 248 seconds]
drewmcmillan has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
dviola has joined #ruby
bronson has joined #ruby
linetrace has joined #ruby
KevinSjoberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
felideon has joined #ruby
felideon has left #ruby ["WeeChat 0.4.3"]
bronson has quit [Ping timeout: 256 seconds]
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sameerynho has quit [Ping timeout: 256 seconds]
mtkd has quit [Ping timeout: 240 seconds]
mtkd has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
LastWhisper____ has joined #ruby
miskatonic has joined #ruby
Toggi3 has joined #ruby
pocketprotector has quit [Read error: Connection reset by peer]
Guest62716 has quit [Ping timeout: 276 seconds]
akryll has left #ruby [#ruby]
rikkipitt has quit [Remote host closed the connection]
rikkipitt has joined #ruby
dwickern has joined #ruby
Rouge has joined #ruby
TomyLobo2 has joined #ruby
justinfaler has quit [Ping timeout: 255 seconds]
rikkipitt has quit [Ping timeout: 255 seconds]
musl has joined #ruby
steveAT has joined #ruby
TomyLobo has quit [Ping timeout: 256 seconds]
jtdoncas has joined #ruby
rikkipitt has joined #ruby
rikkipitt has quit [Remote host closed the connection]
ur5us has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
steveAT has quit [Quit: bye]
<Trel>
Ok, I'm stumped, what would cause a gem to show up with 'gem list' but not with 'gem which <gemname>'
synthroi_ has quit []
Stazer has joined #ruby
mtkd has quit [Read error: Connection reset by peer]
bronson has joined #ruby
mtkd has joined #ruby
Ishido has quit [Ping timeout: 268 seconds]
bronson has quit [Ping timeout: 248 seconds]
elementaru has quit [Read error: Connection reset by peer]