Rich_Morin

Activity Graph

Page 1 of 1

2019-04-07

[00:47:19] Rich_Morin: has joined #elixir-lang
[00:58:11] Rich_Morin: I'm confused about matching and capturing function parameters. For example, it seems like I should be able to write "def foo(n=1), do: f(n)" instead of "def foo(n) when n == 1, do: f(n)*. What am I missing?
[02:06:46] Rich_Morin: Quit: Rich_Morin
[02:12:52] Rich_Morin: has joined #elixir-lang
[02:39:01] Rich_Morin: I'm (still :-) confused about matching and capturing function parameters. For example, it seems like I should be able to write "def foo(n=1), do: f(n)" instead of "def foo(n) when n == 1, do: f(n)". What am I missing?
[03:19:55] Rich_Morin: Quit: Rich_Morin
[04:12:28] Rich_Morin: has joined #elixir-lang
[05:07:10] Rich_Morin: Quit: Rich_Morin
[05:07:33] Rich_Morin: has joined #elixir-lang
[05:08:20] Rich_Morin: has joined #elixir-lang
[05:09:09] Rich_Morin: has joined #elixir-lang
[05:09:55] Rich_Morin: has joined #elixir-lang
[05:10:38] Rich_Morin: has joined #elixir-lang
[05:11:26] Rich_Morin: has joined #elixir-lang
[05:12:12] Rich_Morin: has joined #elixir-lang
[05:13:03] Rich_Morin: has joined #elixir-lang
[08:26:13] Rich_Morin: has joined #elixir-lang
[08:44:33] Rich_Morin: josevalim: Yep, the problem I had was that I was trying to use "a = 1" rather than "1 = a".
[08:47:29] Rich_Morin: what about def foo(a = %{}) - would this ensure that this clause only bound to an empty Map and also bind a to it?
[08:50:14] Rich_Morin: sorry, that was incoherent. Would this ensure that this function clause only matched a call where the argument was an empty Map and also bind a to that map?
[08:52:34] Rich_Morin: in this case, I was binding an explanatory name to it, eg: def foo(_name = %{})
[09:10:12] Rich_Morin: Quit: Rich_Morin
[14:24:00] Rich_Morin: has joined #elixir-lang
[16:40:03] Rich_Morin: has joined #elixir-lang
[16:44:10] Rich_Morin: Ping timeout: 250 seconds
[16:45:54] Rich_Morin: Quit: Rich_Morin
[17:13:15] Rich_Morin: has joined #elixir-lang
[17:34:21] Rich_Morin: Quit: Rich_Morin
[18:00:48] Rich_Morin: has joined #elixir-lang
[19:38:36] Rich_Morin: Quit: Rich_Morin
[23:42:59] Rich_Morin: has joined #elixir-lang
[23:50:16] Rich_Morin: Read error: No route to host

2017-12-30

[08:39:38] Rich_Morin: Quit: Rich_Morin

2017-12-29

[03:18:11] Rich_Morin: has joined #ruby
[03:23:28] Rich_Morin: I'd like to start up a Unix process and communicate with it interactively via its STDIN and STDOUT. Suggestions?

2017-12-28

[01:36:08] Rich_Morin: Quit: Rich_Morin

2017-12-18

[09:20:00] Rich_Morin: has joined #ruby
[09:22:12] Rich_Morin: If I'm using MRI to run several instances of the same Ruby script, how much memory will be shared between the instances?

2017-06-04

[00:08:52] Rich_Morin: has joined #ruby
[00:12:57] Rich_Morin: Ping timeout: 240 seconds

2017-06-03

[14:22:23] Rich_Morin: has joined #ruby
[19:15:51] Rich_Morin: Ping timeout: 240 seconds
[19:17:09] Rich_Morin: has joined #ruby
[19:26:13] Rich_Morin: Ping timeout: 255 seconds
[19:27:08] Rich_Morin: has joined #ruby
[22:17:13] Rich_Morin: Ping timeout: 255 seconds
[22:42:35] Rich_Morin: Ping timeout: 240 seconds
[22:44:56] Rich_Morin: has joined #ruby
[22:51:27] Rich_Morin: Ping timeout: 240 seconds
[23:25:35] Rich_Morin: has joined #ruby
[23:29:57] Rich_Morin: Ping timeout: 240 seconds

2017-06-02

[18:53:32] Rich_Morin: has joined #ruby
[19:00:22] Rich_Morin: Ping timeout: 240 seconds

2017-05-26

[22:15:34] Rich_Morin: Ping timeout: 240 seconds

2017-05-25

[00:08:01] Rich_Morin: Ping timeout: 240 seconds
[00:19:20] Rich_Morin: Ping timeout: 260 seconds
[22:07:08] Rich_Morin: Ping timeout: 268 seconds
[22:10:32] Rich_Morin: has joined #ruby
[22:17:05] Rich_Morin: Ping timeout: 240 seconds
[22:33:36] Rich_Morin: has joined #ruby

2017-05-24

[00:47:55] Rich_Morin: has joined #ruby
[00:53:16] Rich_Morin: I've been geting irb nastygrams for a while, but given that I just updated my copy of Ruby and all the Gems, I was hoping that it would go away. Help? - https://gist.github.com/RichMorin/731f02684684df8cc47ee5db4a3ab40b
[01:12:17] Rich_Morin: havenwood: Sigh. Still getting the same nastygrams
[01:32:01] Rich_Morin: ERROR: Can't find ruby library file or shared library sqlite3
[01:32:02] Rich_Morin: ERROR: Can't find ruby library file or shared library libxml
[01:37:20] Rich_Morin: [[ "$(dirname $(which irb))" == "$(dirname $(which gem))" ]] && echo sane || echo insane
[01:39:50] Rich_Morin: erm, I just finished upgrading Ruby and all my gems - won't that make me do a bunch of that all over again?
[01:40:21] Rich_Morin: maybe I'll keep living with the ng...
[01:42:19] Rich_Morin: locate sqlite3 finds 4873 files
[01:46:06] Rich_Morin: see https://gist.github.com/RichMorin/731f02684684df8cc47ee5db4a3ab40b
[01:48:17] Rich_Morin: AFAIK, the brew version should override the OS version.
[01:53:05] Rich_Morin: Failed to find gems ["sqlite3", "libxml-ruby"] >= 0
[01:53:49] Rich_Morin: I wonder if it's a search path problem.
[01:54:27] Rich_Morin: no, they don't show up then
[01:55:29] Rich_Morin: sudo which -a ruby
[01:55:57] Rich_Morin: lists /usr/local/bin/ruby and /usr/bin/ruby
[01:56:44] Rich_Morin: GEM_PATH isn't set. PATH is /opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/Users/rdm/bin:/Users/rdm/Dropbox/cfcl/bin:/usr/local/bin:/opt/local/bin:/opt/local/sbin:/sbin:/usr/sbin:/usr/bin:/bin:/etc:/usr/games:.:/Applications/Postgres.app/Contents/Versions/9.4/bin:/usr/X11R6/bin
[01:58:10] Rich_Morin: It seems to be trying...
[02:00:36] Rich_Morin: that cleaned it up; Thanks!
[02:02:27] Rich_Morin: It also cleared up a problem I was having with ruby-path :-)
[02:06:06] Rich_Morin: except now I get "-bash: /usr/local/bin/gem: No such file or directory"
[02:11:28] Rich_Morin: and ruby --version is back at 2.0.0p481
[02:22:20] Rich_Morin: Quit: Rich_Morin
[02:23:43] Rich_Morin: has joined #ruby
[02:24:22] Rich_Morin: sorry; had to kill and restart Colloquy
[02:24:58] Rich_Morin: which gem -> /usr/bin/gem
[02:25:28] Rich_Morin: I seem to have a PATH snafu
[02:27:11] Rich_Morin: still /usr/bin/ruby
[02:51:38] Rich_Morin: havenwood: Do I need to define GEM_PATH somewhere if I'm using the brew version of Ruby?
[11:37:54] Rich_Morin: Ping timeout: 272 seconds
[11:44:01] Rich_Morin: has joined #ruby