00:04:32 | * | onionhammer quit (Read error: Connection reset by peer) |
00:04:55 | * | onionhammer joined #nim |
00:10:59 | * | jefus quit (Quit: Leaving) |
00:19:29 | * | Mimbus quit (Remote host closed the connection) |
00:44:24 | * | HakanD__ joined #nim |
00:45:11 | * | brson quit (Quit: leaving) |
00:49:33 | * | HakanD__ quit (Ping timeout: 245 seconds) |
01:02:25 | * | gsingh93 joined #nim |
01:07:45 | * | saml_ joined #nim |
01:16:46 | * | smelod joined #nim |
01:18:21 | * | smelod quit (Client Quit) |
01:30:40 | * | Senketsu quit (Quit: Leaving) |
01:36:38 | * | JinShil quit (Ping timeout: 245 seconds) |
01:40:14 | * | BitPuffin quit (Ping timeout: 245 seconds) |
01:45:51 | * | Kingsquee quit (Quit: Konversation terminated!) |
01:51:39 | * | Kingsquee joined #nim |
02:03:01 | * | gsingh93 quit (Ping timeout: 244 seconds) |
02:08:42 | * | EXetoC quit (Ping timeout: 244 seconds) |
02:17:36 | * | Flaise quit (Quit: Leaving.) |
02:20:57 | * | thotypous joined #nim |
02:21:48 | thotypous | hi, i'm new to nim, but it looks like this should cause a compile error: http://pastebin.com/PdF3PbGP |
02:22:09 | thotypous | should i report an issue or is it my error? |
02:23:01 | thotypous | "compile time evaluation or dead code elimination do not work with methods." |
02:33:52 | * | HakanD__ joined #nim |
02:36:57 | cazov | thotypous, looking at the docs I am thinking it's your error. "Perfomance note: Nim does not produce a virtual method table, but generates dispatch trees. This avoids the expensive indirect branch for method calls and enables inlining. However, other optimizations like compile time evaluation or dead code elimination do not work with methods." |
02:38:08 | * | HakanD__ quit (Ping timeout: 246 seconds) |
02:38:20 | thotypous | cazov: yes, i mean it's not expected to *work*, but it should be expected for the compiler to output an error message |
02:38:40 | thotypous | when trying to compile this code |
02:38:46 | cazov | ohh, I misread. |
02:39:37 | thotypous | cazov: what do you think? should i report an issue regarding this? |
02:40:01 | cazov | I think so but I am relatively new as well |
02:41:11 | cazov | `const` requires the expression be computable at compile time and it's pretty obviously not because those are methods so it looks like there's a bug there |
02:41:36 | thotypous | thanks, so i will report it :) |
02:42:29 | * | darkf joined #nim |
03:28:16 | * | saml_ quit (Remote host closed the connection) |
03:38:12 | * | gsingh93 joined #nim |
03:45:54 | * | bcinman joined #nim |
03:47:29 | * | bcinman quit (Read error: Connection reset by peer) |
03:48:02 | * | bcinman joined #nim |
03:49:46 | * | bcinman_ joined #nim |
03:51:06 | * | egrep quit (Quit: Well... Be back sooooooooon. I'm updating things, and everything's going to be INSANE! By which I mean shit is going down. So... please wait while we are down for unexpected unmaintenance.) |
03:52:47 | * | egrep joined #nim |
03:52:50 | * | bcinman quit (Ping timeout: 252 seconds) |
03:58:34 | * | bcinman_ quit (Remote host closed the connection) |
03:58:36 | * | reactormonk quit (Ping timeout: 276 seconds) |
03:59:07 | * | bcinman joined #nim |
03:59:57 | * | reactormonk joined #nim |
04:01:22 | * | egrep quit (Ping timeout: 256 seconds) |
04:01:43 | * | egrepnix joined #nim |
04:02:17 | * | egrepnix is now known as egrep |
04:09:43 | * | egrep quit (Quit: Brb... switching to wired interwebs.) |
04:11:00 | * | egrep joined #nim |
04:20:58 | * | endragor joined #nim |
04:22:37 | * | HakanD__ joined #nim |
04:27:38 | * | HakanD__ quit (Ping timeout: 272 seconds) |
04:35:13 | * | transfuturist joined #nim |
04:37:02 | * | transfuturist quit (Client Quit) |
05:04:49 | * | gsingh93 quit (Ping timeout: 245 seconds) |
05:11:28 | * | Flaise joined #nim |
05:19:40 | * | polkm quit (Ping timeout: 246 seconds) |
05:23:24 | * | HakanD__ joined #nim |
05:26:56 | * | johnsoft quit (Ping timeout: 256 seconds) |
05:28:01 | * | HakanD__ quit (Ping timeout: 264 seconds) |
05:48:55 | * | johnsoft joined #nim |
06:02:39 | * | Flaise quit (Quit: Leaving.) |
06:24:09 | * | HakanD__ joined #nim |
06:28:40 | * | HakanD__ quit (Ping timeout: 252 seconds) |
06:33:56 | * | BlaXpirit joined #nim |
06:39:54 | * | milosn quit (Read error: Connection reset by peer) |
06:41:03 | * | milosn joined #nim |
06:55:39 | * | smelod joined #nim |
07:29:46 | * | irrequietus joined #nim |
07:44:46 | * | bcinman quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
07:57:14 | * | irrequietus quit () |
08:00:09 | * | irrequietus joined #nim |
08:02:07 | * | gmpreussner|work quit (Read error: Connection reset by peer) |
08:02:10 | * | irrequietus quit (Remote host closed the connection) |
08:04:45 | * | irrequietus joined #nim |
08:08:22 | * | endragor quit (Ping timeout: 255 seconds) |
08:20:57 | * | cmk_zzz_ joined #nim |
08:21:50 | * | irrequietus quit () |
08:24:14 | novist | is there a reason for unsignedValue <= 123'u32 requiring that 'u32 part? or should i make bug report about literals not being unsigned-friendly? |
08:24:23 | * | irrequietus joined #nim |
08:25:21 | repax | novist: example? |
08:25:55 | fowlmouth | i think it works better if you import unsigned? |
08:26:04 | repax | Usually there's no way to tell for sure that an unsigned value is intended |
08:27:54 | BlaXpirit | novist, there is huge racial discrimination for unsigned integers |
08:28:13 | BlaXpirit | you are not supposed to use them |
08:29:28 | novist | right, except when dealing with raw data i would prefer not having some accidents where upper byte flips due to something i did not think of |
08:30:23 | novist | as for example, i must do this: codePoint = ((byte1 & 0x0F'u8) << 12'u8) | (byte2 << 6'u8) | byte3 |
08:30:29 | novist | byte* are uint8 |
08:30:59 | BlaXpirit | yeah, that's so much "fun" |
08:31:02 | novist | also if codePoint >= 0x0800'u32:, codePoint being uint32 |
08:31:14 | BlaXpirit | novist, that one is actually ok |
08:31:46 | BlaXpirit | codePoint >=% 0x0800; codePoint being int32 |
08:31:56 | novist | since 0x0800 can easily be uint32 i see no reason why it has to be explicitly specified |
08:32:03 | novist | wth >=% even means? |
08:32:08 | BlaXpirit | it's stupid as heck but that's what we have |
08:32:13 | fowlmouth | http://nim-lang.org/system.html#+%,IntMax32,IntMax32 |
08:32:33 | novist | wow |
08:33:10 | novist | on one hand it was gone far enough to abolish <</>>/&/| to have less weird symbols but then we have >=% which are even more magical |
08:43:45 | fowlmouth | or you could use unsigned numbers |
08:46:17 | novist | or it could just work like one intuitively expects |
08:46:26 | fowlmouth | novist, this can work https://gist.github.com/fowlmouth/54e245c6d519264a448c |
08:47:06 | novist | you cant exactly always implicitly declare variables right when you use them though |
08:47:41 | fowlmouth | novist, you dont understand. importing the module makes i1 <= someliteral work. |
08:48:28 | fowlmouth | as it is, that code doesnt compile |
08:48:28 | novist | yes, that example was wrong, however bit shifting and/or operations still need literals suffixed with correct type name |
08:49:27 | fowlmouth | i1 shr 12 works for me |
08:50:11 | novist | var a: uint8 = 2; echo($(a and 256)) |
08:50:13 | novist | try that |
08:50:28 | novist | although its still wrong, sec |
08:50:59 | novist | uhh im having hard time reproducing that part from unicode stuff that didnt work |
08:52:32 | novist | .eval import unsigned; var byte1 = 10; var byte2 = 20; var codePoint: uint32 = ((byte1 and 0x1F) shl 6) or byte2 |
08:52:42 | novist | hmm that no longer work? |
08:53:01 | fowlmouth | a and 255 works for me |
08:53:40 | fowlmouth | those are ints |
08:53:43 | novist | problem is that a was 1 byte and 256 is two bytes. but in reality i think it still should produce 2 byte result |
08:55:17 | novist | good example is fnv hashing algorithm implementation. it xors or ors lowest octet of hash result with byte from data stream. so uint32 xor uint8. that stuff is kind of needed |
08:58:43 | * | irrequietus quit (Remote host closed the connection) |
08:59:10 | fowlmouth | it should probably upcast automatically, this works with one type conversion var codePoint: uint32 = ((byte1 and 0x1F).uint32 shl 6) or byte2 |
09:01:16 | * | irrequietus joined #nim |
09:09:22 | * | milosn quit (Ping timeout: 265 seconds) |
09:10:51 | * | HakanD joined #nim |
09:11:17 | * | irrequietus quit (Remote host closed the connection) |
09:14:47 | * | irrequietus joined #nim |
09:17:52 | * | milosn joined #nim |
09:18:05 | * | HakanD quit (Quit: Be back later ...) |
09:23:13 | * | milosn quit (Ping timeout: 264 seconds) |
09:24:10 | * | HakanD joined #nim |
09:31:20 | * | Kingsquee quit (Quit: Konversation terminated!) |
09:33:13 | * | endragor joined #nim |
09:37:47 | * | HakanD quit (Quit: Be back later ...) |
09:52:08 | * | cmk_zzz_ quit (Ping timeout: 256 seconds) |
09:59:11 | * | HakanD joined #nim |
10:24:13 | * | milosn joined #nim |
10:24:45 | * | Kingsquee joined #nim |
10:35:16 | * | milosn quit (Read error: Connection reset by peer) |
10:35:33 | * | milosn joined #nim |
10:43:39 | * | EXetoC joined #nim |
10:46:28 | * | milosn quit (Read error: Connection reset by peer) |
10:46:59 | * | milosn joined #nim |
10:56:54 | * | filcuc joined #nim |
10:57:13 | * | milosn quit (Read error: Connection reset by peer) |
10:57:27 | * | milosn joined #nim |
11:03:58 | * | TEttinger joined #nim |
11:04:59 | * | milosn quit (Read error: Connection reset by peer) |
11:05:49 | * | milosn joined #nim |
11:09:23 | * | HakanD_ joined #nim |
11:09:32 | * | Trustable joined #nim |
11:12:57 | * | HakanD quit (Ping timeout: 264 seconds) |
11:13:15 | * | milosn quit (Read error: Connection reset by peer) |
11:14:11 | * | milosn joined #nim |
11:29:16 | * | endragor quit (Ping timeout: 240 seconds) |
11:30:00 | * | HakanD__ joined #nim |
11:30:55 | * | milosn quit (Read error: Connection reset by peer) |
11:31:41 | * | milosn joined #nim |
11:33:25 | * | HakanD_ quit (Ping timeout: 244 seconds) |
11:38:28 | * | milosn quit (Quit: Reconnecting) |
11:38:52 | * | milosn joined #nim |
11:45:39 | * | milosn quit (Read error: Connection reset by peer) |
11:45:54 | * | milosn joined #nim |
11:54:00 | * | Kingsquee quit (Quit: Konversation terminated!) |
11:54:19 | * | irrequietus quit () |
11:57:57 | * | milosn quit (Ping timeout: 264 seconds) |
12:00:11 | * | Flaise joined #nim |
12:02:20 | * | BitPuffin joined #nim |
12:02:20 | * | BitPuffin quit (Remote host closed the connection) |
12:02:34 | * | BitPuffin joined #nim |
12:05:27 | * | Flaise quit (Read error: Connection reset by peer) |
12:06:21 | * | Flaise joined #nim |
12:08:59 | * | phira quit (Excess Flood) |
12:09:35 | * | phira joined #nim |
12:09:35 | * | phira quit (Excess Flood) |
12:10:01 | * | phira joined #nim |
12:10:04 | * | phira quit (Excess Flood) |
12:10:39 | * | phira joined #nim |
12:10:39 | * | phira quit (Excess Flood) |
12:11:32 | * | phira joined #nim |
12:11:34 | * | phira quit (Excess Flood) |
12:12:02 | * | phira joined #nim |
12:12:05 | * | phira quit (Excess Flood) |
12:12:31 | * | phira joined #nim |
12:12:34 | * | phira quit (Excess Flood) |
12:13:02 | * | phira joined #nim |
12:13:05 | * | phira quit (Excess Flood) |
12:13:33 | * | phira joined #nim |
12:13:35 | * | phira quit (Excess Flood) |
12:14:09 | * | phira joined #nim |
13:00:32 | BlaXpirit | site down! http://isup.me/nim-lang.org |
13:03:38 | TEttinger | BlaXpirit: check nimrod-lang.org, maybe the name reverted while you weren't looking |
13:03:43 | TEttinger | :) |
13:03:59 | TEttinger | up now |
13:04:07 | BlaXpirit | yep |
13:04:11 | BlaXpirit | just this second |
13:24:42 | * | Senketsu joined #nim |
13:35:18 | * | Flaise left #nim (#nim) |
14:12:00 | * | darkf quit (Quit: Leaving) |
14:12:53 | * | EXetoC quit (Quit: WeeChat 1.1.1) |
14:16:14 | * | milosn joined #nim |
14:19:40 | * | irrequietus joined #nim |
14:20:59 | * | filcuc quit (Quit: Konversation terminated!) |
14:55:01 | * | irrequietus quit () |
15:12:53 | * | bcinman joined #nim |
15:29:39 | renesac | novist: it is a bug: https://github.com/Araq/Nim/issues/936 |
15:30:09 | renesac | acording to the manual, those safe conversios should be automatic |
15:30:13 | renesac | like comparing a uint to 0 |
15:31:15 | * | OnO joined #nim |
15:32:11 | * | gokr_ joined #nim |
15:32:17 | * | untitaker quit (Ping timeout: 256 seconds) |
15:33:25 | * | untitaker joined #nim |
15:44:54 | * | HakanD___ joined #nim |
15:45:48 | * | HakanD__ quit (Ping timeout: 276 seconds) |
15:53:26 | * | OnO quit (Quit: My iMac has gone to sleep. ZZZzzz…) |
15:58:54 | * | HakanD___ quit (Quit: Be back later ...) |
15:59:22 | * | HakanD___ joined #nim |
16:04:18 | * | HakanD___ quit (Ping timeout: 272 seconds) |
16:08:16 | * | HakanD___ joined #nim |
16:35:27 | * | Ven joined #nim |
16:45:35 | * | endragor joined #nim |
16:56:00 | * | endragor quit (Ping timeout: 256 seconds) |
16:57:18 | * | endragor joined #nim |
17:00:36 | * | endragor quit (Remote host closed the connection) |
17:03:04 | * | endragor joined #nim |
17:04:35 | * | BlaXpirit_ joined #nim |
17:08:09 | * | BlaXpirit quit (Ping timeout: 264 seconds) |
17:18:13 | * | heinrich5991 quit (Read error: Connection reset by peer) |
17:25:35 | * | adam| is now known as adam12 |
17:34:47 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
17:39:04 | * | irrequietus joined #nim |
17:44:20 | * | irrequietus quit () |
17:47:31 | * | endragor quit (Remote host closed the connection) |
17:49:42 | * | irrequietus joined #nim |
17:50:12 | * | a5i quit () |
17:59:51 | * | irrequietus quit (Remote host closed the connection) |
18:03:04 | * | Demon_Fox joined #nim |
18:04:06 | * | a5i joined #nim |
18:04:29 | * | irrequietus joined #nim |
18:20:51 | * | smelod quit (Remote host closed the connection) |
18:33:14 | * | brson joined #nim |
18:36:49 | * | egrep quit (Quit: down for now) |
18:39:21 | Araq | Error: interpretation requires too many iterations |
18:39:25 | Araq | -.- |
18:55:34 | * | johnsoft quit (Ping timeout: 252 seconds) |
18:55:52 | * | dhasenan quit (Remote host closed the connection) |
18:56:27 | * | dhasenan joined #nim |
18:57:25 | * | brson quit (Ping timeout: 256 seconds) |
19:07:09 | * | filcuc joined #nim |
19:07:39 | * | HakanD___ quit (Quit: Be back later ...) |
19:08:05 | * | HakanD___ joined #nim |
19:12:24 | * | brson joined #nim |
19:12:29 | * | HakanD___ quit (Ping timeout: 246 seconds) |
19:34:45 | * | brson quit (Quit: leaving) |
19:41:25 | * | HakanD___ joined #nim |
19:43:03 | * | anthony joined #nim |
19:43:26 | * | anthony is now known as Guest25720 |
20:00:37 | * | banister joined #nim |
20:00:45 | * | banister quit (Max SendQ exceeded) |
20:01:11 | * | banister joined #nim |
20:01:17 | * | banister quit (Max SendQ exceeded) |
20:01:40 | * | banister joined #nim |
20:01:44 | * | banister quit (Max SendQ exceeded) |
20:02:07 | * | banister joined #nim |
20:02:12 | * | banister quit (Max SendQ exceeded) |
20:17:35 | * | heinrich5991 joined #nim |
20:27:22 | * | Matthias247 joined #nim |
20:45:16 | * | johnsoft joined #nim |
20:50:05 | * | filcuc quit (Quit: Konversation terminated!) |
20:59:19 | * | a5i quit () |
21:03:25 | * | irrequietus quit () |
21:08:18 | * | yomiel joined #nim |
21:11:20 | yomiel | Hey. Learning Nim at the moment. Excuse me if this is a dumb question or if I'm missing something obvious here, but I can't figure out why this code compiles: https://gist.github.com/ianpreston/bddb3084b3dbc30d0e8e |
21:12:09 | yomiel | Running that program multiple times yields different values in `vals`, i.e. a data race, afaict |
21:13:37 | Araq | hi yomiel interesting example |
21:14:07 | Araq | but how do you know it's a data race when you call randomize? |
21:14:45 | Araq | oh wait you only use it for waiting ... hrm |
21:16:40 | Araq | well this code shouldn't compile due to the 'var seq' |
21:21:22 | yomiel | Ok cool, glad I'm not totally misunderstanding the docs... should I file a bug report? |
21:23:37 | Araq | sure but I should really get over my pride and make 'parallel' as .experimental :-) |
21:29:25 | * | TEttinger quit (Ping timeout: 248 seconds) |
21:34:09 | * | Matthias247 quit (Quit: Matthias247) |
21:44:34 | * | a5i joined #nim |
21:56:30 | * | flaviu joined #nim |
21:57:05 | * | polde quit (Remote host closed the connection) |
22:02:35 | * | elbow_json quit (Ping timeout: 246 seconds) |
22:04:10 | * | bcinman quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
22:15:59 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
22:30:56 | * | flaviu left #nim (#nim) |
22:32:38 | * | BlaXpirit_ quit (Quit: Quit Konversation) |
22:37:33 | * | flaviu joined #nim |
22:51:54 | * | Trustable quit (Remote host closed the connection) |
23:00:48 | * | BitPuffin quit (Remote host closed the connection) |
23:07:00 | * | BitPuffin joined #nim |
23:10:15 | * | vendethiel quit (Quit: q+) |
23:20:53 | * | Noob_ joined #nim |
23:21:10 | Araq | hi Noob_ welcome |
23:21:38 | Noob_ | Hey why am I getting this error ? |
23:21:40 | Noob_ | glx.nim(317, 24) Error: expression 'glTexImage2D(0x00000DE1, 0, 0x00001907, 2, 2, 0, 0x00001907, 0x00001401, p)' has no type (or is ambiguous) |
23:22:04 | Noob_ | This is what the line looks like discard glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, 2, 2, 0, GL_RGB, GL_UNSIGNED_BYTE, p) |
23:22:46 | Araq | glTexImage2D doesn't return a value hence there is nothing that can be discarded? |
23:23:38 | Noob_ | Duh, thanks |
23:29:00 | * | saml_ joined #nim |
23:55:48 | * | bcinman joined #nim |