<c-c>
now that read gives over 2,4 million loops per minute without load (2xfaster than with my earlier begin-rescue-next failboat :)
<c-c>
that should suffice for sending user commands to engine
hfp_work has joined #ruby
jottr_ has joined #ruby
workmad3 has joined #ruby
jottr_ has quit [Ping timeout: 264 seconds]
harfangk___ has quit [Ping timeout: 240 seconds]
harfangk__ has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 258 seconds]
harfangk_ has quit [Ping timeout: 260 seconds]
harfangk has quit [Ping timeout: 260 seconds]
vee__ has quit [Ping timeout: 260 seconds]
tvw has quit []
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vee__ has joined #ruby
s3nd1v0g1us has joined #ruby
s3nd1v0g1us has quit [Max SendQ exceeded]
SeepingN has quit [Ping timeout: 252 seconds]
s3nd1v0g1us has joined #ruby
s3nd1v0g1us has quit [Max SendQ exceeded]
alfiemax has joined #ruby
jottr_ has joined #ruby
SCHAPiE has quit [Read error: Connection reset by peer]
s3nd1v0g1us has joined #ruby
s3nd1v0g1us has quit [Max SendQ exceeded]
alfiemax has quit [Ping timeout: 240 seconds]
postmodern has quit [Remote host closed the connection]
postmodern has joined #ruby
SCHAPiE has joined #ruby
govg has quit [Ping timeout: 246 seconds]
troys is now known as troys_
govg has joined #ruby
vee__ has quit [Ping timeout: 255 seconds]
oetjenj has joined #ruby
vee__ has joined #ruby
jxv has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jxv has joined #ruby
|ifei5g00d has joined #ruby
vee__ has quit [Ping timeout: 240 seconds]
creeg has quit [Remote host closed the connection]
Technodrome has joined #ruby
creeg has joined #ruby
jxv has quit [Client Quit]
jottr has joined #ruby
jxv has joined #ruby
vee__ has joined #ruby
<c-c>
I have a module A containing module Helper with method loop that sets @t = Time.now.to_i. Also have classes Foo and Bar in module A, that 'include Helper'. Why is it that the 'Thread.current.to_s' is the thread in which Helper was declared?
<c-c>
- more exactly, why is it that the class instances of Foo and Bar calling method loop have different @t, but the same Thread.current?
jottr_ has quit [Ping timeout: 248 seconds]
jphase has quit [Remote host closed the connection]
guardianx has joined #ruby
haylon_ has joined #ruby
d^sh has quit [Ping timeout: 240 seconds]
troys_ is now known as troys
d^sh has joined #ruby
troys is now known as troys_
troys_ is now known as troys
troys is now known as troys_
oetjenj has quit [Remote host closed the connection]
oetjenj has joined #ruby
ur5us has joined #ruby
jxv has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nowhereman has quit [Remote host closed the connection]
thomasv314 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ur5us has quit [Remote host closed the connection]
haylon_ has quit [Quit: Leaving]
hahuang65 has joined #ruby
gizmore has joined #ruby
hahuang65 has quit [Ping timeout: 248 seconds]
uZiel has quit [Ping timeout: 248 seconds]
guacamole has quit [Quit: My face has gone to sleep. ZZZzzz…]
cdg has joined #ruby
gizmore|2 has quit [Ping timeout: 248 seconds]
ur5us has joined #ruby
d^sh has quit [Ping timeout: 240 seconds]
vee__ has joined #ruby
cdg has quit [Ping timeout: 252 seconds]
|ifei5good has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
d^sh has joined #ruby
<TViernion>
Anyone in here maybe able to help me look into an issue? https://gist.github.com/jasonmacer/1acc639b0f220160096ec7bf575a1155 this is the log. I'm getting a NameError: uninitialized constant ActionDispatch::ParamsParser and im wondering if anyone has seen it before.
camilasan has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
|ifei5g00d has quit [Ping timeout: 260 seconds]
hfp_work has quit [Quit: bye]
uZiel has joined #ruby
workmad3 has joined #ruby
hfp_work has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
knightblader has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
jottr has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has joined #ruby
orbyt_ has joined #ruby
orbyt_ has quit [Client Quit]
jottr has quit [Ping timeout: 240 seconds]
griffindy has quit [Read error: Connection reset by peer]
alfiemax has quit [Ping timeout: 240 seconds]
orbyt_ has joined #ruby
troys is now known as troys_
cdg has joined #ruby
cdg has quit [Ping timeout: 255 seconds]
cadillac_ has quit [Quit: I quit]
cadillac_ has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ericnw has quit [Remote host closed the connection]
|ifei5good has quit [Read error: Connection reset by peer]
|ifei5g00d has joined #ruby
alfiemax has joined #ruby
alfiemax has quit [Read error: Connection reset by peer]
alfiemax has joined #ruby
jjaii9 has quit [Read error: Connection reset by peer]
jjaii9 has joined #ruby
jxv has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zanoni has quit [Ping timeout: 240 seconds]
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
alfiemax has joined #ruby
apparition has joined #ruby
uZiel has joined #ruby
_whitelogger has joined #ruby
mson has quit [Quit: Connection closed for inactivity]
mim1k has joined #ruby
gix has quit [Ping timeout: 255 seconds]
mim1k has quit [Ping timeout: 248 seconds]
dionysus69 has joined #ruby
gix has joined #ruby
quobo has quit [Quit: Connection closed for inactivity]
hanmac has joined #ruby
DebianUser_ has quit [Quit: DebianUser_]
Technodrome has joined #ruby
hahuang65 has joined #ruby
jjaii9 has quit [Read error: Connection reset by peer]
jjaii9 has joined #ruby
pee has joined #ruby
hahuang65 has quit [Ping timeout: 248 seconds]
jxv has joined #ruby
imode has joined #ruby
jxv has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
knightblader has quit [Quit: WeeChat 1.9.1]
jxv has joined #ruby
uZiel has quit [Remote host closed the connection]
dionysus69 has quit [Ping timeout: 260 seconds]
ahrs has quit [Remote host closed the connection]
ahrs has joined #ruby
workmad3 has joined #ruby
Defenestrate has quit [Ping timeout: 248 seconds]
Defenestrate has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
arescorpio has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jxv has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr has joined #ruby
jxv has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
mim1k has joined #ruby
uZiel has joined #ruby
arescorpio has quit [Ping timeout: 260 seconds]
mim1k has quit [Ping timeout: 248 seconds]
gix has quit [Ping timeout: 240 seconds]
chouhoulis has quit [Remote host closed the connection]
pee has quit [Quit: Page closed]
aupadhye has joined #ruby
gix has joined #ruby
Defenestrate has quit [Quit: This computer has gone to sleep]
alfiemax has quit [Remote host closed the connection]
apparition has quit [Quit: Bye]
quobo has joined #ruby
k3rn31 has joined #ruby
Defenestrate has joined #ruby
Defenestrate has quit [Changing host]
Defenestrate has joined #ruby
cdg has joined #ruby
cdg has quit [Ping timeout: 255 seconds]
mjolnird has joined #ruby
alfiemax has joined #ruby
levifig has quit [Quit: Farewell]
levifig has joined #ruby
jxv has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ChiLL_SurF has joined #ruby
<ChiLL_SurF>
hi there. I am using windows 7 and i have just installed ruby
<ChiLL_SurF>
i want to install bundler but the command "gem install bundler" doesnt seem to work. gem is not a recognised command. i try it in command prompt and in ruby terminal
ectos has quit [Quit: WeeChat 1.9.1]
def_jam has quit [Quit: WeeChat 1.9.1]
jottr has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
eblip has joined #ruby
jottr has quit [Ping timeout: 248 seconds]
Immune has quit [Ping timeout: 246 seconds]
s2013 has joined #ruby
ectos has joined #ruby
guardianx has joined #ruby
damasta has joined #ruby
<damasta>
Anyone working on a programming project and need an extra set of hands?
<ChiLL_SurF>
damasta i need some rookie help
<damasta>
What's up?
<ChiLL_SurF>
i am trying to install ruby and rails on a window s7 system with no luck. i just found out i should uninstall latest version and use the 2.3.0 one. i just did but now when i extract the installation files and use cmd to cd in the files folder, i try to run "ruby init.rb" and it says ruby is not recognised.
<ChiLL_SurF>
i am trying to install the 2.3.0 dev kit right now
<baweaver>
Rather hard to run a ruby command without ruby installed.
s3nd1v0g1us has quit [Remote host closed the connection]
milardovich has quit [Remote host closed the connection]
alfiemax has quit [Remote host closed the connection]
marr has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
milardovich has joined #ruby
<latemus>
elomatreb: thanks
uZiel has joined #ruby
<hanmac>
ChiLL_SurF: you don't put your platform stuff into the gemfile
milardovich has quit [Ping timeout: 240 seconds]
guardianx has quit []
snickers has joined #ruby
hahuang65 has joined #ruby
claudiuinberlin has joined #ruby
alfiemax has joined #ruby
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
hahuang65 has quit [Ping timeout: 240 seconds]
aupadhye has quit [Quit: Leaving]
<ChiLL_SurF>
hanmac in order to make this simple code work, where do i have to create a file and add the code?
<ChiLL_SurF>
its the first time i am using ruby so i am not experienced at all
rippa has joined #ruby
HTTP_____GK1wmSU has joined #ruby
mn3m has quit [Quit: mn3m]
HTTP_____GK1wmSU has quit [Excess Flood]
kith has joined #ruby
HTTP_____GK1wmSU has joined #ruby
HTTP_____GK1wmSU has quit [Excess Flood]
snickers has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Freshnuts has quit [Quit: Leaving]
HTTP_____GK1wmSU has joined #ruby
HTTP_____GK1wmSU has quit [Excess Flood]
MyMind has quit [Ping timeout: 240 seconds]
Pisuke has joined #ruby
workmad3 has joined #ruby
HTTP_____GK1wmSU has joined #ruby
HTTP_____GK1wmSU has quit [Excess Flood]
workmad3 has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
alfiemax has quit [Remote host closed the connection]
Devalo has joined #ruby
jojokaze has joined #ruby
alfiemax has joined #ruby
Devalo has quit [Ping timeout: 240 seconds]
DTZUZO has quit [Ping timeout: 240 seconds]
Emmanuel_Chanel has quit [Read error: Connection reset by peer]
Yxhuvud has joined #ruby
InfinityFye has joined #ruby
<jojokaze>
Hi all, in the linked article the author is giving an example about “Drivable” and explains “… probably drivable is a method, defined for a Class directly or by extending with some module”. He says that it’s trivial for non-juniors. I want to earn about it. Can you please point me to an article where I can learn more about it ? http://zverok.github.io/blog/2017-10-22-stop-magic.html
Guest96661 has joined #ruby
kookmai has joined #ruby
marr has quit [Ping timeout: 248 seconds]
harfangk has joined #ruby
harfangk_ has joined #ruby
michaeldaryl has joined #ruby
harfangk__ has joined #ruby
harfangk___ has joined #ruby
harfangk____ has joined #ruby
michaeldaryl has quit [Quit: Leaving]
michaeldaryl has joined #ruby
michaeldaryl has quit [Client Quit]
michaeldaryl has joined #ruby
michaeldaryl has left #ruby [#ruby]
yqt has joined #ruby
cdg has joined #ruby
dionysus69 has joined #ruby
cdg has quit [Ping timeout: 255 seconds]
apeiros has joined #ruby
tomphp has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
bruno- has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jojokaze has quit [Quit: jojokaze]
lxsameer has joined #ruby
imode has quit [Ping timeout: 240 seconds]
alfiemax has quit [Remote host closed the connection]
enterprisey has quit [Ping timeout: 240 seconds]
FahmeF_ has joined #ruby
jottr has joined #ruby
kookmai has quit [Ping timeout: 260 seconds]
^mtkd has quit [Read error: Connection reset by peer]
FahmeF has quit [Ping timeout: 255 seconds]
mtkd has joined #ruby
harfangk has quit [Ping timeout: 240 seconds]
harfangk____ has quit [Ping timeout: 255 seconds]
harfangk___ has quit [Ping timeout: 255 seconds]
harfangk has joined #ruby
jottr has quit [Ping timeout: 248 seconds]
harfangk_ has quit [Ping timeout: 248 seconds]
harfangk__ has quit [Ping timeout: 240 seconds]
harfangk_ has joined #ruby
harfangk__ has joined #ruby
harfangk___ has joined #ruby
harfangk____ has joined #ruby
FahmeF_ has quit [Ping timeout: 248 seconds]
FahmeF has joined #ruby
jojokaze has joined #ruby
snickers has joined #ruby
atmosx has quit [Quit: WeeChat 1.4]
uZiel has joined #ruby
atmosx has joined #ruby
jojokaze has quit [Quit: jojokaze]
harfangk_ has quit [Remote host closed the connection]
harfangk__ has quit [Remote host closed the connection]
harfangk has quit [Remote host closed the connection]
harfangk____ has quit [Remote host closed the connection]
harfangk___ has quit [Remote host closed the connection]
harfangk has joined #ruby
harfangk_ has joined #ruby
postmodern has quit [Quit: Leaving]
hahuang65 has joined #ruby
aruns has joined #ruby
<aruns>
Hi, looking into Ruby's double pipe assignment operator, for e.g. a ||= b, is this to check if variable 'a' is defined, and if it is not, and 'b' is defined, then 'a' is initialised and takes b's value?
<aruns>
As that is what I have found when testing in the REPL.
biberu has joined #ruby
porfa has quit [Quit: porfa]
harfangk__ has joined #ruby
hahuang65 has quit [Ping timeout: 258 seconds]
<apeiros>
aruns: a ||= b expands to a || a = b, that is, if a is falsy (nil or false), it gets b assigned
<aruns>
apeiros: I see, yeah, I've just run a few tests and this confirms, thanks.
<apeiros>
note that &&= expands the same, while most other `a <op>= b` expand to `a = a <op> b`, e.g. `a += b` expands to `a = a + b`
snickers has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
uZiel has quit [Ping timeout: 248 seconds]
cadillac_ has quit [Ping timeout: 260 seconds]
<aruns>
Yeah, I'm familiar with +=, %= etc
<aruns>
Just I don't recall seeing ||= before
<apeiros>
the difference is mostly to avoid a superfluous method call, e.g. with `a.foo ||= b`, if it'd expand to `a.foo = a.foo || b`, there'd be a superfluous call to a.foo= in case of a.foo being truthy.
<apeiros>
and the double pipe is just "or" btw.
cadillac_ has joined #ruby
zanoni has joined #ruby
<aruns>
Yeah, I know :D
<aruns>
Thanks.
harfangk_ has quit [Ping timeout: 248 seconds]
harfangk has quit [Ping timeout: 248 seconds]
harfangk__ has quit [K-Lined]
jottr has joined #ruby
aruns has quit [Quit: leaving]
enterprisey has joined #ruby
mikecmpbll has joined #ruby
marr has joined #ruby
uZiel has joined #ruby
claudiuinberlin has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
ptx0 has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 252 seconds]
mostlybadfly has joined #ruby
porfa has joined #ruby
drbroiler has joined #ruby
guardianx has joined #ruby
enterprisey has quit [Quit: Leaving]
alex`` has joined #ruby
HTTP_____GK1wmSU has joined #ruby
H4v0k is now known as Tony-St4rk
HTTP_____GK1wmSU has quit [Excess Flood]
HTTP_____GK1wmSU has joined #ruby
HTTP_____GK1wmSU has quit [Excess Flood]
HTTP_____GK1wmSU has joined #ruby
HTTP_____GK1wmSU has left #ruby [#ruby]
atmosx has quit [Ping timeout: 246 seconds]
uZiel has quit [Ping timeout: 248 seconds]
Fraeon has joined #ruby
marr has quit [Ping timeout: 252 seconds]
dionysus69 has quit [Ping timeout: 240 seconds]
<latemus>
is there a method like .strip but it lets you pass in a string to remove? like 'sed -e "s/str//g"'
<latemus>
.gsub and .slice looks like .gsub is what i need, thx
HTTP_____GK1wmSU has joined #ruby
ta has quit [Remote host closed the connection]
ta has joined #ruby
HTTP_____GK1wmSU has quit [Excess Flood]
uZiel has joined #ruby
<apeiros>
latemus: it if it's from the end, .chomp("str") can also be used. gsub will remove from everywhere in the string (unless you use a regex with the appropriate anchoring)
milardovich has quit []
HTTP_____GK1wmSU has joined #ruby
milardovich has joined #ruby
HTTP_____GK1wmSU has quit [Excess Flood]
alveric has joined #ruby
HTTP_____GK1wmSU has joined #ruby
HTTP_____GK1wmSU has quit [Excess Flood]
guardianx has quit []
snickers has joined #ruby
snickers has quit [Client Quit]
n13z has quit [Ping timeout: 240 seconds]
Psybur has joined #ruby
mtkd has quit [Read error: Connection reset by peer]
^mtkd has joined #ruby
HTTP_____GK1wmSU has joined #ruby
HTTP_____GK1wmSU has quit [Excess Flood]
<elomatreb>
And if you want to remove/replace individual characters, #tr is the best choice
HTTP_____GK1wmSU has joined #ruby
HTTP_____GK1wmSU has left #ruby [#ruby]
nfk has joined #ruby
HTTP_____GK1wmSU has joined #ruby
HTTP_____GK1wmSU has quit [Excess Flood]
tastytf has quit [Remote host closed the connection]
tastytf has joined #ruby
tastytf has quit [Remote host closed the connection]
tastytf has joined #ruby
HTTP_____GK1wmSU has joined #ruby
HTTP_____GK1wmSU has left #ruby [#ruby]
tastytf has quit [Remote host closed the connection]
tastytf has joined #ruby
hahuang65 has joined #ruby
vee__ has quit [Ping timeout: 258 seconds]
<apeiros>
for remove, delete over tr ;-)
hahuang65 has quit [Ping timeout: 240 seconds]
apeiros has quit [Remote host closed the connection]
Guest96661 has quit [Ping timeout: 246 seconds]
^mtkd has quit [Read error: Connection reset by peer]
mtkd has joined #ruby
s2013 has joined #ruby
ta has quit [Ping timeout: 248 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DebianUser_ has joined #ruby
alveric has quit [Quit: WeeChat 1.9.1]
ta has joined #ruby
vee__ has joined #ruby
apparition has joined #ruby
alfiemax has joined #ruby
vee__ has quit [Ping timeout: 258 seconds]
Technodrome has joined #ruby
Guest96661 has joined #ruby
vee__ has joined #ruby
apeiros has joined #ruby
ChiLL_SurF has quit [Ping timeout: 248 seconds]
ShekharReddy has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DoubleMalt has quit [Ping timeout: 240 seconds]
Guest96661 has quit [Ping timeout: 248 seconds]
DoubleMalt has joined #ruby
alfiemax has quit [Remote host closed the connection]
drbroiler has quit [Ping timeout: 240 seconds]
sepp2k has joined #ruby
vee__ has quit [Ping timeout: 248 seconds]
dionysus69 has joined #ruby
lxsameer has quit [Quit: WeeChat 1.9.1]
vee__ has joined #ruby
alfiemax has joined #ruby
Defenestrate has quit [Quit: This computer has gone to sleep]
wolfshappen has quit [Quit: Waffs have technical problems too]
ski4x7 has joined #ruby
wolfshappen has joined #ruby
ski7777 has quit [Ping timeout: 255 seconds]
alfiemax has quit [Remote host closed the connection]
dramagods has joined #ruby
tomlukeywood has joined #ruby
DLSteve has joined #ruby
_whitelogger has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
dramagods has quit []
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
|ifei5good has joined #ruby
|ifei5g00d has quit [Ping timeout: 258 seconds]
hahuang65 has joined #ruby
reber has joined #ruby
milardovich has quit [Remote host closed the connection]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
milardovich has joined #ruby
jxv has joined #ruby
hahuang65 has quit [Ping timeout: 240 seconds]
milardovich has quit [Ping timeout: 248 seconds]
kith has quit [Quit: kith]
nadir has quit [Quit: Connection closed for inactivity]
gauravgoyal has joined #ruby
chouhoulis has joined #ruby
alfiemax has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
gauravgoyal has quit [Ping timeout: 258 seconds]
uZiel has joined #ruby
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
alfiemax has quit [Remote host closed the connection]
tomlukeywood has quit [Quit: Leaving.]
milardovich has quit [Ping timeout: 248 seconds]
workmad3 has joined #ruby
alfiemax has joined #ruby
workmad3 has quit [Ping timeout: 255 seconds]
santi has joined #ruby
alfiemax has quit [Remote host closed the connection]
Technodrome has joined #ruby
alfiemax has joined #ruby
alfiemax has quit [Read error: Connection reset by peer]
santi has quit [Quit: Leaving]
alfiemax has joined #ruby
santi has joined #ruby
mson has joined #ruby
alfiemax has quit [Remote host closed the connection]
tastytf has quit [Ping timeout: 246 seconds]
guacamole has joined #ruby
John___ has joined #ruby
jaredwilkerson has joined #ruby
jaredwilkerson has quit [Client Quit]
ShekharReddy has quit [Quit: Connection closed for inactivity]
guille-moe has joined #ruby
guille-moe has quit [Ping timeout: 240 seconds]
guacamole has quit [Quit: My face has gone to sleep. ZZZzzz…]
Guest96661 has joined #ruby
Psybur has quit [Ping timeout: 258 seconds]
santi has quit [Remote host closed the connection]
mtkd has quit [Read error: Connection reset by peer]
mtkd has joined #ruby
nofxx has quit [Ping timeout: 248 seconds]
hahuang65 has joined #ruby
cadillac_ has joined #ruby
nofxx has joined #ruby
hahuang65 has quit [Ping timeout: 240 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
quaristice has joined #ruby
orbyt_ has joined #ruby
quaristice has quit [Client Quit]
Technodrome has joined #ruby
Dimik has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
workmad3 has joined #ruby
milardovich has joined #ruby
Asher has joined #ruby
railswebdev has joined #ruby
thinkpad has quit [Ping timeout: 255 seconds]
alfiemax has joined #ruby
Vile` has quit [Read error: Connection reset by peer]
alfiemax has quit [Read error: Connection reset by peer]
alfiemax has joined #ruby
govg has quit [Ping timeout: 240 seconds]
dviola has joined #ruby
rvca has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
anisha has joined #ruby
anisha has quit [Client Quit]
milardovich has quit [Ping timeout: 240 seconds]
goyox86 has joined #ruby
ta has quit [Remote host closed the connection]
jordanm has quit [Remote host closed the connection]
guacamole has quit [Quit: My face has gone to sleep. ZZZzzz…]
tvw has joined #ruby
ta has joined #ruby
guille-moe has joined #ruby
chouhoul_ has joined #ruby
workmad3 has quit [Ping timeout: 258 seconds]
chouhoulis has quit [Ping timeout: 258 seconds]
s3nd1v0g1us has joined #ruby
ta has quit [Remote host closed the connection]
|ifei5g00d has joined #ruby
|ifei5good has quit [Read error: Connection reset by peer]
cschnei__ has quit [Remote host closed the connection]
zzxc has quit [Remote host closed the connection]
cschneid_ has joined #ruby
cdg has joined #ruby
ta has joined #ruby
ta has quit [Remote host closed the connection]
ledestin has joined #ruby
ta has joined #ruby
alfiemax has quit [Remote host closed the connection]
goyox86 has quit [Quit: goyox86]
Emmanuel_Chanel has joined #ruby
cschneid_ has quit [Ping timeout: 252 seconds]
goyox86 has joined #ruby
guacamole has joined #ruby
lxsameer has joined #ruby
PaulCapestany has quit [Ping timeout: 248 seconds]
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
Devalo has joined #ruby
PaulCapestany has joined #ruby
dionysus69 has joined #ruby
Devalo has quit [Ping timeout: 246 seconds]
goyox86 has quit [Quit: goyox86]
PaulCapestany has quit [Read error: Connection reset by peer]
guacamole has quit [Quit: My face has gone to sleep. ZZZzzz…]
uZiel has quit [Read error: Connection reset by peer]
Devalo has joined #ruby
goyox86 has joined #ruby
PaulCape_ has joined #ruby
raynold has joined #ruby
govg has joined #ruby
orbyt_ has joined #ruby
vipaca has joined #ruby
dionysus69 has quit [Ping timeout: 248 seconds]
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Azure has quit [Read error: Connection reset by peer]
Azure|dc has joined #ruby
milardovich has joined #ruby
dionysus69 has joined #ruby
PaulCape_ has quit [Read error: Connection reset by peer]
PaulCapestany has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
michael1 has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
dionysus69 has quit [Ping timeout: 240 seconds]
jamesaxl has joined #ruby
vipaca has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest96661 has quit [Ping timeout: 248 seconds]
dionysus69 has joined #ruby
railswebdev has joined #ruby
guacamole has joined #ruby
goyox86 has left #ruby [#ruby]
|ifei5g00d has quit [Read error: Connection reset by peer]
|ifei5good has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
hahuang65 has joined #ruby
|ifei5good has quit [Ping timeout: 252 seconds]
goyox86_ has joined #ruby
hahuang65 has quit [Ping timeout: 255 seconds]
mson has quit [Quit: Connection closed for inactivity]
dcluna has quit [Ping timeout: 248 seconds]
guille-moe has quit [Ping timeout: 246 seconds]
dcluna has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
goyox86_ has quit [Quit: goyox86_]
alfiemax has joined #ruby
goyox86_ has joined #ruby
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome_ has joined #ruby
charliesome has quit [Ping timeout: 240 seconds]
Technodrome has joined #ruby
uZiel_ has joined #ruby
selim has quit [Ping timeout: 260 seconds]
charliesome has joined #ruby
charliesome_ has quit [Ping timeout: 240 seconds]
selim has joined #ruby
alfiemax_ has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
|ifei5good has joined #ruby
railswebdev has joined #ruby
|ifei5good has quit [Read error: Connection reset by peer]
|ifei5good has joined #ruby
jjaii9 has joined #ruby
leah2 has quit [Ping timeout: 255 seconds]
alfiemax_ has quit [Remote host closed the connection]
alfiemax has joined #ruby
mjolnird has quit [Quit: Leaving]
leah2 has joined #ruby
Azure|dc has quit [Ping timeout: 240 seconds]
guacamole has quit [Quit: My face has gone to sleep. ZZZzzz…]
workmad3 has joined #ruby
alfiemax has quit [Ping timeout: 255 seconds]
Azure has joined #ruby
DebianUser_ has quit [Quit: DebianUser_]
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
alfiemax has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
alfiemax has quit [Read error: Connection reset by peer]
PaulCapestany has quit [Read error: Connection reset by peer]
PaulCape_ has joined #ruby
alfiemax has joined #ruby
csk157 has joined #ruby
Asher1 has joined #ruby
yqt has quit [Ping timeout: 248 seconds]
Dimik has quit [Remote host closed the connection]
bluesmonk has joined #ruby
Asher has quit [Ping timeout: 258 seconds]
<bluesmonk>
short question, not trying to start a war here. RVM or rbenv?
<bluesmonk>
On ubuntu
jjaii9_ has joined #ruby
<matthewd>
bluesmonk: rbenv or chruby
<bluesmonk>
I don't plan to develop stuff using ruby, I was using the default ruby from the apt repos and it seems that, at some point, I have to chown the /var/lib/gems folder and it seems that either RVM or rbenv solves that. Never heard of chruby
jjaii9 has quit [Ping timeout: 258 seconds]
Azure has quit [Read error: Connection reset by peer]
Heph_ has quit [Quit: Leaving]
cschneid_ has joined #ruby
<matthewd>
bluesmonk: Yeah, if you're using a system-global installation, you'll need `sudo gem install`. Version managers do solve the problem, by keeping everything under $HOME.
tvw has quit []
bilal80 has quit [Quit: bilal80]
hahuang65 has joined #ruby
cschneid_ has quit [Ping timeout: 258 seconds]
jjaii9_ has quit []
hahuang65 has quit [Ping timeout: 252 seconds]
<bluesmonk>
matthewd: what are the downsides of not separating both layers?
Azure has joined #ruby
<matthewd>
bluesmonk: I don't follow the question, sorry
<dminuoso>
bluesmonk, a user-local installation is less hazardous because you don't need to grant gem root privileges, also it's more convenient to be able to install packages without sudo.
railswebdev has joined #ruby
jphase has joined #ruby
<bluesmonk>
Ok I installed rbenv, and ruby-build
<bluesmonk>
now I do rbenv install 2.4.2 and receive an error...
<bluesmonk>
configure: error: C compiler cannot create executables
imode has joined #ruby
<matthewd>
bluesmonk: rbenv needs to be active in your current shell
jxv has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nadir has joined #ruby
cschneid_ has joined #ruby
<bluesmonk>
matthewd: I don't get that. How do you 'activate' rbenv?
<matthewd>
Have you got all the packages from the above link installed?
<bluesmonk>
I do
|ifei5good has joined #ruby
<bluesmonk>
I ran into that link before
|ifei5g00d has quit [Read error: Connection reset by peer]
cdg has quit [Remote host closed the connection]
<matthewd>
Hrmm... I'm really not sure why it would be failing to identify your compiler
cdg has joined #ruby
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<matthewd>
Oh.. is it expected that it's using /home/diego/anaconda3/bin/gcc ?
ur5us has joined #ruby
<bluesmonk>
yes, I suppose.
<bluesmonk>
I'm pointing to that compiler from other libraries
buahaha has joined #ruby
<bluesmonk>
I kind of had the same problem before with Anaconda
<bluesmonk>
and solved it updating the compiler using the conda manager
<matthewd>
I'm going to guess that the hijacked gcc is going to have something to do with the problem
alfiemax_ has joined #ruby
<bluesmonk>
it's not like it is hijacked
<matthewd>
Google tells me Anaconda is a Python version manager. I'm unclear why it would have any business getting involved in installing anything that's not Python, let alone Ruby.
cdg has quit [Ping timeout: 246 seconds]
<bluesmonk>
because cpython is compiled, I guess
<bluesmonk>
the interpreter I mean
<bluesmonk>
I'm lost here.
<matthewd>
'gcc' isn't running the GCC installed by the system packages, which potentially invalidates any expectations the required-packages from the wiki suggests. That's hijacked enough for me.
jrafanie has joined #ruby
alfiemax has quit [Ping timeout: 248 seconds]
dionysus69 has joined #ruby
railswebdev has joined #ruby
|ifei5good has quit [Ping timeout: 255 seconds]
|ifei5g00d has joined #ruby
Asher1 is now known as Asher
Dimik has joined #ruby
|ifei5g00d has quit [Read error: Connection reset by peer]
Immune has joined #ruby
|ifei5g00d has joined #ruby
jphase has joined #ruby
bluesmonk has quit [Quit: WeeChat 1.4]
jphase has quit [Ping timeout: 252 seconds]
uZiel_ has quit [Ping timeout: 260 seconds]
InfinityFye has quit [Quit: Leaving]
goyox86_ has quit [Quit: goyox86_]
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
railswebdev has joined #ruby
shinnya has quit [Ping timeout: 240 seconds]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bruno- has joined #ruby
Psybur has quit [Ping timeout: 240 seconds]
eckhardt has joined #ruby
eckhardt_ has joined #ruby
MrBusiness3 has joined #ruby
alfiemax_ has quit [Remote host closed the connection]
MrBismuth has quit [Ping timeout: 252 seconds]
eckhardt 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]
tomphp has joined #ruby
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
workmad3 has joined #ruby
cdg has joined #ruby
jdawgaz has joined #ruby
Psybur has joined #ruby
workmad3 has quit [Ping timeout: 248 seconds]
cdg has quit [Ping timeout: 252 seconds]
apeiros has quit [Remote host closed the connection]
jxv has joined #ruby
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
apeiros has joined #ruby
ta has joined #ruby
alfiemax has joined #ruby
railswebdev has joined #ruby
<dminuoso>
matthewd, fun fact. If you invoke `gcc` on macOS, it will run `clang` for you.
alfiemax has quit [Ping timeout: 255 seconds]
dionysus69 has quit [Ping timeout: 240 seconds]
apeiros has quit [Ping timeout: 252 seconds]
goyox86_ has joined #ruby
goyox86_ is now known as goyox86
lel has quit [Ping timeout: 248 seconds]
hahuang65 has joined #ruby
ArtCorvelay has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
marr has joined #ruby
tomphp has joined #ruby
hahuang65 has quit [Ping timeout: 260 seconds]
reber has quit [Quit: Leaving]
postmodern has joined #ruby
alfiemax has joined #ruby
alfiemax has quit [Ping timeout: 248 seconds]
Psybur has quit [Ping timeout: 240 seconds]
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Papierkorb>
RickHull: What exactly has the linking exception to do with a ruby game?
apeiros has joined #ruby
<RickHull>
rms loves matz, anyway :)
<Papierkorb>
c-c: That's not precise enough at all
<rubycoder37>
they both love each other
<c-c>
Papierkorb: nope
<Papierkorb>
c-c: Choosing a license is probably one of the most important (yet often overlooked) things to consider before publishing your project
<nickjj>
c-c, keep in mind you might not get a lot of usage if it's GPL
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Papierkorb>
nickjj: huh?
<Papierkorb>
Since when exactly does GPL software not get a lot of usage?
<Papierkorb>
The internet runs on GPL'd software, as does your phone
<rubycoder37>
the linux kernel gets lots of usage and it's GPL
<Papierkorb>
There are literally billions of devices out there only functioning because of GPL'd softare
<nickjj>
Papierkorb, come at it from a game developer's POV -- unless your game is entirely open source, i would be very hesitant to use a GPL licensed engine
<nickjj>
because it's so essential to my bottom line
<c-c>
*game engine license
<nickjj>
and chances are i would modify it, but if it's a closed source game selling for a profit, i might not want to push those changes upstream
<nickjj>
so i would simply choose another engine with a more flexible license?
<Papierkorb>
nickjj: Well, some people are more interested in freedom than allowing others to claim your work as their own
<c-c>
not "game" as in a bunch of rules and artwork, and the logic that combines them
<Papierkorb>
The important thing is that you c-c must decide on what you're looking for, and then choose a license based on that
jdawgaz has joined #ruby
<RickHull>
all of this is a factor -- how likely is the work to be used, incorporated into other software, and worked on by others
<c-c>
I think I'll just go with MIT or GPL
<matthewd>
Papierkorb: This is veering rapidly off topic
ta has quit [Remote host closed the connection]
apeiros has quit [Ping timeout: 240 seconds]
<c-c>
Or do you think there is a license that people who contribute to OS projects prefer?
ta has joined #ruby
<Papierkorb>
c-c: Make sure you understand their differences. you can use tldrlegal.com for a short summary if that'd help
<RickHull>
c-c: MIT/BSD is the license for open source
<RickHull>
c-c: GPL for free software
<RickHull>
as a rule of thumb
<RickHull>
it's important to understand the distinction(s) between open source software and free software, at least as GNU sees it
<rubycoder37>
free software is better because freedom matters
<ruby[bot]>
havenwood: # => NOTE: Specification.all called from /tmp/execpad-426276cd3577/source-426276cd3577:2:in `<main>' ...check link for more (https://eval.in/888896)
<c-c>
Very hard to tell if a feature of a license like "prohibit sublicensing" would be seen as a positive or negative. And would it be good to allow others get paid from ones "free" project or not
<Papierkorb>
I think choosing a license "just because it's popular" is not good
<RickHull>
havenwood: lol, that bot output is garbage
<c-c>
heh, point
<RickHull>
wtf is NOTE?
biberu has quit []
apeiros has quit [Ping timeout: 240 seconds]
<nickjj>
c-c, i think it really boils down to if you're ok with someone using your engine in any way they see fit (including selling a game based on it and modifying it without making their modifications public)
<nickjj>
if you're cool with that, then MIT is your best bet
<RickHull>
yes, MIT is most permissive including taking modifications closed source
<RickHull>
GPL limits the ability to take modifications closed source
<Papierkorb>
c-c: Well check up on a few popular licenses, what they allow or deny. Maybe make a list of those. and then think about all those points if they're important to you, and if yes, if you want to allow or deny that point. And then you should be able to find a license you like easily.
<c-c>
For example,. Mozilla public license allow sublicensing for money, warranty for money
<c-c>
(1.0)
<RickHull>
you can also consider having all contributors grant copyright to the org; then the org can freely change licenses, which could be a bug or a feature
<c-c>
vs GPL which prohibits such evil moneymongering
<Papierkorb>
c-c: I e.g. use GPLv3, MPL-2, or MIT, for my projects. I don't choose on what others may want out of it, but what I think is best for me and the project.
<RickHull>
c-c: what? GPL software is charged for everyday
<Papierkorb>
RickHull: If anything, CLAs turn people away faster than any FS/OSS license ever could
<c-c>
Hmm, are there any new hip Open Source licenses
<Papierkorb>
c-c: You can totally sell GPL software. GPL'd software doesn't have to be openly available on the internet (or anywhere) even.
<RickHull>
c-c: GPL just obligates to make the source available; it does not preclude charging money for downloads / builds / binaries
<Papierkorb>
c-c: You don't want your license to be hip, you want it to be court-tested if possible.
<c-c>
GPL3 says 'can not sublicense'
<Papierkorb>
Yup
<RickHull>
you can also make the source or binaries available under a different license
<RickHull>
if all the rightsholders agree
<RickHull>
dual license like mysql (used to?)
<Papierkorb>
And you can also license the game assets (graphics, texts, scripts, ...) under license A, and the engine under license B. That's perfectly acceptable too
<c-c>
Is there a license that allow the rightsholders to take over in some license-related coup and re-license the project exploiting it for all the dollars its worth?
<RickHull>
MIT
<RickHull>
heh, not really
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<RickHull>
the rightsholders don't need a coup
<RickHull>
the rightsholders are the kings
<Papierkorb>
c-c: Contributing code to a project generally doesn't waive your rights to your contributed code.
<c-c>
What I don't understand is, what does it mean when a license allows Patent Claims?
<c-c>
who would be claiming from who, and to what end?
mjolnird has quit [Remote host closed the connection]
<Papierkorb>
c-c: It basically means that a company holding rights to a patent who contribute code to a project, that this project (and every user of that project) automatically gets the right to use that patent free of charge in that project.
<c-c>
NGPL looks nice
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
apeiros has joined #ruby
Azure has quit [Read error: Connection reset by peer]
<c-c>
Papierkorb: ok, wow
<c-c>
Would be cool to have as great of a game engine project as to have a company patented software nin it
<RickHull>
if you choose MIT, there will be some GNU types who refuse to contribute; if you choose GPL, there will be some BSD types who refuse to contribute
<Papierkorb>
c-c: If you're eyeing NGPL, consider GPLv2.1 or GPLv3 instead (Yes, there are plenty projects using the old GPL too). Both are more or less tested in court.
<RickHull>
MIT means more broad usage, but possibly closed source; GPL guarantees open source and free modifications
alfiemax has joined #ruby
<c-c>
but Nethack General Public License just sounds way cooler for a game engine!
<RickHull>
that's the most important consideration, obviously
<Papierkorb>
c-c: The thing is, the license is supposed to secure your project from every malicious actor. You define what a malicious actor is.
<Papierkorb>
s/secure/protect/
<RickHull>
^
Azure has joined #ruby
thinkpad has joined #ruby
apeiros has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby
* RickHull
creates Everyone But Hitler license
railswebdev has joined #ruby
minimalism has quit [Quit: minimalism]
<c-c>
Peer Production License looks interesting
<c-c>
does it imply the contributors might gain moneys
alfiemax has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
<RickHull>
often money is orthogonal to the software license; irrelevant
<Papierkorb>
c-c: Consider this lovely fellow: Larry Ellison, the CEO of Oracle. https://en.wikiquote.org/wiki/Larry_Ellison "If an open source product gets good enough, we'll simply take it." Those are the kind of people you have to take into account when choosing your license.
<RickHull>
c-c: there are noncommercial licenses that take money or trade into account. see some of the Creative Commons stuff
workmad3 has quit [Ping timeout: 248 seconds]
<RickHull>
but generally, the "free" licenses allow trade or transfer, but they remain obligated to provide the source without such
<Papierkorb>
Creative Commons isn't much good for code. But they may be an option for game assets (Basically, everything of a game except the engine)
<rubycoder37>
Papierkorb: that's another reason why the GPL is superior, they can't simply leech from your project without contributing back
<Papierkorb>
dminuoso: I'm not really impressed by functional programming.
cdg has quit [Ping timeout: 246 seconds]
<dminuoso>
But. But. Monads!
<RickHull>
endofunctors ftw
<dminuoso>
Even did a Haskell style fmap >:)
<Papierkorb>
See all that `Just` clutter? Why not have an actually good type system?
dionysus69 has quit [Ping timeout: 260 seconds]
<Nilium>
I'm pretty happy with Erlang's style of functional programming so far.
<Nilium>
(More pragmatic than it is pure. Anyway, Ruby --)
<dminuoso>
Papierkorb: Normally you wouldn't use this inline anyway.. ;p
<RickHull>
Nilium: what about Elixir?
<dminuoso>
I just created Just() for a more concise examples.
<Nilium>
RickHull: Not a fan of the syntax, but it's effectively the same language.
<RickHull>
how can you like ruby but prefer Erlang to Elixir ?!
<Nilium>
I'm the weirdo who likes Erlang's syntax. I love Ruby's syntax as well, but I just don't think it fits the model.
* RickHull
interrobang
<Nilium>
It's absolutely not a mark against Elixir, by the way -- it's a fantastic language.
<dminuoso>
Papierkorb: Also note in order to make use of that type system, you somehow have to be able to construct data of specific types.. so you really cant get around such a `Just` constructor if you want to have a Maybe.
<dminuoso>
Though it can be argued, that ruby with nil and &. gives us the Maybe Functor at least.
<Papierkorb>
dminuoso: Crystal has union types. You get all the benefits without spamming your code.
<Papierkorb>
It's literally the best feature of the language
<dminuoso>
How would that work?
<dminuoso>
Also disjoint union types is nothing new :P
yqt has joined #ruby
<Nilium>
The main thing for me is that Ruby's syntax works well for Ruby, it feels right when I'm just coding in Ruby and it's fun to do, because the basic syntax is a lot of fun and you can do odd little metaprogramming things that help when you need a really weirdly shaped hammer.
<RickHull>
(like perl)
<Papierkorb>
dminuoso: ?
<Nilium>
(Crystal also looks cool but I haven't used it.)
<dminuoso>
Papierkorb: A union type simply wont help you.
<RickHull>
Crystal and Elixir are two wildly different improvements on Ruby IMHO
<Papierkorb>
dminuoso: Union types makes the Maybe stuff completely irrelevant, by effectively embedding the part you want of Maybe into the type system itself
<RickHull>
i mean in terms of homage or inspiration, goal
<RickHull>
not implementation
Defenestrate has quit [Quit: Leaving]
<dminuoso>
Papierkorb: Im not sure I understand.
<Nilium>
Erlang's syntax can seem weird but it's very straight-forward to me -- Elixir has some things I'd love to see, like the pipe operator and stuff like fn(&1, 5) to create new functions (I haven't decided if this is actually currying), but I still like how much simpler Erlang's syntax is.
<dminuoso>
Papierkorb: You do know that this is not about String | Nil right?
<Nilium>
So basically Erlang feels like Ruby to me.
<dminuoso>
Nilium: its not currying.
<Papierkorb>
dminuoso: What else? It does everything Maybe does and more
<Nilium>
dminuoso: That's what I'm leaning towards.
<Nilium>
I forget what the form was called in Elixir
<Nilium>
Bind?
<dminuoso>
Nilium: currying is the idea that every function has only one argument.
<c-c>
Eclipse public license 1.0 seems to allow commercial use by companies. Now if I knew if thats a good or bad thing for a ruby game engine project. Would contributors hate or like that?
<TViernion>
im running ruby 2.2.2p95 .. how do i add a path for shared librarys to ruby?
<dminuoso>
you dont have that in elixir.
<TViernion>
would ruby -i /path/to/library work?
<TViernion>
ruby -I even.
<Papierkorb>
c-c: Do you hate or like that part of the license? Or do you not care?
<dminuoso>
Papierkorb: If you look at Maybe as an applicative it may become more obvious
<Papierkorb>
Give an example
<RickHull>
c-c: for a personal project to scratch an itch, I would build the base tech without an eye toward proprietary
<c-c>
Papierkorb: I have no preferences as such. I can see how different choices limit different parties responsibilities and rights
<RickHull>
c-c: if it gets big enough (< 1% chance) then consider relicensing
<c-c>
yeah, its just a tiny tiny project atm
<RickHull>
go with MIT if you don't care about closed source mods
<RickHull>
GPL otherwise (or LGPL)
<Papierkorb>
c-c: Imagine that your game becomes really good. A company sees it, and is allowed to monetize it per your license. Would you be honored by that, or would you be sad about it? (They didn't ask you, nor are they sharing profits with you)
<dminuoso>
Papierkorb: a.apply b
<dminuoso>
How do you elegant express this in terms of union types?
<Papierkorb>
c-c: Or do you not care? (It's fine to not care, as long you thought about it and really don't care)
<c-c>
Papierkorb: the ideal situation would be where the game engine becomes really popular, and somehow, that would get the contribs paid
<Papierkorb>
dminuoso: What does that do exactly?
apeiros has joined #ruby
<RickHull>
c-c: your engine will probably not be written in Ruby if it is popular and useful in Ruby
<RickHull>
which is where LGPL may come in
cschneid_ has joined #ruby
<dminuoso>
Papierkorb: it applies the function inside a to b's content iff both a and b are Just.
<Papierkorb>
c-c: Your contributors will never receive any money. If you want them to get money, pay them
<dminuoso>
Papierkorb: Then you get to fun things like liftM2, liftM3 - Maybe really starts to gain some weird power.
mson has joined #ruby
ta has quit [Remote host closed the connection]
<Papierkorb>
dminuoso: And the use-case for it is what?
<Papierkorb>
In real world terms?
<RickHull>
c-c: games need performance, even nethack style; how many simple and efficient nethack engines are you competing against for mindshare?
<Papierkorb>
c-c: I'm not kidding: There are plenty companies out there who open-source their internal software, so effectively, they're paying the contributors
<c-c>
well, atm: 0 contribs, 0 public projects so I'll just pick the weirdest one!
Psybur has joined #ruby
<c-c>
RickHull: I'm specifically trying to make it so it doesn't matter what it is written in
<Papierkorb>
c-c: RedHat is pretty famous for doing just that with great success, more or less
<RickHull>
c-c: if the idea is brilliant but simple enough, then it will get made open source by you or someone else
<RickHull>
the way to make money is on the fringe, not the core
<RickHull>
so relicense proprietary in 10 years if that < 1% chance hits
<dminuoso>
Papierkorb: It gains power when you want to write compact point free style code.
<RickHull>
fringe, i.e. enterprise features like auth, SSO, support
<Papierkorb>
dminuoso: You can't really get me by throwing functions around. you know yourself that the pass-functions-around paradigm is only applicable to functional programming (hence the name)
apeiros has quit [Ping timeout: 260 seconds]
<c-c>
I thought about the arch to be one where it doesn't matter if you change one process from ruby to rust or crystal
cschneid_ has quit [Ping timeout: 258 seconds]
<RickHull>
c-c: easier said than done but go for it
hahuang65 has joined #ruby
<Papierkorb>
dminuoso: I want readable code first. Compact can mean readable, or not-readable.
<c-c>
well I think I kinda solved that
lxsameer has quit [Quit: WeeChat 1.9.1]
<c-c>
the big problem is how to create a game logic DSL
naprimer2 has joined #ruby
<c-c>
such that ordinary humans could describe game logic and events
<matthewd>
c-c: Pro tip: ordinary humans don't write software/logic, no matter how "simple" the DSL. The "friendlier" it is, the more it ends up getting in the way of the programmers who actually end up using it.
<c-c>
atm its all in yaml, and maybe with just a couple of preprocessors, it will stay as yaml
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<rubycoder37>
will ruby 2.5 get released this xmas?
<Papierkorb>
dminuoso: After googling <|> I'm more confused than before.
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dminuoso>
Papierkorb: <|> is just turning an endofunctor into a monoid.
<matthewd>
Papierkorb: Branch.new(defer { f(l) }, defer { f(r) }) -- I think. Very approximately.
<dminuoso>
Papierkorb: in essence its the most generic sense of "combine two things"
<matthewd>
dminuoso: c/d?
<dminuoso>
matthewd: c/d?
ArtCorvelay has quit [Quit: WeeChat 1.9.1]
<matthewd>
confirm/deny
<dminuoso>
matthewd: What is defer?
<TViernion>
I have added a path to $LOAD_PATH through irb, but when i exit it doesn't save my changes. Where am i being stupid?
<tobiasvl>
TViernion: through irb? environment variables only exist in the environment you add it in
<matthewd>
"Calculate this block once when its value is needed"
<TViernion>
hm.
<tobiasvl>
substitute "environment" for "shell" for the way it usually works (ie. for bash you add it to .bashrc and then source .bashrc to have it apply, otherwise it's not persistent)
<dminuoso>
matthewd: Oh, actually in the language that goes without saying.
apeiros has quit [Ping timeout: 248 seconds]
<TViernion>
i'm needing to include an additional path when passenger starts a ruby app... it's missing libruby.so.2.2 and i'm having a hell of a time figuring this out.
<matthewd>
dminuoso: Right. This is a rubyish approximation, because talking about Haskell with Haskell words and Haskell syntax isn't likely to communicate much new information in #ruby
<dminuoso>
Papierkorb: So `Branch` as a type constructor acts like a function taking two inputs. liftM2 lifts that `function` into one that that takes two monads, whereas <|> combines two functors into one (with Maybe it gives you the first that is a Just type)
<TViernion>
tobiasvL so do i need to go to the directy whre the ruby app is located and run irb there?
<Papierkorb>
dminuoso: So that's "gimme branch l & r if both are valid, otherwise only l or r"?
<dminuoso>
right.
<tobiasvl>
TViernion: no, that won't help. you need to actually add it to bash's environment
<tobiasvl>
TViernion: or. well. what do you want to do here?
railswebdev has joined #ruby
jphase has joined #ruby
rubycoder37 has quit [Quit: Lost terminal]
Psybur has quit [Ping timeout: 240 seconds]
<Papierkorb>
dminuoso: I think I know what the algorithm does, but I'm not sure. Haskell is the exact opposite of readable to me.
jphase has quit [Ping timeout: 248 seconds]
<Papierkorb>
That is I think what it does is because it's what I expect it to do, but it's not based on what I read
<Papierkorb>
that filterTree thing there is FP style, not ruby. You're not exploiting the language
<Papierkorb>
`branch.left&.filter`
<dminuoso>
Papierkorb: my last LoC is just meh. `filterTree p (Leaf f) = guard (p l) >> return (Leaf l)` would have been compacter ;D
apeiros has joined #ruby
<c-c>
Ah well, I'll just use GPL3. In reality this will probably mostly amount to me using the project github to ask questions about my crappy coding style
<dminuoso>
*Leaf l
jphase has joined #ruby
twe4ked has quit [Ping timeout: 258 seconds]
<dminuoso>
Papierkorb: The main issue I have with rubys &. is that it infests your code.
<Papierkorb>
Don't blame the language for poor coding on the programmers part
<dminuoso>
Papierkorb: I would generally like to write my code under the assumption that nothing is nil, and then lift an entire execution path in a way, that if any nil arises - that it effectively shortcircuits.
<Papierkorb>
You can write awful code in any language.
apeiros has quit [Ping timeout: 240 seconds]
<dminuoso>
And that's what the Functor/Applicative/Monad interface allows you to do
<dminuoso>
Papierkorb: And in all fairness, this is something ruby people have been doing for a long time with basically the entirety of Enumerbale.
<Papierkorb>
Because ruby borrowed the useful parts from FP
<Papierkorb>
Which is a good thing
<dminuoso>
Yeah :)
<Papierkorb>
I don't see FP to be used "for everything" in the near or far future
<Papierkorb>
Not in the sense OOP and imperative languages are
<dminuoso>
And some interesting glue code came up, like Symbol#to_proc
<Papierkorb>
Thank god we don't have that in Crystal
<dminuoso>
list.filter(&:checked?) is lovely
mikecmpbll has quit [Quit: inabit. zz.]
twe4ked has joined #ruby
alfiemax has joined #ruby
<dminuoso>
My only regret is that you can only use that syntax shortcut in argument position. Would be really awesome if you could do something like: predicate = &:checked