stevechiagozie has quit [Ping timeout: 256 seconds]
Asher has quit [Ping timeout: 264 seconds]
stevechiagozie has joined #ruby-lang
stevechiagozie has quit [Client Quit]
stevechiagozie has joined #ruby-lang
Asher has joined #ruby-lang
justinseiter has quit [Ping timeout: 246 seconds]
kentos has joined #ruby-lang
srbaker has quit [Quit: Computer has gone to sleep.]
earthquake has quit [Remote host closed the connection]
earthquake has joined #ruby-lang
LordEntro has joined #ruby-lang
artOfWar has joined #ruby-lang
seanstickle has quit [Quit: seanstickle]
agarie has quit [Remote host closed the connection]
stevechiagozie has quit [Quit: leaving]
stevechiagozie has joined #ruby-lang
kurko_ has quit [Ping timeout: 252 seconds]
spuk has joined #ruby-lang
cirenyc has quit [Quit: Leaving...]
briantrust has joined #ruby-lang
<postmodern>
didn't someone recently write a ruby linter?
<charliesome>
postmodern: jrlint?
ryanlecompte has joined #ruby-lang
<postmodern>
charliesome, ah interesting, will remember next time im porting something to jruby
<headius>
I'm working on adding stuff to it like thread-unsafe patterns
<headius>
contributions requested
<charliesome>
headius recently tweeted about it (which is how i found out) so it may or may not be what you're thinking of
<charliesome>
headius: also hi headius
<headius>
hi!
<drbrain>
hi
<postmodern>
low
<yfeldblum>
headius, i support making the linter be thread-unsafe and crash when it tries to lint two programs at once
<headius>
hah
<charliesome>
i support making the linter forget everything when it comes across a singleton method definition
<yfeldblum>
charliesome, like the method cache?
<postmodern>
or have it try printing the results, before they've been yielded
<headius>
you guys are funny :-)
<yfeldblum>
headius, what about making a linter that tries running a program once with each possible input?
mpan has quit [Remote host closed the connection]
<yfeldblum>
headius, to make sure each run terminates in finite time?
<headius>
speaking of singletons…it wouldn't be hard to make it flag things like class << self or def foo.bar or eval or obj.extend occurring within a method or block body
<headius>
as warnings
<headius>
that's the kind of stuff I want it to see
gjaldon has joined #ruby-lang
<yfeldblum>
headius, i do a lot of defining methods inside `class << self`
<headius>
within a method body?
<ryanf>
yfeldblum: "within a method or block body"
<ryanf>
hey charliesome did you see my messages earlier
<headius>
inside class bodies or toplevel are fine
<ryanf>
I was trying to avoid having to write a github issue comment
<yfeldblum>
headius, i also do a bunch of `class << self` inside method bodies too
<charliesome>
ryanf: hi sorry nope
<headius>
ahh, well that's pretty bad for performance you know
<ryanf>
short version: localhost only plz
<headius>
on any impl
<ryanf>
otherwise something horrible and embarrassing will happen someday
<headius>
ahh, I didn't know someone had wrapped up poi nicely
<yfeldblum>
headius, when someone gives you excel files and all you have is a jruby ...
<drbrain>
what about axslsx?
<yfeldblum>
when matching a string with a regular expression, how much garbage is created?
gaveen has joined #ruby-lang
gaveen has quit [Changing host]
gaveen has joined #ruby-lang
<yfeldblum>
slightly rephrased, when matching 1 million strings with a regex, how much garbage is created?
LordEntro has left #ruby-lang [#ruby-lang]
LordEntro has joined #ruby-lang
LordEntro has left #ruby-lang [#ruby-lang]
<yfeldblum>
i hear there's a new ruby VM that compiles ruby into JS and then runs it on V8 ... supposed to be superv8fast and webscale just like node
<mistym>
In my field one of the older players recently released a product they keep advertising as "webscale". It takes everything I have not to giggle when I see it.
<yorickpeterse>
How's working with Ragel? I've never really looked into it
krz has quit [Quit: krz]
<whitequark>
yorickpeterse: it's a very powerful tool
<yorickpeterse>
Is it powerful enough to cause you to stab your eyes out? That's sadly the case sometimes
rue|w has joined #ruby-lang
<whitequark>
basically it is a state machine generator. for strings, that means you can define regular expressions and compose them
<whitequark>
particularly for lexers it supports creating scanners, i.e. a state machine which finds a longest match and then executes a piece of code
Banistergalaxy has joined #ruby-lang
<whitequark>
but the fun thing is that you can attach arbitrary code to arbitrary transitions in the state machine, and you can freely jump between states yourself
blacktulip has joined #ruby-lang
<whitequark>
without that, it won't ever be able to lex ruby
<whitequark>
you can read the code and decide if it's bad enough for you ;)
<whitequark>
also compare to the existing lexer, which is best described as a clusterfuck.
kain has quit [Read error: Connection reset by peer]
<injekt>
git who
<injekt>
...
<injekt>
wow it must be early
<rue|w>
Nope, it’s not
holgerno has joined #ruby-lang
faustman has quit [Ping timeout: 264 seconds]
<injekt>
nope :(
<injekt>
but, I DID just wake up
<injekt>
so it's early for me
<yorickpeterse>
whitequark: actually that generated file looked pretty decent
krz has joined #ruby-lang
m3nd3s has joined #ruby-lang
sush24 has joined #ruby-lang
swav has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
voker57 has joined #ruby-lang
cored has quit [Quit: leaving]
io_syl has quit [Quit: Computer has gone to sleep.]
rsl__ has joined #ruby-lang
<whitequark>
yorickpeterse: generated?
<whitequark>
the .rl is source no?
<whitequark>
or are you talking about something else?
<yorickpeterse>
Oh, that's written by hand?
<yorickpeterse>
dayum
<whitequark>
yorickpeterse: obviously
<yorickpeterse>
heh
<whitequark>
the generated file is 6KLOC of spaghetti, but I don't care as long as it's correct and fast
<whitequark>
mind you, 80% of ragel state changes are essentially computed GOTO's
runeb has joined #ruby-lang
kain has joined #ruby-lang
<injekt>
whitequark: you're speeding up ruby_parser?
nick_h has quit [Ping timeout: 265 seconds]
<whitequark>
injekt: rather unscrewing it
<injekt>
:)
<whitequark>
I'm going to make line numers correct and add column numbers to tokens
<whitequark>
*numbers
<whitequark>
and also make it not fail on valid inputs
vlad_starkov has quit [Remote host closed the connection]
<whitequark>
and not take O(n^3) time for pathological inputs
<injekt>
sweet
<whitequark>
and make the source actually readable and understandable.
nick_h has joined #ruby-lang
<whitequark>
I'm not exactly sure if it would be faster than current or not. Probably in the same order of magnitude. It's quite hard to predict this yet
runeb has quit [Ping timeout: 260 seconds]
<whitequark>
Ragel uses manual state switching with some interesting hacks whereas current RP uses Oniguruma regexps
<whitequark>
but current RP uses a whole lot of them for each token and Ragel only follows the perfect path
madish has joined #ruby-lang
faustman has joined #ruby-lang
nettsundere has joined #ruby-lang
nick_h has quit [Ping timeout: 260 seconds]
beiter has quit [Ping timeout: 264 seconds]
nick_h has joined #ruby-lang
<whitequark>
injekt: if you've used both AASM and workflow gems, you know what I'm talking about
<whitequark>
StringScanner encourages you to treat transitions as first-class and treat states as some side effect, just like AASM
<whitequark>
and Ragel interprets state as the main entity, and defines transitions inside and in terms of states, like workflow
<whitequark>
the latter is much more readable, at least due to the fact that performed actions are almost always bound to the current state of object
<whitequark>
in other words, valid transitions are a property of a state, not vice-versa
agnitio has joined #ruby-lang
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
sush24 has quit [Quit: This computer has gone to sleep]
<diegoviola>
i'm firing two process in the background, i need to let one of those processes know when one have completed its execution, how do i go in doing that?
<diegoviola>
or one of the ways to do that...
swav has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
<diegoviola>
nvm
runeb has joined #ruby-lang
leopard_me has joined #ruby-lang
<injekt>
whitequark: interesting, my patience would be tested quickly with that
faustman has quit [Ping timeout: 246 seconds]
vlad_sta_ has joined #ruby-lang
tbuehlmann has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 246 seconds]
krz has quit [Quit: krz]
faustman has joined #ruby-lang
swav has joined #ruby-lang
sush24 has joined #ruby-lang
GarethAdams has quit [Quit: Leaving...]
pvh__ has joined #ruby-lang
anildigital_work has joined #ruby-lang
tubbo has joined #ruby-lang
dkannan has joined #ruby-lang
davidboy has joined #ruby-lang
swav has quit [Remote host closed the connection]
pkondzior_ has joined #ruby-lang
swav_ has joined #ruby-lang
vlad_starkov has joined #ruby-lang
vlad_sta_ has quit [Read error: Connection reset by peer]
beiter has joined #ruby-lang
faustman has quit [Ping timeout: 244 seconds]
swav_ has quit [Ping timeout: 255 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
francisfish has quit [Remote host closed the connection]
achiu has quit [Quit: WeeChat 0.3.9.2]
achiu has joined #ruby-lang
blazes816 has joined #ruby-lang
neocoin has quit [Remote host closed the connection]
faustman has joined #ruby-lang
agnitio has quit [Quit: Leaving]
faustman has quit [Ping timeout: 265 seconds]
sqbell has joined #ruby-lang
runeb has quit [Remote host closed the connection]
z0lt has joined #ruby-lang
schaerli has joined #ruby-lang
db1382 has joined #ruby-lang
imajes has quit [Excess Flood]
ryanlecompte has joined #ruby-lang
imajes has joined #ruby-lang
sulo has quit [Remote host closed the connection]
davidbalbert is now known as davidbalber|away
dankest has joined #ruby-lang
sn0wb1rd has joined #ruby-lang
z0lt has quit [Quit: leaving]
marr has joined #ruby-lang
z0lt has joined #ruby-lang
srbaker has quit [Quit: Computer has gone to sleep.]
wallerdev has joined #ruby-lang
runeb has joined #ruby-lang
SubSpawn has quit [Read error: Operation timed out]
dc5ala has quit [Quit: Ex-Chat]
SubSpawn has joined #ruby-lang
__butch__ has joined #ruby-lang
breakingthings has quit []
sulo has joined #ruby-lang
Uranio has quit [Quit: WeeChat 0.3.8]
ryanf has joined #ruby-lang
sulo has quit [Ping timeout: 260 seconds]
gnufied has quit [Quit: Leaving.]
reppard has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
sulo has joined #ruby-lang
adambeynon has quit [Quit: Computer has gone to sleep.]
sush24 has joined #ruby-lang
schaerli has quit [Read error: Connection reset by peer]
reppard has quit [Ping timeout: 245 seconds]
justinseiter has quit [Read error: Connection reset by peer]
srbaker has joined #ruby-lang
achiu has quit [Quit: WeeChat 0.3.9.2]
achiu has joined #ruby-lang
stevechiagozie has quit [Quit: leaving]
runeb has quit [Remote host closed the connection]
nazty has quit [Read error: Connection reset by peer]
davidbalber|away is now known as davidbalbert
reppard has joined #ruby-lang
stonerfish has quit [Quit: Leaving.]
linc01n has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
stonerfish has joined #ruby-lang
achiu has quit [Ping timeout: 255 seconds]
swav has joined #ruby-lang
Dan- has joined #ruby-lang
reppard has quit [Ping timeout: 260 seconds]
swav has quit [Remote host closed the connection]
Uranio has joined #ruby-lang
sush24 has joined #ruby-lang
swav has joined #ruby-lang
dankest has quit [Ping timeout: 252 seconds]
kain_ has joined #ruby-lang
r0bby has quit [Ping timeout: 250 seconds]
sulo has quit [Remote host closed the connection]
kain has quit [Ping timeout: 246 seconds]
sepp2k has quit [Read error: Operation timed out]
sush24 has quit [Quit: This computer has gone to sleep]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
mistym has quit [Remote host closed the connection]
sush24 has joined #ruby-lang
francisfish has joined #ruby-lang
kurko_ has joined #ruby-lang
sepp2k has joined #ruby-lang
kain_ has quit [Read error: Connection reset by peer]
kain has joined #ruby-lang
enebo has quit [Quit: enebo]
francisfish has quit [Remote host closed the connection]
ebouchut has joined #ruby-lang
postmodern has joined #ruby-lang
rhalff has joined #ruby-lang
<rhalff>
ping
<drbrain>
rhalff: for whom the ping tolls
<rhalff>
because I wanna talk to smart people :D
Uranio has quit [Quit: WeeChat 0.3.8]
<drbrain>
heh
<rhalff>
am I allowed to talk about philosophy in here?
<drbrain>
I'm sure people have spoken about philosophy in here before, but generally we talk about ruby
<rhalff>
I think the world needs something like wikipedia, but then something based on blueprints.
<yfeldblum>
we can talk about rubylosophy though
<rhalff>
mainly to speed up governance and prevent reinventing the wheel.
<rhalff>
ofcourse all of this will be written in the ruby language
sush24 has quit [Quit: This computer has gone to sleep]
<cirenyc>
If I have an main.rb in the same directory as lib/directory/file.rb and lib/another_directory/file.rb, how can I require those inside of main.rb?
<rhalff>
like this weapons issue, many blueprints are already implemented in other countries, people spend years to solve it, things like that should be available.
<cirenyc>
I'll be running main.rb from the command line.
<rhalff>
or just add every available directory to your path (like rails does/did) :-)
<cirenyc>
drbrain: bah, that's what I had. I made a careless spelling mistake. :-/ thanks.
dzhulk has quit [Quit: Leaving.]
breakingthings has joined #ruby-lang
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
<rhalff>
yfeldblum, I want a easy to use github for everything _but_ coding. That way of thinking applied to other fields of professions (excuse my bad english)
<aedorn>
so how many nested begin/rescues can one have before they stop actually doing what they should?
<drbrain>
aedorn: how much memory do you have?
<drbrain>
… you'll probably hit SystemStackError first, though
<aedorn>
a lot... but I'm seeing weird things after 4
<rhalff>
yfeldblum, you know forking, debugging of ideas etc. resulting in blueprints that easily fits common political or whatever professions problems.
<drbrain>
aedorn: are you writing begin; begin; begin; begin; ...?
<aedorn>
drbrain: No ... it's more like begin; method_call; begin; method_call ...
<drbrain>
aedorn: rails has many more than 4
<drbrain>
what do you mean by "weird things"?
<yfeldblum>
rhalff, gotcha
<aedorn>
And what happens is when there is an exception in the most inner method it just continues like nothing happened. It doesn't hit the rescue block in any of them, it just ... goes directly to the first end statement and moves on
<yfeldblum>
i'm quite happy that there's no political github ...
<yfeldblum>
forkable sociopathy with pull-requests? no thanks
SkyEye has joined #ruby-lang
<drbrain>
aedorn: can you show an example?
<yfeldblum>
also, not terribly sure what a github for carpentry would look like
<aedorn>
drbrain: I don't have anything I can extract ... I'm just going to rewrite it because I hate all the nesting but I'll try to write one up if it sounds like something that shouldn't happen
Dan- has quit [Ping timeout: 255 seconds]
gaveen has quit [Ping timeout: 265 seconds]
SkyEye has quit [Remote host closed the connection]
<drbrain>
aedorn: I nested 11 begin; 1 + 1; […]; rescue; p 1; raise; end
<drbrain>
no issues
nazty has quit [Read error: Connection reset by peer]
<aedorn>
yeah, I did just about the same. So.... something is just ... weird. I don't get it
<drbrain>
are you sure it's not raising an exception you're not catching?
<aedorn>
If I'm not catching it I would assume the whole thing would exit, but it doesn't do that either
ivanoats has joined #ruby-lang
bubonicpestilenc has joined #ruby-lang
<aedorn>
oh well. I'll come back to it. I can just rewrite it for now and mark this sha down as something to look at later
<aedorn>
maybe I'll find something I missed while rewriting it, too
__BigO__ has joined #ruby-lang
stevechiagozie has joined #ruby-lang
MaddinXx_ has quit [Remote host closed the connection]
bluepojo has joined #ruby-lang
rippa has quit [Ping timeout: 264 seconds]
leopard_me has quit [Quit: Computer has gone to sleep.]
hakunin has quit [Read error: Connection reset by peer]
ivanoats has quit [Remote host closed the connection]
hakunin_ has joined #ruby-lang
hakunin has quit [Read error: Connection reset by peer]
ebouchut has quit [Quit: This computer has gone to sleep]
faustman has joined #ruby-lang
francisfish has joined #ruby-lang
m3nd3s has quit [Remote host closed the connection]
stevechiagozie has quit [Quit: leaving]
qwerxy has joined #ruby-lang
Nisstyre has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
lordnaz has quit [Read error: Connection reset by peer]
<yorickpeterse>
Anyone here planning on going to FOSDEM this February?
CaptainJet has joined #ruby-lang
davidbalbert is now known as davidbalber|away
<yorickpeterse>
huh, they don't have a Ruby dev room
musl has quit [Quit: WeeChat 0.3.9.2]
musl has joined #ruby-lang
sulo has joined #ruby-lang
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
rhalff has quit [Ping timeout: 252 seconds]
dankest has joined #ruby-lang
qwerxy has quit [Ping timeout: 260 seconds]
imperator has quit [Read error: Connection reset by peer]
qwerxy has joined #ruby-lang
sent-hil has joined #ruby-lang
<injekt>
yorickpeterse: where is it?
<injekt>
ah brussels
z0lt has quit [Quit: leaving]
<injekt>
psh why have no ruby dev room
<injekt>
they*
chendo__ has joined #ruby-lang
adambeynon has joined #ruby-lang
lordnaz has joined #ruby-lang
nazty has quit [Ping timeout: 255 seconds]
Mon_Ouie has quit [Ping timeout: 252 seconds]
Mon_Ouie has joined #ruby-lang
sent-hil has quit [Remote host closed the connection]
db1382 has quit [Ping timeout: 245 seconds]
srbaker has quit [Quit: Computer has gone to sleep.]
qwerxy has quit [Quit: offski]
davidbalber|away is now known as davidbalbert
Hakon has joined #ruby-lang
<jMCg>
so it would appear as though *foo, bar = baz.split doesn't work in Ruby 1.8: http://apaste.info/6iIq - how do I do this in a manner that will be compatible?
<drbrain>
group = mvn.split '.'; app = group.pop
<jMCg>
What an awefule hack.
<injekt>
that's not a hack
<injekt>
...
<jMCg>
injekt: I mean: It looks displeasing to my Perl-used eyes.
mjio has joined #ruby-lang
<injekt>
hah
havenn has quit [Remote host closed the connection]
<injekt>
it looks maintainable according to my perl-used eyes
havenn has joined #ruby-lang
<injekt>
and explicit, easy to read
chendo__ has quit [Quit: Computer has gone to sleep.]
havenn has quit [Ping timeout: 248 seconds]
<injekt>
jMCg: is this better? group, app = mvn.match(/(.+)\.(.+)$/).captures
<injekt>
trorolol
davidbalbert is now known as davidbalber|away
unsymbol has left #ruby-lang ["ERC Version 5.3 (IRC client for Emacs)"]
<jMCg>
injekt: nope :C That's just as horribly unreadable..
<jMCg>
Anyway. I thank you fine people very much for your help!
<drbrain>
you could upgrade from 1.8.7
<jMCg>
(My laptop is lying down to sleep now)
<injekt>
good because it doesn't do the same thing anyway
<drbrain>
it's only 8 months now until it's no longer supported
srbaker has joined #ruby-lang
<jMCg>
drbrain: that's a bigger project.
<injekt>
and yes that drbrain said
<jMCg>
drbrain: but it's on the list.
<injekt>
what*
<drbrain>
injekt: bug fixes stopped last june, security fixes stop next june
<injekt>
drbrain: the sooner the better :)
<jMCg>
Most of our Infra relies on Ruby. One component (The Foreman) isn't 1.9 compatible yet.
<injekt>
I left 1.8.7 as soon as 1.9.1 hit
<jMCg>
ACK.
<drbrain>
I think 1.9.1 is in the same support state as 1.8.7
<injekt>
excellent
<injekt>
I'll be moving to 2.0 as soon as that's out, too
Hakon has quit [Quit: Leaving...]
walkslow has joined #ruby-lang
walkslow has quit [Remote host closed the connection]
burgestrand has joined #ruby-lang
dankest has quit [Quit: Leaving...]
diegoviola has quit [Ping timeout: 264 seconds]
bcardarella has quit []
ivanoats has quit [Remote host closed the connection]