00:01:41 | * | endragor quit (Ping timeout: 244 seconds) |
00:09:07 | * | zahary joined #nim |
00:14:31 | * | nairobi joined #nim |
00:17:30 | * | brechtm quit (Remote host closed the connection) |
00:18:43 | * | nairobi quit (Ping timeout: 244 seconds) |
00:34:57 | * | zahary quit (Quit: Leaving.) |
00:48:09 | * | elrood quit (Quit: Leaving) |
00:49:58 | * | libman quit (Remote host closed the connection) |
00:55:41 | * | brson quit (Quit: leaving) |
00:55:55 | * | brson joined #nim |
00:56:00 | * | endragor joined #nim |
01:00:29 | * | endragor quit (Ping timeout: 250 seconds) |
01:01:05 | * | yglukhov joined #nim |
01:05:34 | * | yglukhov quit (Ping timeout: 250 seconds) |
01:21:13 | * | endragor joined #nim |
01:26:03 | * | endragor quit (Ping timeout: 276 seconds) |
01:51:32 | * | chemist69_ joined #nim |
01:55:18 | * | chemist69 quit (Ping timeout: 276 seconds) |
02:00:45 | * | pdv joined #nim |
02:04:01 | * | nairobi joined #nim |
02:09:39 | * | nairobi quit (Ping timeout: 244 seconds) |
02:51:22 | * | brson quit (Quit: leaving) |
03:03:04 | * | yglukhov joined #nim |
03:08:06 | * | yglukhov quit (Ping timeout: 276 seconds) |
03:36:21 | * | endragor joined #nim |
03:36:57 | * | endragor quit (Remote host closed the connection) |
03:37:47 | * | endragor joined #nim |
03:52:06 | * | nairobi joined #nim |
03:56:15 | * | nairobi quit (Ping timeout: 244 seconds) |
03:58:51 | * | endragor quit (Remote host closed the connection) |
04:09:20 | * | endragor joined #nim |
04:36:12 | * | Jesin quit (Ping timeout: 240 seconds) |
04:37:35 | * | ludocode quit (Ping timeout: 250 seconds) |
04:50:45 | * | Jesin joined #nim |
04:55:53 | * | chemist69_ quit (Ping timeout: 258 seconds) |
05:04:58 | * | yglukhov joined #nim |
05:09:21 | * | yglukhov quit (Ping timeout: 258 seconds) |
05:10:33 | * | animosity joined #nim |
05:10:41 | animosity | hello |
05:10:57 | animosity | q: is there a way to call a function that accepts varargs from another function that just received varargs? |
05:12:12 | animosity | proc a( argA: varargs[string]) = discard, proc b(argB: varargs[string]) = a( argB) ??? |
05:13:33 | * | chemist69_ joined #nim |
05:28:30 | * | animosity quit (Remote host closed the connection) |
05:42:26 | * | rok joined #nim |
06:14:12 | * | space-wizard quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
06:18:43 | * | yglukhov joined #nim |
06:22:52 | * | yglukhov quit (Ping timeout: 240 seconds) |
06:24:06 | * | space-wizard joined #nim |
06:28:22 | * | gokr joined #nim |
06:37:41 | * | chemist69_ quit (Quit: WeeChat 1.5) |
06:40:31 | * | chemist69 joined #nim |
07:03:57 | * | Arrrr joined #nim |
07:21:03 | ftsf | is it possible to create a converter that's not implicit? but add a way to do an explicit conversion between types? |
07:25:32 | * | nairobi joined #nim |
07:25:49 | Arrrr | I get 'Error: redefinition of 'X'' |
07:28:26 | * | yglukhov joined #nim |
07:54:31 | flyx | ftsf: well you can write a proc, but you cannot name it like the type. the manual says at isExplicitlyConvertible that there seems to be no way to do that unless making it implicitly convertible too |
07:54:55 | ftsf | flyx, I see, thanks |
07:55:04 | ftsf | i made a proc with a different name to do it |
07:55:06 | * | brechtm joined #nim |
07:55:27 | ftsf | but seems odd that you can't use the same name like is done internally for int(foo) and float(foo) for example |
07:56:07 | flyx | that is also handled in isExplicitlyConvertible |
07:56:22 | flyx | which defines that integral types are explicitly convertible |
07:58:13 | ftsf | interesting |
08:05:41 | * | space-wizard quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
08:06:44 | * | coffeepot joined #nim |
08:07:44 | * | coffeepot quit (Client Quit) |
08:16:22 | * | hendi__ joined #nim |
09:11:30 | * | s4 joined #nim |
09:17:38 | * | pafmaf joined #nim |
09:18:25 | * | tankfeeder joined #nim |
09:31:28 | * | nairobi quit (Remote host closed the connection) |
09:43:25 | * | nairobi joined #nim |
09:58:28 | * | ludocode joined #nim |
09:59:51 | * | Demon_Fox quit (Quit: Leaving) |
10:21:08 | * | nairobi quit (Remote host closed the connection) |
10:22:47 | * | nairobi joined #nim |
10:27:31 | * | nairobi quit (Ping timeout: 265 seconds) |
10:28:22 | * | nairobi joined #nim |
10:45:07 | * | nairobi quit (Read error: Connection timed out) |
10:46:05 | * | nairobi joined #nim |
10:46:14 | * | hendi__ quit (Ping timeout: 250 seconds) |
10:46:42 | * | desophos quit (Read error: Connection reset by peer) |
10:57:03 | * | elrood joined #nim |
11:01:54 | * | nairobi quit (Read error: Connection timed out) |
11:02:41 | * | nairobi joined #nim |
11:12:13 | * | pdv quit (Remote host closed the connection) |
11:18:50 | * | nairobi quit (Read error: Connection timed out) |
11:20:19 | * | nairobi joined #nim |
11:23:49 | * | michael_campbell quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
11:24:57 | gokr | I have this odd situation with an OrderedTable that... hasKey(key) returns true, and if I then do del(key) and check again, hasKey(key) still reports true. |
11:25:15 | gokr | And yes, I think my == and hash are ok. |
11:33:12 | Arrrr | I get 'Error: redefinition of 'X'' |
11:33:18 | Arrrr | ujj, wrong window |
11:36:50 | * | nairobi quit (Remote host closed the connection) |
11:45:52 | * | tankfeeder left #nim ("Leaving") |
11:51:05 | * | brechtm_ joined #nim |
11:54:54 | * | brechtm quit (Ping timeout: 260 seconds) |
12:04:26 | * | Arrrr quit (Read error: Connection reset by peer) |
12:05:28 | * | chrisheller joined #nim |
12:06:35 | * | chrishel_ joined #nim |
12:06:35 | * | chrisheller quit (Read error: Connection reset by peer) |
12:06:50 | * | rok quit (Quit: rok) |
12:07:00 | * | PMunch joined #nim |
12:09:47 | * | zahary joined #nim |
12:10:12 | * | michael_campbell joined #nim |
12:25:06 | * | brechtm_ quit (Remote host closed the connection) |
12:28:53 | * | brechtm joined #nim |
13:26:54 | * | s4 quit (Quit: Konversation terminated!) |
13:33:15 | * | nsf quit (Quit: WeeChat 1.5) |
13:53:16 | * | chrishel_ quit (Ping timeout: 252 seconds) |
14:01:55 | * | saml joined #nim |
14:20:12 | * | pafmaf quit (Ping timeout: 276 seconds) |
14:22:32 | kier | gokr: have you got a code sample for this behaviour? I can't seem to reproduce it at the moment |
14:23:12 | gokr | kier: No, I haven't distilled one. But when I switched from OrderedTable to Table - the issue went away. |
14:23:24 | kier | weird |
14:23:46 | gokr | The odd thing was that... first removal worked fine, but not the second time around. |
14:24:37 | gokr | And... IMHO it must be some bug in OrderedTable - I can't really see how a del(key) followed by hasKey(key) can be true. |
14:25:32 | gokr | But ... I can try to see if I can reproduce it in a smaller sample... tonight perhaps. |
14:26:31 | gokr | I presume OrderedTable is not used that much, and... frankly, I should stick to Table for my use case anyway I think. |
14:27:08 | gokr | I wanted my Map datatype in Spry to always serialize the same - but... I can fix that by sorting keys or something. |
14:29:30 | kier | the source code of del(OrderedTable) does looks suspicious |
14:29:50 | kier | the criteria for a table's slot being empty is that it's hcode field is equal to zero |
14:30:06 | kier | but del(OrderedTable) doesn't set hcode to zero, it just zeroes out the value |
14:30:55 | kier | doesn't explain why del sometimes does work though |
14:32:06 | kier | oh ignore all that, it zeroes out the entire tuple (including hcode), not just the value |
14:34:59 | * | rusua joined #nim |
14:35:33 | * | zahary quit (Ping timeout: 240 seconds) |
14:35:49 | * | rusua quit (Client Quit) |
14:37:42 | * | rusua joined #nim |
14:38:24 | * | zahary joined #nim |
14:50:49 | * | nairobi joined #nim |
14:55:24 | * | nairobi quit (Ping timeout: 250 seconds) |
15:26:20 | * | nairobi joined #nim |
15:31:29 | * | nairobi quit (Remote host closed the connection) |
15:40:29 | * | Jesin quit (Quit: Leaving) |
15:45:31 | * | nicanaca0 joined #nim |
15:45:52 | * | pregressive joined #nim |
15:48:09 | * | endragor quit (Remote host closed the connection) |
15:53:40 | * | brson joined #nim |
15:53:41 | * | zahary quit (Read error: Connection reset by peer) |
15:53:43 | * | nairobi joined #nim |
16:03:16 | * | nairobi quit (Ping timeout: 258 seconds) |
16:03:36 | * | brechtm quit (Remote host closed the connection) |
16:04:11 | * | nairobi joined #nim |
16:09:36 | * | brechtm joined #nim |
16:22:43 | * | space-wizard joined #nim |
16:22:53 | * | Trustable joined #nim |
16:25:44 | * | brechtm quit (Remote host closed the connection) |
16:25:50 | * | PMunch quit (Quit: leaving) |
16:26:52 | * | Salewski joined #nim |
16:30:45 | Salewski | Araq, as you may have seen I have posted a few nimsuggest issues in the last days. |
16:32:47 | Salewski | The strange thing is, that compiling gives errors for the requested line range. For example def system.nim;system.nim:2136:5 results in errors for lines 2137 and 2138 |
16:33:46 | Salewski | Maybe that is easy for you -- I have no idea. I can not imagine why compiler is influenced by the requested line range. |
16:35:26 | Salewski | And the logic for --v2 option and missing dirtyfile is wrong, for that combination we get generally no output. |
16:36:41 | Salewski | I have tried also compiling nimsuggest as nim e compile_without_nimble nimsuggest.nim -- make no difference. |
16:39:50 | * | yglukhov quit (Ping timeout: 250 seconds) |
16:46:29 | * | nairobi_ joined #nim |
16:46:56 | * | nairobi quit (Ping timeout: 265 seconds) |
16:51:22 | * | brechtm joined #nim |
17:16:14 | dyce_ | is it possible to get the hostname of the computer in nim? |
17:18:24 | * | nairobi_ quit (Remote host closed the connection) |
17:18:49 | * | nairobi joined #nim |
17:20:06 | * | nairobi quit (Remote host closed the connection) |
17:22:03 | * | libman joined #nim |
17:22:43 | ftsf | dyce_, https://github.com/nim-lang/Nim/pull/3323 "kind of"? |
17:24:22 | ftsf | dyce_, http://nim-lang.org/docs/nativesockets.html#getAddrInfo,string,Port,Domain,SockType,Protocol actually, this is the thing to get it |
17:31:23 | dyce_ | ftsf: that will get the localhost's hostname? |
17:31:43 | dyce_ | im confused that you have to pass a ip and port |
17:32:14 | dyce_ | just looking for the equivalent of typing hostname into the terminal on osx/linux |
17:32:17 | ftsf | it's a pretty confusing api |
17:33:47 | * | nairobi joined #nim |
17:33:57 | ftsf | dyce_, well you can execProcess("hostname") |
17:34:42 | * | aziz joined #nim |
17:35:13 | dyce_ | ftsf i guess ill just try to understand this: http://hostname.sourcearchive.com/documentation/3.03ubuntu1/hostname_8c_source.html |
17:35:18 | ftsf | http://stackoverflow.com/a/505546 is how you do it in C with getaddrinfo. it's not a nice process =) |
17:36:42 | dyce_ | ftsf: http://nim-lang.org/docs/posix.html#gethostname,cstring,int |
17:37:54 | * | nairobi quit (Ping timeout: 250 seconds) |
17:40:07 | ftsf | dyce_, nice |
17:40:30 | dyce_ | but doesnt work with windows i assume |
17:41:22 | ftsf | hmm probably not |
17:42:33 | dyce_ | heh in windows ill just call something like execProcess |
17:42:45 | ftsf | there's probably a windows API function you can call |
17:43:05 | dyce_ | infact hostname is a command on windows |
17:43:26 | dyce_ | but i thought it was better to use native functions |
17:43:52 | dyce_ | i understand each linux distro might be different, but i assume if you try to remove hostname.exe on windows something will go terribly wrong :) |
17:44:03 | ftsf | ok, heading off to play no man's sky! good luck |
17:44:07 | * | ftsf quit (Remote host closed the connection) |
17:58:29 | * | brechtm quit (Remote host closed the connection) |
18:10:44 | * | BlaXpirit quit (Quit: Bye) |
18:11:07 | * | BlaXpirit joined #nim |
18:55:09 | * | michael_campbell quit (Ping timeout: 276 seconds) |
19:01:59 | * | gdelazzari joined #nim |
19:03:10 | gdelazzari | Hi, what's the new method to make an ASCII string uppercase? Nim complains that strutils.toUpper is deprecated but I couldn't find any information about the new way |
19:05:38 | dom96 | gdelazzari: it looks like toUpperAscii |
19:05:41 | dom96 | that's... |
19:05:44 | dom96 | what |
19:07:55 | dom96 | Looks like I missed the whole discussion about this change |
19:10:43 | gdelazzari | Thank you, I did notice that function just now... feel so dumb. But there were no comments/docs naming that. The comments on the lib were just talking about unicode.toUpper |
19:11:31 | dom96 | yeah, the docs on the website are for the latest version |
19:11:37 | dom96 | this stuff hasn't been released ye |
19:11:38 | dom96 | *yet |
19:15:41 | * | aziz quit (Remote host closed the connection) |
19:20:04 | * | pie_ is now known as dingleberry_pie_ |
19:21:20 | * | dingleberry_pie_ is now known as pie_ |
19:30:32 | * | michael_campbell joined #nim |
19:33:00 | * | zahary joined #nim |
20:06:53 | * | Matthias247 joined #nim |
20:17:45 | * | gokr quit (Ping timeout: 244 seconds) |
20:43:13 | * | zahary quit (Ping timeout: 244 seconds) |
20:45:25 | * | zahary joined #nim |
20:49:58 | * | libman quit (Remote host closed the connection) |
20:54:46 | * | gdelazzari quit (Quit: Page closed) |
20:58:06 | * | nairobi joined #nim |
21:01:53 | * | nairobi_ joined #nim |
21:03:12 | * | nairobi quit (Ping timeout: 276 seconds) |
21:03:39 | * | Salewski left #nim (#nim) |
21:06:00 | * | nairobi_ quit (Ping timeout: 250 seconds) |
21:18:32 | * | aFrigginElf joined #nim |
21:26:29 | * | Trustable quit (Remote host closed the connection) |
21:28:49 | * | nairobi joined #nim |
21:29:51 | * | verax_ joined #nim |
21:31:35 | * | nairobi quit (Remote host closed the connection) |
21:33:03 | * | yglukhov joined #nim |
21:37:35 | * | yglukhov quit (Ping timeout: 258 seconds) |
21:39:56 | * | nairobi joined #nim |
21:41:47 | * | Demon_Fox joined #nim |
21:46:38 | * | nsf joined #nim |
21:52:35 | * | nairobi quit (Remote host closed the connection) |
22:02:08 | verax_ | Does Nim offer any feature to view a macro expansion (macro-generated Nim code)? |
22:05:15 | ldlework | well it doesn't expand to nim code, but nim ast |
22:06:22 | verax_ | Ah, right. My mistake. |
22:06:30 | * | yglukhov joined #nim |
22:07:44 | * | PMunch joined #nim |
22:22:09 | verax_ | What is Nim's unit of encapsulation? Is there any way to declare 'private' fields in a type? |
22:27:33 | * | kunev quit (Ping timeout: 240 seconds) |
22:28:14 | * | kunev joined #nim |
22:35:19 | * | pie__ joined #nim |
22:36:12 | verax_ | Looks like the unit of encapsulation is the module |
22:38:45 | * | pie_ quit (Ping timeout: 276 seconds) |
22:41:23 | kier | verax_: everything is implicitly private to the current module unless you mark it with an asterisk to export it |
22:48:11 | * | space-wizard quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
22:55:23 | verax_ | y |
23:00:14 | * | elrood quit (Quit: Leaving) |
23:05:10 | * | aFriginElf joined #nim |
23:08:32 | * | aFrigginElf quit (Ping timeout: 250 seconds) |
23:08:40 | * | Mitame joined #nim |
23:09:56 | * | aFriginElf quit (Ping timeout: 250 seconds) |
23:10:46 | * | aFrigginElf joined #nim |
23:23:40 | * | Jesin joined #nim |
23:24:37 | * | Matthias247 quit (Read error: Connection reset by peer) |
23:31:36 | * | yglukhov quit (Remote host closed the connection) |
23:50:39 | * | PMunch quit (Quit: leaving) |