00:03:55 | * | xificurC quit (Remote host closed the connection) |
00:04:30 | * | xificurC joined #nim |
00:06:56 | * | vendethiel quit (Ping timeout: 240 seconds) |
00:15:31 | * | xificurC quit (Remote host closed the connection) |
00:16:15 | * | xificurC joined #nim |
00:22:26 | * | xificurC quit (Remote host closed the connection) |
00:23:13 | * | xificurC joined #nim |
00:26:11 | * | jbomo quit () |
00:29:11 | * | xificurC quit (Ping timeout: 256 seconds) |
00:31:04 | * | brson quit (Quit: leaving) |
00:38:34 | * | xificurC_ joined #nim |
00:50:37 | * | TEttinger joined #nim |
01:05:25 | * | gyeates joined #nim |
01:11:34 | * | xificurC_ quit (Remote host closed the connection) |
01:15:04 | * | xificurC_ joined #nim |
01:15:04 | * | xificurC_ quit (Remote host closed the connection) |
01:21:35 | * | xificurC_ joined #nim |
01:26:47 | * | dddddd quit (Ping timeout: 250 seconds) |
01:28:01 | * | MightyJoe joined #nim |
01:29:49 | * | cyraxjoe quit (Ping timeout: 250 seconds) |
01:31:15 | * | darkf joined #nim |
01:33:47 | * | gyeates quit (Ping timeout: 256 seconds) |
01:34:17 | * | elbow_jason joined #nim |
02:04:37 | * | xificurC_ quit (Remote host closed the connection) |
02:23:32 | * | gyeates joined #nim |
02:27:58 | * | dtscode is now known as Heisenburg |
02:28:19 | * | xificurC_ joined #nim |
02:29:27 | * | brson joined #nim |
02:37:15 | * | saml_ quit (Ping timeout: 256 seconds) |
02:37:21 | * | gyeates quit (Ping timeout: 240 seconds) |
02:47:34 | * | filwit quit (Quit: Leaving) |
02:54:38 | * | vikaton quit () |
02:56:22 | * | gyeates joined #nim |
02:59:18 | * | xificurC_ quit (Remote host closed the connection) |
03:02:16 | * | xificurC_ joined #nim |
03:02:22 | * | vikaton joined #nim |
03:02:39 | * | xificurC_ quit (Remote host closed the connection) |
03:03:13 | * | xificurC_ joined #nim |
03:25:24 | * | brson quit (Ping timeout: 276 seconds) |
03:26:24 | * | brson joined #nim |
03:26:42 | * | xificurC_ quit (Remote host closed the connection) |
03:27:32 | * | wb quit (Ping timeout: 256 seconds) |
03:32:09 | * | Heisenburg is now known as dtscode |
03:36:33 | * | gyeates quit (Ping timeout: 240 seconds) |
03:41:48 | * | gyeates joined #nim |
03:42:43 | * | vikaton quit () |
03:47:53 | * | gyeates quit (Ping timeout: 244 seconds) |
03:51:58 | * | vendethiel joined #nim |
04:13:34 | * | xificurC_ joined #nim |
04:16:59 | * | vendethiel quit (Ping timeout: 256 seconds) |
05:11:04 | * | BitPuffin|osx quit (Ping timeout: 255 seconds) |
05:20:59 | * | brson quit (Quit: leaving) |
05:22:43 | * | xificurC_ quit (Remote host closed the connection) |
05:24:56 | * | xificurC_ joined #nim |
05:39:14 | * | d3m1gd joined #nim |
05:49:36 | * | dtscode quit (Remote host closed the connection) |
06:19:38 | * | vendethiel joined #nim |
06:42:44 | * | vendethiel quit (Ping timeout: 245 seconds) |
07:07:16 | * | gokr_ quit (Ping timeout: 240 seconds) |
07:09:11 | * | gokr_ joined #nim |
07:14:13 | * | BlaXpirit joined #nim |
07:19:36 | * | t4nk414 joined #nim |
07:19:45 | * | t4nk414 quit (Client Quit) |
07:19:58 | * | ingsoc joined #nim |
07:43:17 | * | Kingsquee quit (Quit: Konversation terminated!) |
07:54:53 | * | Kingsquee joined #nim |
08:12:37 | * | tjscanlon joined #nim |
08:18:43 | * | bluenote joined #nim |
08:21:11 | * | banister joined #nim |
08:23:58 | dalarmmst | http://pastebin.com/Znusx5bL , could anyone guide me in this failure? I'm not sure what's wrong |
08:25:44 | notfowl | dalarmmst, you pass it a ref but it doesnt want a ref: x86instruction.desc(i: OneOpInstr[desc.T]) |
08:26:09 | dalarmmst | So I must create a proc doing the same thing but on a ref? |
08:26:18 | dalarmmst | It's just a new copy paste with ref as parameter instead? |
08:26:27 | notfowl | you can deref it |
08:26:33 | notfowl | desc(instr[]) |
08:26:59 | dalarmmst | Then it will still be a reference when passed right? |
08:27:09 | dalarmmst | (I don't want it to be copied) |
08:28:52 | * | yglukhov___ joined #nim |
08:31:58 | dalarmmst | notfowl: Thanks! |
08:36:25 | notfowl | dalarmmst, it can still be passed by reference. up to the compiler, it depends on how big it is |
08:37:14 | * | dalarmmst quit (Ping timeout: 246 seconds) |
08:49:03 | * | banister quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
08:50:27 | * | dalarmmst joined #nim |
09:03:16 | * | filcuc joined #nim |
09:05:31 | * | loz1 joined #nim |
09:06:12 | * | loz1 quit (Client Quit) |
09:06:29 | * | vendethiel joined #nim |
09:06:33 | * | loz1 joined #nim |
09:10:10 | dalarmmst | Does anyone have an idea of what the problem is here? http://pastebin.com/aZPcJ6cT |
09:11:09 | BlaXpirit | dalarmmst, if you see C code, it's certainly a compiler bug |
09:11:33 | dalarmmst | Should I file a bug somewhere? |
09:11:44 | BlaXpirit | I don't know. such bugs aren't that rare |
09:12:01 | BlaXpirit | can happen if you do something very obscure, and might not be worth fixing |
09:12:23 | BlaXpirit | by obscure I mean something that wouldn't work in any case |
09:12:51 | BlaXpirit | and i don't think this proc tells anything at all |
09:13:02 | dalarmmst | I'll try to write a small reproducer |
09:13:09 | BlaXpirit | please do |
09:14:50 | * | davidhq joined #nim |
09:20:37 | dalarmmst | I can trigger the same error with this: http://pastebin.com/HnfMvky7 |
09:20:57 | * | antranigv left #nim (#nim) |
09:22:29 | BlaXpirit | good |
09:23:40 | BlaXpirit | dalarmmst, and it is like i said |
09:23:49 | BlaXpirit | you have double ref |
09:24:22 | BlaXpirit | why : ref Instr when it is already ref object |
09:25:56 | dalarmmst | I thought newOneOpInstr() returned a ref OneOpInstr[T], and that x() just casts ref OneOpInstr[T] to ref Instr, but you mean now it is a ref ref OneOpInstr[T]? |
09:27:51 | BlaXpirit | dalarmmst, something like that |
09:28:22 | BlaXpirit | dalarmmst, just remove `ref` from both proc return types |
09:28:41 | BlaXpirit | ref object means ref is always associated with it |
09:28:54 | BlaXpirit | you could also remove ref from the type declarations |
09:29:07 | dalarmmst | Ah ok, thanks! |
09:29:34 | dalarmmst | The second option is probably better for me, so that I can should when they should be manager or not |
09:29:38 | dalarmmst | chose* |
09:29:47 | dalarmmst | choose* .. |
09:30:14 | dalarmmst | Thanks for the help |
09:32:09 | * | vendethiel quit (Ping timeout: 240 seconds) |
09:33:21 | * | Matthias247 joined #nim |
09:34:04 | bluenote | dalarmmst: without the additional refs, your example also seems to work :) |
09:35:09 | * | tjscanlon quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) |
09:42:57 | * | tjscanlon joined #nim |
09:46:17 | * | grncdr joined #nim |
09:50:39 | * | tjscanlon quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) |
09:55:17 | * | loz1 quit (Ping timeout: 256 seconds) |
09:56:11 | dalarmmst | http://pastebin.com/vGZ9zLs2 How do I get desc() for OneOpInstr to execute here instead? I want to do like a virtual call in C++ here |
09:57:18 | * | loz1 joined #nim |
09:57:22 | * | Pisuke quit (Read error: Connection reset by peer) |
09:57:54 | * | Sembei joined #nim |
09:59:34 | BlaXpirit | i think it's supposed to work |
10:00:02 | * | ELFrederich quit (Read error: Connection reset by peer) |
10:01:32 | * | ELFrederich joined #nim |
10:07:28 | * | filcuc quit (Quit: Konversation terminated!) |
10:09:26 | * | wb joined #nim |
10:14:01 | * | ingsoc1 joined #nim |
10:14:38 | * | ingsoc quit (Ping timeout: 252 seconds) |
10:20:09 | dalarmmst | It works when templates are not involved. http://pastebin.com/zq7kwxV4 |
10:20:52 | dalarmmst | (generics might be the right name in nim) |
10:21:05 | dalarmmst | I do want to use generics though |
10:23:09 | * | Kingsquee quit (Quit: Konversation terminated!) |
10:26:04 | * | grncdr quit (Ping timeout: 245 seconds) |
10:26:08 | * | grncdr1 joined #nim |
10:33:20 | * | Trustable joined #nim |
10:35:25 | * | gokr_ quit (Read error: Connection reset by peer) |
10:49:48 | * | tjscanlon joined #nim |
10:51:16 | * | tjscanlon quit (Client Quit) |
11:00:23 | * | vendethiel joined #nim |
11:10:04 | * | grncdr1 is now known as grncdr |
11:28:28 | * | Demon_Fox quit (Read error: Connection reset by peer) |
11:30:21 | synthmeat | any particular reason why inc/dec are .discardable but succ/pred not? |
11:33:18 | BlaXpirit | synthmeat, that would be a no-op |
11:33:44 | BlaXpirit | read docs, you seem to be confused |
11:33:46 | synthmeat | BlaXpirit: i'm sorry, "no-op"? not optimized? |
11:33:57 | BlaXpirit | discard succ x does nothing |
11:33:57 | synthmeat | BlaXpirit: yeah, reading up on nim-lang tutorial, part 1 |
11:34:16 | BlaXpirit | no-op = do nothing |
11:34:24 | BlaXpirit | http://nim-lang.org/docs/system.html#succ,Ordinal%5BT%5D,int |
11:34:50 | * | TEttinger quit (Ping timeout: 276 seconds) |
11:35:04 | BlaXpirit | inc x is the same as x = succ x |
11:35:15 | BlaXpirit | succ doesn't modify its argument |
11:35:31 | synthmeat | noSideEffect would be that? |
11:35:48 | synthmeat | (nope, i see) |
11:36:05 | BlaXpirit | lol why the heck is inc noSideEffect |
11:36:16 | synthmeat | BlaXpirit: yeah, now i'm confused |
11:36:25 | BlaXpirit | just read the text |
11:37:46 | synthmeat | yeah, ok, inc/dec is just convenience for succ/pred. yeah, it makes sense now. |
11:37:49 | synthmeat | thanks |
11:41:39 | synthmeat | BlaXpirit: inc/dec do have side-effects though, by wikipedia definition of side-effect |
11:41:56 | BlaXpirit | [:36:04] <BlaXpirit> lol why the heck is inc noSideEffect |
11:42:14 | * | JinShil joined #nim |
11:42:43 | r-ku | can "quote do" be "immediate"? |
11:42:54 | synthmeat | BlaXpirit: oh, ok. i interpreted your "just read the text" to my agreement to my that statement of yours as "you're wrong. read." |
11:42:57 | synthmeat | nvm :) |
11:44:19 | * | bluenote quit (Ping timeout: 246 seconds) |
11:45:04 | * | banister joined #nim |
11:49:55 | * | grncdr quit (Quit: Leaving.) |
12:06:00 | * | buupisaway is now known as buup |
12:14:51 | * | banister quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
12:16:00 | * | loz1 quit (Ping timeout: 252 seconds) |
12:19:01 | * | dddddd joined #nim |
12:19:29 | * | filcuc joined #nim |
12:22:51 | * | grncdr joined #nim |
12:28:31 | * | grncdr1 joined #nim |
12:29:21 | * | grncdr quit (Ping timeout: 240 seconds) |
12:33:15 | * | loz1 joined #nim |
12:37:57 | * | MyMind joined #nim |
12:38:44 | * | tjscanlon joined #nim |
12:41:05 | * | johnsoft quit (Ping timeout: 244 seconds) |
12:41:08 | * | tjscanlon quit (Client Quit) |
12:41:24 | * | Sembei quit (Ping timeout: 272 seconds) |
12:44:04 | * | grncdr joined #nim |
12:44:57 | * | grncdr1 quit (Ping timeout: 240 seconds) |
12:49:23 | * | ingsoc1 quit (Quit: Leaving.) |
12:50:03 | * | johnsoft joined #nim |
12:50:48 | * | cryzed quit (Ping timeout: 256 seconds) |
12:53:13 | * | cryzed joined #nim |
13:00:34 | * | grncdr1 joined #nim |
13:01:40 | * | grncdr quit (Ping timeout: 272 seconds) |
13:19:00 | * | grncdr1 is now known as grncdr |
13:22:10 | * | tjscanlon joined #nim |
13:29:04 | * | tjscanlon quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) |
13:29:21 | * | JinShil quit (Quit: Konversation terminated!) |
13:36:16 | * | filcuc quit (Ping timeout: 264 seconds) |
13:40:56 | * | filcuc joined #nim |
13:41:14 | * | loz1 quit (Ping timeout: 256 seconds) |
13:41:54 | * | loz1 joined #nim |
13:43:54 | * | BitPuffin|osx joined #nim |
13:46:46 | * | BlaXpirit quit (Quit: Quit Konversation) |
13:49:16 | * | BlaXpirit joined #nim |
13:51:49 | * | Siecje joined #nim |
13:58:28 | * | johnsoft quit (Ping timeout: 255 seconds) |
13:59:17 | * | johnsoft joined #nim |
14:02:02 | * | grncdr1 joined #nim |
14:02:21 | * | grncdr quit (Ping timeout: 256 seconds) |
14:02:34 | * | grncdr1 quit (Read error: Connection reset by peer) |
14:03:10 | * | BlaXpirit quit (Quit: Quit Konversation) |
14:03:47 | * | BlaXpirit joined #nim |
14:03:56 | * | johnsoft quit (Ping timeout: 240 seconds) |
14:04:13 | * | grncdr joined #nim |
14:04:50 | * | johnsoft joined #nim |
14:16:23 | * | grncdr1 joined #nim |
14:17:20 | * | grncdr quit (Ping timeout: 276 seconds) |
14:17:36 | * | grncdr1 is now known as grncdr |
14:38:10 | * | tjscanlon joined #nim |
14:39:29 | * | tjscanlon quit (Client Quit) |
14:44:02 | * | filcuc quit (Ping timeout: 246 seconds) |
14:54:35 | * | OnwardEuler joined #nim |
14:57:53 | * | Onward_Euler quit (Ping timeout: 256 seconds) |
15:04:55 | * | loz1 quit (Quit: Leaving.) |
15:34:06 | * | gokr_ joined #nim |
15:38:41 | * | dalarmmst quit (Ping timeout: 256 seconds) |
15:42:50 | * | darkf quit (Quit: Leaving) |
15:48:56 | * | rkj-b joined #nim |
15:50:36 | * | rkj-b quit (Client Quit) |
16:08:32 | * | xificurC_ quit (Quit: WeeChat 1.1.1) |
16:08:52 | * | xificurC joined #nim |
16:24:24 | Xe | How would I distribute nim programs as C sources like the nim compiler? |
16:30:17 | r-ku | c sources end up in nimcache folder, you can get them there |
16:31:57 | * | Matthias247 quit (Read error: Connection reset by peer) |
16:35:01 | * | dalarmmst joined #nim |
16:35:43 | def- | Xe: the C files may be platform dependent already, maybe this is of interest: http://hookrace.net/blog/what-makes-nim-practical/#source-distribution |
16:45:24 | federico3 | any QR code generator for Nim? |
16:48:28 | * | filcuc joined #nim |
16:53:41 | * | filcuc quit (Quit: Konversation terminated!) |
16:55:56 | * | dalarmmst quit (Ping timeout: 240 seconds) |
17:01:43 | * | MightyJoe is now known as cyraxjoe |
17:06:32 | Senketsu | >could not load: libgobject-2.0-0.dll have it in path, tried putting in the dir too, im clueless |
17:14:24 | * | davidhq quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
17:15:02 | * | davidhq joined #nim |
17:15:51 | * | davidhq quit (Client Quit) |
17:22:15 | * | loz1 joined #nim |
17:28:19 | * | BlaXpirit quit (Remote host closed the connection) |
17:30:04 | * | BlaXpirit joined #nim |
17:41:05 | def- | Senketsu: maybe it's a 32/64 bit problem? |
17:41:33 | def- | Senketsu: the library needs to be the same architecture. unfortunately you don't get a nice error about that |
17:42:06 | Senketsu | actually let me check, i havent used this vm in a while not sure about the architecture |
17:42:08 | federico3 | any example of using tun/tap with Nim? |
17:47:52 | Varriount | federico3: You mean, the drivers/network adapters? |
17:50:58 | federico3 | Varriount: opening /dev/net/tun and using it |
17:54:40 | Senketsu | def-, since i could find the original archive of the libs in the VM to check arch, copied my packs i have on win host, and nope it still wont load |
17:55:43 | Senketsu | couldnt* |
17:57:08 | def- | Senketsu: maybe you compile Nim programs for 32bit? |
17:57:13 | def- | (I don't know how it is on Windows) |
18:00:00 | Senketsu | (me neither) but i installed the x64 pack ,os is x64 lib is x64 and the compiler too , even tried the x86 libs just in case |
18:01:00 | Senketsu | maybe the loadlib is at fault again ? |
18:01:47 | Varriount | All I can say is that 32-bit programs won't load 64-bit dll's, and vice-versa |
18:03:11 | Varriount | You can check whether a running program is 64-bit or 32-bit by opening the task manager and looking under 'processes' (or 'details' on Win8), and examining the process name |
18:03:27 | Senketsu | that is if you can run it ;) |
18:04:10 | Senketsu | but thats something im aware of long time and i already mentoied that i tried both versions just in case |
18:04:20 | federico3 | how can I do ioctl() in Nim? |
18:06:50 | def- | federico3: i don't see ioctl being imported. maybe you have to add it to the posix module |
18:07:38 | federico3 | sigh |
18:21:48 | * | askatasuna joined #nim |
18:21:54 | * | jochenvdv joined #nim |
18:31:57 | * | davidhq joined #nim |
18:49:00 | * | jochenvdv quit (Quit: Page closed) |
19:07:10 | * | loz1 quit (Ping timeout: 255 seconds) |
19:08:24 | * | loz1 joined #nim |
19:13:02 | * | Matthias247 joined #nim |
19:16:41 | * | dalarmmst joined #nim |
19:24:47 | * | loz1 quit (Ping timeout: 256 seconds) |
19:34:02 | * | perturbation joined #nim |
19:37:28 | * | askatasuna quit (Ping timeout: 252 seconds) |
19:38:08 | perturbation | hey all - how does bound checking for sequences work? This (https://gist.github.com/singularperturbation/90299190a948d9c5d2bf) compiles with checks on but I'm not sure if it should |
19:38:50 | perturbation | (running v0.11.2 0b184f2584221543a7dec9c8ae4a700533919e0c) |
19:39:53 | def- | perturbation: these are runtime checks, not compile time checks |
19:40:03 | def- | and they're enabled by default, only -d:release disables them |
19:40:38 | perturbation | ok - I do get a nice error message that tells me where the problem is at runtime |
19:41:53 | * | loz1 joined #nim |
19:42:06 | def- | an exception even, so you can catch it in your program and handle it properly |
19:42:22 | perturbation | yeah - 'Error: unhandled exception: index out of bounds [IndexError]' (with matching line no. above) |
19:42:35 | perturbation | I just misremembered and thought it was caught at compile time |
19:44:46 | Araq | perturbation: it is for the parallel statement ... but well, the prover is limited |
19:46:34 | Araq | though eventually I like to use this technology for every array/seq access |
19:46:54 | perturbation | gotcha - thanks def, Araq |
19:47:14 | perturbation | also - I've been looking more closely at how Nim does parallelism - I'm not really sure where I would use a FlowVar[T] vs. a Future[T] |
19:47:15 | * | gokr_ quit (Read error: Connection reset by peer) |
19:48:19 | Araq | Future[T] is for async, FlowVar[T] for threading |
19:48:58 | Araq | def-: the spec says you cannot catch IndexError :P |
19:49:13 | Araq | but the implementation allows it |
19:58:05 | perturbation | I'll ask the dumb question: what is the difference between async and threading if I just want (say) a DB request with timeout |
19:58:25 | perturbation | I'm envisioning I could create two FlowVar[T] or Future[T] vars with a timer |
19:58:40 | perturbation | and awaitAny to see which returns first (the actual response, or the timeout) |
20:00:19 | Araq | Future[T] seems to be what you want |
20:01:04 | * | loz1 quit (Ping timeout: 272 seconds) |
20:06:05 | * | loz1 joined #nim |
20:06:38 | * | skyfex___ joined #nim |
20:09:21 | * | skyfex__ quit (Ping timeout: 265 seconds) |
20:13:53 | perturbation | okay - I think I'll try to do a writeup once I'm done (write a simple CLI IRC client) |
20:14:01 | perturbation | asyncnet may be doing most (all?) of the heavy lifting though |
20:14:06 | * | Sharcho joined #nim |
20:16:58 | * | HakanD joined #nim |
20:20:31 | * | loz1 quit (Read error: Connection reset by peer) |
20:25:37 | * | davidhq quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
20:27:01 | perturbation | oh - Future[T] w/ asyncdispatch runs in an event loop single-threaded (like node.js... err... libuv), whereas FlowVar[T] / threadpool are *actual threads* that can run at the same time |
20:27:18 | perturbation | who would have thought threadpool == threads :) |
20:31:35 | * | d3m1gd quit (Ping timeout: 246 seconds) |
20:34:20 | * | perturbation quit (Quit: Leaving) |
20:34:20 | * | Matthias247 quit (Read error: Connection reset by peer) |
20:37:46 | * | davidhq joined #nim |
20:38:18 | * | Siecje left #nim (#nim) |
20:38:24 | * | redwyn joined #nim |
20:39:49 | * | vikaton joined #nim |
20:40:18 | redwyn | hi. has anybody tried out the howistart.org/posts/nim tutorial? |
20:42:12 | redwyn | i'm right at the point where it's possible to interpret the 3 brainfuck-examples for the first time and i get an error "under- or overflow" |
20:42:46 | redwyn | when i try it on the rot13 or mandelbrot example...but when i compile with -d:release this doesn't happen |
20:43:51 | redwyn | should it not work regardless of compilation mode, just slower without -d:release? |
20:44:32 | * | grncdr quit (Quit: Leaving.) |
20:45:43 | * | grncdr joined #nim |
20:49:55 | notfowl | No |
20:50:28 | notfowl | Release mode doesn't have overflow checks |
20:51:15 | notfowl | Ping def- |
20:52:54 | def- | notfowl: hi |
20:53:14 | def- | redwyn: oh, let me see |
20:55:18 | redwyn | just to be clear, its compiling alright...no errors there in both neither case |
20:55:33 | redwyn | i find that strange, because checks happen at compilation or not? |
20:55:54 | def- | no, checks happen at runtime |
20:55:55 | notfowl | Not always possible |
20:56:33 | def- | oh right, something changed in Nim: inc and dec now can overflow |
20:56:59 | def- | I solved this in my repository with a {.overflowchecks: off.}, hmm |
20:57:10 | notfowl | Sounds like a breaking change if ever heard of one |
20:57:15 | def- | indeed |
20:57:25 | def- | because I have chars in the brainfuck tape |
20:57:31 | def- | and they should wrap around |
20:58:00 | redwyn | alright. so nim checks wether a stack over-/underflow could be at all possible and stops rather before that happens? |
20:58:30 | def- | redwyn: no, there's a concrete overflow happening there and an exception is thrown. with -d:release these runtime checks are disabled |
20:58:37 | notfowl | def-: the versions that allow overflow should be xinc xdec like xadd, xlen, no? |
20:59:04 | def- | notfowl: not sure. maybe i should just use unsigned chars, which just wrap around |
20:59:36 | notfowl | That solves your problem |
20:59:49 | notfowl | I have to worry about everywhere I use inc/Dec now |
20:59:55 | * | gsingh93 joined #nim |
21:00:15 | def- | notfowl: well, actually they always were supposed to overflow, it was just a bug (which i reported) |
21:00:21 | redwyn | yes, thanks. |
21:01:42 | def- | I see 3 ways of dealing with this: writing a custom wrapping inc/dec, using {.overflowchecks: off.} or switching to uchars |
21:01:47 | def- | i'm wondering what's the best |
21:02:51 | def- | wait, char IS unsigned already |
21:03:06 | def- | Araq: should it even throw an exception? |
21:03:08 | redwyn | Oh and you are the author of the tutorial? |
21:03:15 | def- | redwyn: right |
21:03:31 | redwyn | Alright, thanks! It's really nice |
21:03:35 | def- | Sorry about that problem, I updated the repository but forgot to update the tutorial I guess |
21:03:42 | * | HakanD quit (Quit: Be back later ...) |
21:04:17 | * | HakanD joined #nim |
21:04:33 | redwyn | No problem at all, i just wanted to understand why there were different behaviours depending on how i compile |
21:09:20 | * | HakanD quit (Ping timeout: 272 seconds) |
21:10:09 | * | grncdr quit (Quit: Leaving.) |
21:11:29 | * | grncdr joined #nim |
21:15:25 | * | vikaton quit () |
21:28:19 | BlaXpirit | what constructs in Nim require indentation but not after `:`? |
21:28:38 | BlaXpirit | i mean like `if ...:` vs `proc ... =` |
21:28:56 | notfowl | Type x = object |
21:29:19 | BlaXpirit | good one, any more? |
21:29:42 | notfowl | Let, var |
21:29:59 | * | davidhq quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
21:30:09 | BlaXpirit | well, you can live without indentation |
21:30:16 | BlaXpirit | in these |
21:31:27 | * | gsingh93 quit (Ping timeout: 250 seconds) |
21:45:21 | * | Sharcho left #nim ("Leaving") |
21:45:26 | * | MyMind quit (Ping timeout: 246 seconds) |
21:45:33 | * | Pisuke joined #nim |
21:51:46 | * | banister joined #nim |
21:51:50 | * | banister quit (Max SendQ exceeded) |
21:53:07 | * | Sembei joined #nim |
21:55:31 | * | Pisuke quit (Ping timeout: 256 seconds) |
21:56:14 | * | banister joined #nim |
21:57:13 | BlaXpirit | is it possible to catch compile time exception? like from parseStmt |
22:02:09 | * | jefus quit (Read error: Connection reset by peer) |
22:03:12 | * | Kingsquee joined #nim |
22:03:31 | * | jefus joined #nim |
22:05:58 | * | buup is now known as buupisaway |
22:06:13 | * | askatasuna joined #nim |
22:25:01 | * | grncdr quit (Quit: Leaving.) |
22:25:55 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
22:27:52 | * | repax quit (Ping timeout: 255 seconds) |
22:29:57 | * | vikaton joined #nim |
22:40:55 | * | BBBBBBBBBB quit (Ping timeout: 246 seconds) |
22:47:45 | * | dddddd quit (Ping timeout: 240 seconds) |
22:52:56 | * | banister quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
22:56:17 | * | Trustable quit (Remote host closed the connection) |
22:56:20 | * | redwyn quit (Quit: leaving) |
23:05:52 | * | banister joined #nim |
23:11:39 | * | ddsaaaaaaaaf joined #nim |
23:17:14 | * | yglukhov___ quit (Quit: Be back later ...) |
23:26:22 | * | yglukhov___ joined #nim |
23:35:02 | * | vikaton quit () |
23:39:28 | * | yglukhov___ quit (Quit: Be back later ...) |
23:42:41 | * | BlaXpirit quit (Quit: Quit Konversation) |
23:42:48 | * | JinShil joined #nim |
23:49:14 | Senketsu | do i understand this right ? http://a.pomf.se/sjmifk.png because of isIpAddress the whole thing is not gc safe ? |
23:56:33 | dom96 | oh cool. |
23:56:40 | dom96 | Didn't realise the errors got better for that. |
23:57:03 | dom96 | Senketsu: I think you got that right, yeah. |
23:59:47 | Senketsu | kind of sux :\ |