<dminuoso>
You can do this in Haskell too (even more compact) like `a = (> 5)`, or `b = (5 >)`
<dminuoso>
So I can definitely appreciate the elegance in that.
<dminuoso>
Mmm, that is a bit length.
<Papierkorb>
But as you pass blocks in 99% of all cases when you have to pass logic, it's a non-issue
<dminuoso>
Papierkorb: That .try by the way is called fmap in Haskell, or map in ruby. ;-)
<Papierkorb>
It's actually called try in ruby too.
<Papierkorb>
Only call if called on non-nil
<Papierkorb>
Or, Crystals version of &. - basically
<dminuoso>
Papierkorb: That's a railsism
<dminuoso>
In Ruby core its the equivalent of Array#map
<Papierkorb>
More like `x.y if x`
<Papierkorb>
(proper nil check left as excercise to the reader)
<dminuoso>
Papierkorb: Which is #map for the Maybe functor. :)
<dminuoso>
Papierkorb: Ignoring `false`, || is the equivalent of <|> as implemented for Maybe. Your code does not look too terribly different actually.
jxv has joined #ruby
<jxv>
Are underscores preferred in package names (instead of spaces or dashes)?
<dminuoso>
jxv: both dashes and underscores can be found
<dminuoso>
Papierkorb: I do like that initializer shortcut. I really hate boilerplate initializers :(
<Papierkorb>
dminuoso: In my view, OOP is still the way. Sure it got a bad name over decades of abuse (Java). But the issue isn't OOP. It's that many languages' type systems don't live up to OOPs capabilities (Type erasure, wtf?). Hence my reason for Crystal. I'd probably go to Rust if I were to leave that language.
<RickHull>
TViernion: seems like a passenger problem
<Papierkorb>
Yeah there are ton of nice little additions
<dminuoso>
Papierkorb: Im tempted to try out OCaml to see how well a fusion of the two can work.
<RickHull>
TViernion: whoops, lost track of the IRC, nevermind
cdg has joined #ruby
<dminuoso>
(Also I want to try out a real ML language)
<Papierkorb>
dminuoso: Yeah OCaml sounded interesting to me too
<dminuoso>
Supposedly the library ecosystem is horrible, but the language has some real attractive things.
<Papierkorb>
Though I'm a bit spoiled by union types. Way way way fewer OOP hacks around awful type systems with that
<dminuoso>
Papierkorb: You get those too in OCaml.
<Papierkorb>
Really annoying that Rust doesn't have them. If it had I'd probably be gone. Rust has an amazing innovative memory management system, but its type system is boringly conservative
<dminuoso>
Papierkorb: And better yet, you get a hindley milner typesystem.
jphase has quit [Ping timeout: 258 seconds]
<dminuoso>
Something you will hate crystal for not having once you experience it.
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<RickHull>
which is more repulsive, lisp or smalltalk?
cdg has quit [Ping timeout: 252 seconds]
<dminuoso>
Neither really.
<dminuoso>
Though my smalltalk experience is limited at best.
apeiros has quit [Ping timeout: 248 seconds]
<RickHull>
lisp can't even distinguish between code and data, let alone data types
VladGh has quit [Remote host closed the connection]
apeiros has joined #ruby
VladGh has joined #ruby
ta has joined #ruby
ta has quit [Remote host closed the connection]
<Papierkorb>
why are academic languages always so ugly?
ta has joined #ruby
<RickHull>
isn't it pretty neat that ColorForth is more powerful than Forth?
<RickHull>
since when was adding color more than aesthetic?
<Papierkorb>
Ocaml: `"string" ^ "concat" ^ "blows the roof."`
railswebdev has joined #ruby
<RickHull>
Papierkorb: i think that's mostly legacy, a legacy of being old
<Papierkorb>
dminuoso: ocaml lists are much less powerful than crystal arrays
apeiros has quit [Ping timeout: 260 seconds]
<dminuoso>
Papierkorb: How are they less powerful?
<Papierkorb>
`[1;2.0]` is an error in ocaml. `[1, 2.0]` is a `Array(Int32 | Float64)` in Cr
<shreve>
\q
shreve has quit [Quit: Lost terminal]
<RickHull>
is it ever proper to operate on a collection of ints and floats?
<dminuoso>
Papierkorb: My opinion is, should you want to ever create such lists - the problem lies in your approach
<dminuoso>
not the language
<RickHull>
if floats are involved, should the ints be floats?
<dminuoso>
Papierkorb: To implicitly assume there must be a union type involved if type inference detects two possible types is just a sure way of guaranteeing bugs in statically typed languages.
<Papierkorb>
RickHull: as that'd create special rules for floats, no.
<dminuoso>
or rather in strongly typed languages.
ta has quit [Ping timeout: 248 seconds]
<RickHull>
Papierkorb: why stuff ints into a collection of floats?
<RickHull>
what's a good example of that necessity?
<Papierkorb>
dminuoso: As all code paths are traced completely, such bugs are generally cought at compile time. Comibining Floats and Ints may be a bit hairy, but as you usually have no reason to combine these two types...
<dminuoso>
Papierkorb: Though in Haskell this actually works but for other reasons.
shreve has joined #ruby
shreve has quit [Client Quit]
<dminuoso>
Papierkorb: what is so powerful, it the ability to express as general as possible, without losing stuff.
<RickHull>
i think in ruby and other languages, a literal int is created easily and wants to be stuffed in float collections, but we should make sure, somehow, to keep the collection homogenous
<dminuoso>
For example the ability to declare a function as: a -> a -> b
<dminuoso>
is incredibly generic but not too generic.
ur5us has quit [Remote host closed the connection]
<Papierkorb>
dminuoso: Yeah we do that in Crystal too
<RickHull>
dminuoso: duck typing is one approach...
<dminuoso>
Papierkorb: Do you have parametric types?
<Papierkorb>
dminuoso: Free variables you mean? Sure
<dminuoso>
Papierkorb: Huh?
<Papierkorb>
`def foo(a : T, b : T) forall T`
<dminuoso>
Papierkorb: What does that mean?
<RickHull>
foo operates on arity-2 all types T
<Papierkorb>
foo will accept any type for a and b, as long a and b have the same type
<RickHull>
oh
<dminuoso>
Papierkorb: and I can express foo :: forall a b, a -> a -> b
<dminuoso>
in haskell for example
<dminuoso>
s/,/./
jphase has joined #ruby
<dminuoso>
Papierkorb: essentially expressing takes 2 of any type, as long as they are the same type, but returns any type
<Papierkorb>
yep that part I know
jxv has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Papierkorb>
Really, in crystal you call these "typings" restrictions, as you restrict the type to something you specify. If you don't restrict, it's free-for-all.
<dminuoso>
Papierkorb: With parametric type I meant.. type constructors as functions, so you can do things like: a x -> b x -> x
jxv has joined #ruby
<Papierkorb>
dminuoso: you want an A(X) and a B(X) to return an X?
<dminuoso>
Papierkorb: no this is saying `function taking `a x`, `b x` and returning `x`
<dminuoso>
where a x in itself is a type
<dminuoso>
for example [] x
<dminuoso>
or more commonly using the syntax sugar [x]
<dminuoso>
but it could be anything, like `Leaf Int` for example
mtkd has quit [Ping timeout: 240 seconds]
<Papierkorb>
That paradigm by itself doesn't translate well from FP to OOP. In OOP, you simply use a common base class
<dminuoso>
Papierkorb: Oh it absolutely does. C++ does this in form of templates for example.
jxv has quit [Client Quit]
<Papierkorb>
you mean with template-templates?
<dminuoso>
Papierkorb: ?
<Papierkorb>
`template<typename T<typename>>` or however the exact notation was?
<dminuoso>
Do you have parametric polymorphism?
<dminuoso>
Sure if you want higher kinded types.
<Papierkorb>
Dude not everyone spent 10 years studying academics to know every buzzword
<dminuoso>
I never went to uni.
<dminuoso>
:S
<Papierkorb>
I know that haskell sure loves their concept names
<dminuoso>
C++ uses that word!
* dminuoso
hides
axisys has quit [Ping timeout: 255 seconds]
<Papierkorb>
People outside compiler devs read the standard?
<Papierkorb>
Well, yes, but throughoutly?
<Papierkorb>
> "Parametric Polymorphism" is just another term for "Generics" in Java.
<Papierkorb>
Just say so. We even call them Generics in Crystal too.
<dminuoso>
Yup
apeiros has joined #ruby
<dminuoso>
Well, every language has a different name for it.
<dminuoso>
It's like typeclasses. Elixir calls them protocols, ocaml calls them traits, C++ calls them concepts..
<dminuoso>
Haskell calls them typeclasses..
<Papierkorb>
"template" or "generic" is generally a good guess
<dminuoso>
Ruby calls them... well.. 'mixins'
chouhoul_ has quit [Remote host closed the connection]
<RickHull>
</3 mixins
<Papierkorb>
ruby is dynamically typed, who cares, you can just pass whatever anyway
apeiros has quit [Ping timeout: 246 seconds]
jphase has quit [Ping timeout: 240 seconds]
<Papierkorb>
.. scrolling through some ocaml slides, so what's the big difference between haskell and ocaml exactly?
<Papierkorb>
is hs simply a successor of that?
jxv has joined #ruby
<Papierkorb>
oh ocaml supports mutable data. hell of FP just froze over.
<dminuoso>
Papierkorb: also haskell has typeclasses
<Papierkorb>
and ocaml isn't actually type safe. And that's a pass.
<dminuoso>
huh?
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dminuoso>
Im not sure whether you are making a joke.
<Papierkorb>
I've yet to be actually impressed by any FP language. It's not that I regard them as bad, but as plain hard to read
noobineer has joined #ruby
noobineer has quit [Max SendQ exceeded]
railswebdev has joined #ruby
<Papierkorb>
dminuoso: If I do something that causes the language to segfault that should be caught by the type system, that's a defect
<dminuoso>
Papierkorb: Well the further I progress, the more I enjoy it because you have a much greater freedom in expressing your code. I suppose there are some good reasons why Haskell seems to be dominated by academics with a mathematical background.
<Papierkorb>
If it helps mathematicians, that's good
<Papierkorb>
I'm no mathematician
latemus is now known as waveprop
jdawgaz has joined #ruby
<dminuoso>
Papierkorb: Btw that would appear to not be page 38 then. :P
<Papierkorb>
It's page 37, or page 87, depending on how your pdf reader displays it
<dminuoso>
# let hetero_list = [1;2; 3.0 ];; ^^^ Error: This expression has type float but an expression was expected of type int
<dminuoso>
Ahh.
waveprop is now known as latemus
cschneid_ has joined #ruby
<dminuoso>
If I had any clue what that `''"!! help. How do I even?!
<dminuoso>
Oh it's just '
rubycoder37 has joined #ruby
apeiros has joined #ruby
cschneid_ has quit [Ping timeout: 246 seconds]
marr has quit [Ping timeout: 240 seconds]
apeiros has quit [Ping timeout: 248 seconds]
apeiros has joined #ruby
porfa has quit [Quit: porfa]
alfiemax has joined #ruby
<Papierkorb>
Smalltalk looks like it could be useful
workmad3 has joined #ruby
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
<latemus>
isnt smalltalk where ruby gets the |e| notaition from
<rubycoder37>
why is python still more popular than ruby? I'm a bit upset my friends migrated to python for this reason, I still prefer ruby
<RickHull>
python is closer to C, more pragmatic, less pure in terms of developer experience
<RickHull>
see also: numpy
<Papierkorb>
Who cares? Use what you like the most. If someone pins you on that, their loss
apeiros has quit [Ping timeout: 240 seconds]
<RickHull>
also, python has a culture of pythonicity, the one true way
<Zarthus>
so does rust and go, with rustfmt and gofmt
sepp2k has quit [Ping timeout: 258 seconds]
<RickHull>
newest and newer
<RickHull>
will probably eclipse python IMHO
cdg has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
<rubycoder37>
RickHull: you think rust will eclipse python?
sepp2k has joined #ruby
<RickHull>
in some measures, for sure
<Papierkorb>
Hard to replace a scripting language with a compiled and strictly static language
<RickHull>
popularity measures for various applications
<rubycoder37>
do you think crystal will eclipse ruby?
<Papierkorb>
Time will tell.
<Papierkorb>
Maybe, maybe not
<Papierkorb>
Will Elixir "eclipse" ruby?
<Papierkorb>
And if so, in what measure?
<RickHull>
i think crystal + elixir will
workmad3 has quit [Ping timeout: 240 seconds]
<RickHull>
union, not addition
<rubycoder37>
I don't think elixir will eclipse ruby
<Papierkorb>
I know that I'm not interested in Elixir. But that's because I'm not interested in webdev.
<RickHull>
ruby is legacy now, kinda. it's very hard to steer the battleship
<Papierkorb>
And Crystal lets me (finally again) wreck havoc on bare metal
<rubycoder37>
a lot of people think ruby is just a rails thing
<wmoxam>
those ppl are wrong 😅
<Papierkorb>
^
<rubycoder37>
wmoxam: yes
<rubycoder37>
I talk to people who are wrong all the time
<RickHull>
mruby looks like the brightest lineage for ruby 100 years from now -- agree?
<rubycoder37>
I love proving them wrong
<rubycoder37>
not that I'm always right
cdg has quit [Ping timeout: 246 seconds]
guardianx has joined #ruby
<wmoxam>
IMO Ruby has always been, and still is a great glue language
<RickHull>
i think ruby will be the Algol of the 2000s
<RickHull>
most contemporary languages will owe homage
<wmoxam>
Elixir, Crystal etc aren't as good as glue
<Papierkorb>
`result := a > b ifFalse: [ "bar" ]` smalltalk has had unless for ages - with the difference being its pendant being readable by everyone easily. Nice
<wmoxam>
if anything will replace it maybe it'll be Perl :D
<Papierkorb>
wmoxam: Compared to e.g. Lua, Ruby has a huge disvantage in that the VMs are so hard to embed and use
<RickHull>
mruby
<Papierkorb>
It's admirable how good Luas API is
guardianx has left #ruby [#ruby]
damasta has left #ruby [#ruby]
<rubycoder37>
I started using rails in 2008 when rails was a hot thing, I was still writing PHP (yuck) back then, but I already saw ruby being used, I wanted a more general purpose language and ruby was it
<Papierkorb>
RickHull: wasn't mruby similar to CRubys API?
<wmoxam>
Papierkorb: that's not what I meant by glue :D
<rubycoder37>
eventually people moved to go and node and other langs, but I didn't
<RickHull>
Papierkorb: i think so, I haven't used it in anger yet
<RickHull>
(yet)
<Papierkorb>
RickHull: Then it doesn't hold a candle in that department to Lua
<Papierkorb>
(Well OTOH, Luas stdlib is whack at best)
<rubycoder37>
some of my friends still make fun of me for sticking to ruby, and I get even more upset with them
<RickHull>
perhaps, but it still has use
<RickHull>
rubycoder37: don't get emotionally invested
<RickHull>
PROTIP
<Papierkorb>
rubycoder37: Why do you care? Knowing a tool, even if it isn't the most-perfect fit for the job, really really well is so much more useful than knowing the most-perfect tool for the job only somewhat
<wmoxam>
rubycoder37: I haven't seen much migration away from Ruby/Rails
<Papierkorb>
And if you move to JS from Ruby, I really can't help you
<wmoxam>
lol
<RickHull>
gotta be full stack yo
<Papierkorb>
lol
John___ has quit [Read error: Connection reset by peer]
<Papierkorb>
You'd hope that dogfooding your own JS client code on the server would eventually improve the quality of client and server code, as you don't want to waste resources on your server
<latemus>
jquery is rather ruby-like
<latemus>
i've noticed
<Papierkorb>
But jokes on me, with electron, crappy server AND client code is now packaged as electron!
<Papierkorb>
What a time to be alive
<wmoxam>
ugh, electron
<wmoxam>
I've quit using electron app
<wmoxam>
s
<Papierkorb>
I only use Atom. It's the least worst editor I know :(
<RickHull>
is that github's atom editor framework thing?
<wmoxam>
Sublime is better :p
<rubycoder37>
Papierkorb: I had a experience writing python at wor recently and it wasn't a very good experience, but I also think that's mostly because I inherited a very crappy codebase and not because of python itself
<RickHull>
emacs ftw
<rubycoder37>
work*
<rubycoder37>
electron is awful
<RickHull>
rubycoder37: a craftsman doesn't blame his tools unless they really suck
DLSteve has joined #ruby
<Papierkorb>
rubycoder37: I really really like OOP. Not in the Java sense. Proper OOP. Python isn't so sure if it's imperative or object-oriented. So that's a "Meh" from me.
DLSteve has quit [Client Quit]
mtkd has joined #ruby
<rubycoder37>
RickHull: yes, nothing against python
<RickHull>
in ruby it's nice that everything is an object except for some stuff
<Papierkorb>
"Numbers are objects" was a revelation to me
<rubycoder37>
I like Ruby, I want to see ruby being used more
<RickHull>
dminuoso: i thought that ruby couldn't properly implement |> because of the difference between an instance as a method receiver vs the first arg
<RickHull>
i.e. def operates_on_float(flt)
<RickHull>
vs Float#operates_on_float
<Papierkorb>
The only thing that'd make any sense at all would be `object.foo |> another_object.bar`. And I'm not sure it'd be that useful. But I'm not really against it either.
<wmoxam>
really want to check out Perl 6. Have heard great things
<rubycoder37>
Larry Wall is a nice guy
<Papierkorb>
The perl sucks talks were great fun too :P
sepp2k has quit [Read error: Connection reset by peer]
csk157_1 has quit [Ping timeout: 240 seconds]
jxv has joined #ruby
<RickHull>
so you specify val goes to (receiver, method)
<Papierkorb>
|> would only make sense to turn `one.two(three.four)` into `three.four |> one.two`
<matthewd>
Not claiming it's a compelling syntax.. just noting that it's "just" a matter of adding something to the parser
<RickHull>
useful?
<Papierkorb>
That's the actual question. I'm not sure if it would improve code, worsen code, or if nothing would change at all (because no one cared)
<matthewd>
I'm not terribly convinced, but I'm open to the idea in principle
<Papierkorb>
^
<matthewd>
ISTM that we already have reasonable chaining via `.`, such that breaking up those chunks with intermediate variables is more likely to be descriptive than uselessly verbose
<Papierkorb>
ISTM?
<RickHull>
it seems to me
<Papierkorb>
Probably, you'd need to modify ruby to support that |> and then write code (or port existing code) for it to see how it "feels"
<RickHull>
it's not the same "win" it is in elixir, at all
DebianUser_ has quit [Read error: Connection reset by peer]
<Papierkorb>
elixir is a functional language, not OOP
<Papierkorb>
It mimics many parts of OOP though, give it that
<matthewd>
Right, because a good portion of what it's doing in Elixir, is done by `.` in Ruby
<RickHull>
Papierkorb: yep, this discussion of |> goes back to FP discussions
<RickHull>
here in the last week
DebianUser_ has joined #ruby
<Papierkorb>
we had people calling for |> in the FP sense (and not in a OOP sense) in the crystal github as issue years ago
<RickHull>
(all I know is the elixir sense)
<Papierkorb>
Because writing "foos |> Enumerable.each" is totally better than "foos.each" or something
<RickHull>
it's pretty great, actually
<RickHull>
that's not the best example
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<RickHull>
in ruby, we use #tap and #andand to work around this lack
<RickHull>
and similar things
<Papierkorb>
It completely breaks the type system
<RickHull>
not in Elixir, unless I misunderstand you
<Papierkorb>
and makes that thing to test a nightmare
<matthewd>
RickHull: Oh? What does tap look like in Elixir?
<Papierkorb>
RickHull: Elixir isn't Ruby
<RickHull>
no shit?
<Papierkorb>
What they do they do. Elixir is a functional language, what may make sense for them may not make sense in OOP
<nardul>
Heyo, in ruby, is 'load!' a special function in that it is automatically executed when a module is import by some method?
<dminuoso>
nardul: #load! is not a Ruby thing.
<dminuoso>
&ri load!
<`derpy>
No results
<latemus>
RickHull: Nice. Thank you
<nardul>
dminuoso: Thank you!
cdg has joined #ruby
<dminuoso>
nardul: So Ruby does not really have a module infrastructure.
<dminuoso>
nardul: What require/load actually just do, is basically 'execute' another file (with some minor twists, such as local variables remaining local)
<dminuoso>
require does this once, load does this multiple times
<dminuoso>
So if you had the need to run code 'when something is required', just put it into the file. ;-)
marr has joined #ruby
<nardul>
dminuoso: Understood. :) Working with padrinorb. The setup is a bit strange and I've never touched ruby before :) Just trying to make sense of it all.
<experienced_newb>
hi everyone saying I'm a newbie to ruby development, would to unserstand what version of ruby should be used for a new project?
<dminuoso>
experienced_newb: 2.4.2
<experienced_newb>
I cannot understand LTS policies
<matthewd>
latemus: Does that help at all?
<latemus>
yes the method returns an object which hase the methods and attributes of it's class
<experienced_newb>
very well it seems like 2.^ and 3.^ branches have an LTS version
<latemus>
matthewd: i'm clear on that, it doesnt really cover what im triying to ask
<matthewd>
Right. And so chained calls are just invoking a new method on each return value, in turn.
<dminuoso>
latemus | im trying to understand how chaining is different from just passing in args - semantically its not too different actually.
<latemus>
dminuoso: okay
<matthewd>
latemus: Every call has a receiver; when chaining, the receiver is the thing on the left. When it's not specified, it's self.
<latemus>
matthewd: okay, so the 'medium of transport', if you will, by which chaned objects communicate, is the return value
<dminuoso>
latemus: yup
<matthewd>
Kinda?
<latemus>
if so,
<matthewd>
I'd say it's really more the value being transported
<latemus>
that is the same as pipelining commands in unix
<experienced_newb>
dminuoso, sorry, could you argument to me why use the 2.4 and not the 2.3 that it's an LTS? really I'm new to the language
<matthewd>
latemus: Except that it's not a pipeline. The return value isn't available until the method returns.
<latemus>
you mean theres no buffer?
<dminuoso>
experienced_newb: We do not have such an LTS system as far as I jknow.
<matthewd>
(thus not medium -- there's no communication)
<latemus>
i think i see
<matthewd>
There's an infinite buffer
<matthewd>
latemus: Think `grep x y > tmp; cat < tmp`, not `grep x y | cat`
<latemus>
ahhhhh
<latemus>
okay i get it now
<dminuoso>
experienced_newb: So the latest Ruby version will give you the longest maintenance down the road.
<experienced_newb>
probably I landed on a "commercial" site offering LTS support, so please could you argument why the 2.3 version it's best suited? later ones are unstable?
<dminuoso>
experienced_newb: Nope. 2.4.2 is quite stable.
<matthewd>
latemus: So `f1.f2` is identical to `x = f1; x.f2`
<dminuoso>
experienced_newb: We don't release unstable untested versions.
<matthewd>
experienced_newb: Are you talking about Ruby or Rails?
<experienced_newb>
ruby
* matthewd
is suspicious of "LTS" + "2.3"
<matthewd>
URL?
<experienced_newb>
i was just googling for "ruby LTS"
<experienced_newb>
not important
<dminuoso>
Im getting some rails related hits.
<experienced_newb>
I thought I was on the official ruby site
<latemus>
matthewd: that cleared it up. thanks matthewd Dimik elomatreb
<dminuoso>
Which is still scary as heck, to see people selling 'rails 2.3 lts'
<matthewd>
"2.^ and 3.^ branches", yeah, that's Rails
<latemus>
s/Dimik/dminuoso
<experienced_newb>
so just to understand and please have patience with me
<matthewd>
experienced_newb: So yeah, that's a third party attempt at legacy support for versions that are no longer actually supported
doublemalt_ has quit [Ping timeout: 248 seconds]
<matthewd>
experienced_newb: There is no official LTS anything; you should use the latest released version
<experienced_newb>
could you argument why to opt for a version or another, let's say in the future I would like to make study MVC project with rails but also long term running processes
<dminuoso>
experienced_newb: Latest versions give you latest features, and *official* support/maintenance/patches.
<matthewd>
experienced_newb: There is no argument. There is no reason to use an older version.
workmad3 has joined #ruby
<dminuoso>
If you for example ask in here about ruby 1.9 features, you might get ridiculed and told to upgrade.
<matthewd>
People use older versions because they haven't gotten around to upgrading yet, or it's difficult to upgrade, or.. etc. A new project should always start on the latest available (and where possible, try to keep upgrading).
csk157_1 has joined #ruby
mathys has joined #ruby
kapil___ has joined #ruby
camilasan has quit [Ping timeout: 255 seconds]
workmad3 has quit [Ping timeout: 260 seconds]
beccamorgan has joined #ruby
csk157_1 has quit [Ping timeout: 240 seconds]
experienced_newb has quit [Ping timeout: 260 seconds]
<latemus>
are udp sockets simplex on unix, since it is one way
<latemus>
or arent sockets always dup
vee__ has quit [Ping timeout: 264 seconds]
doublemalt_ has joined #ruby
<dminuoso>
latemus: They are duplex for the reason you can receive and send through one socket.
<elomatreb>
UDP is connectionless, not directionless or one-way
<dminuoso>
What they said.
<dminuoso>
bertamole
<dminuoso>
Bert-A-Mole.
<elomatreb>
:)
uptime has quit [Quit: Look, low effort people produce low quality results. What do you plan on doing once you've made everyone a robocop? Even the blind can see there ain't no loyalty.]
uZiel has quit [Ping timeout: 246 seconds]
cschneid_ has joined #ruby
hahuang65 has joined #ruby
vee__ has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cschneid_ has quit [Ping timeout: 252 seconds]
hahuang65 has quit [Ping timeout: 255 seconds]
jameser has joined #ruby
cdg has joined #ruby
alfiemax has joined #ruby
cdg has quit [Ping timeout: 252 seconds]
alfiemax has quit [Ping timeout: 246 seconds]
BTRE has quit [Quit: Leaving]
BTRE has joined #ruby
leah2 has quit [Ping timeout: 246 seconds]
leah2 has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
mathys has quit [Remote host closed the connection]
zautomata has quit [Ping timeout: 248 seconds]
Psybur has joined #ruby
uZiel has joined #ruby
cdg has joined #ruby
alfiemax has joined #ruby
cdg has quit [Ping timeout: 255 seconds]
HTTP_____GK1wmSU has joined #ruby
houhoulis has joined #ruby
HTTP_____GK1wmSU has left #ruby [#ruby]
ahrs has quit [Remote host closed the connection]
Defenestrate has joined #ruby
Defenestrate has quit [Changing host]
Defenestrate has joined #ruby
ahrs has joined #ruby
Defenestrate has quit [Client Quit]
Psybur has quit [Ping timeout: 240 seconds]
Azure has quit [Read error: Connection reset by peer]
Azure has joined #ruby
michael1 has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
duderonomy has quit [Ping timeout: 248 seconds]
cadillac_ has quit [Read error: Connection reset by peer]
cadillac_ has joined #ruby
Azure has quit [Read error: Connection reset by peer]
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oetjenj has joined #ruby
zanoni has quit [Ping timeout: 240 seconds]
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
DebianUser_ has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
cdg has quit [Ping timeout: 252 seconds]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
Psybur has joined #ruby
jottr has quit [Ping timeout: 255 seconds]
atmosx has joined #ruby
duderonomy has joined #ruby
Defenestrate has joined #ruby
Defenestrate has quit [Changing host]
Defenestrate has joined #ruby
zanoni has joined #ruby
Azure has joined #ruby
sepp2k has joined #ruby
Azure has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
doublemalt_ has quit [Ping timeout: 240 seconds]
jdawgaz has joined #ruby
houhoulis has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 248 seconds]
doublemalt_ has joined #ruby
DTZUZO has joined #ruby
jottr has joined #ruby
alfiemax has quit [Remote host closed the connection]
cschneid_ has joined #ruby
hahuang65 has joined #ruby
John___ has joined #ruby
HTTP_____GK1wmSU has joined #ruby
Azure has joined #ruby
cschneid_ has quit [Ping timeout: 255 seconds]
HTTP_____GK1wmSU has left #ruby [#ruby]
hahuang65 has quit [Ping timeout: 255 seconds]
troulouliou_div2 has joined #ruby
Defenestrate has quit [Quit: Leaving]
linduxed has quit [Quit: WeeChat 1.9.1]
Sightes has joined #ruby
linduxed has joined #ruby
cabotto has joined #ruby
Sightes has quit [Client Quit]
troulouliou_div2 has quit [Ping timeout: 240 seconds]
apparition has quit [Quit: Bye]
cdg has joined #ruby
Sightes has joined #ruby
Sightes has quit [Client Quit]
raynold has quit [Quit: Connection closed for inactivity]
Sightes has joined #ruby
cdg has quit [Ping timeout: 246 seconds]
[[thufir]] has joined #ruby
DLSteve has joined #ruby
pilne has joined #ruby
troulouliou_div2 has joined #ruby
bruno- has quit [Ping timeout: 258 seconds]
danielglh has joined #ruby
alfiemax has joined #ruby
<latemus>
input = [/#{bs[a-z]{1}}/]
<latemus>
this assignment fails with an error. complaining about the braces in the quantifier. what is the proper way? i thought i could use /#{}/ to place a regexp in an array
<latemus>
i want to do it right there in the array declaration, without assigning var = /pattern/
jxv has joined #ruby
cabotto has quit [Remote host closed the connection]
cabotto has joined #ruby
<apeiros>
latemus: #{} is for interpolation
<apeiros>
that is, if you want to put dynamic stuff in your regex
<apeiros>
>> foo = [/array with regex/] # none needed for a plain regex
<apeiros>
charliesome: how are things? in which part of the world are you working nowadays?
<charliesome>
i'm in berlin at the moment!
<apeiros>
or living, for that matter :D
<apeiros>
oooh, close!
<apeiros>
ping me when you visit good old switzerland, will you? :)
<charliesome>
heading back home in about a week though
<charliesome>
ah, i should have! i spent a few days in zürich a few weeks ago
<apeiros>
:-O
<apeiros>
:'(
<apeiros>
well, lets hope there's a next time
Guest22516 has joined #ruby
csk157_1 has quit [Ping timeout: 248 seconds]
<latemus>
yay, it was just a paren in the wrong position. thanks your your help apeiros
<apeiros>
yw
matt[m]5 has joined #ruby
zautomata has joined #ruby
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ltem has joined #ruby
Guest89500 has joined #ruby
danielglh has quit [Remote host closed the connection]
InfinityFye has quit [Ping timeout: 260 seconds]
selim has quit [Ping timeout: 248 seconds]
cdg has joined #ruby
selim has joined #ruby
alfiemax has joined #ruby
Guest22516 is now known as pax
Technodrome has joined #ruby
pax is now known as Guest61180
cdg has quit [Ping timeout: 252 seconds]
troulouliou_div2 has quit [Ping timeout: 240 seconds]
alfiemax has quit [Ping timeout: 240 seconds]
<[[thufir]]>
do many people use emacs? looks kinda like aptana is perhaps the only open source "ide" for ruby?
jdawgaz has joined #ruby
houhoulis has joined #ruby
sepp2k1 has joined #ruby
<dminuoso>
[[thufir]]: RubyMine is probably the most full fledged Ruby IDE, though emacs/vim can get you pretty far. There's also some other modern editors with integrations in that direction like atom
<dminuoso>
Never even heard of aptana
charliesome has quit [Ping timeout: 248 seconds]
brendan- has joined #ruby
jottr has quit [Ping timeout: 255 seconds]
sepp2k2 has joined #ruby
Sightes has quit [Quit: WeeChat 1.9.1]
sepp2k has quit [Ping timeout: 260 seconds]
Sightes has joined #ruby
sepp2k1 has quit [Ping timeout: 260 seconds]
<LenPayne>
Aptana is Eclipse-based. So it's a set of plugins on top of Eclipse that focus it away from Java and more into PHP/Ruby/JavaScript style practices.
Sightes has quit [Client Quit]
Jsilver has joined #ruby
Jsilver has quit [Client Quit]
shinnya has quit [Ping timeout: 248 seconds]
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
jdawgaz has joined #ruby
<atmosx>
Anyone familiar with lita chatops bot?
jdawgaz has quit [Client Quit]
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
ogres has joined #ruby
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
<apeiros>
!fixcon jdawgaz
csk157_1 has joined #ruby
<apeiros>
bad bot
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
<Papierkorb>
reddit is leaking again
<apeiros>
!fixcon jdawgaz
<apeiros>
oh, bad apeiros. had a space in front of the !
cabotto has quit []
csk157_1 has quit [Ping timeout: 240 seconds]
dviola has joined #ruby
Sightes has joined #ruby
matt[m]5 has left #ruby ["User left"]
cschneid_ has joined #ruby
danielglh has joined #ruby
Pierreb|home has quit [Ping timeout: 255 seconds]
hahuang65 has joined #ruby
cschneid_ has quit [Ping timeout: 246 seconds]
hahuang65 has quit [Ping timeout: 264 seconds]
cdg has joined #ruby
bauruine has quit [Read error: Connection reset by peer]
bauruine has joined #ruby
<dminuoso>
apeiros: you just need weechat with smart filter ;p
<dminuoso>
I never saw a thing.
Guest61180 is now known as pax
pax is now known as Guest14745
alfiemax has joined #ruby
hhffppff has joined #ruby
csk157_1 has joined #ruby
drbroiler has joined #ruby
csk157_1 has quit [Quit: WeeChat 1.9.1]
csk157 has joined #ruby
Sightes has quit [Quit: WeeChat 1.9.1]
orbyt_ has joined #ruby
Sightes has joined #ruby
danielglh has quit [Quit: ZNC 1.6.4+deb1 - http://znc.in]
belmoussaoui_ has quit [Ping timeout: 255 seconds]
guille-moe has joined #ruby
5EXAAOGWE has quit [Client Quit]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
troulouliou_dev has joined #ruby
troulouliou_dev has quit [Quit: Leaving]
houhoulis has quit [Remote host closed the connection]
troulouliou_dev has joined #ruby
nadir has joined #ruby
Emmanuel_Chanel has quit [Quit: Leaving]
ptx0 has joined #ruby
enterprisey has joined #ruby
eroux has quit [Quit: ZZZzzz… ZZZzzz…]
csk157 has joined #ruby
dstrunk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Immune has joined #ruby
jottr has joined #ruby
Quentinius has joined #ruby
milardovich has joined #ruby
Emmanuel_Chanel has joined #ruby
Quentinius has quit [Client Quit]
jottr has quit [Ping timeout: 248 seconds]
troys has quit [Quit: Bye]
jamesaxl has quit [Read error: Connection reset by peer]
Quentinius has joined #ruby
huyderman has quit [Remote host closed the connection]
jamesaxl has joined #ruby
guille-moe has quit [Remote host closed the connection]
guille-moe has joined #ruby
Quentinius has quit [Client Quit]
csk157 has quit [Ping timeout: 240 seconds]
|ifei5good has quit [Read error: Connection reset by peer]
|ifei5g00d has joined #ruby
|ifei5g00d has quit [Read error: Connection reset by peer]
jottr has joined #ruby
guille-moe has quit [Ping timeout: 240 seconds]
|ifei5g00d has joined #ruby
skinkitten has joined #ruby
|ifei5g00d has quit [Read error: Connection reset by peer]
|ifei5g00d has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
guacamole has quit [Quit: My face has gone to sleep. ZZZzzz…]
Technodrome has joined #ruby
Ltem has quit [Quit: Leaving]
zautomata has joined #ruby
Bhootrk_ has joined #ruby
Bhootrk_ has quit [Max SendQ exceeded]
guacamole has joined #ruby
Bhootrk_ has joined #ruby
Bhootrk_ has quit [Max SendQ exceeded]
dn` has quit [Ping timeout: 248 seconds]
cschneid_ has joined #ruby
orbyt_ has joined #ruby
cdg has joined #ruby
cdg has quit [Ping timeout: 240 seconds]
[[thufir]] has quit [Quit: Leaving.]
[[thufir]] has joined #ruby
johnny56 has joined #ruby
dn` has joined #ruby
milardovich has quit [Ping timeout: 260 seconds]
dn` has quit [Ping timeout: 240 seconds]
guacamole has quit [Quit: My face has gone to sleep. ZZZzzz…]
blackmesa has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has joined #ruby
gauravgoyal has joined #ruby
troulouliou_dev has quit [Quit: Leaving]
michael1 has quit [Ping timeout: 258 seconds]
my-nick has joined #ruby
hahuang65 has joined #ruby
cdg has joined #ruby
guacamole has joined #ruby
hahuang65 has quit [Ping timeout: 248 seconds]
gauravgoyal has quit [Remote host closed the connection]
csk157 has joined #ruby
alfiemax has joined #ruby
cdg has quit [Ping timeout: 264 seconds]
mson has quit [Quit: Connection closed for inactivity]
<zanoni>
slightly ot" but if anyone knows - if I'm using Nginx as a reverse proxy with Thin, over TCP (not sockets) , does Thin need any special configuring to know about the relationship?