<< 21-08-2015 >>

00:20:19ivanvp_not to be a troll, but you think having a windows version is important?
00:20:23*ivanvp_ is now known as ivanvp
00:21:00ivanvpperhaps I'm in the wrong sector of programming, but I don't know a single windows dev, especially ones using something other than MS stack
00:24:09Araqso you think he wants to query drives for other developers? ;-)
00:25:37*nevercast joined #nim
00:25:48nevercastYou said I can use a Python library in Nim ?
00:25:49nevercastHow ?
00:25:58AraqNimborg
00:26:31nevercastPython and Lua, nice, thanks.
00:27:57ivanvpquery drives?
00:28:06nevercastblock devices
00:28:11nevercasthard drives, yes.
00:29:00Araqivanvp: fwiw I don't know a single linux dev who writes commercial software for linux ... ;-)
00:30:56nevercastLooks like there is no *unix/posix standard way for this. OSX might be missing out for awhile.
00:31:03*rollo joined #nim
00:31:21ivanvpcommercial for linux? like for sale? yeah me too actually
00:32:20nevercastI know a Fedora dev, which is as close as it gets being under the RedHat umbrella. That doesn't really count though I guess.
00:35:57*yglukhov joined #nim
00:36:45AraqOSX doesn't get drives right anyway, it treats everything the same
00:37:57Araqit's one of my favourite misfeatures. Got an USB stick? good luck trying to free space on it with the finder. it will just move everything to the recycle bin. which is kept on the stick.
00:39:00Araq(yes, I can use the terminal instead, but the average OSX user cannot.)
00:39:31nevercastI'm stuck between a decision on dependencies and portability with the added "difficulty" consideration. I can use util-linux or libparted. But then I have to use their low-level API. I could use a shell tool, but then that has to be installed on the host system. I guess fdisk/gdisk are likely the most common ported tools. Perhaps I should hook their output. A lot of them provide script support (sfdisk, sgdisk)
00:39:50nevercastAraq, the average user will probably expect the recycle bin to be the obvious place, and clear it after.
00:40:04nevercastI think it's stupid. You can Shift+Delete from the USB yes ?
00:40:10*yglukhov quit (Ping timeout: 240 seconds)
00:40:27Araqwrong, the average user comes to me instead and ask for my help :P
00:41:09nevercastOh, yes I get that too. I've started turning people down that use OSX. If they can pay stupid prices for a device, they can pay for tech support too.
00:47:50*vendethiel quit (Ping timeout: 240 seconds)
00:48:06Araqwhat are you trying to do?
00:49:26nevercastOn windows I can open \\.\PhysicalDisk0, and this is equivilent to /dev/sda in Linux
00:49:33nevercastBoth these files let me read the first disk on the system
00:49:46nevercastBut I'd like to not use known constants. I don't know how to query the OS for these paths.
00:50:01nevercastMSDN/Technet is good at providing a Microsoft API for this. Linux is lacking.
00:50:28nevercastOSX I'm not considering at this point.
00:51:08AraqLinux generally expects you knowing the dir hierarchy, so hardcoding /dev/sda is fine I think
00:51:15Araq*you to know
00:51:49nevercastI can read /proc/partitions or /sys/block, that seems fine.
00:52:00nevercastI'll probably go with procfs, it seems more recommended than sys
00:52:26nevercastAnother option is udev, but systemd can manipulate udev and I don't know if udev libraries will reflect the rules.
00:54:46*Trustable quit (Remote host closed the connection)
00:55:14nevercastlibudev seems the best way, it queries all devices in Kernel /sys and returns the /dev node.
00:56:58Araqdunno, sounds bad
00:57:11Araq7 characters long and 3 vowels
00:58:46Araq(boy this joke never gets old :-) )
01:02:27NimBotnim-lang/Nim devel 695e2e9 Araq [+1 ±7 -0]: implemented macros.getImpl
01:05:43*ivanvp left #nim (#nim)
01:08:56*brson quit (Remote host closed the connection)
01:16:29*Demon_Fox quit (Ping timeout: 265 seconds)
01:17:26*Demon_Fox joined #nim
01:26:55*NimBot joined #nim
01:27:52*bendiken quit ()
01:29:56*nevercast quit (Ping timeout: 246 seconds)
01:48:14*NimBot joined #nim
02:10:39*rollo quit (Quit: Leaving)
02:24:41*NimBot joined #nim
02:28:23*nevercast joined #nim
02:29:22nevercast<Araq> 7 characters long and 3 vowels
02:29:25*nevercast slow claps
02:34:14*vendethiel joined #nim
02:51:14*NimBot joined #nim
03:03:27*vendethiel quit (Ping timeout: 244 seconds)
03:04:30*Demon_Fox quit (Quit: Leaving)
03:19:17*darkf joined #nim
03:23:24*nevercast quit (Read error: Connection reset by peer)
03:40:33*Demon_Fox joined #nim
04:04:19*darkf quit (Read error: Connection reset by peer)
04:04:43*darkf joined #nim
04:18:54*nande joined #nim
04:21:47*crjoe joined #nim
04:21:50*kilon joined #nim
04:29:02*kilon quit (Remote host closed the connection)
05:03:46*xificurC joined #nim
05:11:21*pregressive joined #nim
05:15:12*pregressive quit (Remote host closed the connection)
05:22:40*FedeOmoto quit (Quit: Leaving)
05:29:42*yglukhov joined #nim
05:34:11*yglukhov quit (Ping timeout: 260 seconds)
05:53:39*vendethiel joined #nim
05:54:20*vendethiel quit (Client Quit)
05:59:18*gokr quit (Quit: Leaving.)
06:01:16*nande quit (Remote host closed the connection)
06:09:30*onionhammer quit (Ping timeout: 240 seconds)
06:09:47*onionhammer joined #nim
06:37:44*dalarmmst joined #nim
06:40:25*onionhammer quit (Ping timeout: 245 seconds)
06:41:04*onionhammer joined #nim
06:51:09*Ven joined #nim
06:52:49*Xe is now known as CAVESSH_JOSHNOV
07:01:23*jszymanski joined #nim
07:01:30*CAVESSH_JOSHNOV is now known as Xe
07:08:38*kilon joined #nim
07:08:43*Ven quit (Remote host closed the connection)
07:13:07*kilon quit (Remote host closed the connection)
07:15:25*crjoe quit (Quit: Page closed)
07:15:59*gokr joined #nim
07:16:52*^aurora^ joined #nim
07:20:54*yglukhov joined #nim
07:21:44*yglukhov quit (Remote host closed the connection)
07:22:42*Demon_Fox quit (Quit: Leaving)
07:28:51*EXetoC joined #nim
07:37:11*kilon joined #nim
07:37:11*kilon quit (Changing host)
07:37:11*kilon joined #nim
07:41:48*yglukhov joined #nim
07:42:20*irrequietus joined #nim
07:46:47*kilon quit (Remote host closed the connection)
07:47:56*Ven joined #nim
07:53:19*gokr quit (Quit: Leaving.)
07:55:16*Ven quit (Read error: Connection reset by peer)
07:57:40*Ven joined #nim
08:00:51*yglukhov_ joined #nim
08:03:21*jszymanski quit (Quit: computer sleeps...)
08:03:31*yglukhov quit (Ping timeout: 260 seconds)
08:05:28*coffeepot joined #nim
08:09:29*NimBot joined #nim
08:13:56*gokr joined #nim
08:22:48*Ven quit (Remote host closed the connection)
08:23:15*Ven joined #nim
08:36:12*yglukhov_ quit (Remote host closed the connection)
08:37:35*yglukhov joined #nim
08:37:40*yglukhov quit (Remote host closed the connection)
08:38:14*yglukhov joined #nim
08:42:50*yglukhov quit (Remote host closed the connection)
08:43:29*wuehlmaus joined #nim
08:48:02*coffeepot quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
08:51:44*Trustable joined #nim
08:58:12*yglukhov joined #nim
09:06:24*NimBot joined #nim
09:07:18*coffeepot joined #nim
09:12:11*Kingsquee quit (Quit: http://i.imgur.com/EsXzoum.png)
09:34:07*Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
09:46:59*BitPuffin|osx quit (Ping timeout: 244 seconds)
09:58:12*Matthias247 joined #nim
10:06:55*gokr quit (Ping timeout: 250 seconds)
10:18:25NimBotnim-lang/Nim devel 0cc662d Araq [+0 ±1 -0]: fixes bootstrapping
10:32:40*Matthias247 quit (Read error: Connection reset by peer)
10:34:49*Ven joined #nim
10:35:08*yglukhov quit (Remote host closed the connection)
10:37:22*rollo joined #nim
10:38:54*bobbycvi joined #nim
10:41:08federico3for Debian users: https://wiki.debian.org/Nim
10:41:14federico3feedback is welcome
10:47:45*yglukhov joined #nim
10:50:25wdouglassfederico3: great work! i've been looking forward to a debian package
10:51:40*Jesin quit (Ping timeout: 245 seconds)
10:53:01*gokr joined #nim
11:07:27*yglukhov quit (Remote host closed the connection)
11:15:49*jszymanski joined #nim
11:27:31*yglukhov joined #nim
11:31:14*yglukhov quit (Remote host closed the connection)
11:31:15*Ven quit (Remote host closed the connection)
11:32:51*Ven joined #nim
11:35:31*Jesin joined #nim
11:42:26*BitPuffin joined #nim
11:44:24*yglukhov joined #nim
11:46:44*xcombelle joined #nim
12:03:46*NimBot joined #nim
12:06:22federico3wdouglass: oh the compiler is already packaged, the wiki page is about packaging other stuff
12:09:29federico3did Araq's talk got published?
12:29:20*NimBot joined #nim
12:37:04*^aurora^ quit (Quit: My Mac has gone to sleep. ZZZzzz…)
12:39:21*polde quit (*.net *.split)
12:41:05*polde joined #nim
12:44:25*Ven quit (Read error: No route to host)
12:44:51*Ven joined #nim
12:58:30*Matthias247 joined #nim
13:00:11*NimBot joined #nim
13:16:36*johnsoft quit (Ping timeout: 264 seconds)
13:17:14*johnsoft joined #nim
13:18:57*^aurora^ joined #nim
13:21:39*gokr quit (Quit: Leaving.)
13:24:42baabelfishis there a way to apply tuple to a function?
13:29:58reactormonkbaabelfish, pass the tuple as arguments?
13:30:05baabelfishreactormonk: indeed
13:30:57reactormonkbaabelfish, not that I know of, but you should be able to write a macro that does that - use the proc signature, index the tuple fields and iterate over the sig and assign from the indexed tuple fields.
13:31:09reactormonk... index by name or by position, whatever you like btter
13:31:25baabelfishreactormonk: nice
13:32:34r-kumacro would work if tuple member count was known at compile time only
13:32:59reactormonkr-ku, isn't that kinda given with a tuple?
13:33:25r-kuidk about nim tuples but python tuples can have any number of things in them
13:33:51reactormonkbaabelfish, update your nim and use getImpl - but I'm not really sure how you would do the overload resolution :-/
13:34:21baabelfishhmh
13:34:24reactormonkr-ku, nah, in statically typed languages, tuples are known at compile time. Otherwise you'd use a map or dict, hash, etc.
13:34:41r-kugood to know, thanks for clarification ;)
13:35:09reactormonkr-ku, feel free to ask.
13:36:24reactormonkbaabelfish, pretty sure I asked Araq about that before :-)
13:36:30baabelfishheh
13:39:09reactormonkbaabelfish, migth as well poke him about it.
13:39:45baabelfishhttps://github.com/baabelfish/luabinds#calling-c-functions-from-lua lua.attach("sum", sum) creates a tuple type from the parameter types and a function that creates an instance to be applied to that function
13:40:12baabelfishold shit code, but was wondering if I have to do something similar in the future...
13:45:50*filcuc joined #nim
13:46:35filcuchi all, i'm the author of the nim qml bindings. I debugged an issue on bsd where my app couldn't start
13:46:57filcucfinally i discovered that the issue was due due to not linking to pthread
13:47:38filcucbasically i use dynlib for dynamically load some functions from a C library
13:48:32filcuchowever it seems i must manually link to pthread. is this correct?
13:56:47*filcuc_ joined #nim
14:01:02*yglukhov quit (Remote host closed the connection)
14:12:35*rollo quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
14:13:53*Demos joined #nim
14:14:11*bobbycvi quit (Quit: Leaving)
14:15:32reactormonkfilcuc, when not defined(macosx): {.passL: "-pthread".} <- maybe it's recognized as macosx?
14:16:22reactormonkif you use --passL:pthread on the nim c command, does that fix your problem?
14:17:51filcucreactormonk, yes
14:17:57filcuci had to pass it explictly
14:18:18filcucreactormonk, https://github.com/filcuc/DOtherSide/commit/f85f02f4aea6ff08653af1eef431f97e44f17668
14:19:56reactormonkfilcuc, are you using threads somewhere then?
14:20:52filcucreactormonk, well my DOtherSide C library is a wrapper for Qt libraries
14:20:56filcucso yeah...
14:21:05filcuci think that Qt use threads :)
14:21:10filcucand Qml for sure
14:21:19reactormonkfilcuc, but not the nim library threads? In that case, just put in {.passL:"-pthreads".} in your code
14:21:31*yglukhov joined #nim
14:22:11filcucreactormonk, where i should put that line? i mean with importc pragma i put them near the function i import
14:22:21filcucreactormonk, in that case is a global thing...
14:23:18reactormonkfilcuc, strange, it should be in there by default... but just dump it somewhere. Doesn't matter.
14:23:55reactormonkfilcuc, hm, https://github.com/nim-lang/Nim/blob/devel/lib/system/threads.nim#L10-L12
14:24:07reactormonkactually not sure what the correct solution is.
14:25:36filcucreactormonk, maybe something is not working correctly on BSD
14:25:56filcucreactormonk, i can confirm that pthread are not linked by using ldd
14:26:27filcucwithout me expliclty adding the --passL:-lpthread ldd doesn't show any link dependency with pthreads
14:27:53filcucreactormonk, maybe, as you said, BSD is recognized as OSX
14:28:20filcucreactormonk, https://github.com/nim-lang/Nim/blob/devel/lib/system/threads.nim#L112
14:29:03*strcmp1 quit (Ping timeout: 255 seconds)
14:33:16*filcuc quit ()
14:33:29*filcuc_ quit (Quit: Konversation terminated!)
14:33:43*filcuc joined #nim
14:38:45*xet7 quit (Ping timeout: 260 seconds)
14:46:44*brson joined #nim
14:48:30*Demos quit (Remote host closed the connection)
14:51:02Araqreactormonk, filcuc that code is only active with --threads:on
14:51:10reactormonkAraq, he left
14:51:16*darkf quit (Quit: Leaving)
14:51:21filcucno i'm here
14:51:42reactormonkoh, oops
14:51:56filcucAraq: so you suggest that the correct thing it's to add --threads:on in my compilation cmake file?
14:52:39filcucAraq: however in my case i can solve it easily. However a user who install my bindings through nimble must add it manually
14:53:11AraqI'm only explaining the current behaviour
14:53:24AraqI have no opinion on what you should do ;-)
14:53:24filcucAraq: :| a now that in some way a user must read the documentation. But is there a possibility to make this automatic?
14:56:38filcucAraq: --threads:on|off turn support for multi-threading on|off
14:56:49filcucAraq: is there some more doc about what that means?
14:56:59filcucAraq: for example why can't that be on by default?
14:58:34*Demos joined #nim
15:02:24Araqdunno what would break with --threads:on as default
15:10:04Araqdef-: you tested #3143 (readline) well, I suppose?
15:14:04*Jesin quit (Quit: Leaving)
15:14:30onionhammerso it's still 'nims' instead of 'nimscript' atm?
15:14:50Araqyeah
15:18:06*strcmp1 joined #nim
15:21:44*bendiken joined #nim
15:25:52*Demos quit (Remote host closed the connection)
15:32:40*Ven quit (Read error: Connection reset by peer)
15:47:12*Ven joined #nim
15:50:34*^aurora^ quit (Quit: My Mac has gone to sleep. ZZZzzz…)
15:55:47*yglukhov_ joined #nim
15:58:45*yglukhov quit (Ping timeout: 245 seconds)
16:00:01*yglukhov_ quit (Ping timeout: 244 seconds)
16:05:35*coffeepot quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
16:06:53*Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
16:12:32*filcuc quit (Quit: Konversation terminated!)
16:13:38*Demos joined #nim
16:22:06*Demos quit (Remote host closed the connection)
16:23:18*Demos joined #nim
16:25:51*pregressive joined #nim
16:33:04*Demos_ joined #nim
16:36:41*Demos quit (Ping timeout: 244 seconds)
16:42:10*FedeOmoto joined #nim
16:42:26*xet7 joined #nim
16:42:34*yglukhov joined #nim
16:47:12*yglukhov quit (Ping timeout: 264 seconds)
16:52:36*Demos_ quit (Remote host closed the connection)
16:54:19*Demos joined #nim
16:56:04*Jesin joined #nim
16:57:09*Matthias247 quit (Read error: Connection reset by peer)
17:14:02*unclechu joined #nim
17:14:10*BitPuffin quit (Ping timeout: 260 seconds)
17:15:11*wdouglass quit (Remote host closed the connection)
17:15:30*xet7 quit (Ping timeout: 240 seconds)
17:19:08dom96What's up guys?
17:23:40*dorono joined #nim
17:30:55*yglukhov joined #nim
17:34:53*Ven joined #nim
17:38:23*Jesin quit (Ping timeout: 246 seconds)
17:38:30*wh1t3r0s3 quit (Ping timeout: 240 seconds)
17:44:15*X67r joined #nim
17:46:44*yglukhov quit (Remote host closed the connection)
17:48:13*yglukhov joined #nim
17:50:54*yglukhov quit (Remote host closed the connection)
17:54:57*yglukhov joined #nim
17:55:44*yglukhov quit (Client Quit)
17:58:17*Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
18:01:11*yglukhov joined #nim
18:05:40*yglukhov quit (Remote host closed the connection)
18:06:52*Demos_ joined #nim
18:07:42*brson quit (Quit: leaving)
18:10:22*Demos quit (Ping timeout: 246 seconds)
18:11:18*yglukhov joined #nim
18:21:16*Demos_ quit (Remote host closed the connection)
18:24:18*Demos joined #nim
18:26:29dom96http://forum.nim-lang.org/t/1566
18:27:11Demosif only I was not moving out this weekend .....
18:28:02federico3and I'll be travelling from DebConf
18:28:02dom96Demos: ahh, that's a pity. Maybe you could do a Mini LD some other time? :)
18:28:12Demosyeah
18:28:18DemosI may work on Phosphor more
18:28:26DemosI wanna add a texture module and DX12 support
18:28:27federico3what is it?
18:28:37dom96federico3: we still need to get that pint in Dublin
18:28:37Demosgraphics library
18:29:12Demosloads up a (shader) program and uses introspection and such to make it so you can say program.uniformName = someBuffer
18:29:15Demosand that kind of stuff
18:29:19federico3dom96: indeed, and see if we can summon strcmp1
18:30:29dom96federico3: I should be free some time in September, so we can arrange something then.
18:31:20*xet7 joined #nim
18:40:58strcmp1yeah as long as im still in dublin im down for that
18:41:22Demosare there any other nim people in America?
18:43:03dom96strcmp1: how long are you in Dublin for?
18:43:17dom96Demos: There is tons.
18:43:26dom96We really do need to get a proper map going.
18:43:30Demosyeah
18:43:54strcmp1dom96, donno. i live here, but i might travel soon
18:44:27*yglukhov quit (Remote host closed the connection)
18:45:07dom96I see.
18:45:42*yglukhov joined #nim
18:45:46dom96strcmp1: When are you up for meeting up?
18:46:10strcmp1anytime :)
18:47:16dom96strcmp1: can you PM your email or another way to contact you?
18:48:26strcmp1sure
18:49:09dom96I'll contact you and federico3 whenever I'm free :)
18:49:18strcmp1sounds good
18:49:26*yglukhov quit (Remote host closed the connection)
18:52:09federico3I'll be in Dublin on tomorrow night
18:54:11*yglukhov joined #nim
18:58:28*gokr joined #nim
18:59:38*irrequietus quit (Ping timeout: 260 seconds)
19:00:23*stilezayk joined #nim
19:01:02*stilezayk left #nim (#nim)
19:04:39*strcmp1 quit (Quit: Leaving)
19:06:22flyxshould I update the package version in a .nimble file immediately after I tag it?
19:13:04*irrequietus joined #nim
19:24:22*Demos quit (Read error: Connection reset by peer)
19:24:28*Demos_ joined #nim
19:30:52*xet7 quit (Ping timeout: 246 seconds)
19:31:01*titanomachy quit (Ping timeout: 256 seconds)
19:33:23*boopisaway is now known as boop
19:37:33dom96flyx: before
19:37:58dom96in most cases the commit your tagging should be changing the version in the .nimble file
19:40:32*Demos_ quit (Ping timeout: 246 seconds)
19:40:42*strcmp1 joined #nim
19:59:06*yglukhov quit (Remote host closed the connection)
20:00:23*yglukhov joined #nim
20:03:01*NimBot joined #nim
20:04:01*yglukhov quit (Remote host closed the connection)
20:12:45*kilon joined #nim
20:17:35*yglukhov joined #nim
20:18:54*UberLambda joined #nim
20:25:47*xcombelle quit (Read error: Connection reset by peer)
20:26:59*Demon_Fox joined #nim
20:36:56*xet7 joined #nim
20:42:57*dorono quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
21:07:19*jszymanski quit (Quit: computer sleeps...)
21:10:17*UberLambda quit (Quit: GTG)
21:10:28*kilon quit (Remote host closed the connection)
21:16:36*Trustable quit (Remote host closed the connection)
21:29:33*unclechu quit (Quit: Leaving.)
21:30:07*FedeOmoto quit (Quit: Leaving)
21:33:32*xet7 quit (Ping timeout: 272 seconds)
21:48:01*xet7 joined #nim
21:50:27*pregressive quit (Remote host closed the connection)
21:55:17*saml quit (Quit: Leaving)
22:00:31*yglukhov quit (Remote host closed the connection)
22:04:38*yglukhov joined #nim
22:07:18*BitPuffin|osx joined #nim
22:07:47*Kingsquee joined #nim
22:09:04*yglukhov quit (Ping timeout: 246 seconds)
22:10:46*boop is now known as boopisaway
22:13:04*EXetoC quit (Ping timeout: 250 seconds)
22:21:12*Kingsquee quit (Read error: Connection reset by peer)
22:21:20*Kingsquee joined #nim
22:30:37*X67r quit (Quit: leaving)
22:35:24*xet7_ joined #nim
22:46:03*NimBot joined #nim
23:00:45*wan joined #nim
23:16:19*irrequietus quit ()
23:17:14*yglukhov joined #nim
23:21:30*yglukhov quit (Ping timeout: 240 seconds)
23:30:40*brson joined #nim
23:36:46*xet7_ quit (Ping timeout: 240 seconds)