baweaver changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.6.3, 2.5.5, 2.4.6: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.de/ and select Ruby as the language | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | Can't talk? Register/identify with Nickserv first!
doodlebug has joined #ruby
esp32_prog has joined #ruby
Swyper has joined #ruby
weird_error has quit [Quit: weird_error]
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
esp32_prog has quit [Ping timeout: 255 seconds]
weird_error has joined #ruby
Swyper has quit [Remote host closed the connection]
skryking has quit [Ping timeout: 255 seconds]
Autolycus has joined #ruby
FancyEagle has quit [Quit: Leaving]
skryking has joined #ruby
Nicmavr has joined #ruby
Kestrel-029 has quit [Ping timeout: 245 seconds]
weird_error has quit [Quit: weird_error]
weird_error has joined #ruby
planigan has quit [Ping timeout: 245 seconds]
esp32_prog has joined #ruby
Swyper has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
esp32_prog has quit [Ping timeout: 246 seconds]
Swyper has quit [Remote host closed the connection]
budonyc has joined #ruby
tf2ftw has joined #ruby
weird_error has quit [Quit: weird_error]
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
conta has quit [Remote host closed the connection]
weird_error has joined #ruby
esp32_prog has joined #ruby
dviola has quit [Quit: WeeChat 2.4]
Swyper has joined #ruby
Kestrel-029 has joined #ruby
Nicmavr has quit [Ping timeout: 245 seconds]
esp32_prog has quit [Ping timeout: 255 seconds]
Swyper has quit [Remote host closed the connection]
m_antis has quit [Ping timeout: 246 seconds]
orbyt_ has joined #ruby
planigan has joined #ruby
weird_error has quit [Quit: weird_error]
esp32_prog has joined #ruby
bjpenn has quit [Ping timeout: 245 seconds]
marz_d`ghostman has joined #ruby
<marz_d`ghostman> In rails, instead of defining a global variable under initializers/, is there a different mechanism perhaps a constant that I can do so I can initialize once and use it anywhere?
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
esp32_prog has quit [Ping timeout: 246 seconds]
orbyt_ has joined #ruby
edwardly has quit [Quit: ??????????]
dsmythe has quit [Remote host closed the connection]
dsmythe has joined #ruby
esp32_prog has joined #ruby
bambanx has joined #ruby
esp32_prog has quit [Ping timeout: 268 seconds]
sauvin has quit [Ping timeout: 245 seconds]
sauvin has joined #ruby
bjpenn has joined #ruby
bjpenn has quit [Ping timeout: 255 seconds]
gix has quit [Ping timeout: 244 seconds]
edwardly has joined #ruby
edwardly has quit [Changing host]
edwardly has joined #ruby
esp32_prog has joined #ruby
SeepingN has joined #ruby
esp32_prog has quit [Ping timeout: 268 seconds]
al2o3-cr has quit [Quit: If the universe is a machine where the future is uniquely determined by its present state, it would not be possible to calculate what the future will be.]
budonyc has quit [Quit: Leaving]
Nicmavr has joined #ruby
Kestrel-029 has quit [Ping timeout: 245 seconds]
al2o3-cr has joined #ruby
<al2o3-cr> marz_d`ghostman: you might be better off asking in the rails channel.
esrse has joined #ruby
<al2o3-cr> &>> n = 2130706433; [n].pack('N').bytes
<rubydoc> # => [127, 0, 0, 1] (https://carc.in/#/r/6y25)
<al2o3-cr> &>> n = 2130706433; 24.step(0, -8).map { |shf| n >> shf & 0xff }
<rubydoc> # => [127, 0, 0, 1] (https://carc.in/#/r/6y26)
<al2o3-cr> ^ nevada1
meinside has quit [Quit: Connection closed for inactivity]
haxx0r has joined #ruby
Autolycus has quit [Quit: Connection closed for inactivity]
tf2ftw has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
tf2ftw has joined #ruby
dsmythe has quit [Remote host closed the connection]
dsmythe_ has joined #ruby
AJA4350 has quit [Quit: AJA4350]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
buckworst has joined #ruby
braincrash has quit [Quit: bye bye]
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
braincrash has joined #ruby
bikes has joined #ruby
spiette has quit [Ping timeout: 268 seconds]
spiette has joined #ruby
Fusl has quit [Remote host closed the connection]
Fusl has joined #ruby
_whitelogger has joined #ruby
bjpenn has joined #ruby
bikes has quit [Ping timeout: 268 seconds]
esp32_prog has joined #ruby
bjpenn has quit [Ping timeout: 268 seconds]
esp32_prog has quit [Ping timeout: 246 seconds]
john_ has joined #ruby
<john_> hi
<john_> hi
bikes has joined #ruby
<john_> anyone here experienced with pfctl?
orbyt_ has joined #ruby
<john_> i used to like it more than iptables until i started trying to do split tunneling wtih it, now i hate it
esp32_prog has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
esp32_prog has quit [Ping timeout: 255 seconds]
bikes has quit [Ping timeout: 252 seconds]
dsmythe has joined #ruby
dsmythe_ has quit [Ping timeout: 258 seconds]
houhoulis has quit [Remote host closed the connection]
john_ has quit [Ping timeout: 255 seconds]
dsmythe has quit [Quit: Leaving...]
wald0 has quit [Quit: Lost terminal]
sleetdrop has joined #ruby
kyrylo has joined #ruby
bikes has joined #ruby
Kestrel-029 has joined #ruby
Nicmavr has quit [Ping timeout: 245 seconds]
dellavg_ has joined #ruby
Shikichiro has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
bikes has quit [Ping timeout: 245 seconds]
m27frogy has quit [Ping timeout: 255 seconds]
bga57 has quit [Quit: Leaving.]
FancyEagle has joined #ruby
bga57 has joined #ruby
Nicmavr has joined #ruby
Kestrel-029 has quit [Ping timeout: 245 seconds]
buckworst has quit [Quit: Connection closed for inactivity]
buckworst has joined #ruby
m27frogy has joined #ruby
conta has joined #ruby
bambanx has quit [Quit: Leaving]
bjpenn has joined #ruby
zacts has joined #ruby
Swyper has joined #ruby
bjpenn has quit [Ping timeout: 258 seconds]
fphilipe has joined #ruby
bjpenn has joined #ruby
sauvin has quit [Ping timeout: 258 seconds]
sauvin has joined #ruby
zacts has quit [Quit: WeeChat 2.4]
slackmare has joined #ruby
conta has quit [Quit: conta]
conta has joined #ruby
zacts has joined #ruby
Nicmavr has quit [Ping timeout: 245 seconds]
Nicmavr has joined #ruby
fphilipe has quit [Ping timeout: 250 seconds]
fphilipe has joined #ruby
TomyWork has joined #ruby
coffeejunk has quit [Read error: Connection reset by peer]
pitastrudl has quit [Read error: Connection reset by peer]
uranoss has quit [Read error: Connection reset by peer]
podman has quit [Read error: Connection reset by peer]
coffeejunk has joined #ruby
pitastrudl has joined #ruby
aqib has joined #ruby
podman has joined #ruby
WA9ACE has quit [Read error: Connection reset by peer]
uranoss has joined #ruby
gmcintire has quit [Read error: Connection reset by peer]
mostlybadfly has quit [Write error: Connection reset by peer]
Lewix has quit [Read error: Connection reset by peer]
WA9ACE has joined #ruby
pwillard has quit [Ping timeout: 258 seconds]
Liothen has quit [Ping timeout: 258 seconds]
Sina has quit [Read error: Connection reset by peer]
rann has quit [Read error: Connection reset by peer]
hahuang65 has quit [Write error: Connection reset by peer]
chromis has quit [Write error: Connection reset by peer]
darthThorik has quit [Read error: Connection reset by peer]
Lewix has joined #ruby
<aqib> hi this is aqib . im new on this channel
gmcintire has joined #ruby
discopatrick has quit [Write error: Connection reset by peer]
jhill has quit [Read error: Connection reset by peer]
jetpack_joe has quit [Write error: Connection reset by peer]
Sina has joined #ruby
jnix has quit [Read error: Connection reset by peer]
manveru has quit [Read error: Connection reset by peer]
ec has quit [Read error: Connection reset by peer]
timeless has quit [Read error: Connection reset by peer]
chromis has joined #ruby
hahuang65 has joined #ruby
darthThorik has joined #ruby
Liothen has joined #ruby
jetpack_joe has joined #ruby
pwillard has joined #ruby
mostlybadfly has joined #ruby
jnix has joined #ruby
rann has joined #ruby
manveru has joined #ruby
jhill has joined #ruby
discopatrick has joined #ruby
ec has joined #ruby
timeless has joined #ruby
lele has quit [Ping timeout: 258 seconds]
kashike has quit [Ping timeout: 258 seconds]
sariyar has quit [Ping timeout: 258 seconds]
aqib has quit [Client Quit]
lele has joined #ruby
zacts has quit [Quit: WeeChat 2.4]
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sariyar has joined #ruby
Kestrel-029 has joined #ruby
Nicmavr has quit [Ping timeout: 245 seconds]
kashike has joined #ruby
aupadhye has joined #ruby
fphilipe has quit [Ping timeout: 264 seconds]
fphilipe has joined #ruby
andikr has joined #ruby
FancyEagle has quit [Quit: Leaving]
octos has quit [Remote host closed the connection]
octos has joined #ruby
andikr has quit [Client Quit]
galeido has joined #ruby
Swyper has quit [Remote host closed the connection]
Nicmavr has joined #ruby
Kestrel-029 has quit [Ping timeout: 245 seconds]
jenrzzz has quit [Ping timeout: 255 seconds]
BH23 has joined #ruby
andikr has joined #ruby
Kestrel-029 has joined #ruby
Nicmavr has quit [Ping timeout: 245 seconds]
<al2o3-cr> is Random.urandom as cryptically secure as SecureRandom.bytes?
vondruch has quit [Quit: vondruch]
zacts has joined #ruby
buckworst has quit [Quit: Connection closed for inactivity]
tdy has quit [Ping timeout: 258 seconds]
kyrylo has joined #ruby
jefffrails35 has joined #ruby
andikr has quit [Ping timeout: 258 seconds]
andikr has joined #ruby
s2013 has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
andikr has quit [Ping timeout: 248 seconds]
jenrzzz has joined #ruby
BH23 has quit [Ping timeout: 258 seconds]
sleetdrop has quit [Ping timeout: 244 seconds]
jenrzzz has quit [Ping timeout: 258 seconds]
lxsameer has joined #ruby
zacts has quit [Quit: WeeChat 2.4]
schneider has joined #ruby
andikr has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
schneider has quit [Client Quit]
deepredsky has joined #ruby
andikr has quit [Ping timeout: 258 seconds]
esp32_prog has joined #ruby
bjpenn has quit [Ping timeout: 258 seconds]
schneider has joined #ruby
TomyLobo2 has joined #ruby
TomyLobo2 has quit [Client Quit]
ljarvis has quit [Ping timeout: 246 seconds]
ljarvis_ has joined #ruby
Jonopoly_ has joined #ruby
gingitsune has joined #ruby
Jonopoly_ is now known as Jonopoly
andikr has joined #ruby
vondruch has joined #ruby
bjpenn has joined #ruby
Kestrel-029 has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
Nicmavr has joined #ruby
obiwahn has quit [Quit: WeeChat 2.0-dev]
Freshnuts has quit [Quit: Leaving]
ellcs has joined #ruby
gingitsune has quit [Ping timeout: 256 seconds]
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
BH23 has joined #ruby
teclator has joined #ruby
aupadhye has quit [Ping timeout: 255 seconds]
andikr has quit [Quit: No Ping reply in 180 seconds.]
jenrzzz has quit [Ping timeout: 255 seconds]
andikr has joined #ruby
planigan has quit [Ping timeout: 252 seconds]
livcd has joined #ruby
planigan has joined #ruby
aupadhye has joined #ruby
xco has joined #ruby
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
BH23 has quit [Ping timeout: 258 seconds]
BH23 has joined #ruby
conta has quit [Quit: conta]
conta has joined #ruby
slackmare has quit [Quit: leaving]
marz_d`ghostman has quit [Quit: Page closed]
sagax has quit [Quit: Konversation terminated!]
sagax has joined #ruby
fub has joined #ruby
jenrzzz has joined #ruby
<fub> Hi. I need to update some jekyll project of a friend. After installing everything with "bundle install", a "buzndle exec jekyll serve" fails because "Could not find commonmarker-0.17.13 in any of the sources".
<fub> However, I can see in the bundle install output that "Installing commonmarker 0.17.13 with native extensions" is executed.
RiPuk has quit [Ping timeout: 246 seconds]
ShalokShalom has joined #ruby
<ShalokShalom> hi there
<ShalokShalom> can I use pure, side-effect free methods in Ruby?
<ShalokShalom> thanks
<ytti> yes
<ytti> all methods are idempotent which do only has local state and receive arguments which they do not modify and return value
<ytti> it's not a language feature, in that no language forbids idempotent functions and methods
<ytti> but some languages may enforce them
<ytti> i would say that idempotent code is not necessarily idiomatic ruby
<ShalokShalom> thanks
<ShalokShalom> how can I distinguish?
<ytti> if method is idempotent or not?
<ShalokShalom> so, how can I see which Ruby method is, yes
<ytti> that is broad question, broader than i have time to answer in meaningful way other than you need to have sufficient competency as developer
<ShalokShalom> since I figured out that functions in Elm look exactly like Methods in Ruby, just without def and end
<ShalokShalom> so, can I enforce them?
<ShalokShalom> pure methods
<ytti> the original answer sets the constrains you have to test cognitively if it meets those constrains
<ytti> you don't enforce
<ShalokShalom> ok
<ShalokShalom> sad
<ytti> perhaps you could write static analyser which enforces and checks, unsure if that is possible
<ShalokShalom> :((
<ShalokShalom> this is sad
<ShalokShalom> is there a library?
<ytti> i don't know
<ShalokShalom> i googled, found not
<ShalokShalom> ok, thanks
<ShalokShalom> thats super sad
<ytti> people who put value in this type of things usually choose pure functional langauges
<ShalokShalom> so Ruby dont know when its pure and when not?
<ytti> it won't
<ShalokShalom> wow
<ytti> almost no language knows
BH23 has quit [Ping timeout: 257 seconds]
<ShalokShalom> All languages know which I know
<ytti> it's very atypical for langauge to enforce this by design
<ytti> such as?
<ytti> c doesnt
<ShalokShalom> Ruby looks neat, so I like to try it out
<ytti> java doesn't
<ytti> python doesnt
<ytti> c++ doesnt
<ShalokShalom> I know only declarative languages
<ytti> php doesnt
<ytti> perl doesnt
<ytti> which langauges are you talking about?
<ShalokShalom> OCaml, F# and Elm
<ShalokShalom> all functional based languages
<ytti> aya, if you are comfortable with ocaml probably everything else will feel inelegant
<ShalokShalom> I think even Javascript can do so?
<ShalokShalom> I see...
<ytti> javascript won't know if function is idempotent
<ShalokShalom> Ruby looks nice until
<ytti> perhaps look at elixir or haskell
<ytti> at any rate stay in functional languages, rather than OO
<ShalokShalom> Functions are pure in JS
<ShalokShalom> Elchemy compiles into Elixir
<ShalokShalom> So I can simply compile my Elm code into it
conta has quit [Ping timeout: 255 seconds]
<ShalokShalom> Thanks a lot for your help
<ytti> ShalokShalom, that article contradicts you and supports me
<ytti> ShalokShalom, in that JS does not guarantee idempotent functions
<ytti> ShalokShalom, all langauges support idempotent functions, few guarantee
<ShalokShalom> No, it just states that functions are also impure
<ShalokShalom> Yeah, I just look for one that makes it possible in an simple way
<ShalokShalom> thy
gregf_ has joined #ruby
BH23 has joined #ruby
kyrylo has joined #ruby
fub has left #ruby ["WeeChat 2.3"]
jenrzzz has quit [Ping timeout: 268 seconds]
BH23 has quit [Ping timeout: 246 seconds]
conta has joined #ruby
BH23 has joined #ruby
fphilipe has quit [Read error: Connection reset by peer]
fphilipe has joined #ruby
AJA4350 has joined #ruby
gigetoo has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
gigetoo has joined #ruby
ur5us has joined #ruby
bjpenn has quit [Ping timeout: 268 seconds]
haxx0r has quit [Ping timeout: 252 seconds]
apparition has joined #ruby
al2o3-cr has quit [Ping timeout: 246 seconds]
al2o3-cr has joined #ruby
ur5us has quit [Quit: Leaving]
elepedus has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
freddykiks has joined #ruby
tdy has joined #ruby
kthibodeaux has joined #ruby
ShalokShalom has quit [Remote host closed the connection]
SigizMG has quit [Read error: Connection reset by peer]
doodlebug has quit [Ping timeout: 244 seconds]
doodleb33 has joined #ruby
tdy has quit [Read error: error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac]
doodleb33 has quit [Read error: Connection reset by peer]
kthibodeaux has left #ruby ["WeeChat 1.9.1"]
doodlebug has joined #ruby
kyrylo has quit [Read error: Connection reset by peer]
kyrylo has joined #ruby
doodlebug has quit [Read error: Connection reset by peer]
esrse has quit [Ping timeout: 246 seconds]
doodlebug has joined #ruby
freddykiks has left #ruby ["Leaving"]
haxx0r has joined #ruby
jenrzzz has joined #ruby
teclator has quit [Ping timeout: 255 seconds]
tf2ftw has quit [Quit: This computer has gone to sleep]
xco has quit [Quit: xco]
BH23 has quit [Ping timeout: 258 seconds]
ShalokShalom has joined #ruby
teclator has joined #ruby
Nicmavr has quit [Ping timeout: 245 seconds]
Nicmavr has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
ShalokShalom has quit [Remote host closed the connection]
elepedus has quit [Quit: elepedus]
vondruch_ has joined #ruby
ShalokShalom has joined #ruby
vondruch has quit [Ping timeout: 268 seconds]
vondruch_ is now known as vondruch
andikr has quit [Ping timeout: 268 seconds]
andikr has joined #ruby
millerti has joined #ruby
blackmesa has joined #ruby
RiPuk has joined #ruby
schneider has quit [Quit: schneider]
weird_error has joined #ruby
doodlebug has quit [Read error: Connection reset by peer]
doodlebug has joined #ruby
xco has joined #ruby
ShalokShalom has quit [Remote host closed the connection]
jcalla has quit [Ping timeout: 252 seconds]
Swyper has joined #ruby
conta has quit [Read error: Connection reset by peer]
conta1 has joined #ruby
ua has quit [Ping timeout: 252 seconds]
weird_error has quit [Quit: weird_error]
conta1 is now known as conta
jenrzzz has joined #ruby
BH23 has joined #ruby
andikr has quit [Ping timeout: 246 seconds]
teclator has quit [Ping timeout: 258 seconds]
teclator has joined #ruby
millerti has quit [Quit: Textual IRC Client: www.textualapp.com]
ovnimancer has quit []
blackmesa has quit [Ping timeout: 264 seconds]
jenrzzz has quit [Ping timeout: 245 seconds]
s2013 has joined #ruby
bora has joined #ruby
elepedus has joined #ruby
status402 has joined #ruby
ua has joined #ruby
andikr has joined #ruby
BH23 has quit [Ping timeout: 246 seconds]
Azure has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tf2ftw has joined #ruby
jcalla has joined #ruby
status402 has quit [Quit: status402]
bora has quit [Read error: Connection reset by peer]
SeepingN has joined #ruby
ShalokShalom has joined #ruby
bora has joined #ruby
gr33n7007h has joined #ruby
BH23 has joined #ruby
al2o3-cr has quit [Ping timeout: 246 seconds]
fphilipe has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
fphilipe has joined #ruby
bora has quit [Quit: Leaving]
tdy has joined #ruby
elepedus has quit [Quit: elepedus]
elepedus has joined #ruby
elepedus has quit [Client Quit]
CrazyEddy has quit [Remote host closed the connection]
ShalokShalom has quit [Remote host closed the connection]
conta has quit [Ping timeout: 258 seconds]
teclator has quit [Ping timeout: 252 seconds]
aupadhye has quit [Ping timeout: 268 seconds]
dar123 has joined #ruby
BH23 has quit [Ping timeout: 244 seconds]
jenrzzz has quit [Ping timeout: 245 seconds]
teclator has joined #ruby
BH23 has joined #ruby
arup_r has joined #ruby
blackmesa has joined #ruby
doodleb90 has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
blackmesa1 has joined #ruby
doodleb90 has quit [Read error: Connection reset by peer]
SeepingN has joined #ruby
doodlebug has quit [Read error: No route to host]
doodlebug has joined #ruby
haxx0r has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 248 seconds]
apparition has quit [Quit: Bye]
blackmesa1 has quit [Ping timeout: 258 seconds]
arup_r has quit []
teclator_virtual has quit [Ping timeout: 255 seconds]
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Swyper has quit [Remote host closed the connection]
doodleb39 has joined #ruby
ShalokShalom has joined #ruby
doodlebug has quit [Read error: No route to host]
doodleb39 has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
doodlebug has joined #ruby
Dbugger has joined #ruby
blackmesa1 has joined #ruby
Swyper has joined #ruby
teclator_ has joined #ruby
teclator has quit [Ping timeout: 257 seconds]
tf2ftw has quit [Quit: This computer has gone to sleep]
tf2ftw has joined #ruby
teclator_ has quit [Ping timeout: 246 seconds]
tf2ftw has quit [Client Quit]
polishdub has joined #ruby
tf2ftw has joined #ruby
spacesuitdiver has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
blackmesa1 has quit [Read error: Connection reset by peer]
dar123 has joined #ruby
tf2ftw has quit [Client Quit]
blackmesa1 has joined #ruby
doodleb89 has joined #ruby
doodlebug has quit [Ping timeout: 245 seconds]
Nicmavr has quit [Ping timeout: 245 seconds]
Nicmavr has joined #ruby
noboruma has joined #ruby
tf2ftw has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
tf2ftw has quit [Client Quit]
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
maryo has joined #ruby
conta has joined #ruby
tf2ftw has joined #ruby
BH23 has quit [Ping timeout: 268 seconds]
rippa has joined #ruby
jenrzzz has joined #ruby
brool has joined #ruby
esp32_prog has quit [Ping timeout: 258 seconds]
Mike11 has joined #ruby
Jonopoly has quit [Quit: WeeChat 2.4]
<Net> Is there a stdlib method that will get a value from a hash by key, or, if not value exists, will set the value using a block then return it?
<Net> basically I want foo[bar] ||= baz(...) but respecting `false`
<phaul> fetch can take a block but you still have to set it
fphilipe has quit [Ping timeout: 245 seconds]
<phaul> foo.fetch(bar) {|k| foo[k] = baz(...) }
<phaul> &>> foo = {a: 1, b: 2}; v = foo.fetch(:c) {|k| foo[k] = 3 }; [v, foo]
<rubydoc> # => [3, {:a=>1, :b=>2, :c=>3}] (https://carc.in/#/r/6y74)
<phaul> &>> foo = {a: 1, b: 2}; v = foo.fetch(:a) {|k| foo[k] = 42 }; [v, foo]
<rubydoc> # => [1, {:a=>1, :b=>2}] (https://carc.in/#/r/6y75)
tf2ftw_ has joined #ruby
aupadhye has joined #ruby
<phaul> although it's different from ||= I think on falsey values. but I think fetch is correct and ||= is a bug.
Nicmavr has quit [Ping timeout: 245 seconds]
andikr has quit [Remote host closed the connection]
Nicmavr has joined #ruby
BTRE has quit [Remote host closed the connection]
<phaul> &>> foo = {a: false } ; v = foo[:a] ||= 2; [v, foo]
<rubydoc> # => [2, {:a=>2}] (https://carc.in/#/r/6y76)
tf2ftw has quit [Quit: This computer has gone to sleep]
<phaul> unless this is what you want, Net . note the key :a was in the hash and we still updated it with ||=
tf2ftw has joined #ruby
fphilipe has joined #ruby
tf2ftw has quit [Client Quit]
ellcs has quit [Ping timeout: 246 seconds]
TomyWork has quit [Ping timeout: 246 seconds]
hAns_ has joined #ruby
tf2ftw has joined #ruby
BTRE has joined #ruby
hAns_ has quit [Client Quit]
Nicmavr has quit [Ping timeout: 245 seconds]
Kestrel-029 has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
fphilipe has quit [Ping timeout: 255 seconds]
orbyt_ has joined #ruby
tf2ftw has quit [Quit: Leaving]
orbyt_ has quit [Client Quit]
fphilipe has joined #ruby
sylario has joined #ruby
jefffrails35 has quit [Remote host closed the connection]
nowhereman has joined #ruby
Azure has joined #ruby
Nicmavr has joined #ruby
Kestrel-029 has quit [Ping timeout: 245 seconds]
Eiam has quit [Ping timeout: 252 seconds]
Wolland has joined #ruby
Hess has joined #ruby
govg has joined #ruby
Wolland has quit [Quit: Mutter: www.mutterirc.com]
nowhereman has quit [Ping timeout: 258 seconds]
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Hess has left #ruby [#ruby]
fphilipe has quit [Ping timeout: 257 seconds]
deepredsky has quit [Ping timeout: 258 seconds]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
duderonomy has joined #ruby
jenrzzz has joined #ruby
octos has quit [Ping timeout: 258 seconds]
zacts has joined #ruby
maryo has quit [Remote host closed the connection]
maryo has joined #ruby
sagax has quit [Read error: Connection reset by peer]
sagax has joined #ruby
maryo has quit [Quit: Leaving]
zacts has quit [Ping timeout: 252 seconds]
octos has joined #ruby
zacts has joined #ruby
sagax has quit [Ping timeout: 245 seconds]
Swyper has quit [Remote host closed the connection]
jefffrails35 has joined #ruby
cd has joined #ruby
s2013 has joined #ruby
tf2ftw_ has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
eddof13 has joined #ruby
Swyper has joined #ruby
zacts has quit [Ping timeout: 255 seconds]
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
gix has joined #ruby
eddof13 has quit [Ping timeout: 245 seconds]
Swyper has quit [Remote host closed the connection]
dretnx has joined #ruby
<dretnx> Which is best async library for ruby and how performs in comparision with node.js?
Swyper has joined #ruby
<havenwood> dretnx: Node.js was based in part on EventMachine, a Ruby library, iir. The author of Node was a Rubyist.
jenrzzz has quit [Ping timeout: 268 seconds]
<havenwood> dretnx: These days, check out the Socketry libraries: https://github.com/socketry
<havenwood> dretnx: See Falcon for an example of putting these primitives together into a web server: https://github.com/socketry/falcon
<havenwood> dretnx: We could probably give you better answers if you say more about the perspective you're looking from. Are you doing IO? Computation?
<dretnx> havenwood: I'm considering switching from node.js to async ruby, because i'm bored with node
<havenwood> dretnx: For web?
<dretnx> havenwood: yes
<jhass> bored? Looking for an adventure? Try Crystal!
* jhass hides
<brool> crystal meth?
<jhass> it has methods...
<brool> [googling intensifies]
<brool> aah, furry porn
<jhass> I don't know how...
<havenwood> dretnx: Ruby is a lot of fun, give it a try! (Crystal too.)
<havenwood> dretnx: Here's a recent talk about the state of async in Rubyland: https://youtu.be/qKQcUDEo-ZI
<havenwood> TL;DR: Great work going on with async in Ruby.
Swyper has quit [Remote host closed the connection]
Nicmavr has quit [Ping timeout: 245 seconds]
Swyper has joined #ruby
Nicmavr has joined #ruby
sagax has joined #ruby
zacts has joined #ruby
fphilipe has joined #ruby
sagax has quit [Ping timeout: 268 seconds]
Swyper has quit [Remote host closed the connection]
conta has quit [Quit: conta]
Ltem has joined #ruby
sagax has joined #ruby
dretnx has quit [Quit: Page closed]
sagax has quit [Client Quit]
tdy has quit [Ping timeout: 268 seconds]
esp32_prog has joined #ruby
zacts has quit [Ping timeout: 258 seconds]
jenrzzz has joined #ruby
aupadhye has quit [Ping timeout: 255 seconds]
Swyper has joined #ruby
esp32_prog has quit [Ping timeout: 246 seconds]
fphilipe has quit [Ping timeout: 258 seconds]
dviola has joined #ruby
Swyper has quit [Ping timeout: 246 seconds]
esp32_prog has joined #ruby
Eiam has joined #ruby
doodleb89 has quit [Read error: Connection reset by peer]
doodlebug has joined #ruby
ravenous_ has joined #ruby
esp32_prog has quit [Ping timeout: 268 seconds]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
NL3limin4t0r has quit [Quit: WeeChat 1.9.1]
jenrzzz has quit [Ping timeout: 255 seconds]
sauvin has quit [Read error: Connection reset by peer]
djellemah has joined #ruby
esp32_prog has joined #ruby
bjpenn has joined #ruby
esp32_prog has quit [Ping timeout: 245 seconds]
tdy has joined #ruby
jefffrails35 has quit [Remote host closed the connection]
_axx has quit [Quit: byebye]
SeepingN has joined #ruby
bjpenn has quit [Quit: leaving]
Nicmavr has quit [Ping timeout: 245 seconds]
Nicmavr has joined #ruby
esp32_prog has joined #ruby
renich has quit [Ping timeout: 258 seconds]
jenrzzz has joined #ruby
esp32_prog has quit [Ping timeout: 258 seconds]
fphilipe has joined #ruby
tdy has quit [Ping timeout: 258 seconds]
jenrzzz has quit [Ping timeout: 258 seconds]
jenrzzz has joined #ruby
luminousnine has quit [Remote host closed the connection]
xfbs has quit [Remote host closed the connection]
esp32_prog has joined #ruby
maryo has joined #ruby
lxsameer has quit [Ping timeout: 258 seconds]
laaron has quit [Quit: ZNC 1.7.1 - https://znc.in]
laaron has joined #ruby
esp32_prog has quit [Ping timeout: 245 seconds]
doodlebug has quit [Ping timeout: 246 seconds]
doodleb47 has joined #ruby
wald0 has joined #ruby
renich has joined #ruby
fphilipe has quit [Ping timeout: 258 seconds]
tdy has joined #ruby
brool has quit [Ping timeout: 258 seconds]
fphilipe has joined #ruby
altious has joined #ruby
djellemah has quit [Ping timeout: 250 seconds]
Swyper has joined #ruby
ShalokShalom has quit [Remote host closed the connection]
Swyper has quit [Remote host closed the connection]
s2013 has joined #ruby
christiandsg has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
houhoulis has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
sameerynho has joined #ruby
dellavg_ has quit [Ping timeout: 244 seconds]
houhouli_ has joined #ruby
houhoulis has quit [Ping timeout: 258 seconds]
Swyper has joined #ruby
gix has quit [Disconnected by services]
gix- has joined #ruby
Swyper has quit [Remote host closed the connection]
happyhans has joined #ruby
<happyhans> What's that one website that categorizes ruby gems and also displays their health (last maintained, usage, bug count, etc...)?
troulouliou_div2 has joined #ruby
<havenwood> happyhans: https://www.ruby-toolbox.com
jenrzzz has joined #ruby
Ltem has quit [Quit: bye]
<ytti> picking up kotlin (no java experience) and really most work seems to be figuring out what are the 'de facto' libraries i should be using
<ytti> with ruby i don't really have to think much about that
<ytti> but java has so many competing libraries, no obvious winner and most of them not touched in years
<ytti> so i haven't really figured out effective way of choosing library in timely manner
Dbugger has quit [Quit: Leaving]
<happyhans> Thanks @havenwood!
<SeepingN> there's no.. java package manager????
fphilipe has quit [Ping timeout: 248 seconds]
maryo has quit [Quit: Leaving]
ravenous_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<happyhans> Has anyone been following Sorbet? https://sorbet.org
s2013 has quit [Read error: Connection reset by peer]
<havenwood> happyhans: Yes, but it's not open source yet. Stay tuned.
<havenwood> happyhans: Steep is already open source, if you want to look at an alternative: https://github.com/soutaro/steep
<havenwood> happyhans: Ruby 3 should have a standard .rbi format so you can use either of these tools, or others.
<happyhans> Ooo I saw this before. I like the separate file approach of Steep
<happyhans> can't wait until ruby3 haha that will be a big milestone
octos has quit [Remote host closed the connection]
octos has joined #ruby
Swyper has joined #ruby
christiandsg has quit [Remote host closed the connection]
christiandsg has joined #ruby
christiandsg has quit [Remote host closed the connection]
christiandsg has joined #ruby
christiandsg has quit [Remote host closed the connection]
christiandsg has joined #ruby
christiandsg has quit [Remote host closed the connection]
vondruch has quit [Ping timeout: 246 seconds]
deepredsky has joined #ruby
fphilipe has joined #ruby
graft has joined #ruby
graft has quit [Changing host]
graft has joined #ruby
<graft> anyone know how to render an svg and display it in an X11 window using ruby?
Nicmavr has quit [Ping timeout: 245 seconds]
Nicmavr has joined #ruby
<jhass> File.write("tmp.svg", svg_data); system("eog tmp.svg")
<jhass> scnr
pwnd_nsfw has joined #ruby
graft has quit [Ping timeout: 268 seconds]
ur5us has joined #ruby
christiandsg has joined #ruby
octos has quit [Ping timeout: 258 seconds]
sameerynho has quit [Ping timeout: 245 seconds]
octos has joined #ruby
christiandsg has quit [Ping timeout: 245 seconds]
laaron- has joined #ruby
laaron has quit [Quit: ZNC 1.7.1 - https://znc.in]
octos has quit [Ping timeout: 245 seconds]
hightower2 has joined #ruby
laaron- has quit [Quit: ZNC 1.7.1 - https://znc.in]
laaron has joined #ruby
vyrus001 has left #ruby [#ruby]
laaron has quit [Remote host closed the connection]
laaron has joined #ruby
laaron has quit [Remote host closed the connection]
tdy has quit [Ping timeout: 246 seconds]
laaron has joined #ruby
Swyper has quit [Remote host closed the connection]
laaron has quit [Quit: ZNC 1.7.1 - https://znc.in]
happyhans has quit [Ping timeout: 256 seconds]
laaron has joined #ruby
Nicmavr has quit [Ping timeout: 245 seconds]
Nicmavr has joined #ruby
laaron has quit [Remote host closed the connection]
laaron has joined #ruby
fphilipe has quit [Ping timeout: 250 seconds]
laaron has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 246 seconds]
laaron has joined #ruby
brool has joined #ruby
octos has joined #ruby
jenrzzz has joined #ruby
deepredsky has quit [Ping timeout: 246 seconds]
laaron has quit [Remote host closed the connection]
xco has quit [Quit: xco]
laaron has joined #ruby
spacesuitdiver has quit [Ping timeout: 246 seconds]
elcontrastador has quit [Read error: Connection reset by peer]
tjbp has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 258 seconds]
jenrzzz_ has joined #ruby
tjbp has joined #ruby
Swyper has joined #ruby
tjbp has quit [Excess Flood]
tjbp has joined #ruby
timeless has quit [Ping timeout: 252 seconds]
Fernando-Basso has joined #ruby
timeless has joined #ruby
fphilipe has joined #ruby
blackmesa1 has quit [Ping timeout: 258 seconds]
Kestrel-029 has joined #ruby
Nicmavr has quit [Ping timeout: 245 seconds]
doodleb47 has quit [Read error: Connection reset by peer]
doodlebug has joined #ruby
xco has joined #ruby
CrazyEddy has joined #ruby
xco has quit [Client Quit]
xco has joined #ruby
octos has quit [Remote host closed the connection]
obzidian has joined #ruby
polishdub has quit [Quit: leaving]
GodFather has quit [Ping timeout: 244 seconds]
ShalokShalom has joined #ruby
ur5us_ has joined #ruby
ur5us has quit [Read error: Connection reset by peer]
xco has quit [Quit: xco]
Swyper has quit [Remote host closed the connection]
fphilipe has quit [Ping timeout: 258 seconds]
tdy has joined #ruby
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
jenrzzz_ has quit [Ping timeout: 258 seconds]
Kestrel-029 has quit [Ping timeout: 245 seconds]
Nicmavr has joined #ruby
troulouliou_div2 has quit [Ping timeout: 258 seconds]
GodFather has joined #ruby
Puffball has joined #ruby
d^sh has quit [Ping timeout: 258 seconds]
d^sh has joined #ruby
tdy has quit [Ping timeout: 245 seconds]
christiandsg has joined #ruby
jenrzzz has joined #ruby
christiandsg has quit [Ping timeout: 245 seconds]
Fernando-Basso has quit [Remote host closed the connection]
cloaked1 has joined #ruby
tdy has joined #ruby
AJA4351 has joined #ruby
Ai9zO5AP has quit [Quit: WeeChat 2.4]
AJA4350 has quit [Ping timeout: 246 seconds]
AJA4351 is now known as AJA4350
tdy has quit [Ping timeout: 245 seconds]
renich has quit [Ping timeout: 244 seconds]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
renich has joined #ruby
obzidian has quit [Ping timeout: 268 seconds]
fphilipe has joined #ruby
cloaked1 has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
zacts has joined #ruby
pengin has joined #ruby
Mike11 has quit [Read error: Connection reset by peer]
<pengin> what's the difference between accessing hash values with foo["bar"]["baz"] and foo[:bar][:baz] ?