00:03:28 | yuta | Hi |
00:07:38 | yuta | I would add simple tests to nimsuggest, but can I use nimscript? |
00:07:46 | yuta | it seems nimble file locked version to `"nim >= 0.11.2, compiler#head"`. |
00:15:40 | yuta | I mean nimsuggest.nimble file need to support INI format? |
00:15:58 | yuta | (nimscript introduced v0.12.0 according to http://nim-lang.org/news.html) |
00:18:14 | * | macbeth quit (Ping timeout: 252 seconds) |
00:21:32 | * | desophos quit (Remote host closed the connection) |
00:27:06 | * | Ven quit (Ping timeout: 246 seconds) |
00:27:10 | cheatfate | yuta, but current version is 0.13.0 |
00:28:31 | cheatfate | Varriount, are nimsuggest goto defination support imports? |
00:29:01 | Varriount | cheatfate: No idea. |
00:29:22 | yuta | cheatfate yeah, I wanted to change the nimble file of to current version, |
00:29:24 | yuta | but I wondered if there is reason in current nimsuggest.nimble file |
00:29:41 | Varriount | cheatfate: Do you mean, will using the 'def' command in nimsuggest on an import give something? |
00:30:36 | * | Ven joined #nim |
00:30:53 | cheatfate | i know you have Goto Definition in NimLime but i dont know nimsuggest at all, is it working like Visual Studio Goto Definition or just looking for definition in current file |
00:32:36 | Varriount | cheatfate: It literally passes the filename of the current view, the cursor row, and the cursor column to a nimsuggest instance. |
00:33:10 | Varriount | cheatfate: It currently doesn't support project files, but those aren't needed most of the time. |
00:33:48 | Varriount | You can use 'nimsuggest stdin --interactive:true <file>' to start the NimLime fork of Nimsuggest in interactive mode. |
00:34:12 | Varriount | I'm currently messing around with things, so it's broken for me at the moment. |
00:34:15 | cheatfate | ok i will try thanks |
00:34:40 | * | uryga quit (Ping timeout: 244 seconds) |
00:36:19 | Varriount | (you don't need the interactive mode, but it's a bit nicer looking) |
00:37:20 | yuta | Varriount I seem you have permission to merge in nimsuggest repo |
00:37:33 | yuta | could you review my PR? https://github.com/nim-lang/nimsuggest/pull/22 |
00:37:38 | Varriount | Sure. |
00:38:38 | yuta | Varriount thank you very much |
00:39:13 | Varriount | yuta: My only problem is that it will probably mean my PR has to be merged manually. :\ |
00:41:42 | yuta | If you merge my PR, I can send PR for your PR #21. |
00:41:47 | * | brson quit (Ping timeout: 260 seconds) |
00:42:13 | yuta | oh god. Your work is so fast |
00:42:50 | Varriount | yuta: Well, it's not like there's much to review. |
00:43:07 | Varriount | And it's just a single button-push to merge. |
00:43:51 | yuta | Varriount thank you. I'll make PR to you including my EPC later. |
00:44:28 | Varriount | yuta: Any idea what's up with chk option regression? |
00:45:01 | Varriount | https://github.com/nim-lang/nimsuggest/pull/21#issuecomment-198434703 |
00:48:26 | yuta | Varriount: Sorry, I haven't checked seriously yet. |
00:49:08 | cheatfate | Varriount, and what is syntax for def command? |
00:49:15 | yuta | I have to go... Bye bye gays |
00:49:23 | * | yuta quit (Remote host closed the connection) |
00:49:58 | Varriount | cheatfate: Same for the others. '<filename>:line:col' |
00:51:02 | Varriount | Or rather, 'def <filename>:<line>:<col>' |
00:53:32 | cheatfate | i see nimsuggest will not work until file has errors... |
00:53:41 | Varriount | Huh? |
00:53:59 | Varriount | cheatfate: What do you think about adding a 'NimLime' menu in the main command bar in Sublime Text? |
00:54:44 | cheatfate | You know i have st2... but i think adding Goto Definition must be in popup menu |
00:55:06 | cheatfate | What you want to add to this NimLime menu? |
00:55:27 | cheatfate | not in ctrl+shift+p only |
00:55:50 | cheatfate | Varriount, and also you not answered me about libcef |
00:56:02 | Varriount | cheatfate: Oh? I thought I did. |
00:56:34 | Varriount | cheatfate: As I said before, ST2 doesn't have nimsuggest support yet. |
00:57:02 | cheatfate | Varriount, yeah i remember about st2 support :) |
00:57:26 | cheatfate | how do you think is it possible to build something like phantomjs using libcef? |
00:57:47 | cheatfate | or you want to delete libcef repo because libcef is useless? |
00:58:01 | Varriount | cheatfate: Regarding libcef, the wrapper was virtually useless. I deleted it this morning. |
00:58:56 | cheatfate | Argh why it was useless? or libcef updating to often to support mainline? |
01:00:58 | Varriount | cheatfate: It was over 2 years old, completely untested, and probably broken. |
01:01:21 | Varriount | It would probably be easier to simply re-wrap the libcef C api. |
01:03:10 | * | gokr quit (Quit: Leaving.) |
01:06:00 | * | [CBR]Unspoken quit (Ping timeout: 250 seconds) |
01:12:26 | * | Demon_Fox quit (Quit: Leaving) |
01:18:57 | * | desophos joined #nim |
01:20:10 | * | desophos quit (Remote host closed the connection) |
01:20:12 | * | [CBR]Unspoken joined #nim |
01:22:13 | * | desophos joined #nim |
01:26:29 | * | desophos quit (Ping timeout: 260 seconds) |
01:57:43 | * | desophos joined #nim |
02:03:22 | * | saml_ quit (Quit: Leaving) |
02:07:06 | * | bamorim quit (Ping timeout: 244 seconds) |
02:17:57 | * | krux02 quit (Remote host closed the connection) |
03:21:51 | * | yglukhov joined #nim |
03:25:55 | * | yglukhov quit (Ping timeout: 248 seconds) |
03:33:07 | * | endragor joined #nim |
03:57:11 | * | desophos quit (Read error: Connection reset by peer) |
03:59:39 | * | endragor quit (Remote host closed the connection) |
04:01:02 | * | endragor joined #nim |
04:53:02 | * | vendethiel joined #nim |
05:10:24 | * | yglukhov joined #nim |
05:14:41 | * | yglukhov quit (Ping timeout: 244 seconds) |
06:00:21 | * | vendethiel quit (Ping timeout: 276 seconds) |
06:18:44 | * | endragor_ joined #nim |
06:22:21 | * | endragor quit (Ping timeout: 246 seconds) |
06:45:01 | * | endragor_ quit (Remote host closed the connection) |
06:45:30 | * | endragor joined #nim |
06:54:56 | * | endragor quit (Remote host closed the connection) |
07:09:05 | * | bjz joined #nim |
07:13:11 | * | endragor joined #nim |
07:31:03 | * | sarlalian quit (Ping timeout: 264 seconds) |
07:32:15 | * | toaoMgeorge quit (Read error: Connection reset by peer) |
07:32:45 | * | rok joined #nim |
07:42:14 | * | yglukhov joined #nim |
08:15:18 | * | Ven quit (Ping timeout: 268 seconds) |
08:17:22 | * | Ven joined #nim |
08:18:33 | * | bjz_ joined #nim |
08:19:00 | * | bjz quit (Ping timeout: 268 seconds) |
08:23:50 | * | gokr joined #nim |
08:40:15 | * | rok quit (Ping timeout: 276 seconds) |
08:42:14 | * | rok joined #nim |
08:51:56 | * | dorei joined #nim |
08:54:46 | * | iamd3vil joined #nim |
09:19:04 | * | vendethiel joined #nim |
09:28:17 | * | ludocode_ quit (Quit: No Ping reply in 180 seconds.) |
09:30:42 | * | ludocode joined #nim |
09:31:54 | * | enthus1ast quit (Ping timeout: 252 seconds) |
09:43:18 | * | vendethiel quit (Ping timeout: 276 seconds) |
09:50:56 | vegansk | Araq, ping! |
09:52:50 | ldlework | don't do that, just send your message |
09:54:16 | Araq | bong |
09:54:43 | ldlework | yes please. |
09:56:23 | vegansk | Araq, hi! I've found a strange compiler's bug. But I can't reproduce it in the small example. The problem is that compiler fails with "Error: cannot prove 'xr' is not nil". But ``xr`` is an object, not ref etc. |
09:56:59 | Araq | lol. |
09:57:50 | vegansk | I'm trying to find it by myself. Can you tell me, how the compiler detects if it must check the parameter of the function? |
10:02:24 | Araq | in ast.nim there is some propagation proc |
10:02:30 | Araq | that propagtes type properties |
10:03:14 | Araq | tfNotNil is one such property |
10:03:45 | Araq | my bet is that it's simply applied for generic instantiations regardless of it's actually nilable to begin with |
10:03:54 | Araq | *of whether |
10:04:10 | Araq | shouldn't be that hard to find when you grep for tfNotNil |
10:05:23 | * | yglukhov quit (Ping timeout: 248 seconds) |
10:09:23 | * | ludocode quit (Ping timeout: 268 seconds) |
10:26:16 | * | arnetheduck joined #nim |
10:26:50 | * | rok quit (Quit: rok) |
10:35:45 | vegansk | I found how to reproduce it in minimal example while grepping ``tfNotNil`` :-) |
10:39:50 | Araq | maybe you should get a faster grep |
10:41:00 | * | iamd3vil left #nim ("Leaving") |
10:41:36 | * | darkf quit (Quit: Leaving) |
10:41:52 | vegansk | It's ``ag`` and it's really fast :-) The time was spent to minimize mimimum example from 100 lines to 10. https://github.com/nim-lang/Nim/issues/3993 |
10:47:41 | Araq | now fix the compiler bug and see for yourself it's irrelevant whether the example program is 100 lines or 10 lines. |
11:00:10 | * | bamorim joined #nim |
11:00:31 | vegansk | Araq, this type is really ``not nil``, so it must have tfNotNil flag. The problem is that ``impliesNotNil`` is called with the empty ``facts`` list, so it doesn't check it, and returns impUnknown immediately. |
11:01:54 | vegansk | Maybe it's not the problem, but the consequence of the problem |
11:12:39 | * | Arrrr joined #nim |
11:17:31 | * | bjz joined #nim |
11:18:16 | endragor | Araq: is there any hack for a macro to get nnkCommentStmt contents? |
11:19:49 | * | bjz_ quit (Ping timeout: 252 seconds) |
11:21:04 | * | vendethiel joined #nim |
11:23:14 | * | bamorim quit (Ping timeout: 260 seconds) |
11:23:56 | * | bamorim joined #nim |
11:24:00 | vegansk | endragor, use strVal |
11:25:53 | endragor | oh, nice, then it seems macros.nim doc is outdated. thanks vegansk |
11:30:02 | * | boopsiesisaway is now known as boopsies |
11:34:33 | * | uryga joined #nim |
11:36:00 | federico3 | how can nimble configured to build with the right flags? |
11:37:21 | * | Trustable joined #nim |
11:39:38 | * | yglukhov joined #nim |
11:40:40 | Araq | what are the right flags? |
11:41:03 | * | enthus1as joined #nim |
11:41:26 | * | enthus1as is now known as enthus1ast |
11:43:03 | * | vendethiel quit (Ping timeout: 240 seconds) |
11:46:10 | * | coffeepot joined #nim |
11:51:58 | * | uryga quit (Ping timeout: 244 seconds) |
11:58:31 | * | fredrik92 joined #nim |
11:59:03 | enthus1ast | Hi, i've made some little changes on the smtp module (implemented attachements) and i would like to contribute. But i have never done anything like this ( on github ). Is there anything i have to pay attention to? |
12:00:58 | fredrik92 | enthus1ast, have you forked the repo? |
12:01:02 | * | vegansk is now known as veganskaway |
12:04:56 | enthus1ast | fredrik92: jep |
12:05:31 | fredrik92 | ok, then you should be able to just issue a Pull Request on GitHub |
12:06:25 | fredrik92 | the nim team will then get notified, and if there's something wrong with your code, there will be a discussion on that Pull Request thread |
12:07:06 | fredrik92 | Also it helps a lot if your forked branch is automatically mergeable with the target branch in the nim repo |
12:07:32 | gokr | enthus1ast: You basically make a Pull Request using the web UI of github. |
12:07:58 | gokr | enthus1ast: https://help.github.com/articles/creating-a-pull-request/ |
12:08:33 | * | gokr1 joined #nim |
12:08:56 | enthus1ast | i've made a feature branch, should i merge it to the devel branch in my fork? |
12:09:48 | enthus1ast | gokr: i will have a look |
12:09:56 | federico3 | Araq: it depends on the package, -d:release would be a starting point for many |
12:12:21 | * | gokr quit (Ping timeout: 246 seconds) |
12:20:48 | * | vendethiel joined #nim |
12:29:28 | cheatfate | enthus1ast, do you have implemented full mime support? |
12:30:49 | enthus1ast | atm i get the mime type out of the file extension. |
12:31:04 | cheatfate | enthus1ast, which type of encodings you support? |
12:31:12 | enthus1ast | base64 |
12:31:21 | cheatfate | or could you give me address of your repo so i can watch? |
12:32:03 | enthus1ast | https://github.com/enthus1ast/Nim/blob/devel/lib/pure/smtp.nim |
12:32:08 | enthus1ast | oh sorry |
12:32:24 | enthus1ast | https://github.com/enthus1ast/Nim/blob/smtpattachment/lib/pure/smtp.nim |
12:34:23 | Araq | federico3: nimble build -d:release foo ? |
12:37:02 | federico3 | Araq: I'm looking for a place to store all the required build flags, e.g. --threads:on |
12:37:31 | federico3 | -d:ssl and so on |
12:42:01 | * | vendethiel quit (Ping timeout: 240 seconds) |
12:42:41 | flyx | federico3: config.nims? |
12:44:16 | flyx | federico3: see http://nim-lang.org/docs/nims.html |
12:44:27 | federico3 | thanks |
12:49:54 | * | enthus1ast quit (Ping timeout: 252 seconds) |
12:50:27 | * | vendethiel joined #nim |
12:50:52 | federico3 | are the scripts designed to be executable with a shebang #!/usr/bin/env nim ? |
12:51:05 | federico3 | (it works but it's not documented) |
12:52:12 | flyx | federico3: if you code standalone nimscript, yes |
12:52:24 | flyx | config.nims rather works like this: https://github.com/flyx/NimYAML/blob/master/config.nims |
12:52:50 | flyx | you can just type "nim build" and it executes the "build" task from config.nims |
12:53:20 | flyx | which defines some switches and sets the nim command to "c yaml" |
12:53:26 | flyx | after that, nim executes that command |
12:53:40 | * | coffeepot quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) |
12:54:17 | federico3 | it's sidestepping nimble essentially? :-/ |
12:54:21 | * | enthus1ast joined #nim |
12:54:44 | flyx | um. it is a different tool with different goals |
12:55:15 | flyx | config.nims just configures the nim compiler. |
12:55:34 | flyx | you can still have a .nimble file which takes care of package management |
12:56:02 | federico3 | sidestepping the *build* part of nimble, to be more precise :) |
12:57:35 | * | veganskaway quit (Ping timeout: 244 seconds) |
12:57:52 | flyx | isn't that more of a test feature anyway? |
12:57:57 | * | flyx never used nimble build |
13:00:47 | flyx | hmm, it seems like you can also create tasks in a nimble config file if you use nimscript |
13:01:02 | flyx | but I never used that |
13:01:27 | flyx | I don't think of nimble as a build tool |
13:06:15 | * | krux02 joined #nim |
13:06:27 | * | bamorim quit (Ping timeout: 264 seconds) |
13:12:32 | * | vendethiel quit (Ping timeout: 268 seconds) |
13:28:06 | enthus1ast | cheatfate: do you think this will be good enough? |
13:29:21 | cheatfate | enthus1ast, i dont know, maybe dom96 asks you to add more features, or maybe he will ask you to move this to separate module like "mime.nim" or something |
13:30:27 | cheatfate | enthus1ast, currently smtp.nim is doing what it must to do... attachments are part of something bigger and different nature, so i think they must be hold in other place, not inside smtp.nim |
13:32:29 | cheatfate | enthus1ast, smtp.nim is a transport, but attachments is subset of email message |
13:33:18 | cheatfate | enthus1ast, but it will be good for nim to have library which can make mime messages or parse mime messages and i think your code must be there |
13:34:43 | * | bjz quit (Quit: Textual IRC Client: www.textualapp.com) |
13:35:26 | cheatfate | enthus1ast, but its only my opinion, be brave and make your first PR :) |
13:37:00 | enthus1ast | : ) |
13:38:13 | enthus1ast | a little nervous |
13:38:23 | * | vendethiel joined #nim |
13:38:41 | enthus1ast | i think to make this more cool we need to have something like "file" magic |
13:39:11 | Araq | enthus1ast: we have a mimetypes stdlib module or something, check it out |
13:40:18 | enthus1ast | yeah im useing this but this (as far as i see) is only checking the file extensions |
13:40:46 | enthus1ast | what we do on linux content by string? |
13:40:56 | enthus1ast | linux or content in a string |
13:40:57 | * | vegansk joined #nim |
13:41:16 | enthus1ast | then we have no extension |
13:41:29 | Araq | ever used gcc on Linux? |
13:41:54 | enthus1ast | think so : ) |
13:42:03 | Araq | hint: it uses file extensions to determine the source language and how to parse things ;-) |
13:42:23 | Araq | Linux too has file extensions. it's just that's an inconsistent clusterfuck. |
13:46:27 | * | bjz joined #nim |
13:59:56 | cheatfate | enthus1ast, i think the best way you can improve your project is to add MIME parser |
14:00:07 | * | Ven quit (Ping timeout: 244 seconds) |
14:02:06 | * | vendethiel quit (Ping timeout: 250 seconds) |
14:03:50 | * | Ven joined #nim |
14:13:17 | * | endragor_ joined #nim |
14:17:04 | * | endragor quit (Ping timeout: 260 seconds) |
14:17:39 | * | endragor_ quit (Ping timeout: 260 seconds) |
14:24:39 | * | Demon_Fox joined #nim |
14:30:22 | cheatfate | Araq, i made second try to explain https://github.com/nim-lang/Nim/issues/3989 |
14:51:47 | * | BitPuffin joined #nim |
15:00:34 | * | arnetheduck quit (Ping timeout: 244 seconds) |
15:03:21 | * | sarlalian joined #nim |
15:08:35 | * | gokr1 quit (Quit: Leaving.) |
15:36:52 | * | brson joined #nim |
15:47:17 | * | Arrrr_ joined #nim |
15:48:45 | * | Arrrr quit (Ping timeout: 248 seconds) |
15:50:41 | * | vendethiel joined #nim |
15:55:42 | * | dorei quit (Quit: Page closed) |
16:12:16 | * | krux02 quit (Remote host closed the connection) |
16:12:32 | * | vendethiel quit (Ping timeout: 250 seconds) |
16:15:58 | * | enthus1ast quit (Ping timeout: 252 seconds) |
16:17:02 | * | mahasamoot_ quit (Ping timeout: 244 seconds) |
16:17:55 | * | yglukhov quit (Ping timeout: 252 seconds) |
16:21:56 | * | Arrrr_ quit (Quit: WeeChat 1.4) |
16:22:56 | * | desophos joined #nim |
16:35:07 | baabelfish | Tell me what is the best way for my nim plugin to detect the main file? |
16:36:57 | baabelfish | should I force the user to use some variable in *.nims? |
16:38:11 | federico3 | baabelfish: would it help to look at "bin" in a .nimble file? |
16:38:34 | baabelfish | that is one of the alternatives I came up, not many nimble projects do that even |
17:03:02 | * | rok_ joined #nim |
17:08:51 | * | mahasamoot joined #nim |
17:14:18 | * | GangstaCat quit (Quit: Leaving) |
17:20:57 | * | UberLambda joined #nim |
17:27:11 | * | francisl joined #nim |
17:32:43 | * | lcm337 quit (*.net *.split) |
17:40:01 | * | GangstaCat joined #nim |
17:41:36 | * | yglukhov joined #nim |
17:46:03 | * | yglukhov quit (Ping timeout: 264 seconds) |
17:47:34 | * | francisl quit (Ping timeout: 252 seconds) |
18:04:20 | * | UberLambda quit (Quit: GTG) |
18:05:57 | reactormonk | baabelfish, https://github.com/nim-lang/nim-mode/blob/master/nim-suggest.el#L34 |
18:14:45 | * | gokr joined #nim |
18:36:36 | * | toaoMgeorge joined #nim |
18:47:17 | * | fredrik92 quit (Quit: Leaving) |
18:48:55 | * | enthus1ast joined #nim |
19:03:33 | * | vendethiel joined #nim |
19:06:25 | * | brson quit (Ping timeout: 240 seconds) |
19:20:11 | * | yglukhov joined #nim |
19:38:42 | * | vendethiel quit (Ping timeout: 260 seconds) |
19:47:11 | * | vendethiel joined #nim |
19:50:15 | * | mwbrown joined #nim |
19:51:30 | * | sorakun joined #nim |
19:54:07 | baabelfish | reactormonk: thanks, still got a hackish feeling about that |
19:54:08 | * | nsf quit (Quit: WeeChat 1.4) |
19:55:10 | baabelfish | isn't cfg deprecated in favour of nims? |
19:56:04 | * | nsf joined #nim |
19:57:44 | * | sarlalian quit (Ping timeout: 260 seconds) |
19:57:44 | * | Sergio965 quit (Ping timeout: 260 seconds) |
19:58:19 | * | Vivek quit (Ping timeout: 260 seconds) |
19:58:19 | * | ekarlso- quit (Ping timeout: 260 seconds) |
19:59:49 | * | Vivek joined #nim |
20:00:12 | * | Vivek is now known as Guest82270 |
20:01:49 | * | sarlalian joined #nim |
20:03:06 | * | darkf joined #nim |
20:05:08 | * | Sergio965 joined #nim |
20:07:18 | * | BitPuffin quit (Ping timeout: 276 seconds) |
20:12:30 | * | brson joined #nim |
20:12:40 | * | sorakun quit (Ping timeout: 244 seconds) |
20:12:57 | * | ekarlso- joined #nim |
20:13:09 | * | sora joined #nim |
20:28:09 | * | yglukhov quit (Remote host closed the connection) |
20:38:59 | * | yglukhov joined #nim |
20:39:53 | * | yglukhov quit (Remote host closed the connection) |
20:40:31 | * | yglukhov joined #nim |
20:40:33 | * | sora quit (Ping timeout: 240 seconds) |
20:40:55 | * | sorakun joined #nim |
20:41:25 | * | filippo joined #nim |
20:41:31 | * | filippo is now known as filcuc |
20:42:10 | filcuc | stupid question..but what's the safer way for passing a sequence as an array to C? |
20:45:01 | filcuc | right now i'm doing myseq[0].unsafeAddr |
20:45:05 | filcuc | is it correct? |
20:45:30 | filcuc | and the result is assigned to a pointer |
20:45:40 | filcuc | let p: pointer = myseq[0].unsafeAddr |
20:52:51 | * | arnetheduck joined #nim |
20:54:32 | ldlework | filcuc: just take the addr of a ref |
20:54:42 | ldlework | no need for unsafeAddr I think |
20:54:46 | * | darkf quit (Read error: Connection reset by peer) |
20:56:39 | * | darkf joined #nim |
20:58:57 | filcuc | ldlework: i need the unsafeAddr because myseq is a proc parameter |
20:59:04 | filcuc | ldlework: so i cannot use addr |
21:00:23 | filcuc | but i'm experiencing weird behaviour probably and the generated c code is a mess |
21:15:34 | cheatfate | Araq, could you please help me with "out" keyword |
21:16:30 | Araq | cheatfate: hi. the 'out' keyword hasn't been implemented. |
21:17:25 | cheatfate | ahh ok |
21:19:01 | Araq | filcuc: myseq[0].unsafeAddr is fine |
21:21:28 | * | yglukhov quit (Remote host closed the connection) |
21:21:33 | filcuc | Araq: right now i'm seeing weird thing..basically if my seq.len is 0 everything is fine and from C i get the correct pointer |
21:21:49 | filcuc | Araq: but i get garbage with the seq has two values |
21:22:24 | filcuc | Araq: the generated seems fine...but who knows..but this is could be caused also from my code |
21:22:34 | Araq | cint vs int problem? |
21:23:24 | filcuc | Araq: the array contains some enum values but the values should be cint |
21:23:43 | filcuc | because in the enum i've: myvalue = 0.cint, mysecondvalue = 1.cint |
21:23:45 | filcuc | etc |
21:23:58 | Araq | ha, that's wrong I think |
21:24:09 | Araq | you need to use the .size pragma on the enum instead |
21:24:15 | Araq | c2nim does this |
21:24:40 | filcuc | :( |
21:24:57 | filcuc | i'll google about .size pragma |
21:25:01 | * | irrequietus joined #nim |
21:27:19 | filcuc | Araq: mh..but isn't the .size pragma just declarating the enum width? |
21:27:48 | filcuc | Araq: because in this case i don't get how does it related to cint vs int |
21:29:14 | filcuc | Araq: should i write MyEnum {.size: sizeof(cint).} |
21:29:20 | filcuc | ? |
21:30:06 | rok_ | Hey, question to the guys from nimsuggest. Which branch should be used right now? Master or major-restructure? |
21:32:25 | cheatfate | filcuc, if you not .size pragma then every variable of MyEnum size will be 1 byte size |
21:33:24 | * | sorakun quit (Read error: Connection reset by peer) |
21:35:55 | filcuc | cheatfate: good to know that..i think that i should be in the manual |
21:36:36 | Araq | rok_: major-restructure I guess |
21:36:40 | filcuc | or at least in a FFI section |
21:36:49 | Araq | I need to review it and merge it though. |
21:37:24 | Araq | filcuc: PRs welcome. you could also use c2nim ... ;-) |
21:38:11 | * | sorakun joined #nim |
21:38:50 | rok_ | Araq: alright |
21:39:11 | filcuc | Araq: Touché :D |
21:40:10 | * | tinAndi joined #nim |
21:40:16 | filcuc | Araq: you know that the real men write they're on ffi without a supporting tool |
21:41:17 | filcuc | *own* |
21:43:16 | Araq | real men wrote c2nim. |
21:43:31 | Araq | ;-) |
21:43:56 | * | bamorim joined #nim |
21:45:22 | filcuc | :D given that, using the .size pragma solved my issues |
21:45:27 | filcuc | thanks |
22:01:02 | * | desophos_ joined #nim |
22:04:12 | * | desophos quit (Ping timeout: 246 seconds) |
22:05:17 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
22:14:29 | * | rok_ quit (Quit: rok_) |
22:16:02 | * | mat4 joined #nim |
22:19:33 | * | mwbrown quit (Ping timeout: 240 seconds) |
22:20:02 | * | darkf_ joined #nim |
22:21:59 | * | sorakun quit (Remote host closed the connection) |
22:22:53 | * | darkf quit (Ping timeout: 248 seconds) |
22:29:08 | cheatfate | Araq, does repr preserve object members order? |
22:31:12 | Araq | ya |
22:32:49 | * | desophos_ quit (Remote host closed the connection) |
22:34:29 | * | desophos joined #nim |
22:38:38 | * | desophos quit (Ping timeout: 250 seconds) |
22:41:58 | * | bamorim quit (Ping timeout: 244 seconds) |
22:44:00 | * | mat4 quit (Quit: Leaving) |
22:47:17 | * | tinAndi quit (Quit: ChatZilla 0.9.92 [Firefox 44.0.2/20160210153822]) |
22:49:28 | * | vendethiel quit (Ping timeout: 250 seconds) |
22:59:21 | * | filcuc quit (Quit: Konversation terminated!) |
23:06:28 | * | desophos joined #nim |
23:10:35 | * | Trustable quit (Quit: Leaving) |
23:16:44 | * | irrequietus quit () |
23:22:14 | * | boopsies is now known as boopsiesisaway |
23:25:29 | * | bjz_ joined #nim |
23:28:01 | * | bjz quit (Ping timeout: 252 seconds) |
23:32:21 | * | vendethiel joined #nim |
23:41:28 | * | darkf_ is now known as darkf |
23:47:50 | * | Varriount quit (Read error: Connection reset by peer) |
23:48:13 | * | Varriount joined #nim |
23:53:17 | * | vendethiel quit (Ping timeout: 244 seconds) |