A124 has joined #crystal-lang
xdougx has quit [Ping timeout: 250 seconds]
McDougal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cyjimmy264 has joined #crystal-lang
McDougal has joined #crystal-lang
fowlduck has joined #crystal-lang
McDougal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
McDougal has joined #crystal-lang
blue_deref has quit [Quit: bbn]
fowlduck has quit [Remote host closed the connection]
fowlduck has joined #crystal-lang
fowlduck has quit [Ping timeout: 244 seconds]
matp has quit [Ping timeout: 240 seconds]
matp has joined #crystal-lang
ponga has joined #crystal-lang
leafybas_ has quit [Remote host closed the connection]
leafybas_ has joined #crystal-lang
elia has quit [Quit: Computer has gone to sleep.]
elia has joined #crystal-lang
xdougx has joined #crystal-lang
leafybas_ has quit [Ping timeout: 265 seconds]
fowlduck has joined #crystal-lang
xdougx has quit [Ping timeout: 265 seconds]
elia has quit [Quit: Computer has gone to sleep.]
fowlduck has quit [Ping timeout: 250 seconds]
Cidan is now known as zz_Cidan
Renich has quit [Ping timeout: 268 seconds]
Renich has joined #crystal-lang
leafybas_ has joined #crystal-lang
leafybas_ has quit [Ping timeout: 272 seconds]
[spoiler] has quit [Ping timeout: 240 seconds]
fowlduck has joined #crystal-lang
[spoiler] has joined #crystal-lang
fowlduck has quit [Ping timeout: 265 seconds]
Renich has quit [Quit: leaving]
leafybas_ has joined #crystal-lang
leafybas_ has quit [Ping timeout: 260 seconds]
AckZ_ has joined #crystal-lang
AckZ has quit [Ping timeout: 240 seconds]
AckZ_ is now known as AckZ
fowlduck has joined #crystal-lang
fowlduck has quit [Ping timeout: 272 seconds]
fowlduck has joined #crystal-lang
fowlduck has quit [Read error: Connection reset by peer]
fowlduck has joined #crystal-lang
jeromegn has quit [Quit: jeromegn]
cyjimmy264 has quit [Ping timeout: 250 seconds]
pawnbox has joined #crystal-lang
pawnbox_ has joined #crystal-lang
pawnbox has quit [Ping timeout: 240 seconds]
leafybas_ has joined #crystal-lang
leafybas_ has quit [Ping timeout: 265 seconds]
pawnbox_ has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
fowlduck has quit [Remote host closed the connection]
trapped has joined #crystal-lang
xdougx has joined #crystal-lang
xdougx has quit [Ping timeout: 255 seconds]
Raimondii has joined #crystal-lang
Raimondi has quit [Ping timeout: 255 seconds]
Raimondii is now known as Raimondi
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
vegai has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
SergXIIIth has joined #crystal-lang
BlaXpirit has joined #crystal-lang
pawnbox has quit [Ping timeout: 265 seconds]
pawnbox has joined #crystal-lang
fowlduck has joined #crystal-lang
CraigBuchek has joined #crystal-lang
CraigBuchek has quit [Ping timeout: 240 seconds]
fowlduck has quit [Ping timeout: 264 seconds]
pawnbox has quit [Read error: Connection reset by peer]
<
crystal-gh>
[crystal] jhass closed pull request #1849: Fix: File.basename("/") gets negative count (ArgumentError) (master...master)
http://git.io/vlCT7
pawnbox has joined #crystal-lang
bam has joined #crystal-lang
unshadow has joined #crystal-lang
unshadow has quit [Client Quit]
unshadow has joined #crystal-lang
CraigBuchek has joined #crystal-lang
CraigBuchek has quit [Ping timeout: 246 seconds]
pawnbox_ has joined #crystal-lang
pawnbox has quit [Ping timeout: 260 seconds]
elia has joined #crystal-lang
CraigBuchek has joined #crystal-lang
unshadow has quit [Quit: leaving]
CraigBuchek has quit [Ping timeout: 240 seconds]
leafybas_ has joined #crystal-lang
leafybas_ has quit [Ping timeout: 252 seconds]
pawnbox_ has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
leafybas_ has joined #crystal-lang
leafybas_ has quit [Remote host closed the connection]
leafybas_ has joined #crystal-lang
xdougx has joined #crystal-lang
CraigBuchek has joined #crystal-lang
xdougx has quit [Ping timeout: 260 seconds]
CraigBuchek has quit [Ping timeout: 250 seconds]
PragTob has joined #crystal-lang
CraigBuchek has joined #crystal-lang
CraigBuchek has quit [Ping timeout: 268 seconds]
matp has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
PragTob has quit [Remote host closed the connection]
pawnbox has quit [Ping timeout: 240 seconds]
xdougx has joined #crystal-lang
CraigBuchek has joined #crystal-lang
xdougx has quit [Remote host closed the connection]
xdougx has joined #crystal-lang
fowlduck has joined #crystal-lang
CraigBuchek has quit [Ping timeout: 264 seconds]
fowlduck has quit [Ping timeout: 272 seconds]
cyjimmy264 has joined #crystal-lang
<
xdougx>
guys i have an doubt about process, there is a well practice to open and kill process when is not running?
dom96 has quit [Changing host]
dom96 has joined #crystal-lang
CraigBuchek has joined #crystal-lang
CraigBuchek has quit [Ping timeout: 252 seconds]
blue_deref has joined #crystal-lang
ponga has joined #crystal-lang
trapped has joined #crystal-lang
ponga has quit [Client Quit]
SergXIIIth has quit [Quit: Leaving]
buggs has joined #crystal-lang
CraigBuchek has joined #crystal-lang
CraigBuchek has quit [Ping timeout: 250 seconds]
fowlduck has joined #crystal-lang
fowlduck has quit [Ping timeout: 250 seconds]
CraigBuchek has joined #crystal-lang
CraigBuchek has quit [Ping timeout: 240 seconds]
jeromegn has joined #crystal-lang
<
jhass>
xdougx: I don't understand the question
<
xdougx>
jhass: some process even killing with signa term isnt been killed
<
jhass>
maybe it traps sigterm and is stuck somehow so it can't run the handler
<
jhass>
I usually try sigquit in those cases to get rid of it, before sigkill
<
xdougx>
so instead of use Signal::TERM use Signal::TRAP
<
jhass>
xdougx: ah, system block
<
jhass>
use Process.new for a non-blocking call
<
xdougx>
okay, instead of fork then new
<
xdougx>
jhass: Process.new(cmd) or Process.run(cmd, args) ?
<
jhass>
Process.new, same signature as .run
CraigBuchek has joined #crystal-lang
fowlduck has joined #crystal-lang
CraigBuchek has quit [Ping timeout: 265 seconds]
Dreamer3 has quit [Ping timeout: 240 seconds]
fowlduck has quit [Ping timeout: 264 seconds]
Dreamer3 has joined #crystal-lang
Dreamer3 has quit [Ping timeout: 268 seconds]
Dreamer3 has joined #crystal-lang
wmoxam has joined #crystal-lang
wmoxam has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
wmoxam has quit [Quit: leaving]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
CraigBuchek has joined #crystal-lang
CraigBuchek has quit [Ping timeout: 268 seconds]
<
xdougx>
jhass: even given a signal kill it still on my ps aux command `24690 ubuntu 20 0 0 0 0 Z 0.0 0.0 0:00.00 | `- crystal-run-boo`
<
xdougx>
jhass: it means nothing, right?
<
jhass>
I don't follow what you're doing, what you're having and what you want, sorry
<
xdougx>
jhass: when i run system(cmd), inside a fork process, it stay in the ps aux command inside the crystal process
bam has quit [Ping timeout: 240 seconds]
<
jhass>
system blocks, it won't return until the child exits
<
xdougx>
ahhh i see, its not using cpu and ram, so its fine
<
jhass>
xdougx: you want to replace your crystal process with another command?
<
xdougx>
jhass: thats is fine, then all process finishes theres no trace of the process anymore
<
jhass>
that's not a yes or no
<
jhass>
I guess I still have no clue about your actual goal
<
xdougx>
no, its needed
<
xdougx>
my goal is: has no unfinished process running
<
jhass>
I don't think that's a goal
fowlduck has joined #crystal-lang
<
xdougx>
when my process starts and all children, everyone need to finish in the end
<
xdougx>
i was having some process sleeping forever when something went wrong
<
jhass>
you shouldn't need fork
<
jhass>
commands.map {|command| Process.new(command) }.each &.wait
<
jhass>
will ran everything in parallel and wait until all exited
elia has quit [Quit: Computer has gone to sleep.]
<
xdougx>
the thing is, i need to wait an rake process finishes before start another one when its triggered again
fowlduck has quit [Ping timeout: 268 seconds]
<
jhass>
@running_process = nil; ...; process = @running_process; process.wait if process; @running_process = Process.new(command)
zz_Cidan is now known as Cidan
vegai has left #crystal-lang [#crystal-lang]
CraigBuchek has joined #crystal-lang
CraigBuchek has quit [Ping timeout: 264 seconds]
elia has joined #crystal-lang
elia has quit [Quit: Computer has gone to sleep.]
cyjimmy264_ has joined #crystal-lang
cyjimmy264 has quit [Ping timeout: 246 seconds]
shama has joined #crystal-lang
grindhold is now known as grindlold
CraigBuchek has joined #crystal-lang
grindlold is now known as grindhold
CraigBuchek has quit [Ping timeout: 244 seconds]
fowlduck has joined #crystal-lang
pawnbox has quit [Ping timeout: 265 seconds]
CraigBuchek has joined #crystal-lang
fowlduck has quit [Remote host closed the connection]
fowlduck has joined #crystal-lang
CraigBuchek has quit [Ping timeout: 260 seconds]
leafyba__ has joined #crystal-lang
leafybas_ has quit [Ping timeout: 252 seconds]
leafyba__ has quit [Ping timeout: 246 seconds]
nakilon has joined #crystal-lang
<
nakilon>
hi, asterite
<
nakilon>
is the string constructor used anywhere with this parameter passed?
<
nakilon>
I wish it wasn't, so I would suggest to:
<
nakilon>
1) remove line 2691
<
nakilon>
2) change line 2697 to "@end = (@reader.string.bytesize == 0)"
<
nakilon>
otherwise this all looks almost like indian code: if a == true then b = true else b = false
zodiak has joined #crystal-lang
<
zodiak>
hola.. anyone got any tutorials/guides/quick 'hey dumbie, here is how you do this' for channels ?
<
zodiak>
trying to compare/contrast the classic producer/consumer pattern
<
jhass>
zodiak: the interface is still not finalized, so it's kinda not worth to write in depth docs yet
<
jhass>
zodiak: the gist is, Channel is your Queue, spawn is your Thread.new
<
zodiak>
okily dokily
<
jhass>
a (full) channel will block the current coroutine on .send
<
jhass>
a (empty) channel will block the current coroutine on .receive
<
jhass>
Channel.new is unbuffered, Channel.new(64) is buffered
<
zodiak>
you say it's not finalized, does that mean things such as actors for concurrency are potentially incoming or ?
<
jhass>
not sure if actor will happen in stdlib
<
jhass>
but there are more concrete plans to have syntax for receive and send
<
jhass>
and Channel.select
<
zodiak>
tbh, from the 20,000 foot view, I don't see what's missing from the above
<
zodiak>
maybe some syntactic sugar but..
<
jhass>
Channel.select is still ugly
<
zodiak>
Channel.select([item1, item2]) deal .. right ?
<
zodiak>
I mean, if that's the case, it's not ugly (maybe the internals are, I obviously can't speak to that)
<
jhass>
Channel.select(chan.receive_op, chan.send_op(foo)) #=> {n, value}
<
jhass>
I got some interim wrappers through so you can Channel.receive_first(chan, chan, ...) nad Channel.send_first
<
jhass>
but all this won't end up being user facing API
<
jhass>
it's just for now
<
zodiak>
roger roger
<
zodiak>
in the case of p/c, I think I am good to forge ahead
<
zodiak>
I can see how for more complicated things, more control/flow maybe needed but.. yeah, for me, not a big thing.
<
zodiak>
hah! du bist duetsche ? mein leibchen ist .. and that's why my german sucks ;)
<
jhass>
I'm still amazed and confused how many (non-native speakers) people know at least some german
<
jhass>
I mean I went to school 1km from denmark and I know not a single word danish
<
fowlduck>
my girlfriend's kid goes to a german immersion school here in milwaukee
<
zodiak>
I think it comes from the fact that I am european (lived there 22 years from birth before moving).. so I have a smattering of french etc
<
fowlduck>
oh snap, is someone working on channels/select in crystal again?
<
zodiak>
but.. german is a really nice language :)
<
BlaXpirit>
SCHMETTERLING
<
fowlduck>
I'm learning esperanto
<
fowlduck>
which is a silly language
<
fowlduck>
very silly
<
zodiak>
ah, the language of hope
<
fowlduck>
for a realist like me, it is, at least
<
zodiak>
kuger-schrieber
<
zodiak>
(although my spelling is awful ;)
<
fowlduck>
but it's fun and easy, and my gf and I can talk without people knowing what we're talking about, mostly
<
BlaXpirit>
zodiak, that's k'u'gel i think
<
zodiak>
schneeflocken is my favourite word though :)
<
zodiak>
kugel.. got it (again, my spelling is awful :)
<
zodiak>
to stay more on topic though, I think good/sane/sensible concurrency is almost mandatory for new languages
<
zodiak>
so, taking it time and getting it right (thumbsup)
<
jhass>
in other news twitch installs archlinux just installed winows xp. In german.
<
BlaXpirit>
whatever, it's stupid
leafybas_ has joined #crystal-lang
CraigBuchek has joined #crystal-lang
CraigBuchek has quit [Ping timeout: 250 seconds]
<
crystal-gh>
crystal/master f27d8d0 Ary Borenszweig: Allow forward declarations for lib external vars
Ven has joined #crystal-lang
Ven has quit [Read error: Connection reset by peer]
CraigBuchek has joined #crystal-lang
Raimondii has joined #crystal-lang
Raimondi has quit [Ping timeout: 260 seconds]
Ven has joined #crystal-lang
Cidan is now known as zz_Cidan
CraigBuchek has quit [Ping timeout: 252 seconds]
zz_Cidan is now known as Cidan
Raimondi has joined #crystal-lang
BlaXpirit has quit [Quit: Konversation]
Raimondii has quit [Ping timeout: 240 seconds]
Raimondii has joined #crystal-lang
Raimondi has quit [Ping timeout: 240 seconds]
Raimondii has quit [Ping timeout: 240 seconds]
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ozra has joined #crystal-lang
Raimondi has joined #crystal-lang
CraigBuchek has joined #crystal-lang
CraigBuchek has quit [Ping timeout: 240 seconds]
<
crystal-gh>
crystal/master 0efd106 Jonne Haß: Add base 62 for Int#to_s
<
crystal-gh>
crystal/master 143d3ab Jonne Haß: Add base 62 to String#to_i
<
crystal-gh>
crystal/master 13f056d Ary Borenszweig: Merge pull request #1864 from jhass/base62...