00:00:22 | tmm1 | do you have any advice for debugging dll failures in https://github.com/nim-lang/Nim/pull/3403#issuecomment-145193256 |
00:03:57 | Araq | no. I don't use DLLs/shared objs on Unix if I can avoid it. |
00:07:07 | tmm1 | i'm not sure why it produces no error output |
00:07:19 | tmm1 | tests pass for me locally on mac and linux |
00:07:46 | tmm1 | does c2nim need the compiler nimble to build? |
00:07:55 | Araq | yes |
00:09:27 | onionhammer | i want a sticker :( |
00:09:33 | onionhammer | but i dont want to go to amsterdam |
00:09:46 | onionhammer | well 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:43 | tmm1 | should i run the c2nim tests on travis with the latest nim@devel or nim 0.11.2? |
00:33:57 | tmm1 | the results are different between the two due to whitespace and other changes |
00:34:05 | tmm1 | maybe c2nim job should always build the latest nim? |
00:34:36 | Araq | c2nim should use nim@devel |
00:38:25 | gmpreussner|work | is it possible to have an alias for an enum member in a pure enumeration? |
00:38:46 | gmpreussner|work | i know that i can declare a constant outside of the enum to create the alias, but i want it namespaced |
00:38:59 | Araq | yes and no. |
00:39:21 | Araq | yes, I know you want namespaced, no it doesn't exist |
00:40:36 | gmpreussner|work | sadness |
00:40:56 | Araq | btw 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:24 | gmpreussner|work | imho pure enums should be the default :) |
00:41:31 | gmpreussner|work | non-pure is so oldskool C |
00:42:01 | gmpreussner|work | i can't use non-pure without prefix. i'd get massive collisions everywhere |
00:42:11 | gmpreussner|work | so i'd end up using Enum.bla everywhere anyway |
00:42:44 | sdw | is there a preferred paste site for nim? |
00:43:31 | gmpreussner|work | sdw: most people use Gist, i think |
00:43:43 | gmpreussner|work | i also see pastebin a lot |
00:43:57 | gmpreussner|work | both have support for Nim |
00:47:12 | sdw | http://pastebin.com/Wns3jTWz |
00:47:50 | sdw | does this look like a compiler bug? |
00:48:47 | Araq | yes |
00:49:05 | sdw | ill reduce more and submit |
00:49:39 | Araq | no, it's fine the way it is. |
00:49:51 | * | bjz joined #nim |
00:49:59 | * | yglukhov joined #nim |
00:50:09 | Araq | we don't want to overfit the compiler, we want it to compile real code |
00:51:19 | Araq | I don't believe in D's ranges btw ;-) |
00:51:47 | Araq | integer based indexing is **far** superior |
00:52:12 | Araq | it's immediately serializable for example. |
00:52:34 | Araq | since you have an actual index and not a freaking pointer |
00:53:40 | * | Matthias247 quit (Read error: Connection reset by peer) |
00:53:43 | Araq | an index also stays the same when you realloc your array. |
00:53:58 | sdw | I think you're referring to D's arrays, not ranges |
00:53:58 | * | yglukhov quit (Ping timeout: 240 seconds) |
00:54:24 | Araq | I think I know perfectly well what I'm referring to. |
00:54:56 | sdw | well, your arguments don't apply to ranges :P |
00:55:27 | sdw | but yes I agree there is a tradeoff |
00:59:12 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
00:59:17 | Araq | if 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:42 | gmpreussner|work | Araq: i think i will just rename the pure enum value to something like Enum.AorB. that is better anyway. |
00:59:54 | Araq | gmpreussner|work: ok ... ;-) |
01:00:20 | gmpreussner|work | we 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:23 | sdw | Maybe 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:13 | Araq | gmpreussner|work: hu? ah ok, got it. |
01:02:01 | Araq | that might turn out to be hard to support in the parser |
01:03:50 | Araq | you want |
01:03:52 | Araq | enum |
01:03:54 | * | Demon_Fox joined #nim |
01:03:59 | Araq | field |
01:04:05 | Araq | ## doc here |
01:04:09 | Araq | right? |
01:06:52 | * | vendethiel joined #nim |
01:10:50 | Araq | good nightt |
01:10:59 | sdw | night Araq |
01:11:03 | sdw | dream of ranges |
01:14:59 | * | jaco60 quit (Ping timeout: 240 seconds) |
01:16:15 | tmm1 | hmm when i do `nimble install compiler` its installing 0.10.3 instead of 0.11.3 |
01:16:43 | sdw | I reported that yesterday. The version labels are wrong |
01:16:52 | * | bjz joined #nim |
01:17:30 | sdw | https://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:07 | tmm1 | how can i tell it to build from a specific tag? |
01:22:22 | tmm1 | or better yet, can i have nimble use compiler.nimble from my existing nim checkout? |
01:23:07 | tmm1 | i see, just `nimble install` in the checkout |
01:23:35 | sdw | here is how nimsuggest got around it: https://github.com/nim-lang/nimsuggest/issues/14#event-425974358 |
01:24:09 | tmm1 | i see, nimble install "compiler#head" |
01:24:09 | sdw | so 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:47 | tmm1 | https://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:05 | rku`` | 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:18 | rku`` | i run it from msys shell, w/ git and gcc and all.. |
08:08:23 | Araq | try the ordinary terminal please |
08:09:06 | rku`` | what ordinary terminal? cmd.exe? |
08:10:03 | Araq | yes |
08:10:13 | rku`` | starting it from cmd.exe does exactly the same. idk why it kind of terminal app should matter at all |
08:10:25 | Araq | because of buffering behaviour |
08:10:42 | Araq | only cmd.exe can tell apps they run in a tty on windows. |
08:11:04 | Araq | (it's incredibly stupid...) |
08:11:11 | rku`` | sounds so yes.. |
08:11:23 | rku`` | well it doesnt help anyhow.. |
08:11:39 | rku`` | maybe there is a shortcut to build nimsuggest without nimble? |
08:12:05 | Araq | nim c nimsuggest # should do the job |
08:12:42 | rku`` | 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:01 | Araq | nimble install compiler#head |
08:14:53 | rku`` | oh wow i missed cfg when copying stuff to compiler dir |
08:14:55 | rku`` | now it works |
08:15:24 | Araq | yeah but it's annoying enough so that I will fix the compiler to not rely on a non-default path |
08:15:26 | rku`` | thanks |
08:16:23 | Araq | I use Nimscript quite heavily and the "cannot find rstast.nim" is a pain |
08:17:27 | rku`` | i wonder if its not same error heh |
08:17:33 | rku`` | nimscript is awsome yeah |
08:17:48 | rku`` | just need it to start honoring flags fully ^_^ |
08:27:46 | Araq | what 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:32 | federico3 | dom96? |
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:26 | r-ku | back. Araq i described it on forum http://forum.nim-lang.org/t/1544/6#10540 |
15:21:01 | r-ku | in 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:13 | r-ku | thats when using --define:release in script |
15:21:25 | r-ku | same 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:43 | Demos | Question: 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:04 | Mat4 | hello |
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:50 | gmpreussner|work | i stumbled upon filwit's forum post about his 'impl' macro here: http://forum.nim-lang.org/t/935#5593 |
20:44:08 | gmpreussner|work | can someone explain to me what his note at the bottom wrt domain specific interfaces means? |
20:44:37 | gmpreussner|work | in particular, what does "impl Button as GuiItem" do? does that define a type alias for Button? |
20:45:12 | gmpreussner|work | i suppose that's kind of akin to implementing interfaces, yes? |
20:45:55 | gmpreussner|work | ah, nevermind, he writes further down that the 'as Interface' stuff isn't implemented yet |
21:07:48 | Araq | hi Mat4 |
21:08:44 | Araq | r-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:51 | Mat4 | hi Araq |
21:09:52 | Araq | *hint* we do not want to re-evaluate configuration files until a fixpoint was reached |
21:09:57 | crack81 | Hi guys |
21:10:06 | Mat4 | hello crack81 |
21:10:09 | crack81 | I from Mexico |
21:10:10 | Araq | hi crack81 welcome |
21:12:36 | NimBot | nim-lang/Nim devel be991ed Adam Strzelecki [+3 ±13 -2]: Rename rawsockets module to nativesockets... 8 more lines |
21:12:36 | NimBot | nim-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:08 | crack81 | Are you use Nim in windows or in other S.O? |
21:15:57 | Araq | crack81: Nim runs pretty much everywhere |
21:16:13 | reactormonk | probably not your toaster. |
21:17:45 | * | enamex_ joined #nim |
21:17:48 | NimBot | nim-lang/Nim devel 77d4788 JamesP [+0 ±1 -0]: Add toRational(float) conversion from any float to closest... 1 more lines |
21:17:48 | NimBot | nim-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:18 | cncl | hi. 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:11 | Araq | Demos created "VisualNimrod". haven't played with it yet, but it should support visual studio's debugger |
22:19:24 | * | bjz joined #nim |
22:19:47 | Demos | Hey, yeah visual nimrod does support the debugger, but it is pretty out of date (for example completion will most definately not work) |
22:20:15 | cncl | ah i see |
22:20:19 | Demos | if you compiler with --debugger:native you should get debug symbols, you can then attach visual studio to your executable |
22:20:48 | cncl | --debugger:native actually seems to go wrong with msvc in the version of nim i have |
22:20:56 | cncl | but just regular -d:debug proces .pdb correctly |
22:20:59 | Demos | you 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:59 | cncl | er, produces |
22:21:08 | cncl | oh awesome |
22:21:12 | Demos | umm, try --parallelBuild:1 |
22:21:36 | Demos | msvc has trouble generating pdb when there's more than one compiler running at once |
22:21:37 | cncl | yeah i did, it actually produces a file named $projectname.pdb |
22:21:53 | Demos | yeah, that seems to work for me though |
22:21:56 | Araq | nim devel doesn't require --parallelBuild:1 anymore btw |
22:22:14 | Araq | the compiler automatically reruns without parallelism |
22:22:19 | cncl | ah |
22:22:22 | Araq | when the C compiler complains |
22:22:42 | cncl | without --debugger:native and with -d:debug, i get mything.pdb correctly, instead of $projectname.pdb, dunno if that means anything |
22:22:51 | Demos | I 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:06 | cncl | thanks |
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:08 | crack81 | How i can convert one cstring to a PVoid |
22:46:11 | Araq | cast[pointer](mycstring) |
22:53:04 | crack81 | sorry, i'm using the windows api, the function SystemParametersInfo but i don't understand why is not working |
22:53:34 | crack81 | third parameter |
22:56:14 | cncl | what is your code, and the error? |
22:56:32 | * | superfunc joined #nim |
22:58:43 | * | Jesin quit (Quit: Leaving) |
23:00:10 | crack81 | return false i think that third parameter is not being casted |
23:01:03 | crack81 | i pass a cstring example image="photo.bmp" |
23:01:48 | cncl | sorry, don't understand |
23:04:15 | crack81 | I am sorry, this example I want translate |
23:04:19 | crack81 | http://indetectables.net/viewtopic.php?f=98&t=53790 |
23:05:20 | cncl | and your code? |
23:06:58 | crack81 | proc cambiarFondo(name: cstring):bool= return bool(SystemParametersInfo(20,0,addr name[0],0)) |
23:07:45 | cncl | the type will be wrong |
23:07:54 | cncl | you have to use cast to turn it into a void pointer |
23:10:08 | crack81 | it is ironic in c or delphi only raisins the reference to first position of the string |
23:10:59 | cncl | nim does not implicitly cast addresses to void pointers |
23:14:11 | * | Trustable quit (Quit: Leaving) |
23:14:11 | crack81 | then 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) |