<< 13-03-2015 >>

00:05:10*BlaXpirit_ quit (Quit: Quit Konversation)
00:07:37shalabhis the new c++ support in devel?
00:07:54Araqyup
00:13:02shalabhcool
00:14:13*Matthias247 quit (Read error: Connection reset by peer)
00:15:08*vendethiel quit (Ping timeout: 272 seconds)
00:15:26*fizzbooze joined #nim
00:15:48*tacone joined #nim
00:15:57*^aurora^ quit (Quit: Leaving.)
00:20:10*vendethiel joined #nim
00:29:39*davidhq joined #nim
00:36:03Araqgood night
00:50:37*davidhq quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
00:52:03*shalabh quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
00:57:12*jholland quit (Quit: Connection closed for inactivity)
01:00:28*rzzz quit (Ping timeout: 265 seconds)
01:07:29*saml_ joined #nim
01:12:04*fizzbooze quit (Ping timeout: 265 seconds)
01:14:14*chrisheller quit (Remote host closed the connection)
01:15:48*chrisheller joined #nim
01:18:14*chrisheller quit (Remote host closed the connection)
01:18:33*lorxu joined #nim
01:18:43lorxuHi
01:21:41lorxuDo you have in mind auto detect type? For example function declaration
01:22:53*chrisheller joined #nim
01:25:36*saml_ quit (Ping timeout: 265 seconds)
01:29:52*Mimbus quit (Ping timeout: 252 seconds)
01:30:14*flaviu quit (Ping timeout: 252 seconds)
01:30:23EXetoClorxu: maybe, but I don't quite understand what you're talking about
01:31:59lorxuproc test(a, s)=
01:32:21lorxuAnd compiler detect the type by the body content
01:34:42*chrisheller quit (Remote host closed the connection)
01:38:27*lorxu quit (Remote host closed the connection)
01:38:52*lorxu joined #nim
01:42:25*jsudlow__ quit (Remote host closed the connection)
01:42:27*lorxu quit (Read error: Connection refused)
01:43:58*flaviu joined #nim
01:44:04*Mimbus joined #nim
01:47:35*lorxu joined #nim
01:49:45*darkf joined #nim
01:51:34EXetoClorxu: I don't know how it could work, or what the benefits would be
01:53:55*brson quit (Quit: leaving)
01:54:10*lorxu quit (Remote host closed the connection)
01:55:01*lorxu joined #nim
01:56:41*lorxu quit (Remote host closed the connection)
02:04:07flaviudoesn't that code work as-is?
02:04:35flaviu.eval proc test(a): auto = return a & "123"; echo test("abc")
02:04:40Mimbusflaviu: abc123
02:09:56*OderWat quit (Ping timeout: 246 seconds)
02:11:40*TEttinger quit (Ping timeout: 272 seconds)
02:14:09flaviuIt's not really normal type inference though, it's a generic function.
02:14:24EXetoCflaviu: he wanted the body content to determine the types of the parameters, which seems strange
02:14:26*TEttinger joined #nim
02:15:02EXetoCI suppose the compiler could get. it'd be a bit like roulette :p
02:19:08EXetoC*guess
02:19:24EXetoCbroken keyboard, or something
02:21:08flaviuYeah, that's what that code does.
02:21:21flaviuIt infers the type based on the body of the function.
02:22:04flaviuIt actually doesn't, but that's an implementation detail ;). From the user's perspective, that's what it looks like it does.
02:25:11*brson joined #nim
02:25:27EXetoCnot to me, but that might've been what he meant
03:10:00*enquora quit (Quit: enquora)
03:18:28*Jesin quit (Quit: Leaving)
03:20:05*vendethiel quit (Ping timeout: 250 seconds)
03:21:27*Jesin joined #nim
03:23:21*vendethiel joined #nim
03:37:33*elbow_jason joined #nim
03:38:55*chrisheller joined #nim
03:39:56*mwbrown quit (Read error: Connection reset by peer)
03:40:37*enquora joined #nim
03:45:43*tacone quit (Ping timeout: 246 seconds)
03:46:02*vendethiel quit (Ping timeout: 272 seconds)
03:47:35*vendethiel joined #nim
04:02:30*vezzy quit (Ping timeout: 272 seconds)
04:02:42*quasinoxen joined #nim
04:03:49dhasenanOn the list of foolish things I've done today: git pull on nim's devel branch without recording the previous known good revision.
04:08:21*elbow_jason quit (Ping timeout: 244 seconds)
04:09:00*saml_ joined #nim
04:10:44*vendethiel quit (Ping timeout: 246 seconds)
04:12:25*rzzz joined #nim
04:14:01*chrisheller quit (Remote host closed the connection)
04:18:25*vendethiel joined #nim
04:21:16*chrisheller joined #nim
04:25:32*brson quit (Quit: leaving)
04:27:35reactormonkdhasenan, devel usually works
04:29:57*elbow_jason joined #nim
04:40:23*elbow_jason quit (Ping timeout: 244 seconds)
04:41:29*vendethiel quit (Ping timeout: 246 seconds)
04:48:06*quasinoxen quit (Ping timeout: 272 seconds)
05:03:35*vendethiel joined #nim
05:11:52*enquora quit (Quit: enquora)
05:16:17dhasenanreactormonk: I've been encountering bugs rather more frequently than I'd wish. For instance, I had to modify lib/pure/time.nim because it was referencing sys/time.h rather than time.h for tzset()
05:25:24*vendethiel quit (Ping timeout: 264 seconds)
05:28:56*rzzz quit (Ping timeout: 252 seconds)
05:30:34*vendethiel joined #nim
05:31:09*rzzz joined #nim
05:44:13*bcinman_ joined #nim
05:45:29*bcinman quit (Read error: Connection reset by peer)
05:57:03*saml_ quit (Quit: Leaving)
06:04:24*filwit quit (Quit: Leaving)
06:15:41*gsingh93 quit (Ping timeout: 246 seconds)
06:19:03*chrisheller quit (Remote host closed the connection)
06:22:35*kapil___ quit (Quit: Connection closed for inactivity)
07:00:45*Menche quit (Quit: Leaving)
07:06:49*xificurC joined #nim
07:14:35*alexruf joined #nim
07:15:37*alexruf left #nim (#nim)
07:15:59*Demon_Fox quit (Quit: Leaving)
07:19:25*smodo joined #nim
07:19:37*chrisheller joined #nim
07:21:46*^aurora^ joined #nim
07:23:55*chrisheller quit (Ping timeout: 252 seconds)
07:25:40*untitaker quit (Ping timeout: 256 seconds)
07:27:26^aurora^@fowl abstk looks interesting … didn't know of it.
07:29:25^aurora^@fowl i am also currently investigating the situation about ui libs for the console and nim … i am not a big fan of ncurses …
07:31:18*untitaker joined #nim
07:32:12*repax joined #nim
07:39:59fowl^aurora^, have you seen termbox https://code.google.com/p/termbox/
07:43:25^aurora^@fowl yes … i wanted to give it a try :)
07:49:09fowlyou ought to test my wrapper, i never did <_<
07:49:36fowlits in nimble as termbox
07:59:39*kniteli quit (Quit: Leaving)
08:06:16ekarlsodom96: u up ?
08:12:23^aurora^@fowl cool … i'll do so
08:13:59*rzzz quit (Ping timeout: 245 seconds)
08:40:33*rzzz joined #nim
08:40:37ekarlsohmmms
08:40:46ekarlsoin a nim program if you kill threadId 0
08:40:50ekarlsowont that kill the main process ? :D
08:41:11*chemist69 joined #nim
08:43:05chemist69EXetoC: thanks a lot for providing the arch linux AUR package!
08:43:24ekarlsowont that kill the main process ? :D
08:43:29ekarlsomeh
08:43:35ekarlsomy weechat is going bonkers
08:44:49*rzzz quit (Ping timeout: 245 seconds)
09:09:03*chrisheller joined #nim
09:10:37*rzzz joined #nim
09:11:34*tumult joined #nim
09:13:06*irrequietus joined #nim
09:13:33*chrisheller quit (Ping timeout: 252 seconds)
09:15:25*rzzz quit (Ping timeout: 250 seconds)
09:21:44*^aurora^ quit (Quit: Leaving.)
09:29:32*bcinman_ quit (Quit: My Mac has gone to sleep. ZZZzzz…)
09:59:54*Aszarsha joined #nim
10:08:38*clynamen quit (Read error: Connection reset by peer)
10:09:04*clynamen joined #nim
10:10:26*rzzz joined #nim
10:15:12*rzzz quit (Ping timeout: 264 seconds)
10:17:11*clynamen quit (Ping timeout: 246 seconds)
10:44:13*BlaXpirit joined #nim
10:45:18*davidhq joined #nim
10:58:47*clynamen joined #nim
11:01:55*reem quit (Remote host closed the connection)
11:10:26*rzzz joined #nim
11:15:19*rzzz quit (Ping timeout: 256 seconds)
11:16:10EXetoCchemist69: no problem
11:19:10ekarlsoEXetoC: out of curiousity where u from in .se ?
11:22:09EXetoCekarlso: stockholm
11:23:53ekarlsoEXetoC: kewl :P, does your work use nim or ?
11:30:28*davidhq quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
11:31:03*vendethiel quit (Ping timeout: 250 seconds)
11:34:12*vendethiel joined #nim
11:39:57*kojo joined #nim
11:43:06*kojo quit (Client Quit)
12:06:45a5i#rack
12:10:25*rzzz joined #nim
12:15:23*rzzz quit (Ping timeout: 256 seconds)
12:22:48*TEttinger quit (Ping timeout: 244 seconds)
12:26:08*saml_ joined #nim
12:28:07*rkj-b joined #nim
12:38:45*rzzz joined #nim
12:43:21*chrisheller joined #nim
12:47:41*chrisheller quit (Ping timeout: 252 seconds)
12:49:19*bjz joined #nim
13:09:28*mpthrapp joined #nim
13:13:44*saml_ quit (Quit: Leaving)
13:23:42*zipR4ND joined #nim
13:31:16*rkj-b quit (Quit: ChatZilla 0.9.91.1 [Firefox 35.0.1/20150122214805])
13:37:31*banister quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
13:42:24*banister joined #nim
13:42:29*banister quit (Max SendQ exceeded)
13:53:50*vendethiel quit (Ping timeout: 246 seconds)
13:54:24*vendethiel joined #nim
14:09:56*gokr quit (Ping timeout: 246 seconds)
14:19:36*Etheco joined #nim
14:25:46*jholland joined #nim
14:26:51*gokr joined #nim
14:31:27*saml quit (Quit: Leaving)
14:35:23*saml joined #nim
14:38:09*darkf quit (Quit: Leaving)
15:04:49*vendethiel quit (Ping timeout: 256 seconds)
15:05:27*onto joined #nim
15:06:28*vendethiel joined #nim
15:06:36ontoHi! I am just learning nim and I wanted to create a function plotter, I am trying to create something like octave where the command interface and the graphics interface are running on different threads. How would I go about doing this in nim?
15:10:10*mpthrapp_ joined #nim
15:11:00*mpthrapp quit (Ping timeout: 264 seconds)
15:11:22*mpthrapp_ is now known as mpthrapp
15:12:36Araqonto: use --threads:on createThread[void](myProc) and TChannels
15:14:32ontoAraq: is there any example code?
15:15:26Araqtests/threads/threadex.nim looks good
15:16:58ontoAraq: Thanks! I'll look into it. Is there any example code for the cairo module?
15:17:16EXetoCekarlso: I'm a freelancer with very little work atm. I use C++ now. I swore I was never going to use it again, but maybe I can convince this guy to start using Nim instead
15:17:52Araqonto: cairo has its own nimble package now, not sure what comes with it
15:19:52ontoAraq: ah, I'll keep looking then. Thank you again!
15:20:11EXetoCjust a low level interface unfortunately, and in many cases the documentation isn't kept
15:27:26*onto quit (Quit: Leaving.)
15:28:17AraqEXetoC: please don't scare away newcomers
15:28:33EXetoC:o
15:29:28*chrisheller joined #nim
15:29:41*vendethiel quit (Ping timeout: 246 seconds)
15:29:57*gokr quit (Quit: Leaving.)
15:37:44*banister joined #nim
15:43:56*elbow_jason joined #nim
15:43:57*pregressive joined #nim
15:44:06*vendethiel joined #nim
15:44:15*chrisheller quit (Remote host closed the connection)
15:45:10*davidhq joined #nim
15:50:44*arnetheduck quit (Ping timeout: 246 seconds)
15:55:54*repax quit (Remote host closed the connection)
15:59:28*bcinman joined #nim
16:00:10*chrisheller joined #nim
16:08:58*vendethiel quit (Ping timeout: 255 seconds)
16:13:30*vendethiel joined #nim
16:21:30*rzzz quit (Ping timeout: 244 seconds)
16:24:24*zipR4ND left #nim (#nim)
16:35:22*jsudlow joined #nim
16:35:54*EXetoC quit (Quit: WeeChat 1.1.1)
16:43:08*zama_ quit (Ping timeout: 272 seconds)
16:44:05*zama joined #nim
16:46:29*brson joined #nim
16:56:08*chrishel_ joined #nim
16:56:09*chrisheller quit (Read error: Connection reset by peer)
16:57:18*zipR4ND1 joined #nim
16:58:54zipR4ND1hi all, i'm trying to implement threaded asynchronous execution in nim. comming from node.js I want to dispatch processes, that run non blocking while the main thread keeps executing. I would like to be notified of the threads via promises (Futures ...) is this possible? is there any implementation i can look at?
17:02:17*rzzz joined #nim
17:02:45def-zipR4ND1: We have asynchronous IO, but it's single-threaded: http://nim-lang.org/asyncdispatch.html I don't know if it can be made to work well with threads
17:03:24*Jesin quit (Quit: Leaving)
17:06:07*Jesin joined #nim
17:06:27*Jesin quit (Read error: Connection reset by peer)
17:09:36zipR4ND1def-: i'm already using the asyncdispatch Futures, but I need a way not to stop execution when i dispatch an action .. in the simple way i would like to write a proc that immidiately returns a Future and start a proc that sleeps 10 seconds and afterwards finishes the future. i need threads for this i figured, but when using threads, the future that gets finishes is just a deep copy of the future that i'm am waiting for in the mainthread ...
17:10:24*chrishel_ quit (Remote host closed the connection)
17:13:42*Jesin joined #nim
17:13:50*gokr joined #nim
17:14:03*gokr quit (Remote host closed the connection)
17:14:35*gokr joined #nim
17:17:35*chrisheller joined #nim
17:20:52*tumult quit (Ping timeout: 246 seconds)
17:26:02reactormonkdhasenan, yeah, people have been messing with that one
17:41:09*sdw joined #nim
17:41:24*chrisheller quit (Remote host closed the connection)
17:53:43*banister quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
17:56:38*banister joined #nim
17:56:44*banister quit (Max SendQ exceeded)
17:57:13*pregressive quit (Remote host closed the connection)
18:01:20*chrisheller joined #nim
18:08:04*pregressive joined #nim
18:08:23*banister joined #nim
18:09:02dhasenanIs it possible to use C++ templated types in Nim?
18:09:39dhasenanI know I can typedef the instantiation in a C++ header and wrap the typedef'd type, but that seems like annoying rigmarole to go through.
18:14:58BlaXpiritinteresting q
18:19:35fowldhasenan, yes in devel
18:19:56fowluse importcpp pragma, single inheritance also works
18:20:40dhasenanAwesome, thanks.
18:22:00dhasenanHrm, I'll read that as "it's supposed to work".
18:22:01*zipR4ND1 quit (Read error: Connection reset by peer)
18:22:42*zipR4ND1 joined #nim
18:22:59fowldhasenan, see urhonimo
18:23:13fowlit does seem to work
18:23:19dhasenanYes, I'm using Urhonimo, and that's where it's failing.
18:23:35ekarlsodom96: u up ? :p
18:23:44fowldhasenan, which example?
18:24:06dhasenanThe examples work. I'm trying to use the navigation system, which uses PODVector<Vector3>.
18:24:35dhasenanThis produces: error: missing template arguments before ‘)’ token NTI94572.size = sizeof(Urho3D::PODVector);
18:24:47dhasenanThe obvious fix is to create a typedef and wrap that.
18:26:49*yymoto2 joined #nim
18:26:50*zipR4ND1 quit (Ping timeout: 246 seconds)
18:26:53dhasenanTrying to create a minimal example of that, I get stuff like Error: internal error: mangleRecFieldName
18:28:22dhasenanI'll just use a typedef.
18:30:22*EXetoC joined #nim
18:31:22*jfchevrette joined #nim
18:32:28dom96ekarlso: now I am
18:32:52fowldhasenan, are you instantiating podvector[] yourself?
18:35:13ekarlsodom96: the asyncproc chrases- ,,-
18:35:20ekarlsowhen killing a process :/
18:35:29dom96with what?
18:35:34fowlah you are trying to use functions that take podvector[]
18:35:43ekarlsodom96: lemme boot the vm in a few and pastebin
18:45:02dhasenanfowl: I'm using functions that return a PODVector<Vector3>, storing that value, and manipulating it.
18:48:00fowldhasenan, well i have reproduced mangleRecFieldName error
18:48:11*Trustable joined #nim
18:48:14dhasenanHuzzah!
18:48:40fowlproblem with this type seems to be that its a generic descended from a non generic
18:49:30fowlfor me var f: foobase works but instantiating foo[int] throws that error
18:49:39dhasenanThen there are likely multiple problems.
18:50:37fowlyou said defining a type works? it doesnt for me :/
18:50:54fowltype x = foo[int]; var f: x same error
18:51:42dhasenanYeah, I'm seeing the same error now.
18:51:50*Menche joined #nim
18:56:54*jfchevre_ joined #nim
18:59:45*yymoto2 quit (Quit: leaving)
19:00:25*jfchevrette quit (Ping timeout: 264 seconds)
19:03:22*Menche quit (Quit: Leaving)
19:03:32*chrishel_ joined #nim
19:04:22*Aszarsha quit (Ping timeout: 272 seconds)
19:05:43*chrisheller quit (Ping timeout: 252 seconds)
19:09:54*davidhq quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
19:12:36*Menche joined #nim
19:16:37*wb quit (Ping timeout: 264 seconds)
19:18:08*wb joined #nim
19:18:47dom96ekarlso: well?
19:19:00ekarlsodom96: -,,-
19:19:34ekarlsoit's booting now :D
19:22:40dhasenanAm I supposed to be using importc or importcpp on C++ UDTs? importcpp is giving me internal compiler errors.
19:22:59dhasenanWhich would seem to be a good indication to use importc...
19:24:36Araqdhasenan report these bugs properly please
19:25:40dhasenanYeah, yeah, and then you'll ask for a minimal test case, and then I'll have to spend time doing that...
19:26:16dhasenanAnd then once I do that the problem will be fixed in probably under a day.
19:26:17dhasenanIt's hell.
19:26:44*jfchevre_ quit (Quit: Textual IRC Client: www.textualapp.com)
19:26:56AraqI'm sorry we fix bugs for you.
19:27:06Araq;-)
19:27:13dhasenanAnd with such quick turnaround! You should be ashamed.
19:27:32Araqwell we also have lots of bugs that stay open for years
19:27:56Araqwe have enough bugs to support any claim you could come up with.
19:33:30*bcinman quit (Ping timeout: 272 seconds)
19:34:05*bcinman joined #nim
19:39:07*rzzz quit (Ping timeout: 255 seconds)
19:47:46*rzzz joined #nim
19:48:17reactormonkdhasenan, we have more bug reports than you ever had commits >:)
19:49:44*elbow_jason left #nim ("Leaving")
19:50:35*Trustable quit (Remote host closed the connection)
19:51:35dhasenanreactormonk: I take it you're referring solely to github.
19:52:51dhasenanI use a private gitlab instance these days, and my job has a rather annoying policy with open source contributions.
19:53:15reactormonkI hope it's worth it otherwise
19:53:30dhasenanIt pays well.
19:54:11dhasenanThere's just a process that takes a few days to a week -- other people's time -- so I end up not contributing because I don't want to go through the trouble.
19:54:54dhasenanSometimes there's a two-line fix that I want to make, but it's easier for me to do it locally and describe in a bug report what needs to be done than to prepare a patch, send it to the open source office, wait for them to get back to me, etc.
19:55:20reactormonkJust make 10 two-line fixes a week and see what happens
19:56:12dhasenanAfter a few commits to the same project they'd whitelist it.
19:56:50reactormonkSounds good to me
19:57:10*Trustable joined #nim
19:57:36reactormonkShould I look for a few two-liners for you?
19:58:57dhasenanThe other side of it is that I don't particularly want to do compiler development at the moment.
19:58:57*chrishel_ quit (Read error: Connection reset by peer)
19:59:23dhasenanI've done it, and I found it reasonably satisfying, but I have projects that I'm actually excited by now.
20:25:42*mpthrapp quit (Remote host closed the connection)
20:27:03*epichero joined #nim
20:27:32ekarlsohttps://bpaste.net/show/a3737d97e21c dom96
20:27:48ekarlsosorry fo the time but babies and tons of stuff to do around the house atm :|
20:28:39dom96ekarlso: did you push your code?
20:28:54ekarlsodom96: yea
20:29:47ekarlsohttps://github.com/ekarlso/nim-playpen/tree/run-threads
20:34:12dom96https://github.com/ekarlso/nim-playpen/blob/run-threads/src/private/asyncproc.nim#L97
20:34:17dom96You should send that after you kill it
20:34:27dom96but use waitForExit instead of peekExitCode
20:34:39dom96also set process to be nil
20:35:13*rzzz quit (Ping timeout: 264 seconds)
20:41:41ekarlsodom96: kk, ill test soon
20:53:29*chrisheller joined #nim
20:54:38*quasinoxen joined #nim
20:56:02*fizzbooze joined #nim
21:02:50*Aszarsha joined #nim
21:13:16*gsingh93 joined #nim
21:15:14*Jesin quit (Quit: Leaving)
21:21:44*epichero quit ()
21:22:03*epichero joined #nim
21:23:42*fizzbooze quit (Ping timeout: 272 seconds)
21:32:16*polde quit (Read error: Connection reset by peer)
21:40:43*BlaXpirit_ joined #nim
21:43:01*BlaXpirit quit (Ping timeout: 264 seconds)
21:53:15*reem joined #nim
21:56:58*reem quit (Remote host closed the connection)
21:59:42ekarlsodom96: where you mean to set process = nil ?
21:59:55*reem_ joined #nim
22:00:37dom96ekarlso: after you process.kill
22:03:38ekarlsowaitForExit() btw dom96 makes it just "hang" it seems
22:03:53ekarlsohttps://bpaste.net/show/698559a7102b
22:03:55ekarlsois what I have nw
22:05:01dom96does that work?
22:06:58*polde joined #nim
22:13:01*matkuki joined #nim
22:13:48*saml quit (Quit: Leaving)
22:14:39*pregressive quit (Remote host closed the connection)
22:15:05*pregressive joined #nim
22:15:15*bjz quit (Quit: Textual IRC Client: www.textualapp.com)
22:16:14*matkuki quit (Client Quit)
22:18:21*bjz joined #nim
22:21:33*^aurora^ joined #nim
22:21:47*chrisheller quit (Remote host closed the connection)
22:23:03*gsingh93 quit (Quit: WeeChat 1.1.1)
22:23:57*gsingh93 joined #nim
22:28:55*chrisheller joined #nim
22:52:06*brson quit (Ping timeout: 244 seconds)
23:06:59*lnr quit (Ping timeout: 252 seconds)
23:07:49*lnr joined #nim
23:15:25*xificurC quit (Ping timeout: 264 seconds)
23:23:42*epichero quit ()
23:23:43*pregressive quit (Remote host closed the connection)
23:24:03*epichero joined #nim
23:33:37*TEttinger joined #nim
23:37:59*wb quit (Ping timeout: 246 seconds)
23:40:17*Trustable quit (Remote host closed the connection)
23:41:00*rzzz joined #nim
23:46:04*johnsoft quit (Read error: Connection reset by peer)
23:47:13*jholland quit (Quit: Connection closed for inactivity)
23:49:08*^aurora^ quit (Quit: Leaving.)