00:00:32 | * | rtr_ quit (Ping timeout: 260 seconds) |
00:08:06 | * | elrood quit (Quit: Leaving) |
00:16:20 | * | desophos quit (Ping timeout: 260 seconds) |
00:36:25 | * | dmi0 joined #nim |
00:54:14 | * | pie_ joined #nim |
00:54:37 | * | HakanD_ joined #nim |
00:57:50 | * | libman quit (Remote host closed the connection) |
00:59:20 | * | HakanD_ quit (Ping timeout: 260 seconds) |
01:03:00 | * | pie_ quit (Changing host) |
01:03:00 | * | pie_ joined #nim |
01:08:08 | * | vendethiel quit (Ping timeout: 260 seconds) |
01:09:07 | * | vendethiel joined #nim |
01:11:29 | * | mitai quit (Quit: Konversation terminated!) |
01:18:17 | * | chemist69 quit (Ping timeout: 260 seconds) |
01:21:08 | * | desophos joined #nim |
01:24:01 | * | yglukhov joined #nim |
01:28:40 | * | yglukhov quit (Ping timeout: 260 seconds) |
01:31:41 | * | chemist69 joined #nim |
01:55:18 | * | HakanD_ joined #nim |
01:59:38 | * | HakanD_ quit (Ping timeout: 250 seconds) |
02:01:15 | * | dmi0 quit (Ping timeout: 252 seconds) |
02:12:30 | * | Snircle quit (Quit: Textual IRC Client: www.textualapp.com) |
02:29:01 | * | krux02 quit (Remote host closed the connection) |
02:46:29 | * | gangstacat quit (Ping timeout: 260 seconds) |
02:48:43 | * | gangstacat joined #nim |
02:56:07 | * | HakanD_ joined #nim |
02:56:35 | * | rtr__ quit (Remote host closed the connection) |
03:00:28 | * | HakanD_ quit (Ping timeout: 245 seconds) |
03:18:42 | * | kulelu88 quit (Quit: Leaving) |
03:56:48 | * | HakanD_ joined #nim |
04:01:09 | * | HakanD_ quit (Ping timeout: 252 seconds) |
04:04:53 | * | DavidGu joined #nim |
04:26:11 | * | yglukhov joined #nim |
04:29:08 | * | HakanD_ joined #nim |
04:30:28 | * | yglukhov quit (Ping timeout: 245 seconds) |
04:52:33 | * | HakanD_ quit (Quit: Be back later ...) |
04:53:09 | * | HakanD_ joined #nim |
04:57:49 | * | HakanD_ quit (Ping timeout: 276 seconds) |
05:22:29 | * | gokr joined #nim |
06:12:25 | * | pie_ quit (Quit: Leaving) |
06:24:19 | * | nsf joined #nim |
06:31:11 | * | confundus joined #nim |
06:33:52 | * | confundus quit (Client Quit) |
06:53:45 | * | Trustable joined #nim |
07:05:00 | * | bjz joined #nim |
07:12:56 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
07:19:30 | * | couven92 quit (Read error: Connection reset by peer) |
07:21:54 | * | yglukhov joined #nim |
07:32:22 | * | Andris_zbx joined #nim |
09:12:11 | * | aziz joined #nim |
09:18:41 | * | djellemah quit (Ping timeout: 252 seconds) |
09:19:56 | * | djellemah joined #nim |
09:58:56 | tstm | Hmm. How hard would it be to get nim to interface with something like Skia? https://skia.org |
10:01:05 | * | DavidGu quit (Remote host closed the connection) |
10:01:34 | * | DavidGu joined #nim |
10:01:42 | Araq | tstm: c2nim it :-) |
10:04:11 | FromGitter | <coffeepots> is it right that when you declare an enum that uses values (eg type X = enum xA = 1, xB = 2 etc) with var myenum: X, it's initially defined as invalid data (0)? |
10:05:10 | tstm | Araq: it's C++.. |
10:05:22 | Araq | tstm: c2nim can parse C++ |
10:05:24 | FromGitter | <coffeepots> right as in, should it be done like that? Cos I kinda expected it to be created as the first valid enum value |
10:05:52 | Araq | Nim initializes to binary zero. always. |
10:07:04 | Araq | explicit enum values are bad style. |
10:07:42 | FromGitter | <coffeepots> I agree they're bad style but convenient when working with C in this case |
10:08:18 | FromGitter | <coffeepots> with odbcsql: type SQLParamDirection* = enum pdIn = SQL_PARAM_INPUT, pdInOut = SQL_PARAM_INPUT_OUTPUT, pdOut = SQL_PARAM_OUTPUT |
10:08:42 | FromGitter | <coffeepots> I must say, I just assumed a new SQLParamDirection would be initialised to pdIn |
10:09:38 | FromGitter | <coffeepots> even if it's bad style I wouldn't expect out of range enum |
10:09:56 | Araq | the compiler warns about it |
10:10:06 | Araq | "cannot prove to init" and all that |
10:10:36 | FromGitter | <coffeepots> Oh? Thats interesting because I was wondering about that! |
10:10:42 | FromGitter | <coffeepots> proc newParam*: SQLParam = ⏎ new result ⏎ result.field = newSQLField() ⏎ result.direction = pdIn [https://gitter.im/nim-lang/Nim?at=5811d2a28ed1c0ff5c338ec3] |
10:11:01 | FromGitter | <coffeepots> I get compiler cannot prove under new result, i was puzzled about that |
10:12:09 | FromGitter | <coffeepots> not actually sure how I can get rid of that "cannot init" message there, as I'm initialising the enum now |
10:12:26 | FromGitter | <coffeepots> especially as it'll be an error in future |
10:12:38 | Araq | result = SQLParam(field: newSQLField(), direction: pdIn) |
10:12:58 | FromGitter | <coffeepots> oh I can do that with ref results? |
10:13:13 | Araq | the compiler dislikes new(result) + assignments, hard to analyse |
10:13:53 | FromGitter | <coffeepots> well today I learned :) |
10:14:08 | FromGitter | <coffeepots> cheers no init message now |
10:22:33 | tstm | Araq: I wonder how much manual work there would be to actually make it work.. |
10:23:13 | Araq | depends on the used C++ style as well as the amount of C++ code |
10:25:12 | * | dmi0 joined #nim |
10:25:50 | tstm | It's a good question. Plenty of code, mostly written by Google for Chrome |
10:27:47 | Araq | I usually build my own stuff on top of a putPixel primitive. |
10:28:46 | tstm | Heh, I don't want to rewrite a 2d graphics library. What I need to do is lots and lots of 2d image rendering and compositing for the web. |
10:29:18 | Araq | nobody gets the API right anyway. they all introduce pointless state in a misguided attempt to keep the number of parameters low |
10:30:00 | Araq | context.setDrawColor() # yeah right, I draw lots of shapes in the same color. D'oh! |
10:38:10 | tstm | Well, at least this thing is pretty fast. We're using imagemagick at the moment, and it could be more efficient. |
10:42:04 | * | bjz joined #nim |
11:00:53 | * | aziz quit (Quit: Ex-Chat) |
11:02:01 | * | Snircle joined #nim |
11:05:04 | * | krux02 joined #nim |
11:07:50 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
11:23:13 | * | vendethiel quit (Ping timeout: 256 seconds) |
11:23:37 | * | bjz joined #nim |
11:39:22 | * | elrood joined #nim |
11:54:57 | * | dmi0 quit (Ping timeout: 256 seconds) |
11:59:29 | * | chemist69 quit (Ping timeout: 260 seconds) |
12:21:02 | * | lg_ quit (Ping timeout: 250 seconds) |
12:21:06 | * | lg_` joined #nim |
12:25:52 | * | PMunch joined #nim |
12:26:14 | * | chemist69 joined #nim |
12:27:26 | * | lg_` is now known as lg_ |
12:35:50 | * | dmi0 joined #nim |
12:56:09 | * | prose[m] joined #nim |
12:58:08 | * | bjz quit (Ping timeout: 250 seconds) |
12:59:26 | * | bjz joined #nim |
13:35:48 | * | Snircle quit (Quit: Textual IRC Client: www.textualapp.com) |
13:50:19 | * | UNIcodeX joined #nim |
13:50:47 | * | UNIcodeX quit (Max SendQ exceeded) |
13:51:10 | * | UNIcodeX joined #nim |
14:11:34 | * | enthus1ast joined #nim |
14:18:46 | * | gokr quit (Ping timeout: 256 seconds) |
14:21:04 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
14:25:08 | * | libman joined #nim |
14:33:18 | * | brson joined #nim |
14:33:49 | * | HakanD_ joined #nim |
14:35:37 | * | pie_ joined #nim |
14:48:40 | * | pie_ quit (Changing host) |
14:48:40 | * | pie_ joined #nim |
15:03:53 | * | nsf quit (Quit: WeeChat 1.6) |
15:13:45 | * | HakanD_ is now known as HakanD |
15:16:43 | * | derlafff quit (Remote host closed the connection) |
15:17:45 | * | derlafff joined #nim |
15:28:25 | * | DavidGu1 joined #nim |
15:31:35 | * | DavidGu quit (Ping timeout: 252 seconds) |
15:31:36 | * | DavidGu1 is now known as DavidGu |
15:41:28 | * | DavidGu quit (Quit: DavidGu) |
15:43:41 | * | rtr_ joined #nim |
15:44:12 | * | rtr_ quit (Client Quit) |
15:48:48 | * | brson quit (Ping timeout: 245 seconds) |
15:50:28 | * | chemist69 quit (Ping timeout: 245 seconds) |
15:51:44 | * | pregressive joined #nim |
15:52:58 | * | chemist69 joined #nim |
15:56:23 | * | rtr_ joined #nim |
15:57:06 | * | rtr_ quit (Client Quit) |
15:58:44 | * | Andris_zbx quit (Remote host closed the connection) |
16:13:52 | * | yglukhov_ joined #nim |
16:16:41 | * | gokr joined #nim |
16:17:03 | * | yglukhov quit (Ping timeout: 252 seconds) |
16:17:36 | * | yglukhov joined #nim |
16:18:09 | * | yglukhov_ quit (Ping timeout: 252 seconds) |
16:19:50 | * | PMunch quit (Quit: leaving) |
16:22:13 | * | yglukhov quit (Ping timeout: 267 seconds) |
16:35:17 | * | gokr quit (Ping timeout: 260 seconds) |
16:49:32 | * | MonsterAbyss quit (Quit: I will be back bitches) |
16:52:58 | * | MonsterAbyss joined #nim |
16:53:25 | * | yglukhov joined #nim |
16:57:46 | * | yglukhov quit (Ping timeout: 250 seconds) |
17:04:03 | * | nsf joined #nim |
17:07:49 | * | kunev quit (Quit: е те!) |
17:12:51 | * | kunev joined #nim |
17:31:25 | * | krux02 quit (Quit: Leaving) |
17:34:40 | * | enthus1ast quit (Ping timeout: 260 seconds) |
17:53:46 | * | yglukhov joined #nim |
17:57:08 | * | chemist69 quit (Ping timeout: 245 seconds) |
17:59:36 | * | chemist69 joined #nim |
18:14:50 | * | zama quit (Ping timeout: 258 seconds) |
18:38:56 | * | zama joined #nim |
18:46:32 | * | zama quit (Ping timeout: 244 seconds) |
18:58:52 | * | zama joined #nim |
19:00:03 | * | vendethiel joined #nim |
19:18:36 | * | zama quit (Ping timeout: 250 seconds) |
19:46:37 | * | gangstacat quit (Ping timeout: 260 seconds) |
19:47:15 | * | gangstacat joined #nim |
19:51:27 | * | bjz joined #nim |
19:56:23 | * | yglukhov quit (Remote host closed the connection) |
20:02:16 | * | zama joined #nim |
20:06:48 | * | gokr joined #nim |
20:07:46 | * | yglukhov joined #nim |
20:14:37 | * | Mat4 joined #nim |
20:20:19 | * | irrequietus joined #nim |
20:25:00 | * | zama quit (Ping timeout: 260 seconds) |
20:29:19 | * | mitai joined #nim |
20:49:33 | * | Mat4 left #nim (#nim) |
20:50:10 | * | Ven joined #nim |
20:52:51 | * | zama joined #nim |
20:59:53 | * | chemist69 quit (Ping timeout: 260 seconds) |
21:00:11 | * | elrood quit (Quit: Leaving) |
21:04:23 | * | chemist69 joined #nim |
21:11:36 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
21:12:34 | * | zama quit (Ping timeout: 250 seconds) |
21:16:56 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
21:35:06 | * | Trustable quit (Remote host closed the connection) |
21:35:06 | * | dmi0 quit (Ping timeout: 250 seconds) |
21:38:24 | * | PMunch joined #nim |
21:48:03 | * | zama joined #nim |
21:51:27 | * | pie_ quit (Ping timeout: 252 seconds) |
21:58:02 | * | Snircle joined #nim |
22:10:09 | * | zama quit (Ping timeout: 252 seconds) |
22:13:12 | * | yglukhov quit (Remote host closed the connection) |
22:16:36 | * | nsf quit (Quit: WeeChat 1.6) |
22:26:38 | * | zama joined #nim |
22:40:32 | * | brson joined #nim |
22:45:56 | * | HakanD quit (Ping timeout: 256 seconds) |
22:46:53 | * | zama quit (Ping timeout: 265 seconds) |
22:51:00 | * | brson quit (Quit: leaving) |
22:52:47 | * | dmi0 joined #nim |
23:10:00 | * | irrequietus quit () |
23:13:39 | * | yglukhov joined #nim |
23:17:58 | * | lyro quit (Ping timeout: 245 seconds) |
23:18:18 | * | lyro joined #nim |
23:22:24 | * | zama joined #nim |
23:36:22 | * | zama quit (Ping timeout: 256 seconds) |
23:41:01 | * | mitai quit (Ping timeout: 256 seconds) |
23:47:04 | * | yglukhov quit (Ping timeout: 260 seconds) |
23:48:04 | * | Cleverson joined #nim |
23:49:24 | * | PMunch quit (Quit: leaving) |
23:49:49 | * | gokr quit (Ping timeout: 244 seconds) |
23:55:03 | Cleverson | Hi, I'm learning nim and was thinking of updating some RosettaCode tasks, and trying to solve others... Is this a good contribution to the community? |