#linuxcnc-devel | Logs for 2013-05-27

Back
[00:08:56] -!- Valen has quit [Quit: Leaving.]
[00:11:01] -!- mhaberler has quit [Quit: mhaberler]
[00:12:03] -!- adb has quit [Remote host closed the connection]
[00:12:31] -!- jpk has quit [Ping timeout: 264 seconds]
[00:24:14] -!- asdfasd has quit [Ping timeout: 240 seconds]
[00:46:25] -!- sumpfralle has quit [Ping timeout: 252 seconds]
[00:53:01] -!- mrsun has quit [Ping timeout: 252 seconds]
[00:53:46] -!- mattiasb has quit [Ping timeout: 276 seconds]
[01:20:47] -!- c-bob| has quit [Read error: Operation timed out]
[01:24:19] -!- RagingComputer has quit [Ping timeout: 276 seconds]
[01:26:20] -!- tjb1 has quit [Quit: tjb1]
[01:35:26] -!- BJfreeman has quit [Quit: had a good time]
[02:05:34] Bojangle1 is now known as Bojangles
[02:24:37] -!- L33TG33KG34R has quit [Ping timeout: 248 seconds]
[02:29:49] -!- L33TG33KG34R has quit [Ping timeout: 252 seconds]
[02:33:24] -!- fiesh has quit [Ping timeout: 245 seconds]
[02:35:43] -!- L33TG33KG34R has quit [Ping timeout: 246 seconds]
[02:49:47] <andypugh> If inst->inputs is a pointer to an array of void pointers, and inst->output is a void pointer, is this going to do what I hope it will do?
[02:49:48] <andypugh> *(hal_float_t *)inst->output = *(hal_float_t *)inst->inputs[s];
[03:07:58] -!- Willburrrrr2003 has quit [Client Quit]
[03:09:12] -!- Willburrrr2003 has quit [Read error: Connection reset by peer]
[03:19:10] -!- vladimirek [vladimirek!~vladimire@95.105.250.72] has joined #linuxcnc-devel
[03:37:12] -!- tjtr33 [tjtr33!~tjtr33@76-216-190-185.lightspeed.cicril.sbcglobal.net] has joined #linuxcnc-devel
[03:42:24] -!- LeelooMinai has quit []
[03:51:02] -!- Tecan has quit [Quit: Live Long And Phosphor!]
[03:56:15] -!- LeelooMinai has quit [Remote host closed the connection]
[03:59:09] -!- velcrow has quit [Ping timeout: 240 seconds]
[04:06:32] -!- tjtr33 [tjtr33!~tjtr33@76-216-190-185.lightspeed.cicril.sbcglobal.net] has parted #linuxcnc-devel
[04:22:51] -!- FinboySlick has quit [Quit: Leaving.]
[04:38:26] -!- vladimirek has quit [Remote host closed the connection]
[04:46:20] -!- Tecan has quit [Changing host]
[04:47:15] -!- Loetmichel has quit [Ping timeout: 256 seconds]
[04:48:25] -!- The_informer has quit [Ping timeout: 250 seconds]
[05:01:10] -!- Fox_Muldr has quit [Read error: Operation timed out]
[05:15:54] -!- psha[work] [psha[work]!~psha@195.135.238.205] has joined #linuxcnc-devel
[05:17:56] Cylly is now known as Loetmichel
[05:25:08] -!- LeelooMinai has quit [Read error: Connection reset by peer]
[05:27:08] -!- L84Supper2 has quit [Quit: gone]
[05:38:51] -!- mhaberler [mhaberler!~mhaberler@macbook.stiwoll.mah.priv.at] has joined #linuxcnc-devel
[06:02:18] -!- L84Supper2 [L84Supper2!~TheLarch@211.155.168.68] has joined #linuxcnc-devel
[06:02:18] -!- L84Supper2 has quit [Changing host]
[06:02:18] -!- L84Supper2 [L84Supper2!~TheLarch@unaffiliated/l84supper] has joined #linuxcnc-devel
[06:08:34] -!- Keknom has quit [Quit: Leaving.]
[06:11:14] -!- tjb1 has quit [Quit: tjb1]
[06:11:27] -!- karavanjo has quit [Remote host closed the connection]
[06:41:55] <mhaberler> do we have a kins module for that? http://www.youtube.com/watch?feature=player_embedded&v=UBHJqnM8RTU
[07:15:16] -!- RagingComputer has quit [Ping timeout: 252 seconds]
[07:17:14] -!- b_b has quit [Changing host]
[07:18:46] _BJfreeman is now known as BJfreeman
[07:32:49] -!- karavanjoW has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
[07:33:32] -!- tjb1 has quit [Quit: tjb1]
[07:39:09] -!- c-bob| has quit [Quit: broken path - terminated!]
[07:41:22] -!- frallzor has quit []
[07:44:49] -!- jfire has quit [Quit: Leaving.]
[08:41:38] -!- BJfreeman has quit [Quit: had a good time]
[08:45:27] -!- maximilian_h [maximilian_h!~bonsai@130.255.104.21] has joined #linuxcnc-devel
[08:45:32] -!- maximilian_h [maximilian_h!~bonsai@130.255.104.21] has parted #linuxcnc-devel
[08:58:43] -!- Bojangles has quit [Ping timeout: 264 seconds]
[09:02:20] -!- alex_joni has quit [Ping timeout: 256 seconds]
[09:02:36] -!- alex_joni [alex_joni!~alex_joni@emc/board-of-directors/alexjoni] has joined #linuxcnc-devel
[09:02:36] -!- mode/#linuxcnc-devel [+v alex_joni] by ChanServ
[09:02:57] -!- L84Supper has quit [Ping timeout: 248 seconds]
[09:04:39] -!- b_b has quit [Changing host]
[09:10:43] -!- alex_joni has quit [Ping timeout: 264 seconds]
[09:10:59] -!- alex_joni [alex_joni!~alex_joni@emc/board-of-directors/alexjoni] has joined #linuxcnc-devel
[09:10:59] -!- mode/#linuxcnc-devel [+v alex_joni] by ChanServ
[09:11:31] -!- L84Supper [L84Supper!~TheLarch@unaffiliated/l84supper] has joined #linuxcnc-devel
[09:32:15] -!- karavanjoW has quit [Client Quit]
[09:32:18] -!- mhaberler has quit [Quit: mhaberler]
[09:35:55] -!- alex_joni has quit [Ping timeout: 264 seconds]
[09:36:11] -!- alex_joni [alex_joni!~alex_joni@emc/board-of-directors/alexjoni] has joined #linuxcnc-devel
[09:36:12] -!- mode/#linuxcnc-devel [+v alex_joni] by ChanServ
[09:38:19] -!- Tecan has quit [Quit: Live Long And Phosphor!]
[10:12:24] -!- mhaberler [mhaberler!~mhaberler@macbook.stiwoll.mah.priv.at] has joined #linuxcnc-devel
[10:29:12] -!- Tecan has quit [Changing host]
[10:30:41] -!- Tecan has quit [Client Quit]
[10:47:40] -!- LeelooMinai has quit [Read error: Connection reset by peer]
[10:52:45] -!- jthornton [jthornton!~john@99.198.67.11] has joined #linuxcnc-devel
[10:54:29] -!- LeelooMinai has quit [Ping timeout: 246 seconds]
[11:05:21] -!- jef79m has quit [Ping timeout: 252 seconds]
[11:17:35] -!- dhoovie has quit [Ping timeout: 246 seconds]
[11:48:31] -!- Tecan has quit [Changing host]
[12:17:37] <andypugh> Seems to be parallel/serial, so you ned to get to work on it. :-)
[12:28:28] -!- skroon has quit [Client Quit]
[12:35:30] -!- exco_ has quit [Client Quit]
[12:43:49] -!- sumpfralle has quit [Ping timeout: 245 seconds]
[12:56:33] -!- exco has quit [Read error: Connection reset by peer]
[12:58:49] -!- psha[work] has quit [Quit: Lost terminal]
[13:03:04] -!- crank has quit [Ping timeout: 276 seconds]
[13:10:38] -!- Jymmm has quit [Ping timeout: 246 seconds]
[13:19:25] -!- mhaberler has quit [Quit: mhaberler]
[13:30:27] -!- ler_hydra has quit [Remote host closed the connection]
[13:56:55] -!- ridoo has quit [Ping timeout: 264 seconds]
[14:09:39] -!- psha [psha!~psha@213.208.162.67] has joined #linuxcnc-devel
[14:23:11] -!- evokanevo [evokanevo!~evokanevo@c-67-165-114-108.hsd1.wa.comcast.net] has joined #linuxcnc-devel
[14:25:43] -!- exco_ has quit [Read error: Connection reset by peer]
[14:33:30] -!- JT-Shop [JT-Shop!~John@99.198.67.11] has joined #linuxcnc-devel
[14:41:19] -!- RagingComputer has quit [Ping timeout: 264 seconds]
[14:48:06] -!- jerryitt has quit [Read error: Connection reset by peer]
[15:00:53] -!- IchGuckLive has quit [Quit: ChatZilla 0.9.87 [Firefox 20.0/20130329043827]]
[15:02:40] -!- RyanS has quit [Ping timeout: 260 seconds]
[15:07:01] -!- Bojangle1 has quit [Read error: Connection reset by peer]
[15:09:07] -!- holst has quit [Quit: Leaving]
[15:23:55] _BJfreeman is now known as BJfreeman
[15:27:22] -!- L84Supper has quit [Ping timeout: 256 seconds]
[15:28:08] -!- L84Supper [L84Supper!~TheLarch@unaffiliated/l84supper] has joined #linuxcnc-devel
[15:40:17] -!- jfire has quit [Quit: Leaving.]
[15:52:43] -!- syyl_ has quit [Ping timeout: 276 seconds]
[15:55:04] -!- skorasaurus has quit [Client Quit]
[16:03:02] -!- micges [micges!~micges@eio224.neoplus.adsl.tpnet.pl] has joined #linuxcnc-devel
[16:03:43] -!- micges has quit [Client Quit]
[16:04:08] -!- kostodo has quit [Quit: kostodo]
[16:06:17] -!- Kup has quit [Read error: Connection reset by peer]
[16:11:07] -!- Nikhil_ has quit [Client Quit]
[16:25:04] -!- jerryitt has quit [Ping timeout: 245 seconds]
[16:30:17] -!- jfire has quit [Quit: Leaving.]
[16:38:44] -!- sumpfralle has quit [Ping timeout: 240 seconds]
[16:54:15] -!- toudi_ [toudi_!~toudi@user-164-127-146-229.play-internet.pl] has joined #linuxcnc-devel
[16:54:23] toudi_ is now known as micges
[16:58:50] -!- skorasaurus has quit [Ping timeout: 246 seconds]
[17:05:04] -!- vladimirek [vladimirek!~vladimire@95.105.250.72] has joined #linuxcnc-devel
[17:10:28] -!- exco has quit [Read error: Connection reset by peer]
[17:28:58] -!- mhaberler [mhaberler!~mhaberler@macbook.stiwoll.mah.priv.at] has joined #linuxcnc-devel
[17:54:29] -!- rob_h [rob_h!~rob_h@2.124.34.133] has joined #linuxcnc-devel
[17:55:47] -!- Santolina has quit [Ping timeout: 250 seconds]
[17:56:24] <psha> mhaberler: IndexError on EINVAL landed in my repo
[17:56:32] <psha> native iterators still under construction
[17:56:51] <mhaberler> ah
[17:57:20] <mhaberler> that'be cool; I have a c example but it looks less than intuitive
[17:59:19] -!- jepler_ has quit [Ping timeout: 252 seconds]
[18:12:30] <psha> mhaberler: for b in ring: print b
[18:12:33] <psha> landed
[18:12:43] <mhaberler> whoa! super
[18:13:21] <mhaberler> man, how do you do these things so fast.. that'd take me a day or two..
[18:15:20] -!- IchGuckLive has quit [Quit: ChatZilla 0.9.87 [Firefox 20.0/20130329043827]]
[18:15:21] <mhaberler> make me understand: that iterator is applicable only for the circular use, or both circular and queue? (methinks both)
[18:16:27] <psha> both
[18:16:55] <psha> circular use is just a way to read old data away - for iterator consumers there is no difference
[18:17:30] <psha> however probably it's better to copy buffer
[18:17:38] -!- jerryitt has quit [Read error: Connection reset by peer]
[18:17:57] <psha> current implementation provides 'view' on memory - zero copy and so on
[18:19:17] <mhaberler> what does this imply for me..
[18:19:35] <mhaberler> btw: here is my current stab at the circular read op: http://tinyurl.com/osa3w3s
[18:20:37] <mhaberler> that be the overwriting (circular) write: http://tinyurl.com/q28awd5
[18:21:08] <mhaberler> nb the readop is in a threadfunc so repeat is implicit
[18:22:03] <mhaberler> is the 'copy buffer in the iterator' now left as an exercise for the reader ;-?
[18:23:57] <mhaberler> q: assume 'for b in ring: print b' - does this consume the records? I would assume not; to actually consume with an iterator one would have to shift() ontop after use?
[18:28:51] <psha> probably if user want to be sure everything is ok - just do copy on python side
[18:28:54] <psha> i think
[18:29:12] <psha> yep, for b in ring consumes with iterator
[18:29:23] <psha> just like with plain list
[18:29:32] <psha> for x in list just shows you elements
[18:29:38] <psha> list.pop() - removes them
[18:30:21] <mhaberler> trying to parse..
[18:30:32] <psha> instead of 'case 0' probably 'default' would be better?
[18:31:36] <mhaberler> right
[18:33:07] <mhaberler> if 'for b in ring: ' consumes, what's the peek-only iterator then? lost..
[18:33:49] <psha> nonono )
[18:33:55] <psha> iterator never consumes
[18:33:57] <psha> just shows
[18:34:09] <psha> only consuming function is shift()
[18:34:27] <psha> even read() is not altering ring
[18:34:51] <mhaberler> for b in ring:
[18:34:53] <mhaberler> print b
[18:34:56] <mhaberler> peeks?
[18:35:01] <mhaberler> and
[18:35:04] <mhaberler> for b in ring:
[18:35:07] <mhaberler> print b
[18:35:10] <mhaberler> shift()
[18:35:13] <mhaberler> consumes?
[18:35:14] <psha> ring.shift()
[18:35:15] <psha> yep
[18:35:23] <mhaberler> got it
[18:37:42] <mhaberler> do you think the c consuming iterator example makes sense (modulo 0->default)?
[18:38:09] <mhaberler> other than that, trying to translate these research findings in mah-comprehensible code examples :)
[18:39:28] <psha> i don't think that _consuming_ iterator is great idea...
[18:39:48] <mhaberler> right, not much point
[18:40:23] <psha> btw it's better to use ring_read(void **, size_t *) instead of ring_next_size
[18:40:49] <mhaberler> well hold on: we discussed circular, and you gave me the scheme to use an iterator on client side in this case
[18:41:20] <mhaberler> writer: while (write('data') == EAGAIN)) read();
[18:41:48] <mhaberler> reader: clients use iterators, not just read
[18:41:50] <mhaberler> so?
[18:42:15] <andypugh> mhaberler: You were right about runtime-configurable pins being a memory-managment headache.
[18:42:27] <mhaberler> amen
[18:42:39] -!- holgi has quit [Quit: ChatZilla 0.9.90 [Firefox 20.0/20130329043827]]
[18:42:53] <mhaberler> you might have to allocate hal_data_u's to be saf
[18:42:54] <mhaberler> e
[18:43:09] <psha> so it's right - ring_read is for second branch of if
[18:43:18] <psha> if (!circular)
[18:43:56] <psha> so to circular case it does not apply
[18:44:19] <psha> afk
[18:44:21] <mhaberler> right, but I thought I get away with the zero-copy version there to be more 'elegant'
[18:44:22] <mhaberler> sure
[18:48:21] <psha> maybe
[18:48:27] <psha> however you request next_size twice
[18:48:42] <psha> and at least once you'll call method to get data
[18:48:58] -!- jepler [jepler!~jepler@emc/developer/pdpc.professional.jepler] has joined #linuxcnc-devel
[18:49:31] <mhaberler> right, thats nonsense, will collapse into one
[18:51:23] -!- sumpfralle has quit [Quit: Leaving.]
[18:52:04] <mhaberler> this looks 'more correct' http://tinyurl.com/oot3dhz
[18:54:19] -!- RagingComputer has quit [Ping timeout: 246 seconds]
[18:55:18] -!- Loetmichel has quit [Read error: Connection reset by peer]
[18:55:42] <mhaberler> jepler: I was supposed to bug you about the rtapi headers
[18:57:28] <mhaberler> and while I am in bugging mode: can I ask you to glimpse over this one: http://www.mail-archive.com/emc-developers@lists.sourceforge.net/msg09596.html ?
[19:01:46] <andypugh> If I switch the order in which I hal_malloc the space for the pin-arrays then instead of getting a warning about already-allocated memory at pin-creation time, I get a segfault at pin-reading time. This is probably not an improvement.
[19:03:33] <mhaberler> the hint towards 'already initialized' means you likely forgot an indirection
[19:04:55] -!- memleak [memleak!~memleak@unaffiliated/memleak] has joined #linuxcnc-devel
[19:05:22] <memleak> Hello all! I'm working on RTAI development and have a question in regards to a compiling error in Linuxcnc RTOS.
[19:05:54] <memleak> I am not sure if this is a problem within LinuxCNC source code or RTAI source code, but this is the error I get: http://pastebin.com/PupzM54x
[19:06:42] <memleak> I'm thinking that maybe LinuxCNC does not compile with GCC 4.7.3 with Binutils 2.23.1 or does this work for other people?
[19:07:03] <mhaberler> this is a linking error, and you are missing a library, likely lxrt
[19:07:16] <memleak> The RTAI tree I am using is here: https://github.com/ShabbyX/RTAI/tree/experimental
[19:07:26] <memleak> lxrt.so or something?
[19:07:30] <mhaberler> it is a _linking_ error
[19:08:18] <memleak> liblxrt.a liblxrt.la liblxrt.so liblxrt.so.1 liblxrt.so.1.0.0 are all in /usr/realtime/lib
[19:08:20] <mhaberler> no idea where these syms are defined. 'man nm' and dig the candidates
[19:08:57] <memleak> base/include/rtai_shm.h in RTAI tree
[19:09:28] <memleak> Problem is, the exact same file both from the official RTAI upstream tree and my tree are identical.
[19:11:10] <memleak> https://github.com/ShabbyX/RTAI/blob/experimental/base/include/rtai_shm.h lines 67 and 87
[19:13:39] <andypugh> Got it! sizeof(hal_bit_t) is less than sizeof(hal_bit_t*). I wasn't allocating enough memory.
[19:14:38] <andypugh> So, when the next batch of pins came along, they were put in memory already snaffled by the first batch.
[19:17:39] <mhaberler> thats why I meant it would be safer to use hal_data_u instead of the member types of varying size; those always fit
[19:18:13] <andypugh> I have no idea what you mean by hal_data_u
[19:19:06] <mhaberler> the union type here: http://git.linuxcnc.org/gitweb?p=linuxcnc.git;a=blob;f=src/hal/hal_priv.h;h=1ef1f745c47dab9f2f863b6d9488f29ab08308b3;hb=refs/heads/v2.5_branch#l119
[19:21:49] -!- krusty_ar has quit [Ping timeout: 252 seconds]
[19:27:01] <andypugh> Oh! How long has he been there for?
[19:27:01] -!- micges has quit [Quit: Wychodzi]
[19:28:46] <andypugh> That does seem like a lot less bother than casting all these void pointers.
[19:29:10] <andypugh> Or, it would have been, if it wasn't a lot more bother to change it all now. :-/
[19:33:44] <mhaberler> git blame hal_priv.h: d63b35f9 (Jeff Epler 2008-11-06 03:39:53 +0000 119) /** HAL "data union" structure
[19:34:27] <mhaberler> since this is hal_priv.h, not hal.h, this aint for us unwashed coders
[19:35:04] <mhaberler> first time I considered fiddling hal_priv.h I received serious fish slapping ;)
[19:38:17] -!- nikola_ has quit [Quit: Page closed]
[19:41:44] -!- a-l-e has quit [Ping timeout: 245 seconds]
[19:42:31] <psha> mhaberler: btw i think it's better to remove 'read' and 'shift' methods from RingIter
[19:42:42] <mhaberler> ok
[19:42:48] <psha> but that's for tomorrow
[19:42:48] <psha> bb
[19:43:04] <mhaberler> we call this 'salami tactics' ;)
[19:46:57] <mhaberler> btw the current python wrapping is here: http://tinyurl.com/q4la63q , carried over your code
[19:48:38] -!- micges [micges!~micges@eio224.neoplus.adsl.tpnet.pl] has joined #linuxcnc-devel
[19:50:07] -!- psha has quit [Quit: Lost terminal]
[19:54:16] <mhaberler> Павел говорит: удалите их. Так что я их устранению.
[19:59:43] -!- cbjamo has quit [Ping timeout: 250 seconds]
[20:01:01] -!- sumpfralle has quit [Ping timeout: 276 seconds]
[20:19:50] -!- stsydow has quit [Quit: Leaving]
[20:24:19] -!- bedah has quit [Remote host closed the connection]
[20:26:21] -!- adb [adb!~IonMoldom@178.211.237.94] has joined #linuxcnc-devel
[20:29:58] -!- shurshur has quit [Remote host closed the connection]
[20:55:04] -!- skroon has quit [Quit: leaving]
[20:56:41] -!- mhaberler has quit [Quit: mhaberler]
[20:57:46] -!- FinboySlick has quit [Quit: Leaving.]
[21:12:20] -!- frallzor has quit []
[21:14:43] -!- DJ9DJ has quit [Quit: bye]
[21:19:04] -!- ve7it [ve7it!~LawrenceG@S01060014d19d0b68.pk.shawcable.net] has joined #linuxcnc-devel
[21:22:41] -!- odiug has quit [Ping timeout: 248 seconds]
[21:26:19] -!- BJfreeman has quit [Read error: Connection reset by peer]
[21:44:19] -!- syyl_tb has quit [Ping timeout: 264 seconds]
[21:48:24] -!- phantoxeD has quit [Ping timeout: 245 seconds]
[21:52:05] -!- memleak has quit [Quit: Leaving]
[22:15:24] -!- ve7it has quit [Remote host closed the connection]
[22:25:19] _BJfreeman is now known as BJfreeman
[22:29:13] -!- evokanevo has quit [Read error: Connection reset by peer]
[22:31:34] -!- rob_h has quit [Ping timeout: 240 seconds]
[22:34:24] -!- Roguish has quit [Remote host closed the connection]
[22:52:53] -!- micges has quit [Quit: Leaving]
[23:03:11] -!- Tecan has quit [Read error: Connection reset by peer]
[23:04:38] -!- tar-nation has quit [Quit: Leaving]
[23:17:54] -!- servos4ever has quit [Quit: ChatZilla 0.9.85 [SeaMonkey 2.0.11/20101206162726]]
[23:22:31] -!- Loetmichel has quit [Ping timeout: 276 seconds]
[23:38:38] <andypugh> Is "runtests" expected to work in Master?
[23:38:46] <andypugh> I seem to have a redis-related problem
[23:43:04] <andypugh> ignore me. I think I was running a different runtests script.
[23:44:30] <andypugh> ls
[23:49:30] -!- Tecan has quit [Changing host]