mattwildig has quit [Remote host closed the connection]
mattwildig has joined #ruby-lang
ur5us has joined #ruby-lang
jphenow has quit [Ping timeout: 264 seconds]
yfeldblum has quit [Remote host closed the connection]
oleo__ has quit [Quit: Verlassend]
ayonkhan has joined #ruby-lang
ur5us has quit [Ping timeout: 245 seconds]
buzz0763 has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
apeiros_ has joined #ruby-lang
oleo__ has joined #ruby-lang
oleo__ is now known as oleo
oleo has quit [Read error: Connection reset by peer]
<[spoiler]>
lol @ "except if you code in C, then it's the egg-dance around undefined behavior." :D
<[spoiler]>
I couldn't agree more
<[spoiler]>
*do something in ~10 lines of code* realise it's undefined behaviour, and just an implementation detail, *write 500 more lines of code to fix that*
<[spoiler]>
Hmm. Is there a way to check if a variable is defined without using `defined?` and without using a rescue block lol
<brocktimus>
if
<brocktimus>
?
<brocktimus>
do_something_with(foo) if foo
yield_rb has quit [Max SendQ exceeded]
vlad_starkov has quit [Ping timeout: 264 seconds]
vlad_starkov has joined #ruby-lang
Bwild has joined #ruby-lang
<darix>
[spoiler]: might be worth to ping in #1696
<darix>
or maybe mruby has variable_defined?
tkuchiki has quit [Quit: Leaving...]
<darix>
ugly way would be checking local_variables
yfeldblu_ has joined #ruby-lang
<[spoiler]>
brocktimus: erm the thing is that mrb throws an exception
<[spoiler]>
if you try that
<brocktimus>
oh sorry, only just joined and didn't realise you were using mruby :)
<[spoiler]>
dw, maybe I should've added "mruby" haha :-)
<darix>
[spoiler]: something like def variable_defined?(name) ; local_variables.include? name.to_sym ;end
<darix>
might work
<darix>
untested
<[spoiler]>
Hmm I didn't think of that
iamninja has joined #ruby-lang
<[spoiler]>
that adds a lot of overhead though
<darix>
[spoiler]: the other option would be just to initialize that variable to nil and use unless var.nil?
yfeldblu_ has quit [Ping timeout: 245 seconds]
<darix>
anyway
<darix>
now really nn
<[spoiler]>
night! :D
<[spoiler]>
(the init-to-nil was my idea too, but I was hoping there was a performant and "pretty" way fo doing it)
<[spoiler]>
of*
yield_rb has joined #ruby-lang
<darix>
[spoiler]: init to nil and nil? check are probably faster than walking a potentially large local_variables array
wallerdev has joined #ruby-lang
<[spoiler]>
yep
<[spoiler]>
+ the variable array is generated on-the-fly
<[spoiler]>
(that is, each time local_variabled is called)
<[spoiler]>
local_variables
<brocktimus>
I haven't looked at mruby much, but wouldn't my code above work if it was already initialized to nil? unless foo.nil? always seemed like a code smell to me
<brocktimus>
if not ill go back into my hole since I dont know enough mruby :-P
<darix>
brocktimus: it isnt smell
<darix>
foo = nil
<darix>
<large code block that might set useful value to foo>
<darix>
dosomething unless foo.nil?
rahul_j has quit [Quit: rahul_j]
<darix>
depending what comes between the foo.nil? and the large code block that might be valid
<darix>
e.g. exit the method on other conditions
<brocktimus>
I just use the implicit that a nil variable evaluates to fall
<brocktimus>
false*
<darix>
brocktimus: but it isnt always false :)
<darix>
large code block might set foo
<darix>
think loading and parsing data e.g.
<brocktimus>
Oh I get what you mean, so in cases where both false / nil are valid values and you just want to know if its been set or not?
<[spoiler]>
> p "humf" unless a.nil?
<[spoiler]>
(mirb):5: undefined method 'a' for main (NoMethodError)
<[spoiler]>
omitting .nil? produces the same exception
<darix>
uhm
<darix>
a = nil ?:p
<[spoiler]>
no no I didn't initialise it
<darix>
[spoiler]: but you should :p
<[spoiler]>
I know :D
<brocktimus>
Depending on use case if completely unset is valid and different behaviour to set as nil / false a hash seems appropriate, don't know exact use case though
skade has joined #ruby-lang
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
loincloth has joined #ruby-lang
rahul_j has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
jphenow has joined #ruby-lang
loincloth has quit [Ping timeout: 245 seconds]
jphenow has quit [Ping timeout: 240 seconds]
mcclurmc_ has joined #ruby-lang
bradland has quit [Quit: bradland]
mcclurmc has joined #ruby-lang
lele has quit [Ping timeout: 244 seconds]
mcclurmc_ has quit [Ping timeout: 255 seconds]
mcclurmc_ has joined #ruby-lang
lele has joined #ruby-lang
mcclurmc has quit [Ping timeout: 265 seconds]
<[spoiler]>
Aaw? RubySpec is ending?! :(
<brocktimus>
Read @headius feed + HN, more to it than meets the eye it seems
jphenow has joined #ruby-lang
yfeldblum has joined #ruby-lang
jphenow has quit [Client Quit]
bradland has joined #ruby-lang
yfeldblum has quit [Ping timeout: 240 seconds]
micaeked has joined #ruby-lang
<micaeked>
I think I may have found a bug in 2.2 #instance_exec. This snip works in 2.1 but raises ArgumentError in 2.2. `proc = ->(foo = nil) { p(foo) }; instance_exec(["a", "b"], &proc)`
cornerman has quit [Read error: Connection reset by peer]
cornerma1 is now known as cornerman
Forgetful_Lion has joined #ruby-lang
yfeldblum has joined #ruby-lang
AKASkip has joined #ruby-lang
gjaldon has joined #ruby-lang
yfeldblum has quit [Ping timeout: 250 seconds]
ta_ has joined #ruby-lang
deryl has joined #ruby-lang
deryl has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
ta_ has quit [Ping timeout: 265 seconds]
DivineEntity has joined #ruby-lang
kiyote23 has joined #ruby-lang
loincloth has joined #ruby-lang
loincloth has quit [Ping timeout: 272 seconds]
rahul_j has joined #ruby-lang
kiyote23 has quit [Ping timeout: 245 seconds]
iamninja has quit [Quit: ZZZzzz…]
deryl has quit [Quit: Leaving]
fclausen has quit [Ping timeout: 272 seconds]
deryl has joined #ruby-lang
deryl has quit [Client Quit]
ta_ has joined #ruby-lang
ta_ has quit [Ping timeout: 244 seconds]
revath has joined #ruby-lang
deryl has joined #ruby-lang
Musashi007 has quit [Quit: Musashi007]
mattyohe has quit [Quit: Connection closed for inactivity]
wallerdev has quit [Quit: wallerdev]
yfeldblum has joined #ruby-lang
yfeldblum has quit [Ping timeout: 245 seconds]
loincloth has joined #ruby-lang
ayonkhan has quit [Read error: Connection reset by peer]
loincloth has quit [Ping timeout: 245 seconds]
fusillicode has joined #ruby-lang
fusillicode has quit [Ping timeout: 256 seconds]
wallerdev has joined #ruby-lang
wallerdev has quit [Client Quit]
fusillicode has joined #ruby-lang
fusillicode has quit [Ping timeout: 250 seconds]
dabradley has quit [Ping timeout: 256 seconds]
rahul_j has quit [Quit: rahul_j]
fusillicode has joined #ruby-lang
ur5us has joined #ruby-lang
rahul_j has joined #ruby-lang
deryl has quit [Quit: Leaving]
dabradley has joined #ruby-lang
deryl has joined #ruby-lang
yfeldblum has joined #ruby-lang
yfeldblum has quit [Ping timeout: 265 seconds]
lsegal has quit [Read error: Connection reset by peer]
lsegal has joined #ruby-lang
ta_ has joined #ruby-lang
pwnz0r has joined #ruby-lang
ur5us has quit [Remote host closed the connection]
loincloth has joined #ruby-lang
loincloth has quit [Ping timeout: 240 seconds]
tzero has quit [Ping timeout: 245 seconds]
gjaldon has quit [Remote host closed the connection]
charliesome has quit [Quit: zzz]
ta_ has quit [Ping timeout: 244 seconds]
Miphix has joined #ruby-lang
nofxx_ has quit [Ping timeout: 240 seconds]
pwnz0r has quit [Remote host closed the connection]
rahul_j has quit [Quit: rahul_j]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tzero has joined #ruby-lang
sondr3 has joined #ruby-lang
rahul_j has joined #ruby-lang
fclausen has joined #ruby-lang
ItSANgo has quit [Quit: Leaving...]
charliesome has joined #ruby-lang
yfeldblum has joined #ruby-lang
mistym has joined #ruby-lang
yfeldblum has quit [Ping timeout: 240 seconds]
ur5us has joined #ruby-lang
ur5us has quit [Remote host closed the connection]
koderok has joined #ruby-lang
koderok has quit [Remote host closed the connection]
ItSANgo has joined #ruby-lang
Musashi007 has joined #ruby-lang
<[spoiler]>
Hmm. Should I use mruby's parser API, or just `mrb_load_nstring_cxt`? I'm asking because mrb_load_nstring_cxt seems to do the job just fine, but it feels a bit... hacky? Lmao
charliesome has quit [Quit: zzz]
loincloth has joined #ruby-lang
lsegal has quit [Read error: Connection reset by peer]
lsegal has joined #ruby-lang
fclausen has quit [Ping timeout: 272 seconds]
charliesome has joined #ruby-lang
loincloth has quit [Ping timeout: 250 seconds]
sondr3 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skade has joined #ruby-lang
<[spoiler]>
I'm indecisive about whether I should use: mrbc_context/mrb_parser_parse/mrb_generate_code/mrb_context_run or mrbc_context_new/mrb_load_nstring_cxt lol. The latter seems way more simple to use than the former, although I feel like I'm setting a trap for myself?
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rahul_j has joined #ruby-lang
GaelanAintAround has quit [Ping timeout: 240 seconds]
zz_dlu has quit [Ping timeout: 256 seconds]
dellavg_ has quit [Ping timeout: 250 seconds]
ta_ has quit [Ping timeout: 240 seconds]
Iskarlar has joined #ruby-lang
mcclurmc has quit [Remote host closed the connection]
devgiant has joined #ruby-lang
cmisenas has joined #ruby-lang
zz_dlu has joined #ruby-lang
GaelanAintAround has joined #ruby-lang
mcclurmc has joined #ruby-lang
devgiant has quit [Quit: Leaving]
micmus has joined #ruby-lang
mcclurmc has quit [Ping timeout: 250 seconds]
sondr3 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
maso has quit [Remote host closed the connection]
zz_dlu has quit [Ping timeout: 265 seconds]
GaelanAintAround has quit [Ping timeout: 240 seconds]
mcclurmc has joined #ruby-lang
sondr3 has joined #ruby-lang
gjaldon has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
yfeldblum has quit [Ping timeout: 245 seconds]
GaelanAintAround has joined #ruby-lang
zz_dlu has joined #ruby-lang
amclain has joined #ruby-lang
fusillicode has joined #ruby-lang
zz_dlu has quit [Ping timeout: 240 seconds]
GaelanAintAround has quit [Ping timeout: 272 seconds]
iamninja has joined #ruby-lang
fusillicode has quit [Ping timeout: 240 seconds]
loincloth has joined #ruby-lang
mcclurmc has quit [Remote host closed the connection]
omninonsense has joined #ruby-lang
ta_ has joined #ruby-lang
venture37 has left #ruby-lang [#ruby-lang]
loincloth has quit [Ping timeout: 255 seconds]
dangerousdave has joined #ruby-lang
dangerou_ has joined #ruby-lang
dangerou_ has quit [Max SendQ exceeded]
dangerou_ has joined #ruby-lang
[spoiler] has quit [Ping timeout: 255 seconds]
Sadin has joined #ruby-lang
Iskarlar has quit [Ping timeout: 244 seconds]
kiyote23 has joined #ruby-lang
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wallerdev has joined #ruby-lang
zz_dlu has joined #ruby-lang
fusillicode has joined #ruby-lang
asahi has left #ruby-lang [#ruby-lang]
dangerou_ has quit [Ping timeout: 264 seconds]
koderok has joined #ruby-lang
kiyote23 has quit [Ping timeout: 240 seconds]
slawrence00 has joined #ruby-lang
koderok has quit [Client Quit]
zz_dlu has quit [Ping timeout: 244 seconds]
ta_ has quit [Ping timeout: 256 seconds]
mcclurmc has joined #ruby-lang
mcclurmc has quit [Remote host closed the connection]
spastorino has quit [Quit: Connection closed for inactivity]
mcclurmc has joined #ruby-lang
Iskarlar has joined #ruby-lang
mcclurmc has quit [Ping timeout: 244 seconds]
ledestin has joined #ruby-lang
mcclurmc has joined #ruby-lang
rbrs has quit [Quit: Leaving]
ta_ has joined #ruby-lang
benten has joined #ruby-lang
<benten>
dblack around?
yfeldblum has joined #ruby-lang
matp has quit [Remote host closed the connection]
ta_ has quit [Ping timeout: 244 seconds]
seank_ has joined #ruby-lang
yfeldblum has quit [Ping timeout: 245 seconds]
rahul_j has quit [Quit: rahul_j]
Sadin has quit [Remote host closed the connection]
ayonkhan has joined #ruby-lang
donove has joined #ruby-lang
donove has joined #ruby-lang
Guest29 has joined #ruby-lang
Guest29 has quit [Client Quit]
skade has joined #ruby-lang
ayonkhan has quit [Quit: (null)]
Guest29 has joined #ruby-lang
Guest29 has quit [Client Quit]
koderok has joined #ruby-lang
koderok has quit [Client Quit]
havenwood has quit [Ping timeout: 250 seconds]
centrx has joined #ruby-lang
zz_dlu has joined #ruby-lang
GaelanAintAround has joined #ruby-lang
havenwood has joined #ruby-lang
cmisenas has quit [Ping timeout: 265 seconds]
cmisenas has joined #ruby-lang
rbrs has joined #ruby-lang
GaelanAintAround has quit [Ping timeout: 244 seconds]
ta_ has joined #ruby-lang
zz_dlu has quit [Ping timeout: 240 seconds]
GaelanAintAround has joined #ruby-lang
benlovell has joined #ruby-lang
ta_ has quit [Ping timeout: 250 seconds]
GaelanAintAround has quit [Ping timeout: 250 seconds]
cmisenas has quit [Quit: cmisenas]
mattwildig has quit [Remote host closed the connection]
mcclurmc_ has joined #ruby-lang
mcclurmc has quit [Ping timeout: 250 seconds]
GaelanAintAround has joined #ruby-lang
yfeldblum has joined #ruby-lang
mcclurmc_ has quit [Ping timeout: 264 seconds]
nux443 has joined #ruby-lang
mattwildig has joined #ruby-lang
Gaelane has joined #ruby-lang
zz_dlu has joined #ruby-lang
stamina has quit [Remote host closed the connection]
GaelanAintAround has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Ping timeout: 244 seconds]
apeiros has joined #ruby-lang
Gaelane has quit [Ping timeout: 255 seconds]
zz_dlu has quit [Ping timeout: 272 seconds]
spastorino has joined #ruby-lang
donove has quit [Quit: Leaving]
nathanstitt has joined #ruby-lang
ledestin has quit [Quit: ledestin]
zz_dlu has joined #ruby-lang
nathanst_ has joined #ruby-lang
nathanstitt has quit [Read error: Connection reset by peer]
zz_dlu has quit [Ping timeout: 255 seconds]
Sadin has joined #ruby-lang
Menorah has joined #ruby-lang
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arooni-mobile has joined #ruby-lang
kiyote23 has joined #ruby-lang
tkuchiki has joined #ruby-lang
benlovell has quit [Ping timeout: 272 seconds]
loincloth has joined #ruby-lang
Iskarlar has joined #ruby-lang
mattyohe has joined #ruby-lang
jphenow has joined #ruby-lang
kiyote23 has quit [Ping timeout: 250 seconds]
loincloth has quit [Ping timeout: 264 seconds]
Iskarlar has quit [Ping timeout: 255 seconds]
benlovell has joined #ruby-lang
mistym has joined #ruby-lang
yfeldblum has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 250 seconds]
nathanst_ has quit [Quit: I growing sleepy]
bodgix has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
yield_rb has quit [Ping timeout: 245 seconds]
RbLeif has joined #ruby-lang
tkuchiki has quit [Ping timeout: 250 seconds]
benten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
donove has joined #ruby-lang
donove has joined #ruby-lang
benten has joined #ruby-lang
havenwood has quit []
ta_ has joined #ruby-lang
arooni-mobile has joined #ruby-lang
benten has quit [Ping timeout: 256 seconds]
tmi1 has joined #ruby-lang
ta_ has quit [Ping timeout: 240 seconds]
arooni-mobile has quit [Ping timeout: 265 seconds]
Musashi007 has joined #ruby-lang
iamninja has quit [Remote host closed the connection]
pwnz0r has joined #ruby-lang
asahi has joined #ruby-lang
iamninja has joined #ruby-lang
ur5us has joined #ruby-lang
chills42 has joined #ruby-lang
nathanstitt has joined #ruby-lang
omninonsense is now known as [spoiler]
rbrs has quit [Quit: Leaving]
loincloth has joined #ruby-lang
loincloth has quit [Ping timeout: 250 seconds]
chills42 has quit [Remote host closed the connection]
Musashi007 has quit [Quit: Musashi007]
Musashi007 has joined #ruby-lang
ruby-lang392 has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
<ruby-lang392>
hello ruby commu ity!
iamninja has quit [Quit: ZZZzzz…]
<ruby-lang392>
I've been doing some research for a programming language to learn and km curious what I'd find on this irc. I'm familiar with c/c++ and Lua. but everything I see online says to learn ruby or python as a first language. should I keep with c. or should I learn ruby?
<yorickpeterse>
ruby-lang392: that depends on what you need from a language
<yorickpeterse>
it never hurts to look into it a bit and then decide if you want to continue or not
<yorickpeterse>
but don't let others decide what you should (not) learn
waxjar has quit [Quit: Do women wear socks? Well, yes, sometimes, is the answer to that. Socks before or after trousers, but never socks before pants, that’s the rule. Makes a man look scary – like a chicken.]
<godd2>
yorickpeterse I think you just told him not to listen to you :P
<yorickpeterse>
I told them to evaluate it themselves, not that they should or should not learn it
<ruby-lang392>
I'm just looking for some advice.haha. and my end goal is game development but I'm expecting that to be a while.
<yorickpeterse>
Which is different from "You have to learn it because my great uncle Billy really likes it"
<[spoiler]>
ruby-lang392: don't listen to yorickpeterse; the answer is yes: learn ruby! At least it will make you a happier person
<[spoiler]>
yorickpeterse: did ruby make you a happier person? :-)
<yorickpeterse>
it certainly made me swear more
<yorickpeterse>
But it did cure the depression I had when I was still writing PHP
<[spoiler]>
See, case study finished. Ruby makes people happy!
<ruby-lang392>
haha! that's quite convincing I will say. but if I don't plan on web development what wan I make with it?
<ruby-lang392>
can*
<[spoiler]>
Anything you would do in another language, though
<godd2>
ruby-lang392 there are several cool ways you can do game development in ruby! One is Gosu (which requires your users to have ruby installed) but another is the gem "yeah" or the gem "dare" which compile ruby to javascript so it can be played in the browser
<[spoiler]>
A language is just a toolbox for you to build tings
<[spoiler]>
godd2: or he could pack mruby with the game ;)
<ruby-lang392>
OK guys, ill give it a try! I hope I'll be back here to chat with ya soon
<[spoiler]>
also it's somewhat faster than MRI (the "default" ruby) because it cuts away some language features
Lewix has joined #ruby-lang
boulderruby has joined #ruby-lang
<darix>
like defined? ;) *scnr*
<[spoiler]>
Have fun with ruby ruby-lang392! :-)
<[spoiler]>
darix: LOL
<boulderruby>
test
<[spoiler]>
you nailed it :P
<boulderruby>
alright alright
<darix>
i wonder if an erlang style actor implementation would be good for games
<darix>
so using celluloid for a game e.g.
centrx has quit [Quit: Science is organized knowledge, wisdom is organized life.]
Menorah has quit [Quit: This computer has gone to sleep]
Menorah has joined #ruby-lang
seank_ has quit [Remote host closed the connection]
donove has quit [Quit: Leaving]
gjaldon has joined #ruby-lang
lapide_viridi has quit [Quit: Leaving]
JohnBat26 has joined #ruby-lang
JohnBat26 has quit [Client Quit]
mcclurmc has joined #ruby-lang
ruby-lang410 has joined #ruby-lang
ruby-lang410 has quit [Client Quit]
ruby-lang139 has joined #ruby-lang
boulderruby has left #ruby-lang [#ruby-lang]
<godd2>
darix I'm not sure. I think most things in a game you'd want to react "instantaneously" to some external state change. Or at least, as quickly as you'd expect for the properties of some thing in the game.
mcclurmc has quit [Remote host closed the connection]
mcclurmc has joined #ruby-lang
boulder-ruby has joined #ruby-lang
<godd2>
So like, you wouldn't want to asynchronously update a healthbar. You'd want it to happen as soon as possible
mattwildig has quit []
benlovell has quit [Ping timeout: 240 seconds]
<godd2>
But I suppose I could imagine it working for something like dwarf fortress, where the dwarves "get around" to doing work
<darix>
godd2: nobody said actors are slow :)
nathanstitt has quit [Quit: Laters]
pwnz0r has quit [Remote host closed the connection]
<godd2>
I'm not saying their slow, just that there's no guarantee that the work gets done before some other event occurs. That is, if there's a queue of messages which decrease your healthbar, youd want them to resolve to see if the player is dead before he tries to do anything else.
<godd2>
they're*
weaksauce has joined #ruby-lang
<godd2>
but for a dwarf, it wouldn't matter, because they can choose to ignore messages haha
boulder-ruby has quit [Quit: boulder-ruby]
iamninja has joined #ruby-lang
<darix>
i think the actual computing work should be about the same between both models
boulder-ruby has joined #ruby-lang
<godd2>
oh I wasn't making a claim on the efficiency of one model over the other. I was just saying that a lot of the time, state changes are synchronous in games.
kiyote23 has joined #ruby-lang
gjaldon has quit []
ta_ has joined #ruby-lang
<darix>
from my recent experiences i can tell you "mostly"
<darix>
some recent games had funny bugs like "you crouch and still get the headshot as if you looked over the crate"
<darix>
and that wasnt just network latency
<godd2>
lol "yeah, the bounding box will get around to diminishing, but it doesn't happen synchronously"
kiyote23 has quit [Ping timeout: 245 seconds]
ruby-lang139 has quit [Ping timeout: 246 seconds]
<godd2>
I'm trying to think of other applications of asynchronous message passing. Maybe like, a stealthy game where you make a sound, but the guard may have a delayed reaction to you.
ta_ has quit [Ping timeout: 265 seconds]
<godd2>
I wonder what would happen if you simulated traffic flow that way. Make it the traffic engine of a sim city game or something
mustmodify has joined #ruby-lang
tmi1 has quit [Quit: Leaving.]
ruby-lang392 has quit [Ping timeout: 246 seconds]
loincloth has joined #ruby-lang
<boulder-ruby>
is there a ruby chatroom for noobs? I want noob questions to answer
<Lewix>
Happy new year!
<boulder-ruby>
makes me feel smart
<godd2>
Lewix Happy new year!
<mustmodify>
boulder-ruby: Well then try signing up for RailsHotline. :)
<godd2>
boulder-ruby haha well in #ruby people come is asking easier questions
<red_menace>
boulder-ruby: there is ##new2ruby
<mustmodify>
Though there's some bug and I can't sign in lately to put myself on call.
<boulder-ruby>
thanks
Musashi007 has quit [Quit: Musashi007]
<boulder-ruby>
ahh 33 members not bad
loincloth has quit [Ping timeout: 265 seconds]
ur5us has quit [Remote host closed the connection]
RbLeif has quit [Remote host closed the connection]
<godd2>
boulder-ruby also, even if there isn't a question you can answer, it's a good strategy to see the answers to the questions and google about them to learn more about Ruby :)
<godd2>
and if you don't know yet, you can use >> to show little examples that get evaluated
<boulder-ruby>
Most of the questions I can answer on stackoverflow have 0 votes, and no answers yet. Stackoverflow makes it actually kind of hard to find these now
<red_menace>
yeah, everything just got lumped together
Musashi007 has joined #ruby-lang
<[spoiler]>
ruby questions on SO = Rails question
<[spoiler]>
questions*
<[spoiler]>
lol
<red_menace>
it does now
<red_menace>
used to be able to filter that out
fclausen has joined #ruby-lang
pwnz0r has joined #ruby-lang
Menorah has quit [Quit: This computer has gone to sleep]
<boulder-ruby>
confusing rails with ruby is an acceptable sin I guess. we rubyists can tolerate parallel inheritance (muahaha)
<[spoiler]>
Lmao
<boulder-ruby>
it makes more sense the less you think about. #ruby
RbLeif has joined #ruby-lang
<boulder-ruby>
Just kidding
<boulder-ruby>
Some sort of object-oriented trip, Steven Jobs shit
boulder-ruby has left #ruby-lang [#ruby-lang]
<mustmodify>
I wonder if you could create a google search that helped to filter that out. `ruby site:stackoverflow.com -active -rails`
<yorickpeterse>
although you could probably convert the nanoseconds to seconds as a float, then use that as input
<chris2>
that loses precision probably
<chris2>
ok, Time.at(s, Rational(n, 1000)) works
<chris2>
roundtrips here
<yorickpeterse>
heh
ta_ has joined #ruby-lang
ta_ has quit [Ping timeout: 265 seconds]
benten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nertzy has joined #ruby-lang
benten has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
<ddd>
i'm not looking to start trouble, I'm honestly trying to understand (since I'm way below that paygrade). What does RubySpec project closing down mean for the various implementations?
ur5us has joined #ruby-lang
ledestin has joined #ruby-lang
<yorickpeterse>
ddd: little
<ddd>
i saw the tweets about it today and read a couple of the blog posts regarding it, but i'm unsure what that represents i guess over time
<yorickpeterse>
ddd: Opal has been using its own fork for a while since they had to make some changes, JRuby pulls specs into their own repository (just as Rbx does)
<yorickpeterse>
MRI apparently is using a fork from 2013 with some custom changes
<yorickpeterse>
It most likely has more of an impact on whoever was still maintaining rubyspec/rubyspec than it has on the rest
<ddd>
is it going to be internalized to rbx only then?
Musashi007 has quit [Quit: Musashi007]
<yorickpeterse>
Rbx will continue using the same style of specs, they just won't be part of RubySpec
<yorickpeterse>
e.g. in the past we'd write a spec in the Rbx repo, make it pass, then sync it back to RubySpec for others to use
<[spoiler]>
ddd: Well, rbx won't need to abide to the rubyspec now. I think Rubinius has wanted to divert from MRI for a while now
<yorickpeterse>
(or the other way around)
<yorickpeterse>
[spoiler]: we will not divert from MRI
<[spoiler]>
oh
<yorickpeterse>
That is, we're not making our own Ruby
<[spoiler]>
maybe I confused it with rubiniusx then
<yorickpeterse>
We might choose not to implement certain parts because of reasons, but those are rare occassions
<ddd>
i'm not sure who works on which implementation so i'm asking as a whole
<yorickpeterse>
In fact, the only one I can think of now are refinements
<yorickpeterse>
[spoiler]: Rbx-x will indeed be a separate thing, developed separately from rbx
<ddd>
i mean i know brixen works on rbx, headius on jruby, and matz on mri, but thats kind of the limit of my knowledge of who is who
<yorickpeterse>
ddd: jruby is mainly headius, enebo, chrisseaton and eregon
<yorickpeterse>
(from the top of my head)
<ddd>
isn't evanph jruby as well?
<yorickpeterse>
MRI is matz, nobu, koichi, nurse, yugui, zzak and a few others
ur5us has quit [Ping timeout: 245 seconds]
micmus has quit [Ping timeout: 245 seconds]
<godd2>
and tenderlove is all of them
<[spoiler]>
lol ^
<ddd>
ah. i recognize a few of those names
<yorickpeterse>
ddd: you mean Evan Phoenix?
<ddd>
yeah
<yorickpeterse>
No, he created Rbx initially
<ddd>
think hsi twitter is evanph
<ddd>
ahh
<ddd>
err his
<yorickpeterse>
He might have commit bit, but I don't recall him working on Jruby actively
<ddd>
gotcha. i'm an end user of the 'product'. not sure, as i said, of who is who
loincloth has joined #ruby-lang
<ddd>
if you minus the .. bad blood? attitude? regarding brixen (no offense intended, just noticing), what generally in the community of implementors keeps RS from being unilaterally used? From what *I* can glean it just seems its a matter of each impl doing their own thing. (not a bad thing)
<yorickpeterse>
I have honestly no idea
<ddd>
did i miss what was going on, or is that an accurate summation? (Feel free to tell me to stfu, its just me wondering what all the hooplah was over, or what was driving the wedge so to speak)
michaeldeol has joined #ruby-lang
<yorickpeterse>
ddd: there's nothing wrong with asking these questions
<ddd>
i see RS as a good thing from what I understand of it's intended use, but then again I'm not an implementer so I don't know if there's something else only the impls see that I wouldn't without being involved on that level
<yorickpeterse>
One of the rationale was people not getting along, which is odd because I had a discussion about this months ago stating people should just come to me in that case (so I'd basically be their proxy)
<ddd>
cool. i just saw what seemed like a lot of anger and frustration all around so i was really hesitant to ask anything.
<yorickpeterse>
That being "if X does not get along with Y, tell X to come to me and I'll see what I can do"
<ddd>
but my curiosity got the better of me heheh
loincloth has quit [Ping timeout: 240 seconds]
<ddd>
that sounds reasonable to me
pwnz0r has quit [Remote host closed the connection]
<yorickpeterse>
But sadly in the past year at least nobody made any attempts whatsoever
<yorickpeterse>
and now people are saddened/angry that we're pulling the plug
pwnz0r has joined #ruby-lang
mattyohe has joined #ruby-lang
<ddd>
evan did the same thing *way* back when brixen and I had a falling out over something RVM related (when I was active on the project) and it worked fairly well for the 3 of us. we didn't clash as much (or at least we got to vent just not to each other)
michaeldeol has quit [Client Quit]
<yorickpeterse>
heh, RVM
<yorickpeterse>
that still triggers certain responses :P
<ddd>
yeah i know.
<ddd>
sstephenson and i are still not talking :)
<ddd>
but i get it
mustmodify has joined #ruby-lang
arBmind has joined #ruby-lang
<ddd>
anyways, for the RS topic, thank you for letting me ask and for the responses.
<mustmodify>
anybody have a way to find the 'scale' of a BigDecimal other than just ... multiplying, truncating and seeing if it's the same?