DCameronMauch

Activity Graph

Page 1 of 1

2016-01-12

[15:15:02] DCameronMauch: has joined #RubyOnRails
[15:32:09] DCameronMauch: Quit: Leaving...

2015-10-27

[18:34:09] DCameronMauch: has joined #RubyOnRails
[19:15:18] DCameronMauch: Quit: Leaving...

2015-10-15

[17:46:00] DCameronMauch: has joined #RubyOnRails
[17:53:12] DCameronMauch: Quit: Leaving...

2015-09-09

[13:51:19] DCameronMauch: has joined #ruby
[13:51:47] DCameronMauch: Does anyone know how to setup fiddle to call C function that takes an array of ints?
[13:52:01] DCameronMauch: the Google has failed me
[14:14:36] DCameronMauch: Question: Does anyone know how to setup fiddle to call C function that takes an array of ints?
[14:25:20] DCameronMauch: Ox0dea, what does the call look like? can't find an example...
[14:25:39] DCameronMauch: also how do you direct a comment at a specific user in IRC
[14:26:38] DCameronMauch: I saw the general call for fiddle, but when I am passing a type INTPTR_T?
[14:27:15] DCameronMauch: I'm not following
[14:27:36] DCameronMauch: compute = Fiddle::Function.new(golib['compute'], [Fiddle::TYPE_INTPTR_T], Fiddle::TYPE_INT)
[14:27:43] DCameronMauch: puts compute.call([1, 2, 3, 4, 5, 6])
[14:28:31] DCameronMauch: blah.rb:6:in `call': no implicit conversion of Array into Integer (TypeError)
[14:28:56] DCameronMauch: if I change the C call to take, say, 3 ints, and pass 3 ints, it works just fine
[14:29:13] DCameronMauch: but the array length will be unknown
[14:30:19] DCameronMauch: haven't tried that
[14:30:58] DCameronMauch: blah.rb:4:in `[]': unknown symbol "compute" (Fiddle::DLError)
[14:31:06] DCameronMauch: uh, not sure what happened there
[14:31:47] DCameronMauch: because of the type mismatch I assume?
[14:31:58] DCameronMauch: this is the first time I have seen this message
[14:32:55] DCameronMauch: is there a way to say "pointer to this array" instead of the array itself?
[14:34:03] DCameronMauch: got crap for using non-standard library gem
[14:34:29] DCameronMauch: yep, they are not making this easy
[14:34:41] DCameronMauch: getting ready to abandon this line of thought
[14:39:40] DCameronMauch: Ox0dea, no luck, giving same message about unknown symbol
[14:54:05] DCameronMauch: Ox0dea, any idea where I can find out more about how to use Fiddle?
[14:54:27] DCameronMauch: there seems to be almost nothing on the Googles
[14:57:10] DCameronMauch: going to give this 1 more hour and give up
[14:57:17] DCameronMauch: no, thanks for help
[15:00:27] DCameronMauch: I have no clue how to do that with Go, but I can look into it
[15:32:02] DCameronMauch: Quit: Leaving...

2015-09-08

[15:31:35] DCameronMauch: has joined #ruby
[15:36:31] DCameronMauch: Quit: Leaving...
[17:46:10] DCameronMauch: has joined #ruby
[20:57:00] DCameronMauch: has joined #ruby
[20:58:30] DCameronMauch: have a true Ruby ninja queston: Is there a way I can create a FFI::Library module using a file handle or string with the actual C shared library inside it, and NOT a filename?
[20:58:56] DCameronMauch: I don't want to write the code to a temp file first just to read it back in
[21:01:01] DCameronMauch: yeah, I have compiled some Go as a shared C library, and appended it to the Ruby file after an __END__, which I can then access as the file handle DATA
[21:01:10] DCameronMauch: I know this is crazy
[21:01:18] DCameronMauch: but this is my limitation - it has to be one single file
[21:04:04] DCameronMauch: it is a real use case
[21:04:16] DCameronMauch: but due to various reasons, I can
[21:04:20] DCameronMauch: can't get specific
[21:04:36] DCameronMauch: just trying to get this ruby going faster
[21:04:42] DCameronMauch: and been learning Go
[21:05:14] DCameronMauch: I can't explain - but it's not an option
[21:05:31] DCameronMauch: this whole thing would have been trivial if I could
[21:06:40] DCameronMauch: I figured somewhere down inside, it is opening the file, reading the content, and then doing something with it
[21:06:50] DCameronMauch: if I could just skip to that last phase, it might work
[21:06:55] DCameronMauch: that was my thinking anyways
[21:08:37] DCameronMauch: impoerator, yeah, looking now
[21:10:47] DCameronMauch: holy crap, that is scary
[21:15:26] DCameronMauch: I am explicitly not allowed to access the file system
[21:20:33] DCameronMauch: Quit: Leaving...

2015-09-03

[20:00:20] DCameronMauch: has joined #ruby
[20:05:20] DCameronMauch: Quit: Leaving...

2015-09-01

[18:54:58] DCameronMauch: has joined #ruby
[18:54:59] DCameronMauch: has joined #RubyOnRails
[18:55:10] DCameronMauch: has left #RubyOnRails: ()
[18:55:30] DCameronMauch: has left #ruby: ()

2015-08-30

[19:32:26] DCameronMauch: has joined #RubyOnRails
[19:32:26] DCameronMauch: has joined #ruby
[19:32:31] DCameronMauch: has left #RubyOnRails: ()
[19:32:36] DCameronMauch: has left #ruby: ()

2015-08-29

[14:10:58] DCameronMauch: has joined #ruby
[14:10:59] DCameronMauch: has joined #RubyOnRails
[14:11:15] DCameronMauch: has left #RubyOnRails: ()
[14:11:19] DCameronMauch: has left #ruby: ()

2015-08-28

[15:09:04] DCameronMauch: has joined #RubyOnRails
[15:09:04] DCameronMauch: has joined #ruby
[15:37:00] DCameronMauch: Quit: Leaving...
[18:07:20] DCameronMauch: has joined #RubyOnRails
[18:07:20] DCameronMauch: has joined #ruby

2015-08-27

[20:31:35] DCameronMauch: has joined #RubyOnRails
[20:31:35] DCameronMauch: has joined #ruby
[20:43:06] DCameronMauch: Quit: Leaving...

2015-08-19

[18:46:19] DCameronMauch: has joined #RubyOnRails
[18:46:19] DCameronMauch: has joined #ruby
[18:59:45] DCameronMauch: Quit: Leaving...

2015-08-13

[21:12:16] DCameronMauch: has joined #RubyOnRails
[21:12:16] DCameronMauch: has joined #ruby
[21:47:57] DCameronMauch: Quit: Leaving...

2015-08-03

[14:54:58] DCameronMauch: has joined #RubyOnRails
[14:54:58] DCameronMauch: has joined #ruby
[15:58:12] DCameronMauch: Remote host closed the connection
[16:01:22] DCameronMauch: has joined #RubyOnRails
[16:01:22] DCameronMauch: has joined #ruby

2015-07-31

[15:50:12] DCameronMauch: has joined #RubyOnRails
[15:50:12] DCameronMauch: has joined #ruby
[16:26:57] DCameronMauch: Read error: Connection reset by peer
[16:27:13] DCameronMauch: has joined #RubyOnRails
[16:27:13] DCameronMauch: has joined #ruby
[16:42:25] DCameronMauch: Quit: Leaving...

2015-07-06

[15:43:10] DCameronMauch: has joined #RubyOnRails
[15:43:10] DCameronMauch: has joined #ruby
[16:04:43] DCameronMauch: Remote host closed the connection
[16:05:15] DCameronMauch: has joined #RubyOnRails
[16:05:15] DCameronMauch: has joined #ruby

2015-07-01

[16:44:16] DCameronMauch: has joined #RubyOnRails
[16:44:16] DCameronMauch: has joined #ruby
[17:34:11] DCameronMauch: Quit: Leaving...
[17:50:52] DCameronMauch: has joined #RubyOnRails
[17:50:52] DCameronMauch: has joined #ruby
[19:46:25] DCameronMauch: Quit: Leaving...

2015-06-30

[21:24:40] DCameronMauch: has joined #RubyOnRails
[21:24:40] DCameronMauch: has joined #ruby
[22:14:22] DCameronMauch: Quit: Leaving...

2015-06-23

[21:02:01] DCameronMauch: has joined #RubyOnRails

2015-05-27

[14:32:00] DCameronMauch: has joined #RubyOnRails
[16:18:16] DCameronMauch: Quit: Leaving...
[18:09:06] DCameronMauch: has joined #RubyOnRails
[18:39:08] DCameronMauch: Quit: Leaving...