<< 04-10-2015 >>

00:00:22tmm1do you have any advice for debugging dll failures in https://github.com/nim-lang/Nim/pull/3403#issuecomment-145193256
00:03:57Araqno. I don't use DLLs/shared objs on Unix if I can avoid it.
00:07:07tmm1i'm not sure why it produces no error output
00:07:19tmm1tests pass for me locally on mac and linux
00:07:46tmm1does c2nim need the compiler nimble to build?
00:07:55Araqyes
00:09:27onionhammeri want a sticker :(
00:09:33onionhammerbut i dont want to go to amsterdam
00:09:46onionhammerwell scratch that, I want to go to amsterdam but dont want to pay for a plane ticket :)
00:31:55*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
00:33:43tmm1should i run the c2nim tests on travis with the latest nim@devel or nim 0.11.2?
00:33:57tmm1the results are different between the two due to whitespace and other changes
00:34:05tmm1maybe c2nim job should always build the latest nim?
00:34:36Araqc2nim should use nim@devel
00:38:25gmpreussner|workis it possible to have an alias for an enum member in a pure enumeration?
00:38:46gmpreussner|worki know that i can declare a constant outside of the enum to create the alias, but i want it namespaced
00:38:59Araqyes and no.
00:39:21Araqyes, I know you want namespaced, no it doesn't exist
00:40:36gmpreussner|worksadness
00:40:56Araqbtw I'm using non-pure enums without prefixes now. works well too, if there is a conflict, I can always use Enum.foo
00:41:24gmpreussner|workimho pure enums should be the default :)
00:41:31gmpreussner|worknon-pure is so oldskool C
00:42:01gmpreussner|worki can't use non-pure without prefix. i'd get massive collisions everywhere
00:42:11gmpreussner|workso i'd end up using Enum.bla everywhere anyway
00:42:44sdwis there a preferred paste site for nim?
00:43:31gmpreussner|worksdw: most people use Gist, i think
00:43:43gmpreussner|worki also see pastebin a lot
00:43:57gmpreussner|workboth have support for Nim
00:47:12sdwhttp://pastebin.com/Wns3jTWz
00:47:50sdwdoes this look like a compiler bug?
00:48:47Araqyes
00:49:05sdwill reduce more and submit
00:49:39Araqno, it's fine the way it is.
00:49:51*bjz joined #nim
00:49:59*yglukhov joined #nim
00:50:09Araqwe don't want to overfit the compiler, we want it to compile real code
00:51:19AraqI don't believe in D's ranges btw ;-)
00:51:47Araqinteger based indexing is **far** superior
00:52:12Araqit's immediately serializable for example.
00:52:34Araqsince you have an actual index and not a freaking pointer
00:53:40*Matthias247 quit (Read error: Connection reset by peer)
00:53:43Araqan index also stays the same when you realloc your array.
00:53:58sdwI think you're referring to D's arrays, not ranges
00:53:58*yglukhov quit (Ping timeout: 240 seconds)
00:54:24AraqI think I know perfectly well what I'm referring to.
00:54:56sdwwell, your arguments don't apply to ranges :P
00:55:27sdwbut yes I agree there is a tradeoff
00:59:12*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
00:59:17Araqif every slice is a range and my argument does apply to slices, I fail to see how it's not relevant for general ranges
00:59:42gmpreussner|workAraq: i think i will just rename the pure enum value to something like Enum.AorB. that is better anyway.
00:59:54Araqgmpreussner|work: ok ... ;-)
01:00:20gmpreussner|workwe still need to fix the comment syntax. it's still so broken for enum and tuple. i will add a unit test later.
01:00:23sdwMaybe I don't understand ranges. I thought my concept I pasted is what they call an input range, which doesn't need to be an array
01:01:13Araqgmpreussner|work: hu? ah ok, got it.
01:02:01Araqthat might turn out to be hard to support in the parser
01:03:50Araqyou want
01:03:52Araqenum
01:03:54*Demon_Fox joined #nim
01:03:59Araq field
01:04:05Araq ## doc here
01:04:09Araqright?
01:06:52*vendethiel joined #nim
01:10:50Araqgood nightt
01:10:59sdwnight Araq
01:11:03sdwdream of ranges
01:14:59*jaco60 quit (Ping timeout: 240 seconds)
01:16:15tmm1hmm when i do `nimble install compiler` its installing 0.10.3 instead of 0.11.3
01:16:43sdwI reported that yesterday. The version labels are wrong
01:16:52*bjz joined #nim
01:17:30sdwhttps://github.com/nim-lang/Nim/issues/3412#issuecomment-145250784
01:18:09*chemist69 joined #nim
01:21:05*chemist69_ quit (Ping timeout: 252 seconds)
01:22:07tmm1how can i tell it to build from a specific tag?
01:22:22tmm1or better yet, can i have nimble use compiler.nimble from my existing nim checkout?
01:23:07tmm1i see, just `nimble install` in the checkout
01:23:35sdwhere is how nimsuggest got around it: https://github.com/nim-lang/nimsuggest/issues/14#event-425974358
01:24:09tmm1i see, nimble install "compiler#head"
01:24:09sdwso I would guess nimble install compiler#head
01:24:26*rollo quit (Ping timeout: 272 seconds)
01:29:39*vendethiel quit (Ping timeout: 240 seconds)
01:33:47tmm1https://github.com/nim-lang/c2nim/pull/55 can be merged
01:41:31*tmm1 quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
02:07:43*rollo joined #nim
02:14:37*rollo quit (Quit: Leaving)
02:18:40*tmm1 joined #nim
02:37:06*darkf joined #nim
03:14:34*tmm1 quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
03:19:09*_stowa quit (Ping timeout: 244 seconds)
03:20:30*Jesin quit (Ping timeout: 260 seconds)
03:22:40*_stowa joined #nim
03:23:11*Jesin joined #nim
03:32:34*tmm1 joined #nim
03:54:05*johnsoft joined #nim
03:58:26*Jesin quit (Quit: Leaving)
04:21:28*superfunc joined #nim
04:26:21*yglukhov joined #nim
04:30:48*yglukhov quit (Ping timeout: 250 seconds)
04:34:49*superfunc quit (Ping timeout: 250 seconds)
04:40:50*pregressive joined #nim
04:43:39*lokulin quit (Ping timeout: 240 seconds)
04:47:49*lokulin joined #nim
04:59:02*superfunc joined #nim
05:07:33*superfunc quit (Ping timeout: 256 seconds)
05:20:36*tmm1 quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
05:29:30*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
05:32:20*bjz joined #nim
05:48:07*pregressive quit (Remote host closed the connection)
07:15:18*yglukhov joined #nim
07:19:21*yglukhov quit (Remote host closed the connection)
07:19:37*yglukhov joined #nim
07:20:45*vendethiel joined #nim
07:33:57*yglukhov quit ()
08:01:57*gmpreussner|work quit (Read error: Connection reset by peer)
08:05:56*rku`` joined #nim
08:06:10*nim-buildbot quit (Quit: buildmaster reconfigured: bot disconnecting)
08:07:05rku``i build compiler and nimble myself on win8.1, all good. then i want to build nimsuggest using "nimble build" but it hangs forever without any output. anyone have any clue why would that be? same happens with prebuilt nimble binaries..
08:07:18rku``i run it from msys shell, w/ git and gcc and all..
08:08:23Araqtry the ordinary terminal please
08:09:06rku``what ordinary terminal? cmd.exe?
08:10:03Araqyes
08:10:13rku``starting it from cmd.exe does exactly the same. idk why it kind of terminal app should matter at all
08:10:25Araqbecause of buffering behaviour
08:10:42Araqonly cmd.exe can tell apps they run in a tty on windows.
08:11:04Araq(it's incredibly stupid...)
08:11:11rku``sounds so yes..
08:11:23rku``well it doesnt help anyhow..
08:11:39rku``maybe there is a shortcut to build nimsuggest without nimble?
08:12:05Araqnim c nimsuggest # should do the job
08:12:42rku``yeah no.. it doesnt find compiler files. when i drop nimsuggest.nim and that other nim file to compiler dir - it cant find something else
08:14:01Araqnimble install compiler#head
08:14:53rku``oh wow i missed cfg when copying stuff to compiler dir
08:14:55rku``now it works
08:15:24Araqyeah but it's annoying enough so that I will fix the compiler to not rely on a non-default path
08:15:26rku``thanks
08:16:23AraqI use Nimscript quite heavily and the "cannot find rstast.nim" is a pain
08:17:27rku``i wonder if its not same error heh
08:17:33rku``nimscript is awsome yeah
08:17:48rku``just need it to start honoring flags fully ^_^
08:27:46Araqwhat flags do you mean?
08:28:07*vendethiel quit (Ping timeout: 246 seconds)
09:02:47*irrequietus joined #nim
09:29:09*jaco60 joined #nim
09:29:46*irrequietus quit ()
09:41:15*joelmo joined #nim
09:50:49*irrequietus joined #nim
09:54:20*Demon_Fox quit (Quit: Leaving)
10:09:27*Matthias247 joined #nim
10:11:12*rku`` quit (Ping timeout: 246 seconds)
10:27:32federico3dom96?
10:32:52*darkf quit (Ping timeout: 246 seconds)
10:33:08*M-max quit (Remote host closed the connection)
10:49:09*M-max joined #nim
10:55:27*Sahnvour joined #nim
11:01:01*Trustable joined #nim
11:07:27*BitPuffin|osx quit (Ping timeout: 255 seconds)
11:09:25*elrood joined #nim
11:11:01*smodo joined #nim
11:29:22*smodo quit (Remote host closed the connection)
11:59:09*Kingsquee quit (Quit: http://i.imgur.com/EsXzoum.png)
12:10:09*darkf joined #nim
12:11:11*rollo joined #nim
12:22:19*darkf_ joined #nim
12:22:33*boopsiesisaway is now known as boopsies
12:23:19*darkf quit (Ping timeout: 256 seconds)
12:48:51*darkf_ is now known as darkf
13:37:12*infinity0 quit (Ping timeout: 268 seconds)
13:38:58*infinity0 joined #nim
13:41:12*infinity0 quit (Remote host closed the connection)
13:43:30*infinity0 joined #nim
13:51:27*infinity0 quit (Remote host closed the connection)
13:53:47*infinity0 joined #nim
14:31:57*smodo joined #nim
14:38:11*ehmry is now known as emery
14:38:21*emery is now known as ehmry
14:38:29*ehmry is now known as emery
14:38:42*emery is now known as ehmry
14:42:37*enamex_ joined #nim
15:01:19*enamex_ quit (Ping timeout: 246 seconds)
15:05:16*enamex_ joined #nim
15:06:06*vikaton joined #nim
15:16:53*superfunc joined #nim
15:20:26r-kuback. Araq i described it on forum http://forum.nim-lang.org/t/1544/6#10540
15:21:01r-kuin short - while "when defined(release)" is working as expected (it is defined as far as code is concerned) compiler still builds debug version
15:21:13r-kuthats when using --define:release in script
15:21:25r-kusame with switch("define", "release")
15:33:31*enamex_ quit (Ping timeout: 246 seconds)
15:54:12*smodo quit (Remote host closed the connection)
16:32:11*enamex_ joined #nim
17:00:06*iamd3vil joined #nim
17:01:52*BitPuffin|osx joined #nim
17:03:15*superfunc quit (Ping timeout: 256 seconds)
17:04:16*enamex_ is now known as enamex
17:09:05*Jesin joined #nim
17:18:36*rollo quit (Ping timeout: 268 seconds)
17:25:52*BitPuffin|osx quit (Remote host closed the connection)
17:26:06*BitPuffin|osx joined #nim
17:31:51*zielmicha quit ()
17:32:12*zielmicha joined #nim
17:45:03*vendethiel joined #nim
17:46:22*pregressive joined #nim
17:51:29*darkf_ joined #nim
17:53:10*darkf quit (Ping timeout: 246 seconds)
17:54:14*superfunc joined #nim
18:02:31*irrequietus quit ()
18:02:53*vikaton quit (Quit: Connection closed for inactivity)
18:05:03*enamex_ joined #nim
18:05:22*enamex quit (Ping timeout: 265 seconds)
18:14:40*pregressive quit (Remote host closed the connection)
18:20:15*darkf_ quit (Quit: Leaving)
18:24:20*iamd3vil quit (Remote host closed the connection)
18:24:43DemosQuestion: Should a statement like variable = TGenericObject[A,B,C]() be legal?
18:42:55*irrequietus joined #nim
18:44:19*irrequietus quit (Client Quit)
18:44:35*irrequietus joined #nim
18:55:13*enamex joined #nim
18:55:49*enamex_ quit (Ping timeout: 246 seconds)
19:03:04*enamex_ joined #nim
19:05:37*enamex quit (Ping timeout: 246 seconds)
19:17:37*gmpreussner|work joined #nim
19:17:45*OmIkRoNiXz quit (Ping timeout: 244 seconds)
19:19:45*OmIkRoNiXz joined #nim
19:27:16*Amrykid2 joined #nim
19:28:01*Mat4 joined #nim
19:28:04Mat4hello
19:28:30*profan joined #nim
19:28:47*dom96_ joined #nim
19:29:48*Rush_ joined #nim
19:30:11*Rush_ is now known as Guest88591
19:30:14*onionhammer1 joined #nim
19:30:31*titanomachy_ joined #nim
19:30:32*taotetek1 joined #nim
19:30:45*dom96 quit (Ping timeout: 260 seconds)
19:30:45*titanomachy quit (Ping timeout: 260 seconds)
19:30:45*profan_ quit (Ping timeout: 260 seconds)
19:30:45*reactormonk quit (Ping timeout: 260 seconds)
19:30:45*low-profile quit (Ping timeout: 260 seconds)
19:30:45*dom96_ is now known as dom96
19:31:18*reactormonk joined #nim
19:31:37*[tymat] joined #nim
19:31:47*low-prof1 joined #nim
19:32:24*RushPL quit (Remote host closed the connection)
19:32:32*Amrykid quit (Ping timeout: 240 seconds)
19:32:33*onionhammer quit (Ping timeout: 240 seconds)
19:32:33*tymat quit (Ping timeout: 240 seconds)
19:32:33*taotetek quit (Ping timeout: 240 seconds)
19:32:34*[tymat] is now known as tymat
19:42:26*enamex joined #nim
19:43:12*Pisuke quit (Max SendQ exceeded)
19:44:21*Pisuke joined #nim
19:44:28*enamex_ quit (Ping timeout: 246 seconds)
19:45:04*elrood quit (Quit: Leaving)
19:47:54*Demon_Fox joined #nim
19:50:19*superfunc quit (Ping timeout: 240 seconds)
20:00:03*PyHedgehog-work quit (Quit: Page closed)
20:03:18*enamex quit (Ping timeout: 265 seconds)
20:09:39*enamex joined #nim
20:29:48*elrood joined #nim
20:33:47*superfunc joined #nim
20:35:48*joelmo quit (Quit: Connection closed for inactivity)
20:40:19*Matthias247 quit (Read error: Connection reset by peer)
20:43:50gmpreussner|worki stumbled upon filwit's forum post about his 'impl' macro here: http://forum.nim-lang.org/t/935#5593
20:44:08gmpreussner|workcan someone explain to me what his note at the bottom wrt domain specific interfaces means?
20:44:37gmpreussner|workin particular, what does "impl Button as GuiItem" do? does that define a type alias for Button?
20:45:12gmpreussner|worki suppose that's kind of akin to implementing interfaces, yes?
20:45:55gmpreussner|workah, nevermind, he writes further down that the 'as Interface' stuff isn't implemented yet
21:07:48Araqhi Mat4
21:08:44Araqr-ku: try the same in a traditional .nimcfg file. it doesn't work either. why? exercise left for the reader.
21:09:26*onionhammer1 is now known as onionhammer
21:09:48*crack81 joined #nim
21:09:51Mat4hi Araq
21:09:52Araq*hint* we do not want to re-evaluate configuration files until a fixpoint was reached
21:09:57crack81Hi guys
21:10:06Mat4hello crack81
21:10:09crack81I from Mexico
21:10:10Araqhi crack81 welcome
21:12:36NimBotnim-lang/Nim devel be991ed Adam Strzelecki [+3 ±13 -2]: Rename rawsockets module to nativesockets... 8 more lines
21:12:36NimBotnim-lang/Nim devel 8f2b15d Dominik Picheta [+3 ±13 -2]: Merge pull request #3395 from nanoant/patch/rename-rawsockets-to-nativesockets... 2 more lines
21:13:08crack81Are you use Nim in windows or in other S.O?
21:15:57Araqcrack81: Nim runs pretty much everywhere
21:16:13reactormonkprobably not your toaster.
21:17:45*enamex_ joined #nim
21:17:48NimBotnim-lang/Nim devel 77d4788 JamesP [+0 ±1 -0]: Add toRational(float) conversion from any float to closest... 1 more lines
21:17:48NimBotnim-lang/Nim devel 6587f63 Dominik Picheta [+0 ±1 -0]: Merge pull request #3415 from jlp765/rationals2... 2 more lines
21:20:09*enamex quit (Ping timeout: 265 seconds)
21:30:51*boopsies is now known as boopsiesisaway
21:31:52*Mat4 quit (Quit: Leaving)
21:43:34*n0xff joined #nim
21:50:42*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
21:51:48*Sornaensis quit (Excess Flood)
21:52:25*Sornaensis joined #nim
22:10:23*superfunc quit (Ping timeout: 264 seconds)
22:11:44*Kingsquee joined #nim
22:13:39*bjz joined #nim
22:17:05*cncl joined #nim
22:17:39*bjz quit (Client Quit)
22:18:18cnclhi. nim is super cool. i'm playing around with it in windows right now. i'm building using msvc. is there a way to use a debugger? docs indicate endb is abandoned(?) and i'm not using gcc
22:19:11AraqDemos created "VisualNimrod". haven't played with it yet, but it should support visual studio's debugger
22:19:24*bjz joined #nim
22:19:47DemosHey, yeah visual nimrod does support the debugger, but it is pretty out of date (for example completion will most definately not work)
22:20:15cnclah i see
22:20:19Demosif you compiler with --debugger:native you should get debug symbols, you can then attach visual studio to your executable
22:20:48cncl--debugger:native actually seems to go wrong with msvc in the version of nim i have
22:20:56cnclbut just regular -d:debug proces .pdb correctly
22:20:59Demosyou can also put {.emit:"__debugBreak();".} near the start of your program, which will bring up a dialog to attach to a debugger when you start your program
22:20:59cncler, produces
22:21:08cncloh awesome
22:21:12Demosumm, try --parallelBuild:1
22:21:36Demosmsvc has trouble generating pdb when there's more than one compiler running at once
22:21:37cnclyeah i did, it actually produces a file named $projectname.pdb
22:21:53Demosyeah, that seems to work for me though
22:21:56Araqnim devel doesn't require --parallelBuild:1 anymore btw
22:22:14Araqthe compiler automatically reruns without parallelism
22:22:19cnclah
22:22:22Araqwhen the C compiler complains
22:22:42cnclwithout --debugger:native and with -d:debug, i get mything.pdb correctly, instead of $projectname.pdb, dunno if that means anything
22:22:51DemosI get $projectName.pdb as well as a "real pdb"
22:23:08*elrood quit (Quit: Leaving)
22:24:48*crack81 quit (Ping timeout: 246 seconds)
22:25:06cnclthanks
22:27:53*enamex_ quit (Ping timeout: 244 seconds)
22:29:43*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
22:39:22*irrequietus quit ()
22:45:04*crack81 joined #nim
22:45:08crack81How i can convert one cstring to a PVoid
22:46:11Araqcast[pointer](mycstring)
22:53:04crack81sorry, i'm using the windows api, the function SystemParametersInfo but i don't understand why is not working
22:53:34crack81third parameter
22:56:14cnclwhat is your code, and the error?
22:56:32*superfunc joined #nim
22:58:43*Jesin quit (Quit: Leaving)
23:00:10crack81return false i think that third parameter is not being casted
23:01:03crack81i pass a cstring example image="photo.bmp"
23:01:48cnclsorry, don't understand
23:04:15crack81I am sorry, this example I want translate
23:04:19crack81http://indetectables.net/viewtopic.php?f=98&t=53790
23:05:20cncland your code?
23:06:58crack81 proc cambiarFondo(name: cstring):bool= return bool(SystemParametersInfo(20,0,addr name[0],0))
23:07:45cnclthe type will be wrong
23:07:54cnclyou have to use cast to turn it into a void pointer
23:10:08crack81it is ironic in c or delphi only raisins the reference to first position of the string
23:10:59cnclnim does not implicitly cast addresses to void pointers
23:14:11*Trustable quit (Quit: Leaving)
23:14:11crack81then in this case==> cast[PVoid](image)
23:21:38*joelmo joined #nim
23:37:01*crack81 quit (Quit: Page closed)
23:52:36*Sahnvour quit (Read error: Connection reset by peer)