apeiros changed the topic of #ruby-lang to: Ruby 2.0.0-p247: http://ruby-lang.org (Ruby 1.9.3-p448) || Paste >3 lines of text on http://gist.github.com
richardburton has joined #ruby-lang
richardburton has quit [Client Quit]
richardburton has joined #ruby-lang
wm3|zzz has quit [Ping timeout: 252 seconds]
vlad_starkov has joined #ruby-lang
richardburton has quit [Client Quit]
izzy006 has quit [Quit: irc2go]
apeiros has quit [Remote host closed the connection]
fuhgeddaboudit has joined #ruby-lang
apeiros has joined #ruby-lang
deception has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 240 seconds]
vxxr has joined #ruby-lang
kitak has joined #ruby-lang
deception has quit [Ping timeout: 248 seconds]
mdedetrich has joined #ruby-lang
mindriot101 has quit [Remote host closed the connection]
loincloth has joined #ruby-lang
loincloth has quit [Read error: Operation timed out]
CaryInVictoria has joined #ruby-lang
tubbo has quit [Ping timeout: 276 seconds]
CaryInVictoria has quit [Ping timeout: 240 seconds]
nneko001__ has quit [Quit: Konversation terminated!]
CaryInVictoria has joined #ruby-lang
bastilian has quit [Quit: Linkinus - http://linkinus.com]
GeissT has joined #ruby-lang
CaryInVictoria has quit [Remote host closed the connection]
znz_jp has joined #ruby-lang
tubbo has joined #ruby-lang
heftig has joined #ruby-lang
CaryInVictoria has joined #ruby-lang
tubbo has quit [Ping timeout: 276 seconds]
ruskie has joined #ruby-lang
kitak has quit [Remote host closed the connection]
kitak has joined #ruby-lang
tomzx_mac_ has joined #ruby-lang
stamina has quit [Ping timeout: 252 seconds]
tomzx_mac has quit [Ping timeout: 264 seconds]
VTLob has quit [Quit: VTLob]
jonahR has quit [Read error: Connection reset by peer]
jonahR has joined #ruby-lang
s0ber has joined #ruby-lang
kurko_ has quit [Ping timeout: 245 seconds]
kurko_ has joined #ruby-lang
arBmind has quit [Ping timeout: 264 seconds]
sepp2k1 has quit [Read error: Connection reset by peer]
arBmind has joined #ruby-lang
charliesome has joined #ruby-lang
jerrytgarcia has quit [Quit: WeeChat 0.4.1]
ShadyNastys has joined #ruby-lang
CaryInVictoria has quit [Remote host closed the connection]
arBmind has quit [Quit: Leaving.]
kurko_ has quit [Quit: Computer has gone to sleep.]
tomzx_mac has joined #ruby-lang
nertzy has joined #ruby-lang
tomzx_mac_ has quit [Ping timeout: 245 seconds]
uta has joined #ruby-lang
ShadyNastys_ has joined #ruby-lang
jerrytgarcia has joined #ruby-lang
vlad_starkov has joined #ruby-lang
CaryInVictoria has joined #ruby-lang
ShadyNastys has quit [Ping timeout: 252 seconds]
vlad_starkov has quit [Ping timeout: 245 seconds]
jerrytgarcia has quit [Quit: WeeChat 0.4.1]
jerrytgarcia has joined #ruby-lang
tubbo has joined #ruby-lang
nertzy has quit [Quit: This computer has gone to sleep]
tubbo has quit [Ping timeout: 276 seconds]
kurko_ has joined #ruby-lang
sniffingcats has quit [Quit: Til rivido Idisti!]
tylersmith has joined #ruby-lang
D9_ has joined #ruby-lang
loincloth has joined #ruby-lang
vlad_starkov has joined #ruby-lang
loincloth has quit [Read error: Operation timed out]
vlad_starkov has quit [Read error: Operation timed out]
jerrytgarcia has quit [Read error: Connection reset by peer]
cstrahan has quit [Ping timeout: 260 seconds]
richardburton has joined #ruby-lang
brianpWins has joined #ruby-lang
tkuchiki has joined #ruby-lang
jerrytgarcia has joined #ruby-lang
brianpWins has quit [Ping timeout: 264 seconds]
Coincidental has quit [Remote host closed the connection]
symm- has joined #ruby-lang
CaryInVictoria has quit [Remote host closed the connection]
nertzy has joined #ruby-lang
CaryInVictoria has joined #ruby-lang
fuhgeddaboudit_ has joined #ruby-lang
fuhgeddaboudit_ has quit [Read error: Connection reset by peer]
fuhgeddaboudit_ has joined #ruby-lang
kurko_ has quit [Ping timeout: 264 seconds]
tharindu has joined #ruby-lang
kurko_ has joined #ruby-lang
thepumpkin has quit [Remote host closed the connection]
iliketurtles has joined #ruby-lang
kitak has quit [Remote host closed the connection]
kitak has joined #ruby-lang
nertzy has quit [Quit: This computer has gone to sleep]
tharindu_ has joined #ruby-lang
tharindu has quit [Ping timeout: 268 seconds]
kurko_ has quit [Quit: Computer has gone to sleep.]
tenderlove has quit [Remote host closed the connection]
mmorga has joined #ruby-lang
tenderlove has joined #ruby-lang
ryez has joined #ruby-lang
vxxr has quit [Quit: leaving]
fuhgeddaboudit has quit [Quit: Ex-Chat]
Nisstyre-laptop has joined #ruby-lang
iliketurtles has quit [Quit: zzzzz…..]
Nisstyre-laptop is now known as nisstyre
sirupsen has joined #ruby-lang
vlad_starkov has joined #ruby-lang
jonahR has quit [Quit: jonahR]
CaryInVictoria has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 264 seconds]
sush24 has joined #ruby-lang
CaryInVictoria has joined #ruby-lang
mmorga has quit [Remote host closed the connection]
nertzy has joined #ruby-lang
t0h has quit [Read error: Operation timed out]
t0h has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
lsegal` has joined #ruby-lang
yfeldblum has joined #ruby-lang
lsegal has quit [Read error: Connection reset by peer]
t0h has quit [Read error: Operation timed out]
t0h has joined #ruby-lang
retro|cz has joined #ruby-lang
sharma_ has joined #ruby-lang
tylersmith has quit [Ping timeout: 264 seconds]
nertzy2 has joined #ruby-lang
sush24 has quit [Ping timeout: 264 seconds]
nertzy2 has quit [Client Quit]
nertzy has quit [Ping timeout: 252 seconds]
symm- has quit [Ping timeout: 245 seconds]
kitak has quit [Remote host closed the connection]
kitak has joined #ruby-lang
mdedetrich has joined #ruby-lang
knu has quit [Ping timeout: 248 seconds]
jonahR has joined #ruby-lang
ShadyNastys__ has joined #ruby-lang
lsegal` has quit [Read error: Connection reset by peer]
lsegal has joined #ruby-lang
fuhgeddaboudit_ has quit [Ping timeout: 252 seconds]
ShadyNastys_ has quit [Ping timeout: 240 seconds]
vlad_starkov has joined #ruby-lang
sirupsen has quit []
vlad_starkov has quit [Ping timeout: 264 seconds]
nicecomputerman has left #ruby-lang [#ruby-lang]
kazuuu has quit [Remote host closed the connection]
ecnalyr has joined #ruby-lang
jonahR has quit [Quit: jonahR]
robbyoconnor has joined #ruby-lang
richardburton has quit [Quit: Leaving.]
ecnalyr has quit [Remote host closed the connection]
jrobeson has joined #ruby-lang
richardburton has joined #ruby-lang
sirupsen has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
ShadyNastys__ has quit [Quit: Leaving]
ShadyNastys has joined #ruby-lang
ecnalyr has joined #ruby-lang
ecnalyr has quit [Remote host closed the connection]
mdedetrich has quit [Quit: Computer has gone to sleep.]
tenderlove has quit [Remote host closed the connection]
tenderlove has joined #ruby-lang
tenderlove has quit [Remote host closed the connection]
mdedetrich has joined #ruby-lang
kazuuu has joined #ruby-lang
CaryInVictoria has quit [Remote host closed the connection]
postmodern has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
tubbo has joined #ruby-lang
sirupsen has quit []
hhatch has joined #ruby-lang
sharma_ has quit [Ping timeout: 248 seconds]
nisstyre has quit [Quit: Leaving]
mdedetrich has joined #ruby-lang
kitak has quit [Remote host closed the connection]
knu has joined #ruby-lang
kitak has joined #ruby-lang
brianpWins has joined #ruby-lang
symm- has joined #ruby-lang
tomzx_mac has quit [Ping timeout: 256 seconds]
mdedetrich has quit [Quit: Computer has gone to sleep.]
postmodern has quit [Quit: Leaving]
symm- has quit [Ping timeout: 268 seconds]
loincloth has joined #ruby-lang
adambeynon has joined #ruby-lang
chinno998 has joined #ruby-lang
vlad_starkov has joined #ruby-lang
chinno998 has left #ruby-lang [#ruby-lang]
skade has joined #ruby-lang
loincloth has quit [Ping timeout: 245 seconds]
jxie has quit [Ping timeout: 260 seconds]
kazuuu has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 248 seconds]
kitak has quit [Remote host closed the connection]
kitak has joined #ruby-lang
jxie has joined #ruby-lang
wallerdev has joined #ruby-lang
chinno998 has joined #ruby-lang
chinno998 has quit [Max SendQ exceeded]
chinno998 has joined #ruby-lang
chinno998 has quit [Client Quit]
adambeynon has quit [Quit: Textual IRC Client: www.textualapp.com]
chinno998 has joined #ruby-lang
chinno998 has quit [Max SendQ exceeded]
chinno998 has joined #ruby-lang
chinno998 has left #ruby-lang [#ruby-lang]
tubbo has quit [Ping timeout: 276 seconds]
ruby-lang245 has joined #ruby-lang
ruby-lang245 has quit [Client Quit]
richardburton has quit [Quit: Leaving.]
shinnya has quit [Ping timeout: 240 seconds]
tubbo has joined #ruby-lang
iliketurtles has joined #ruby-lang
tubbo has quit [Ping timeout: 276 seconds]
iliketurtles has quit [Quit: zzzzz…..]
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
vlad_starkov has joined #ruby-lang
lsegal has joined #ruby-lang
ruskie has quit [Excess Flood]
ruskie has joined #ruby-lang
AOP has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 268 seconds]
D9_ has quit [Ping timeout: 268 seconds]
relix has joined #ruby-lang
shinnya has joined #ruby-lang
tubbo has joined #ruby-lang
tubbo has quit [Ping timeout: 276 seconds]
GeissT has quit [Ping timeout: 252 seconds]
<zzak> ljarvis: worst
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
<ddfreyne> Hmmmm.
<ddfreyne> I need some brainpower on this:
mistym has joined #ruby-lang
<ddfreyne> I want to have two gems in lock-step versioning.
<ddfreyne> But they are in different repositories, which makes things... hard.
<ddfreyne> Has anybody tackled this problem before?
ryez has quit [Quit: Page closed]
<jrobeson> ddfreyne, i was going to suggest the rails approach
<jrobeson> and then if you still wanted end user facing reposotories using git-subtree
<jrobeson> read only
<jrobeson> that's how symfony (a php project does it)
<jrobeson> it's more convenient for them to manage their components and versioning together
<jrobeson> so they do that
<ddfreyne> Hmm, I'm getting more and more inclined to do in the single-repo way. It kinda feels ugly though.
<jrobeson> i think it's less ugly on the packaging side if you use git-subtree though
<ddfreyne> It kinda sucks that I just split the repository in three different ones. ;)
wm3|zzz has joined #ruby-lang
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 260 seconds]
wallerdev has quit [Quit: wallerdev]
adambeynon has joined #ruby-lang
user64 has joined #ruby-lang
<ddfreyne> Hmmm.
user64 has quit [Remote host closed the connection]
AOP has quit [Ping timeout: 260 seconds]
<ddfreyne> jrobeson: Rails defines its version in different places, I notice. ActionPack::VERSION does not use RAILS_VERSION file :(
<ddfreyne> This is... icky.
<jrobeson> so? just don't do the badness they did :)
ShadyNastys has quit [Ping timeout: 260 seconds]
iliketurtles has joined #ruby-lang
iliketurtles has quit [Client Quit]
<ddfreyne> jrobeson: If you have a single VERSION file at the top of the repository, how can you let that be used by Nanoc::VERSION? I don't think it's possible because you cannot include it in the gem (since it's outside the directory the gemspec is in)
Cakey has joined #ruby-lang
erichmenge has quit [Ping timeout: 256 seconds]
mindriot101 has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vlad_starkov has joined #ruby-lang
charliesome has joined #ruby-lang
<jrobeson> ddfreyne, you might want to compare how spree does it
erichmenge has joined #ruby-lang
<jrobeson> that's the example off the top of my head that is 5 gems in one repo
mindriot101 has quit [Remote host closed the connection]
charliesome has quit [Client Quit]
vlad_starkov has quit [Ping timeout: 240 seconds]
<ddfreyne> Spree also duplicates the version number
jerrytgarcia has quit [Quit: WeeChat 0.4.1]
stamina has joined #ruby-lang
vlad_starkov has joined #ruby-lang
gnufied has quit [Ping timeout: 260 seconds]
corecode has joined #ruby-lang
<corecode> hi
<corecode> is there a way to hook into the #{foo} string interpolation mechanism?
<jrobeson> ddfreyne, i wonder ify ou can do it dynamically based on the git tag?
gnufied has joined #ruby-lang
<ddfreyne> jrobeson: Not sure how that would work (the information still needs to be stored in the gem somehow) and it is not flexible enough IMO -- I want to play with versions without bothering with git
vlad_starkov has quit [Remote host closed the connection]
schaerli has joined #ruby-lang
jerrytgarcia has joined #ruby-lang
sepp2k has joined #ruby-lang
toretore has joined #ruby-lang
dmitrykorotkov_ has quit [Ping timeout: 245 seconds]
dmitrykorotkov has joined #ruby-lang
user64 has joined #ruby-lang
cads has quit [Ping timeout: 245 seconds]
runeb has joined #ruby-lang
user64 has quit [Remote host closed the connection]
Darkchaos has joined #ruby-lang
benanne has joined #ruby-lang
dmitrykorotkov_ has joined #ruby-lang
schaerli has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby-lang
dmitrykorotkov has quit [Ping timeout: 260 seconds]
JohnBat26 has joined #ruby-lang
dmitrykorotkov_ has quit [Read error: Operation timed out]
dmitrykorotkov has joined #ruby-lang
jbsan has quit [Quit: jbsan]
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
mistym has quit [Remote host closed the connection]
wm3|zzz is now known as workmad3
MaddinXx has joined #ruby-lang
dmitrykorotkov has quit [Read error: Connection reset by peer]
dmitrykorotkov has joined #ruby-lang
dmitrykorotkov has quit [Read error: Connection reset by peer]
dmitrykorotkov has joined #ruby-lang
<corecode> any idea how to make this more elegant?
<corecode> i.e. automatically insert the calls to l var
Guest85414__ has quit [Ping timeout: 248 seconds]
dmitrykorotkov has quit [Ping timeout: 256 seconds]
mdedetrich has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
charliesome has joined #ruby-lang
<whitequark> corecode: I'm writing a dfu driver right now as well :p
<whitequark> corecode: I don't think you will find something significantly more elegant than your current solution, no.
<corecode> whitequark: i was thinking about hooking into string interpolation
<corecode> but ruby is not lisp :/
<corecode> whitequark: how's it going?
<whitequark> that's not really possible without a horrible hack, no
<corecode> horrible hack is okay
<corecode> talking about eval?
<corecode> maybe i should do that
<whitequark> no. you can wrap your strings with an object which responds to #to_str. it then can do anything it wants
<whitequark> (or #to_s... I never remembered which one)
<corecode> you mean use non-interpolated strings
<whitequark> hrm, not quite
<corecode> my usb lib is about 2.5KB
jxie has quit [Quit: leaving]
<corecode> and printf is 1KB :/
<whitequark> but I think you won't be able to put the location where you want with this technique anyway
<corecode> yea
<corecode> i wonder how the interpolation works
<whitequark> (usb lib) well, it takes some time, mainly because I need to extend the compiler
<corecode> is it when the string literal is "executed"
nofxx has quit [Ping timeout: 264 seconds]
<corecode> or does it get ripped apart when the literal is parsed
<whitequark> here's some really preliminary higher-level code: https://gist.github.com/whitequark/ba7fb740ab2feaae5c35
gix has quit [Ping timeout: 248 seconds]
sniffingcats has joined #ruby-lang
<whitequark> (interpolation) it's ripped apart into string fragments and expressions when it's compiled. then string fragments are pushed on the stack as is, expressions are coerced to string (with #to_s) and pushed too. then there's an opcode for concatenating top N string fragments on the stack.
<corecode> ah ok
<whitequark> try eg > puts RubyVM::InstructionSequence.disasm(-> { "foo#{bar}baz#{1}" })
gix has joined #ruby-lang
<whitequark> corecode: (usb lib) so the general idea is that if you map your abstractions right, it's possible to write very readable and compact drivers with pattern matching, variants and binary literals
<whitequark> so that's what I'm up to now
<corecode> hmm
<corecode> did you look at my usb code?
<whitequark> at the snippet you posted, yes
<whitequark> but I think it's just a DSL for defining descriptors
<corecode> yes it is
<corecode> i think i found a decent way of making the usb class drivers modular and simple
nofxx has joined #ruby-lang
<whitequark> hmm interesting
<corecode> i honestly have no idea why other usb drivers are so shitty code
<corecode> this is even cross-platform, can run on a virtual usb connection on the host via usbip
<corecode> so is the usb driver core
<whitequark> nice
<corecode> yea being able to debug locally is a necessity
<whitequark> I see you use bitfields in low-level code
<corecode> yes
<whitequark> not sure if it matters for your chip, but I found it extemely problematic with stm32's, because the compiler kept using wrong alignment for accesses
<corecode> hell yes.
<corecode> what do you mean
<corecode> wrong alignment
<whitequark> there are some registers on stm32s which can be accessed only by words or halfwords
<corecode> ah using 32 bit reads for 8 bit peripherals?
<whitequark> yep
<corecode> yea
<corecode> UNION_STRUCT_* magic :)
<whitequark> I didn't find any way to force this, even nonportable
<whitequark> hmm
<corecode> and using uint8_t for the bit constants
<corecode> will create byte accesses
<whitequark> I think I had an opposite problem. the register has to be accessed by words, but when I updated only one byte-sized bitfield, the compiler generated byte accesses
<corecode> oh.
<corecode> yea, i don't know
<corecode> you need to use a bit field for that
<corecode> not a single byte member
<whitequark> it was a bitfield
<corecode> ok
<whitequark> which happened to be 8-bit-wide and aligned on byte boundary
<corecode> i dunno, works here[tm]
<whitequark> I guess different arch
<whitequark> just saying that this is very likely very unportable
<corecode> i had problems with this kind before
<corecode> but i fixed it
<corecode> none of this is portable
<corecode> it's specific to the chip
<whitequark> the general technique of using bitfields, that is
<whitequark> not particular definitions
<corecode> yea, FUD
<corecode> not true.
<corecode> the ISO C standard nuts and embedded greybeards have perpetuated this claim
<corecode> it works.
<corecode> maybe not with every compiler, but certainly with gcc on arm it works
<whitequark> I tried clang on arm
<whitequark> lemme write a reproducible example
<corecode> is it worth looking at?
<corecode> i tried long ago
<whitequark> ok
<corecode> is there a way to get the binding of the caller?
<corecode> macro style
<whitequark> gem install binding_of_caller
<corecode> ew
<whitequark> mri-only though
<whitequark> and it works by hacking interpreter internals
<corecode> i don't want to make my toolchain require a gemfest
<corecode> ruby is getting less convenient by the minute
schaerli has joined #ruby-lang
<whitequark> then no
<corecode> well what then :/
<whitequark> having to use binding_of_caller is usually a sign of abuse elsewhere
<corecode> i thought about taking the string, interpolated, adding line number info, then eval'ing it
<corecode> but without the caller binding i can't do that with the same semantics
<corecode> oh and i need monads
<corecode> meh.
<whitequark> write a separate class for emitting code
<whitequark> do something like @emitter.on(@location) { |e| e.write ".foo = #{@bar}" }
<corecode> irk
closer has quit [Ping timeout: 260 seconds]
<whitequark> the less magic the better ;)
<corecode> more magic = better
dmitrykorotkov has joined #ruby-lang
<whitequark> for obfuscating your code, sure
<whitequark> :p
<corecode> all what counts is the result
<corecode> i think i have a nice idea
<corecode> let's see
pellenation has joined #ruby-lang
closer has joined #ruby-lang
mbj has joined #ruby-lang
<corecode> whitequark: what do you think about that?
toretore has quit [Quit: Leaving]
<whitequark> about what?
robbyoconnor has quit [Ping timeout: 248 seconds]
pellenation has quit [Quit: Leaving.]
<whitequark> so it will generate .\n#line ...\nfoo = code ?
<corecode> yes
<whitequark> i think it's horrible, both implementation and what it generates
<whitequark> (which i guess is fairly predictable)
<corecode> why?
<corecode> what is generated doesn't matter as long as it works
<whitequark> exactly. you still have to read generated code. even more so, you still have to read and understand DSL implementation code
<corecode> no, why do you have to read the generated code?
<corecode> it is generated for a reason
<whitequark> because it was generated incorrectly
<corecode> huh?
<corecode> why?
<corecode> that's why there is the line number info
* whitequark sighs
<whitequark> i think this discussion is pointless
<corecode> it makes the compiler emit a warning pointing to the dsl source
<corecode> why is it pointless?
<whitequark> seems to be mostly a matter of opinion
mdedetrich has quit [Quit: Computer has gone to sleep.]
<whitequark> I'm not a fan of "as long as it works" approach, especially in languages without strong module systems
<corecode> i'd like to hear your opinion
<corecode> nono
<corecode> that's not what i ment to say
<corecode> i'll happily create something unwieldy in the backend, if it becomes more usable as result
<whitequark> I much prefer to have a more elegant solution in every piece of code which I think I will touch again at all
<whitequark> especially when you can replace a huge chunk of magic by a little manual work
<corecode> i see
<corecode> we use different definitions of elegance
<whitequark> I assume that every code may break, and when it breaks, you gotta look at it and figure it out
<whitequark> backend, generated, whatever. has to be clean and understandable.
<whitequark> perhaps I'm biased because of compilers.
sepp2k has quit [Read error: Connection reset by peer]
<yorickpeterse> yay network issues on a Sunday
<yorickpeterse> phone hotline closed, status pages requires internet access
<yorickpeterse> lel
apeiros has quit [Remote host closed the connection]
pellenation has joined #ruby-lang
apeiros has joined #ruby-lang
VTLob has joined #ruby-lang
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<yorickpeterse> ah well, first time in 1,5 years so it's no biggy
<corecode> "go outside"
<yorickpeterse> the weather is shit
<corecode> sun?
arBmind has joined #ruby-lang
bastilian has joined #ruby-lang
dmitrykorotkov has quit [Quit: http://quassel-irc.org - ????????????? ??????. ?????.]
dmitrykorotkov_ has joined #ruby-lang
<yorickpeterse> Hilversum/NL: Mostly Cloudy | Temperature: 68.2F/20.1C | Humidity: 83% | Wind: From the WNW at 1.4 MPH Gusting to 3.5 MPH
<yorickpeterse> 20C my ass
loincloth has joined #ruby-lang
<ddfreyne> Hmmm... JRuby and Rubinius have a Dir[] that resolves symlinks, while MRI does not...
<ddfreyne> Anyone know the reason for that?
<whitequark> it's a bug, report it
<whitequark> to... all three, I think
<ddfreyne> -_-
<yorickpeterse> how would that be a bug in Rbx/Jruby?
roadt has joined #ruby-lang
stamina has quit [Ping timeout: 252 seconds]
pellenation has quit [Quit: Leaving.]
<erikh> eh?
<erikh> symlinks are files too
loincloth has quit [Ping timeout: 260 seconds]
<erikh> I think what whitequark was getting at was "it should be cleared up"
<yorickpeterse> ah
<erikh> seems legit
<erikh> although I'd use File.mkdir for your dir
<erikh> fu.mkdir_p shells out, and could be "weird" on windows
<erikh> also Dir.chdir for the same reason
<erikh> the replacements are syscalls and should be fairly predictable everywhere
<erikh> hmm... actually... this test might not even make sense on windows
<erikh> I can't remember if ntfs has a symlink impl or not
<erikh> either way, using the syscall should be faster, if you're still willing to change it
sush24 has joined #ruby-lang
ryez has joined #ruby-lang
Guest85414__ has joined #ruby-lang
<ddfreyne> Anywyaay, reported: https://github.com/jruby/jruby/issues/1036
<whitequark> erikh: it has
<erikh> whitequark: interesting. is it used anywhere?
<whitequark> though it's incredibly obscure and you can't create them without specialized cli tools
<whitequark> I think it's used internally.
<erikh> ah, yeah. was wondering about that.
<whitequark> I've no idea if it is even mapped to the unix symlink interface in ruby api
<erikh> Raises a NotImplemented exception on platforms that
<erikh> do not support symbolic links.
<erikh> pretty sure that means "windows"
<erikh> but I don't have a good way to test it atm
<ddfreyne> Now I need to figure out a way to work around this JRuby issue...
<erikh> File.symlink?
<erikh> you could also replace Dir[] with Find
<erikh> oh, resolving
<erikh> hm.
<erikh> yeah, I'd use Find
<ddfreyne> Oh god, Find.prune is horribel: http://ruby-doc.org/stdlib-2.0.0/libdoc/find/rdoc/Find.html
<ddfreyne> HORRIBLE.
<erikh> feh
<whitequark> ugh
<erikh> getting caremad over things that solve your problems is .. not worth the troube
<whitequark> also that ^.
<erikh> my floor is really squeaky, and hte worst part of it my office chair is over
<erikh> cool story amirite
<ddfreyne> A+ would listen again
<yorickpeterse> wat
<erikh> heh
bastilian has quit [Ping timeout: 248 seconds]
<erikh> anytime I move on the chair (and I'm a generally antsy person) the floor squeaks
<erikh> my neighbors must love me
tharindu_ has quit [Ping timeout: 264 seconds]
<erikh> especially because it's 6m
<erikh> am
pellenation has joined #ruby-lang
<yorickpeterse> tear the floor out
<ddfreyne> (the bug does not appear on Rubinius btw. I was wrong)
<yorickpeterse> well clearly your solution is to install Rubinius :>
bastilian has joined #ruby-lang
<ddfreyne> yorickpeterse: The problem is that it causes my tests to fail
<ddfreyne> So Travis says TESTS FAILING
<yorickpeterse> write better tests
<yorickpeterse> and report bugs if you think they are Rbx bugs :)
nofxx has quit [Ping timeout: 252 seconds]
pellenation has quit [Quit: Leaving.]
jstemmer has quit [Quit: leaving]
robbyoconnor has joined #ruby-lang
robbyoconnor has quit [Client Quit]
skade has quit [Quit: Computer has gone to sleep.]
<banister`sleep> yorickpeterse what's up with rbx these days btw? has the project lost momentum?
runeb has quit [Remote host closed the connection]
runeb has joined #ruby-lang
runeb has quit [Ping timeout: 245 seconds]
MaddinXx has quit [Remote host closed the connection]
sush24 has quit [Ping timeout: 245 seconds]
sush24 has joined #ruby-lang
sniffingcats has quit [Quit: Til rivido Idisti!]
schaerli_ has joined #ruby-lang
schaerli has quit [Read error: Connection reset by peer]
anekos has quit [Quit: Tiarra 0.1+svn-39036: SIGTERM received; exit]
anekos has joined #ruby-lang
dmitrykorotkov__ has joined #ruby-lang
kitak has quit [Remote host closed the connection]
dmitrykorotkov__ has quit [Client Quit]
kitak has joined #ruby-lang
77CAAA6CN has joined #ruby-lang
dmitrykorotkov_ has quit [Ping timeout: 260 seconds]
cstrahan has joined #ruby-lang
jstemmer has joined #ruby-lang
workmad3 has quit [Read error: Operation timed out]
stardiviner has joined #ruby-lang
tbuehlmann has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
sepp2k has joined #ruby-lang
<erikh> hmm
<erikh> I want to ship builds on github
<erikh> how do ?
<erikh> oh neat. thanks!
<erikh> I wonder if octokit or w/e has a way to auto generate these
SteveBenner9 has quit [Quit: Leaving]
sush24 has quit [Ping timeout: 252 seconds]
adambeynon has joined #ruby-lang
sniffingcats has joined #ruby-lang
malev has joined #ruby-lang
bastilian has quit [Quit: Linkinus - http://linkinus.com]
sevvie has quit [Ping timeout: 264 seconds]
scottschecter has quit [Ping timeout: 264 seconds]
stardiviner has quit [Ping timeout: 261 seconds]
stamina has joined #ruby-lang
tonni_ has quit [Read error: Connection reset by peer]
tonni has joined #ruby-lang
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
nneko001__ has joined #ruby-lang
<jds> Is there an easy way of remembering which way round the arguments for alias_method go?
<jds> I always screw them up
<jds> and then think I'm second-guessing myself when I think about swapping them the next time I write it
<jds> (and is it just me that thinks they're backwards?)
cstrahan has quit [Ping timeout: 264 seconds]
<erikh> alias foo to bar
<erikh> that's how I remember it
bastilian has joined #ruby-lang
jiuweigui has joined #ruby-lang
kazuuu has joined #ruby-lang
tonni has quit [Read error: Connection reset by peer]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tonni has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jbsan has joined #ruby-lang
wallerdev has joined #ruby-lang
fuhgeddaboudit_ has joined #ruby-lang
<Mon_Ouie> I see it as a sort of assignment: foo = bar
<Mon_Ouie> Therefore the new name goes first
<jds> Mon_Ouie: Huh, that makes more sense. I'll see if that helps my brain...
Muz has quit [Ping timeout: 276 seconds]
jxie has joined #ruby-lang
<whitequark> ooh, that also works for memcpy
<whitequark> though by now I just memorized it as is
hashkey has quit [Killed (cameron.freenode.net (Nickname regained by services))]
hashkey has joined #ruby-lang
77CAAA6CN has quit [Read error: Connection reset by peer]
dmitrykorotkov_ has joined #ruby-lang
dmitrykorotkov_ has quit [Client Quit]
dmitrykorotkov__ has joined #ruby-lang
kazuuu has quit [Remote host closed the connection]
scottschecter has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
symm- has joined #ruby-lang
sevvie has joined #ruby-lang
uta has quit [Remote host closed the connection]
dmitrykorotkov__ has quit [Read error: Operation timed out]
dmitrykorotkov__ has joined #ruby-lang
sevvie has quit [Read error: Operation timed out]
dmitrykorotkov__ has quit [Ping timeout: 256 seconds]
Mon_Ouie has quit [Ping timeout: 260 seconds]
dmitrykorotkov__ has joined #ruby-lang
tbuehlmann has quit [Ping timeout: 268 seconds]
<banister`sleep> whitequark i always found 'mov' the most difficult to remember, esp since att and intel syntax has them reversed
<whitequark> banister`sleep: oh yes
<whitequark> also screw intel/microsoft syntax.
jbsan has quit [Quit: jbsan]
kgrz has joined #ruby-lang
kgrz_ has joined #ruby-lang
kgrz has quit [Client Quit]
kgrz_ has quit [Remote host closed the connection]
kgrz has joined #ruby-lang
kgrz has quit [Remote host closed the connection]
tomzx_mac has joined #ruby-lang
kgrz has joined #ruby-lang
user64 has joined #ruby-lang
user64 has quit [Remote host closed the connection]
kgrz has quit [Ping timeout: 248 seconds]
Cakey has quit [Ping timeout: 252 seconds]
runeb has joined #ruby-lang
kurko_ has joined #ruby-lang
Cakey has joined #ruby-lang
tharindu has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
havenwood has joined #ruby-lang
tharindu has quit [Remote host closed the connection]
AOP has joined #ruby-lang
tharindu has joined #ruby-lang
symm- has quit [Ping timeout: 268 seconds]
adambeynon has joined #ruby-lang
nertzy2 has joined #ruby-lang
dmitrykorotkov has joined #ruby-lang
Muz has joined #ruby-lang
dmitrykorotkov__ has quit [Ping timeout: 260 seconds]
dmitrykorotkov_ has joined #ruby-lang
nathanstitt has joined #ruby-lang
dmitrykorotkov has quit [Ping timeout: 248 seconds]
dmitrykorotkov_ has quit [Ping timeout: 264 seconds]
wallerdev has quit [Quit: wallerdev]
dmitrykorotkov has joined #ruby-lang
elia has joined #ruby-lang
nertzy2 has quit [Quit: This computer has gone to sleep]
dmitrykorotkov_ has joined #ruby-lang
<spike|spiegel> bwhaha, there's a lot of history there :)
relix has joined #ruby-lang
dmitrykorotkov_ has quit [Read error: Connection reset by peer]
dmitrykorotkov_ has joined #ruby-lang
dmitrykorotkov has quit [Ping timeout: 252 seconds]
diegoviola has joined #ruby-lang
runeb has quit [Remote host closed the connection]
kurko_ has quit [Ping timeout: 248 seconds]
kurko_ has joined #ruby-lang
pellenation has joined #ruby-lang
tbuehlmann has joined #ruby-lang
dmitrykorotkov has joined #ruby-lang
schaerli_ has quit [Remote host closed the connection]
nofxx has joined #ruby-lang
dmitrykorotkov_ has quit [Ping timeout: 264 seconds]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
schaerli has joined #ruby-lang
schaerli has quit [Remote host closed the connection]
jbsan has joined #ruby-lang
kurko_ has quit [Ping timeout: 240 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wallerdev has joined #ruby-lang
relix has joined #ruby-lang
kurko_ has joined #ruby-lang
relix has quit [Client Quit]
jbsan has quit [Quit: jbsan]
kazuuu has joined #ruby-lang
hhatch has quit [Ping timeout: 268 seconds]
arBmind has joined #ruby-lang
judofyr has joined #ruby-lang
stamina has quit [Ping timeout: 260 seconds]
<judofyr> hey folks
tylersmith has joined #ruby-lang
toretore has joined #ruby-lang
Cakey has quit [Ping timeout: 248 seconds]
beerdy has joined #ruby-lang
<ljarvis> hi
<ryanf> hi judofyr
<ryanf> how's it going?
<judofyr> great
<judofyr> I'm in Portland :)
<ryanf> oh, cool
<ryanf> when are you going to visit SF?
<judofyr> probably not this year
<ryanf> fair enough
<ryanf> you're in portland for xoxo?
<judofyr> yup
iliketurtles has joined #ruby-lang
kazuuu has quit [Remote host closed the connection]
<judofyr> ryanf: working on anything cool lately?
a6c1d60fc84 has joined #ruby-lang
<ryanf> mostly just work. I started a new job a month ago and haven't had a lot of leftover energy for side projects
<ryanf> hopefully that'll change once I get settled in
<ryanf> how about you? any new thoughts about that view stuff?
pellenation has quit [Quit: Leaving.]
<judofyr> hm. what was the view stuff we were discussing again?
<judofyr> ryanf: probably related to this: http://www.tail-f.org/2013-08-21
iliketurtles has quit [Quit: zzzzz…..]
<ryanf> hmm, yeah, that seems somewhat related. I kind of forget the details
<ryanf> I think maybe it was stuff about inverting view rendering so that ruby code is responsible for rendering templates instead of templates calling into ruby code?
<ryanf> or that might have been part of it
Cakey has joined #ruby-lang
a6c1d60fc84 has quit [Quit: Leaving]
<judofyr> yeah
<judofyr> no, I've been busy studying physics
<judofyr> so haven't done that much programming
<ryanf> oh, interesting. self-directed study?
<yxhuvud> judofyr: nitpicking the blog, having dispute on a controller of its own would mean #show and #create, not #new and #create.
<judofyr> yxhuvud: how can you #show something that hasn't been created yet?
malev has quit [Remote host closed the connection]
Gabri has joined #ruby-lang
<yxhuvud> given the existing controller, I don't see why you would need to.
<yxhuvud> especially not given you name the show method show and not new.
<judofyr> ryanf: hm. that post doesn't include one idea I like thought: inheritance: http://hastebin.com/fefugabupu.rb
<judofyr> yxhuvud: that's a good point :)
<ryanf> yeah, I kind of felt like inheritance was implied
<ryanf> wow, never seen that < self idiom
pellenation has joined #ruby-lang
Cakey has quit [Ping timeout: 245 seconds]
<ryanf> that's disconcerting but makes sense
lsegal has joined #ruby-lang
<judofyr> it means it inherits all before filters from the outside
<ryanf> yeah
<ryanf> I guess you still need to figure out how dispatch works
<ryanf> unless you want to define all your routes like '' => 'matches/register#new'
<ryanf> which is kind of losing the nice resource dsl
Gabri has quit [Remote host closed the connection]
<judofyr> no, I'd like to define them as 'matches#new'
<ryanf> oh, plus that's wrong -- that would be Matches::RegisterController, not MatchesController::Register
<ryanf> yeah, that makes sense but would require some thought
Coincidental has joined #ruby-lang
<ryanf> I guess you could have MatchesController inherit from NestedController and then use an extended hook to set up proxy actions
<judofyr> you just need to track subclasses
<judofyr> or, I'm not sure how to integrate it with Rails
<judofyr> but it's not difficult to accomplish in Ruby
<judofyr> track subclasses, all dispatch goes through a method that uses #method_defined? on all the subclasses to find the correct class
<ryanf> yeah, or you could use method_added to create explicit proxy methods for dispatch to go through
<ryanf> sending dispatch through one method while still using the normal routing dsl is probably not trivial (unless that method is method_missing)
<judofyr> yeah, I dislike proxy methods
<judofyr> so it needs to be integrated with the router
metus_violarium has joined #ruby-lang
dhruvasagar has joined #ruby-lang
benanne has quit [Quit: kbai]
tbuehlmann has quit [Remote host closed the connection]
tylersmith has quit [Ping timeout: 256 seconds]
schaerli has joined #ruby-lang
kurko_ has quit [Ping timeout: 256 seconds]
kurko_ has joined #ruby-lang
judofyr has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
schaerli has quit [Remote host closed the connection]
adambeynon has joined #ruby-lang
sniffingcats has quit [Quit: Til rivido Idisti!]
tylersmith has joined #ruby-lang
nneko001_ has joined #ruby-lang
nneko001__ has quit [Ping timeout: 248 seconds]
tkuchiki has quit [Remote host closed the connection]
fuhgeddaboudit_ has quit [Ping timeout: 252 seconds]
sevvie has joined #ruby-lang
kazuuu has joined #ruby-lang
shinnya has quit [Ping timeout: 268 seconds]
tharindu has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 245 seconds]
cads has joined #ruby-lang
benanne has joined #ruby-lang
kazuuu has quit [Ping timeout: 264 seconds]
havenwood has quit [Remote host closed the connection]
tangleofwire has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
cstrahan has joined #ruby-lang
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
nathanstitt has quit [Quit: Laters]
metus_violarium has quit [Quit: Konversation terminated!]
nathanstitt has joined #ruby-lang
kurko_ has quit [Quit: Computer has gone to sleep.]
<yorickpeterse> banister`sleep: not really
Coincidental has quit [Remote host closed the connection]
mistym has joined #ruby-lang
tylersmith has quit [Ping timeout: 264 seconds]
Teddy2steper has joined #ruby-lang
fuhgeddaboudit_ has joined #ruby-lang
thepumpkin has joined #ruby-lang
fuhgeddaboudit_ has quit [Client Quit]
fuhgeddaboudit has joined #ruby-lang
sevvie has quit [Ping timeout: 246 seconds]
stamina has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
sevvie has joined #ruby-lang
Teddy2steper has quit [Remote host closed the connection]
sniffingcats has joined #ruby-lang
tangleofwire has quit [Ping timeout: 245 seconds]
diegoviola has quit [Quit: WeeChat 0.4.1]
vlad_starkov has joined #ruby-lang
jiuweigui has quit [Quit: Gone...]
cored has joined #ruby-lang
cored has joined #ruby-lang
Cakey has joined #ruby-lang
Caramulet has joined #ruby-lang
Cakey has quit [Ping timeout: 264 seconds]
workmad3 has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
kurko_ has joined #ruby-lang
nofxx has quit [Ping timeout: 252 seconds]
relix has joined #ruby-lang
imperator has joined #ruby-lang
kazuuu has joined #ruby-lang
bastilian has quit [Ping timeout: 252 seconds]
jbsan has joined #ruby-lang
ryez has quit [Ping timeout: 250 seconds]
nofxx has joined #ruby-lang
tommylommykins has quit [Remote host closed the connection]
Caramulet has left #ruby-lang [#ruby-lang]
tommylommykins has joined #ruby-lang
kazuuu has quit [Read error: Connection reset by peer]
kazuuu has joined #ruby-lang
kazuuu has quit [Read error: Connection reset by peer]
kazuuu has joined #ruby-lang
pellenation has quit [Quit: Leaving.]
<ReinH> yorickpeterse: btw this is an example of "syntax regions" in vim http://blogs.perl.org/users/ovid/2011/06/syntax-highlight-your-sql-heredocs-in-vim.html
<ReinH> you can use that for Ruby with some minor modifications to the regexp
<ReinH> yorickpeterse: oh look what I found :D https://github.com/joker1007/vim-ruby-heredoc-syntax
tenderlove has joined #ruby-lang
yfeldblum has quit [Ping timeout: 256 seconds]
yfeldblum has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sevvie has quit [Ping timeout: 245 seconds]
enebo has joined #ruby-lang
nneko001_ has quit [Quit: Konversation terminated!]
arBmind has quit [Quit: Leaving.]
Forgetful_Lion has quit [Remote host closed the connection]
sevvie has joined #ruby-lang
kurko_ has quit [Ping timeout: 264 seconds]
havenwood has joined #ruby-lang
segy has quit [Ping timeout: 252 seconds]
sevvie has quit [Ping timeout: 240 seconds]
kurko_ has joined #ruby-lang
bastilian has joined #ruby-lang
segy has joined #ruby-lang
yfeldblum has quit [Ping timeout: 240 seconds]
toretore has quit [Quit: Leaving]
mbj has quit [Quit: leaving]
sirupsen has joined #ruby-lang
mdedetrich has joined #ruby-lang
enebo has quit [Quit: enebo]
ecnalyr has joined #ruby-lang
Cakey has joined #ruby-lang
sepp2k1 has joined #ruby-lang
sepp2k has quit [Ping timeout: 252 seconds]
Cakey has quit [Ping timeout: 240 seconds]
ecnalyr has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
cored has quit [Ping timeout: 264 seconds]
IPGlider has joined #ruby-lang
IPGlider has quit [Client Quit]
eoinkelly has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 248 seconds]
mayday_jay has joined #ruby-lang
mayday_jay has left #ruby-lang [#ruby-lang]
beerdy has quit [Remote host closed the connection]
dorei has joined #ruby-lang
tonni has quit [Read error: Connection reset by peer]
tonni has joined #ruby-lang
spuk has quit [Read error: Connection reset by peer]
spuk has joined #ruby-lang
kazuuu has quit [Remote host closed the connection]
x0f_ has joined #ruby-lang
x0f has quit [Ping timeout: 245 seconds]
kazuuu has joined #ruby-lang
tubbo has joined #ruby-lang
benanne has quit [Quit: kbai]
Darkchaos has quit [Ping timeout: 245 seconds]
mdedetrich has quit [Quit: Computer has gone to sleep.]
vlad_starkov has joined #ruby-lang
kurko_ has quit [Ping timeout: 240 seconds]
GeissT has joined #ruby-lang
kazuuu has quit [Remote host closed the connection]
kurko_ has joined #ruby-lang