xibbar has joined #ruby-core
marcandre has joined #ruby-core
drbrain has joined #ruby-core
carlosantonio has joined #ruby-core
drbrain has quit [Ping timeout: 252 seconds]
carlosantonio has quit [Ping timeout: 252 seconds]
drbrain has joined #ruby-core
drbrain has quit [Ping timeout: 260 seconds]
asarih has joined #ruby-core
asarih has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
drbrain has joined #ruby-core
<_ko1> rdoc bugs\?
drbrain has quit [Ping timeout: 244 seconds]
<zzak> _ko1: ffi gem?
<zzak> which version of rdoc?
<zzak> i will try to reproduce
<_ko1> zzak: trunk :)
xibbar has quit [Remote host closed the connection]
charliesome has joined #ruby-core
<zzak> _ko1: yes, i get the same thing
<zzak> it is a bug in the changelog parser
<zzak> i will submit a ticket to eric on github/rdoc/rdoc
<zzak> thanks koichi-san
The_8473 has joined #ruby-core
The_8472 has quit [Ping timeout: 246 seconds]
<zzak> _ko1: btw, i was reading about objspace: #reachable_objects_from https://gist.github.com/4357176
<zzak> very cool!
xibbar has joined #ruby-core
<_ko1> zzak: thank you!!
drbrain has joined #ruby-core
<zzak> _ko1: make anything cool with debug_inspector or tracepoint yet?
xibbar has quit [Remote host closed the connection]
<_ko1> yet :(
<_ko1> nobu implemented profiler.rb w/ TracePoint
xibbar has joined #ruby-core
drbrain has quit [Ping timeout: 251 seconds]
<zzak> i saw
<zzak> but it is private api
<_ko1> debug inspector?
<zzak> i wonder
xibbar has quit [Remote host closed the connection]
<_ko1> ok, i'll try it today
<_ko1> after I can check rails+threading bug
<_ko1> i heard that rails (master) + ruby (trunk) make Deadlock error
<_ko1> at ConditionalVariable
<_ko1> this is why i try gem update :)
<_ko1> and got above bug
<zzak> Profiler uses TracePoint instead of set_trace_func
<_ko1> yes
<charliesome> what do you guys think of normalising method names to utf-8
<zzak> it uses TracePoint#enable for Profiler#start_profile and #disable for #stop_profile
<zzak> i think Profiler should use #enable(&blk) somewhere, that would be cool feature
<_ko1> i'm not sure about that
<_ko1> charliesome: method names?
<charliesome> basically at the moment method names are encoding oblivious
<_ko1> zzak: maybe it will be new feature
<charliesome> _ko1: see http://eval.in/5351 and http://eval.in/5352
<_ko1> charliesome: generally, method name should use 7bit ascii IMO
<_ko1> charliesome: if someone want to use other than ascii-7 bit, then
<_ko1> charliesome: a person has responsibility
<_ko1> i think it is overkill to enforce utf-8
<charliesome> i see what you mean
<zzak> encoding hell
<zzak> i am starting on iseq in my free time, but its tough
nari has joined #ruby-core
<zzak> hope to improve docs, and add rdoc for new api in r38076 and r38085
<zzak> i dont know vm programming, so learning as i go
<_ko1> r38076 was reverted :(
<_ko1> BTW, http://eval.in/ is cool which charliesome used
<charliesome> _ko1: thanks :) it's my site actually
<_ko1> cool!
<charliesome> it has ruby 1.0 which imo is a killer feature
<_ko1> how to make sandbox?
<zzak> _ko1: is there a ticket for that? i still want to add rdoc, i see it's not reverted but commented out
<_ko1> ah, yes. MRI 1.0 awsome!
<charliesome> _ko1: i use a modified version of the sandbox from here: http://www.ucw.cz/moe/
<charliesome> it is ptrace based
<_ko1> zzak: secret :)
<_ko1> (no ticket)
<_ko1> charliesome: so you filter all system calls using ptrace?
<charliesome> _ko1: user submitted code runs on an isolated vm running an old version of ubuntu with an old kernel (that sandbox doesn't work on newer or 64 bit kernels)
<charliesome> yes
<charliesome> i allow interpreters to make any syscall until they open the source file
<charliesome> then it locks down
<_ko1> charliesome: i'm confusing. isolating VM seems not need to use ptrace.
<charliesome> i don't start a new vm for each submission
<charliesome> so i need to ensure the integrity of the evaluator vm with a ptrace sandbox
<zzak> _ko1: have any use case or toy for iseq i can reference?
<_ko1> > while true; fork; end
<_ko1> > Forbidden syscall clone
<_ko1> :)
<charliesome> :)
<charliesome> the main reason i'm using a separate vm is because the kernel on my main server is too new for the sandbox
<_ko1> zzak: ISeq#path are only for debugging, i can imagine
<_ko1> charliesome: ah, i understand. there is two level isolation. (1) VM isolation (one vm for all submission) (2) ptrace (each submission)
<charliesome> yes
<_ko1> s/there is/are/
<_ko1> cool
<_ko1> > puts open('/etc/hostname'){|f| f.read}
<_ko1> > OK (0.016 sec real, 0.041 sec wall, 7 MB, 53 syscalls)
<_ko1> how to choose 'good' syscall and 'bad' syscall?
<_ko1> choose by hand with your experience?
<charliesome> _ko1: the sandbox i am using a modified version of has 3 levels of syscall filtering
<charliesome> always block, never block, inspect arguments
<charliesome> for example, open() has its arguments inspected to decide whether to allow it or not
<_ko1> i see
<zzak> _ko1: ありがとう
<_ko1> > Thread.new{}.join
<_ko1> > Forbidden syscall clone
<_ko1> But MRI2.0 needs to make timer thread
<_ko1> you change something on it?
<_ko1> ah
<_ko1> it's my mistake
<_ko1> MRI 2.0 (1.9.3 or later) don't need to make timet thread until single threading
<charliesome> _ko1: oh does it? that's problematic :|
<zzak> haha! tenderlove wrote a scheme compiler with fiddle and iseq
<charliesome> oh wow, nice
<_ko1> awesome
<_ko1> it may not work now...
<zzak> you mean because of fiddle changes?
<_ko1> iseq changes
<charliesome> and VM changes i presume
<charliesome> ah
<_ko1> instructions are changed
<_ko1> more correctly, operand of opt_* was changed
<zzak> interesting
<_ko1> ah,
<_ko1> it also my mistake
<_ko1> ah
<_ko1> not my mistake
<_ko1> ../trunk/test.rb:39: [BUG] Segmentation fault
<zzak> !
drbrain has joined #ruby-core
drbrain has quit [Ping timeout: 244 seconds]
drbrain has joined #ruby-core
drbrain has quit [Ping timeout: 265 seconds]
<_ko1> http://www.atdot.net/sp/view/tbeofm bundle failed...
drbrain has joined #ruby-core
<_ko1> after "gem install bundler --pre", it success
drbrain has quit [Ping timeout: 256 seconds]
<charliesome> so rails does not work out of the box on 2.0.0?
<_ko1> i'm not sure
davidbalbert is now known as davidbalber|away
The_8472 has joined #ruby-core
The_8473 has quit [Ping timeout: 255 seconds]
drbrain has joined #ruby-core
drbrain has quit [Ping timeout: 260 seconds]
<_ko1> rails test is too slow... not stopped yet
<_ko1> Rails master with trunk
<_ko1> many many warnings
drbrain has joined #ruby-core
drbrain has quit [Ping timeout: 256 seconds]
cyri_ has joined #ruby-core
drbrain has joined #ruby-core
carlosantonio has joined #ruby-core
_whitelogger has joined #ruby-core
drbrain has joined #ruby-core
drbrain has quit [Ping timeout: 260 seconds]
xibbar has joined #ruby-core
drbrain has joined #ruby-core
drbrain has quit [Ping timeout: 265 seconds]
<znz_v> biff: [ruby-changes:26577] glass:r38628 (trunk): * ext/stringio/stringio.c (strio_ungetc): raise IOError instead of RuntimeError - http://mla.n-z.jp/?ruby-changes=26577
xibbar has quit [Remote host closed the connection]
travis-ci has joined #ruby-core
<travis-ci> [travis-ci] The build was broken. by @glass: See http://travis-ci.org/ruby/ruby/builds/3839141
travis-ci has left #ruby-core [#ruby-core]
cyri_ has quit [Quit: cyri_]
<znz_v> biff: [ruby-changes:26578] charliesome:r38629 (trunk): * vm_core.h (VM_DEFINECLASS_TYPE): explicit cast to enum type to avoid 64->32 - http://mla.n-z.jp/?ruby-changes=26578
<znz_v> biff: [ruby-changes:26579] glass:r38630 (trunk): * ext/stringio/stringio.c (strio_getline): fix not to raise TypeError - http://mla.n-z.jp/?ruby-changes=26579
travis-ci has joined #ruby-core
travis-ci has left #ruby-core [#ruby-core]
<travis-ci> [travis-ci] The build was fixed. by @glass: See http://travis-ci.org/ruby/ruby/builds/3839466
drbrain has joined #ruby-core
<znz_v> biff: [ruby-changes:26580] keiju:r38631 (trunk): * lib/irb/ruby-lex.rb: allow to handle recursive heredocs on - http://mla.n-z.jp/?ruby-changes=26580
drbrain has quit [Ping timeout: 264 seconds]
<charliesome> does ruby intend to support pre-C89 compilers anymore?
<nurse> yes, CRuby requires C89
<nurse> doesn't support K&R
<charliesome> excellent, thanks
<nurse> You may know it shouldn't require C99, for example // comment
<nurse> it is because to suppot Visual C++ 6 and so on
<charliesome> there is a bug open related to ruby's stdarg.h/varargs.h checking
<charliesome> should i go through and make everything use stdarg.h?
<nurse> such change may break some environment like Solaris, AIX, HP-UX
<nurse> you shouldn't do unless you are sure that it is ok for such environments
<charliesome> i see, i thought there may be an issue like that
<charliesome> i don't have access to those environments so i will leave it be
<nurse> yeah, it seems better
<charliesome> it seems some people are having problems: https://gist.github.com/4172330
<nurse> is there a ticket for this on redmine?
<nurse> if HAVE_STDARG_PROTOTYPES is true, it won't fail.
<charliesome> if some files already unconditionally include stdarg.h, then i think it may be ok to remove the varargs.h code
<nurse> why this fail?
<charliesome> that's the strange part
<charliesome> it looks like the owner of that gist is using a custom gcc install on mac os x
<charliesome> i'm installing the same one to try and reproduce this
<charliesome> perhaps the check in configure.in could be fixed
<nurse> such macro is defined on .ext/include/<arch>/ruby/config.h by configure
<charliesome> i think there is a problem with the code configure uses to check
<nurse> the code which generates it is configure.in::977
<nurse> yeah, i think so
<charliesome> yep i'm looking at that right now
carlosantonio has joined #ruby-core
cyri_ has joined #ruby-core
drbrain has joined #ruby-core
drbrain has quit [Ping timeout: 265 seconds]
justincampbell has joined #ruby-core
carlosantonio has quit [Remote host closed the connection]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
nari has joined #ruby-core
drbrain has joined #ruby-core
drbrain has quit [Ping timeout: 252 seconds]
<znz_v> biff: [ruby-changes:26581] keiju:r38632 (trunk): * lib/irb/ruby-lex.rb: make lex_state to EXPR_END when next token - http://mla.n-z.jp/?ruby-changes=26581
carlosantonio has joined #ruby-core
travis-ci has joined #ruby-core
travis-ci has left #ruby-core [#ruby-core]
<travis-ci> [travis-ci] The build was broken. by @keiju: See http://travis-ci.org/ruby/ruby/builds/3841075
nari has quit [Read error: Operation timed out]
<zzak> おはよう!
drbrain has joined #ruby-core
drbrain has quit [Read error: Operation timed out]
<znz_v> biff: [ruby-changes:26582] jeg2:r38633 (trunk): * lib/csv.rb: Added more Hash methods to CSV::Row. - http://mla.n-z.jp/?ruby-changes=26582
<znz_v> biff: [ruby-changes:26583] svn:r38634 (trunk): * 2012-12-28 - http://mla.n-z.jp/?ruby-changes=26583
travis-ci has joined #ruby-core
<travis-ci> [travis-ci] The build was fixed. by @jeg2: See http://travis-ci.org/ruby/ruby/builds/3842433
travis-ci has left #ruby-core [#ruby-core]
davidbalber|away is now known as davidbalbert
kosaki8 has joined #ruby-core
travis-ci has joined #ruby-core
<travis-ci> [travis-ci] The build was fixed. by @svn: See http://travis-ci.org/ruby/ruby/builds/3842506
travis-ci has left #ruby-core [#ruby-core]
drbrain has joined #ruby-core
drbrain has quit [Ping timeout: 244 seconds]
<znz_v> biff: [ruby-changes:26584] naruse:r38635 (trunk): * variable.c (rb_mod_remove_const): fix segv caused by r38558. - http://mla.n-z.jp/?ruby-changes=26584
knu has quit [Remote host closed the connection]
knu has joined #ruby-core
carlosan_ has joined #ruby-core
carlosantonio has quit [Ping timeout: 256 seconds]
carlosan_ has quit [Remote host closed the connection]
drbrain has joined #ruby-core
drbrain has quit [Ping timeout: 260 seconds]
<indirect> _ko1: Bundler will work with 2.0.0 when it is released. Right now Bundler 1.3.0.pre.3 works with Rubygems 2.0.0.preview.2.2 and Ruby 2.0.0-preview3
<indirect> the CI build matrix builds ruby-head and then tests with rubygems-master: https://travis-ci.org/carlhuda/bundler
carlosantonio has joined #ruby-core
carlosantonio has quit [Remote host closed the connection]
drbrain has joined #ruby-core
drbrain has quit [Read error: Operation timed out]
__BigO__ has joined #ruby-core
carlosan_ has joined #ruby-core
carlosan_ has quit [Remote host closed the connection]
drbrain has joined #ruby-core
drbrain has quit [Ping timeout: 264 seconds]
carlosan_ has joined #ruby-core
carlosan_ has quit [Remote host closed the connection]
cyri_ has quit [Quit: cyri_]
carlosantonio has joined #ruby-core
cyri_ has joined #ruby-core
enebo has joined #ruby-core
headius has joined #ruby-core
carlosantonio has quit [Remote host closed the connection]
carlosantonio has joined #ruby-core
drbrain has joined #ruby-core
carlosantonio has quit [Remote host closed the connection]
drbrain has quit [Ping timeout: 250 seconds]
enebo has quit [Quit: enebo]
headius has quit [Quit: headius]
cyri_ has quit [Quit: cyri_]
davidbalbert is now known as davidbalber|away
davidbalber|away is now known as davidbalbert
cyri_ has joined #ruby-core
drbrain has joined #ruby-core
drbrain has quit [Ping timeout: 244 seconds]
<znz_v> biff: [ruby-changes:26585] naruse:r38636 (trunk): * def/id.def: use split(/^/) instead of String#lines to support - http://mla.n-z.jp/?ruby-changes=26585
kosaki8 has quit [Quit: Leaving...]
drbrain has joined #ruby-core
drbrain has quit [Ping timeout: 252 seconds]
__BigO__ has quit [Remote host closed the connection]
carlosantonio has joined #ruby-core
drbrain has joined #ruby-core
carlosantonio has quit [Remote host closed the connection]
drbrain has quit [Ping timeout: 255 seconds]
cyri_ has quit [Quit: cyri_]