00:13:18 | * | aFriginElf joined #nim |
00:16:27 | * | aFrigginElf quit (Ping timeout: 250 seconds) |
00:17:04 | * | yglukhov quit (Remote host closed the connection) |
00:18:38 | minus | rip |
00:22:40 | * | xet7 joined #nim |
00:34:29 | * | yglukhov joined #nim |
00:38:54 | * | yglukhov quit (Ping timeout: 260 seconds) |
00:44:50 | * | brson quit (Quit: leaving) |
01:01:18 | * | yglukhov joined #nim |
01:05:51 | * | yglukhov quit (Ping timeout: 250 seconds) |
01:16:02 | * | endragor joined #nim |
01:16:52 | * | endragor quit (Client Quit) |
01:17:01 | * | chemist69 joined #nim |
01:19:58 | * | chemist69_ quit (Ping timeout: 250 seconds) |
01:22:44 | * | endragor joined #nim |
01:37:35 | * | der-landgraf quit (Quit: WeeChat 1.5) |
01:37:42 | * | yglukhov joined #nim |
01:42:06 | * | yglukhov quit (Ping timeout: 258 seconds) |
01:43:57 | * | der-landgraf joined #nim |
01:58:43 | * | ephja quit () |
02:01:49 | * | brechtm joined #nim |
02:03:51 | * | kulelu88 quit (Quit: Leaving) |
02:06:46 | * | brechtm quit (Ping timeout: 265 seconds) |
02:13:41 | * | yglukhov joined #nim |
02:16:13 | * | ftsf_ joined #nim |
02:18:17 | * | yglukhov quit (Ping timeout: 260 seconds) |
02:38:07 | * | yglukhov joined #nim |
02:43:01 | * | yglukhov quit (Ping timeout: 265 seconds) |
02:58:30 | * | endragor left #nim (#nim) |
03:02:21 | * | yglukhov joined #nim |
03:06:58 | * | yglukhov quit (Ping timeout: 252 seconds) |
03:08:44 | * | wuehlmaus quit (Ping timeout: 258 seconds) |
03:16:46 | * | wuehlmaus joined #nim |
03:17:09 | * | wuehlmaus is now known as Guest82725 |
03:21:39 | * | chemist69 quit (Ping timeout: 260 seconds) |
03:21:43 | ftsf_ | nim is awesome \o/ |
03:23:02 | * | Guest82725 quit (Ping timeout: 250 seconds) |
03:23:41 | * | chemist69 joined #nim |
03:38:07 | * | wuehlmau1 joined #nim |
03:38:33 | * | yglukhov joined #nim |
03:42:58 | * | yglukhov quit (Ping timeout: 250 seconds) |
04:02:52 | * | yglukhov joined #nim |
04:07:03 | * | yglukhov quit (Ping timeout: 240 seconds) |
04:39:10 | * | yglukhov joined #nim |
04:43:32 | * | yglukhov quit (Ping timeout: 244 seconds) |
04:55:56 | * | Demon_Fox joined #nim |
05:15:15 | * | yglukhov joined #nim |
05:20:09 | * | yglukhov quit (Ping timeout: 276 seconds) |
05:49:05 | * | gmpreussner quit (Ping timeout: 240 seconds) |
05:50:59 | * | aFriginElf quit (Ping timeout: 250 seconds) |
05:51:26 | * | yglukhov joined #nim |
05:52:27 | * | hendi__ joined #nim |
05:53:58 | * | gokr joined #nim |
05:55:45 | * | yglukhov quit (Ping timeout: 240 seconds) |
06:16:05 | * | yglukhov joined #nim |
06:17:24 | gokr | Curious... there is the unittest package, but... AFAICT the "runner" is fairly specific to Nim itself. What are people using for unit testing? |
06:20:06 | ftsf_ | gokr, what do you mean the runner? |
06:20:30 | gokr | I mean.. the thing you use from command line to run all your tests. |
06:20:40 | * | yglukhov quit (Ping timeout: 244 seconds) |
06:20:51 | gokr | It's called testament I think. |
06:21:21 | ftsf_ | hmm so far i'm lazy and they just run when I launch my app, but i'll probably change that soon and run them with a Makefile target |
06:21:21 | gokr | But... I glanced at it and perhaps I got the wrong impression of it being fairly specific for Nim itself. |
06:21:32 | gokr | It may be what I should use. |
06:22:22 | ftsf_ | https://howistart.org/posts/nim/1 have you read this? |
06:22:27 | ftsf_ | there's a nice section on testing |
06:23:29 | ftsf_ | one thing i'm unsure about is how to test unexported procs without having the tests in the same module |
06:24:04 | gokr | I read that... a while back - but thanks, that approach seems fine. |
06:25:32 | gokr | Most unit test frameworks have some kind of "runner" tool which you can use to select which tests to run, that produces nice output in some form etc etc. |
06:25:40 | * | jeffc_ joined #nim |
06:26:11 | ftsf_ | mmm that's true, but i'm not sure it's needed since the output is quite pretty already, but yeah you can't select which tests unless you do some `when` stuff |
06:27:38 | * | zodiak joined #nim |
06:28:39 | * | jeffc quit (Ping timeout: 264 seconds) |
06:30:14 | * | zodiak_ quit (Ping timeout: 250 seconds) |
06:34:40 | * | rok joined #nim |
06:36:07 | * | pdv joined #nim |
06:36:19 | * | gokr quit (Quit: Leaving.) |
06:36:32 | * | gokr joined #nim |
06:37:21 | * | yuta quit (Ping timeout: 250 seconds) |
06:41:18 | * | gokr quit (Ping timeout: 265 seconds) |
06:52:02 | * | yglukhov joined #nim |
06:56:19 | * | yglukhov quit (Ping timeout: 244 seconds) |
07:16:36 | * | yglukhov joined #nim |
07:21:17 | * | yglukhov quit (Ping timeout: 258 seconds) |
07:27:40 | * | yglukhov joined #nim |
07:32:12 | * | brechtm joined #nim |
07:39:45 | * | StarBrilliant joined #nim |
08:13:42 | * | kingofoz quit (Ping timeout: 276 seconds) |
08:14:17 | * | kingofoz joined #nim |
08:16:00 | * | wuehlmau1 is now known as wuehlmaus |
08:34:09 | * | pafmaf joined #nim |
08:36:19 | * | gokr joined #nim |
08:43:11 | * | der-landgraf quit (Quit: WeeChat 1.5) |
08:43:53 | Araq | gokr: testament is indeed Nim-specific but since you too develop a programming language it's more useful than unittest.nim |
08:48:39 | federico3 | gokr, ftsf_: https://github.com/nim-appkit/omega |
08:48:40 | * | yglukhov_ joined #nim |
08:50:36 | ftsf_ | cool |
08:50:50 | * | der-landgraf joined #nim |
08:51:32 | * | yglukhov quit (Ping timeout: 244 seconds) |
08:51:51 | federico3 | ftsf_: be warned, it's not actively maintained |
08:56:22 | * | der-landgraf quit (Quit: WeeChat 1.5) |
08:57:52 | gokr | Araq: Yeah, I will take a closer look at testament |
08:58:45 | * | yglukhov_ quit (Ping timeout: 240 seconds) |
08:59:02 | ftsf_ | what is testament? |
08:59:06 | gokr | federico3: neat. |
08:59:35 | * | yglukhov joined #nim |
08:59:39 | gokr | ftsf_: find . -name testament |
08:59:42 | * | der-landgraf joined #nim |
08:59:43 | * | der-landgraf quit (Changing host) |
08:59:43 | * | der-landgraf joined #nim |
09:00:43 | gokr | ftsf_: It's a program that runs the Nim tests and produces some output etc |
09:01:10 | ftsf_ | ahh |
09:02:33 | * | hendi__ quit (Ping timeout: 258 seconds) |
09:10:42 | federico3 | http://www.zdnet.com/article/over-100-spying-malicious-tor-nodes-discovered/#ftag=RSSbaffb68 |
09:10:56 | * | Demon_Fox quit (Quit: Leaving) |
09:10:59 | federico3 | sorry, wrong channel :) |
09:39:02 | * | euantor joined #nim |
10:00:47 | * | endragor joined #nim |
10:25:05 | * | Blowfish joined #nim |
10:27:40 | * | nsf quit (Quit: WeeChat 1.5) |
10:35:07 | * | hendi__ joined #nim |
10:35:53 | * | ftsf_ quit (Quit: :q!) |
10:40:34 | * | Sentreen joined #nim |
10:52:46 | * | elrood joined #nim |
11:01:41 | * | coffeepot joined #nim |
11:01:58 | * | cheatfate quit (Read error: Connection reset by peer) |
11:02:13 | * | cheatfate joined #nim |
11:03:04 | * | cheatfate_ joined #nim |
11:03:04 | * | cheatfate quit (Read error: Connection reset by peer) |
11:04:56 | * | pdv quit (Remote host closed the connection) |
11:24:32 | * | cheatfate_ is now known as cheatfate |
11:29:37 | Araq | hmmm can we deprecate named tuples? |
11:30:00 | reactormonk | In favor of? |
11:30:07 | Araq | 'object' |
11:30:22 | Araq | seems like we need tuple unpacking for 'object' then but still |
11:30:37 | Araq | tuple fields shouldn't be named, it's too hard to support in the compiler |
11:32:59 | federico3 | unnamed tuples would exist? |
11:33:17 | federico3 | (sounds like a big breaking change tho) |
11:35:49 | * | yglukhov quit (Read error: Connection reset by peer) |
11:36:22 | * | yglukhov joined #nim |
11:38:29 | reactormonk | I'd personally go for only named objects, makes for better code if you gotta name everything |
11:41:16 | Araq | federico3: I'm talking the field names in tuples |
11:41:31 | Araq | tuples should be string*int*float and nothing else |
11:42:08 | flyx | Araq: would it be enough to define that only the types in a tuple define the tuple type? so that there *can* be names, but those would only be aliases to one of the values and aren't considered to be part of the type? |
11:44:26 | Araq | flyx: been there, doesn't work |
11:45:33 | flyx | well |
11:46:02 | federico3 | Araq: yep, makes sense to have unnamed tuples. Named tuples overlap with objects |
11:46:50 | flyx | I'd need to update NimYAML, but I'd be okay with it. |
11:49:19 | ftsf | It does seem a little unnecessary, although I do like using the named tuples mainly because I don't have to * all the things |
12:02:21 | dom96 | Araq: What's hard about them? |
12:02:46 | dom96 | There is a very important different between object and tuple |
12:02:49 | dom96 | *difference |
12:03:39 | dom96 | And that is nominative vs structured typing. |
12:08:52 | Araq | yes and the structured typing works better when unnamed tuples |
12:08:57 | Araq | *with |
12:10:24 | * | abbat joined #nim |
12:35:43 | * | rolha joined #nim |
12:36:28 | * | rolha quit (Client Quit) |
12:37:59 | * | fastrom joined #nim |
12:48:39 | * | hendi__ quit (Ping timeout: 276 seconds) |
12:48:54 | cheatfate | Araq, i'm agree with you, named fields in tuples are weird |
12:59:41 | * | BratwurstMitSenf joined #nim |
12:59:45 | Araq | oh well, I fixed it instead |
13:00:04 | * | BratwurstMitSenf left #nim (#nim) |
13:04:56 | cheatfate | :( |
13:05:34 | flyx | :) |
13:06:45 | * | yuta1 joined #nim |
13:15:46 | * | fredrik92 joined #nim |
13:30:15 | * | rolha joined #nim |
13:39:34 | * | nairobi joined #nim |
13:41:24 | * | nairobi quit (Client Quit) |
13:43:47 | * | nairobi joined #nim |
13:59:15 | * | AnonymousCoward_ quit (Ping timeout: 258 seconds) |
14:06:10 | * | endragor quit (Quit: endragor) |
14:11:26 | * | rok quit (Quit: rok) |
14:13:21 | * | AnonymousCoward_ joined #nim |
14:18:05 | * | endragor joined #nim |
14:20:00 | * | hendi__ joined #nim |
14:24:37 | * | AnonymousCoward joined #nim |
14:27:20 | * | AnonymousCoward_ quit (Ping timeout: 250 seconds) |
14:28:16 | * | yuta1 quit (Remote host closed the connection) |
14:33:07 | * | endragor quit (Quit: endragor) |
14:53:00 | * | fredrik92 quit (Quit: Shutting down...) |
15:12:51 | * | chemist69 quit (Ping timeout: 258 seconds) |
15:27:25 | * | nairobi quit (Remote host closed the connection) |
15:36:21 | * | yglukhov quit (Read error: Connection reset by peer) |
15:38:59 | * | yglukhov joined #nim |
15:39:12 | * | ephja joined #nim |
15:39:48 | * | chemist69 joined #nim |
15:45:07 | * | brson joined #nim |
15:58:56 | ephja | dom96: how are you supposed to close an AsyncSocket? |
16:10:02 | * | coffeepot quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) |
16:10:07 | * | endragor joined #nim |
16:10:14 | ephja | ok so the dispatcher queue becomes empty |
16:16:52 | dom96 | ephja: using the close proc? |
16:17:14 | ephja | yes but it was an issue with the queue |
16:21:56 | * | Sentreen quit (Read error: Connection reset by peer) |
16:22:11 | * | Sentreen joined #nim |
16:24:47 | * | euantor quit (Read error: Connection reset by peer) |
16:26:47 | * | Sentreen quit (Ping timeout: 258 seconds) |
16:34:20 | * | Sentreen joined #nim |
16:35:45 | * | Sentreen quit (Client Quit) |
16:39:54 | ephja | dom96: has anyone reported the fact that polling a nil future causes a segfault? |
16:40:29 | dom96 | What do you mean by polling? |
16:40:48 | dom96 | A segfault when performing any sort of operation on a nil value is pretty standard in Nim |
16:43:53 | * | zaquest quit (Quit: Leaving) |
16:50:18 | ephja | dom96: yes but it's not obvious that it was operating on a nil future. "not nil" seems like the solution though |
16:55:17 | ephja | dom96: this is idiomatic, right? http://forum.nim-lang.org/t/2409/1#14945 |
16:58:45 | ephja | maybe such a callback nesting could be flattened (code-wise), but I assume it's rare to have more than 3 nestings |
16:59:21 | ephja | could the AST ever be flattened though? |
17:05:22 | ephja | nevermind |
17:05:36 | * | endragor quit (Quit: endragor) |
17:11:41 | dom96 | That's what 'await' is for |
17:12:01 | dom96 | let client = await server.accept() |
17:12:12 | dom96 | let line = client.recvLine() |
17:12:22 | dom96 | *let line = await client.recvLine() |
17:12:28 | dom96 | etc |
17:14:12 | * | fastrom quit (Quit: Leaving.) |
17:29:30 | * | brechtm quit (Remote host closed the connection) |
17:33:32 | * | hendi__ quit (Ping timeout: 260 seconds) |
17:38:17 | ephja | I know what it's for |
17:41:53 | dom96 | then why are you using callbacks? Am I missing something? |
17:48:43 | * | AnonymousCoward quit (Read error: Connection reset by peer) |
17:52:42 | * | brechtm joined #nim |
17:53:27 | * | nairobi joined #nim |
17:54:09 | ephja | no I'm just being a damn noob as always |
17:58:09 | * | AnonymousCoward joined #nim |
18:02:21 | * | abbat quit (Read error: Connection timed out) |
18:03:06 | * | abbat joined #nim |
18:10:52 | * | nairobi quit (Read error: Connection timed out) |
18:12:02 | * | nairobi joined #nim |
18:13:00 | * | abbat quit (Quit: Leaving) |
18:13:48 | * | brechtm quit (Remote host closed the connection) |
18:16:11 | Flox42 | Welcome to the club, ephja :-) |
18:16:53 | ephja | is your hardware also faulty? |
18:17:00 | ephja | I haven't used async in some time though to be fair ;) |
18:17:23 | ephja | yglukhov: do you have any plans regarding widget packing in nimx? |
18:21:05 | Flox42 | nope, but I am also a noob ;-) |
18:30:07 | ephja | only practice needed then \o/ |
18:35:39 | * | brson_ joined #nim |
18:39:00 | * | brson quit (Ping timeout: 276 seconds) |
18:39:43 | * | Trustable joined #nim |
18:41:52 | ephja | yglukhov: the resizing masks are a step towards the right direction. I just discovered them |
18:42:29 | ephja | why is it necessary to emit C code in some cases? |
18:50:06 | * | nairobi quit (Remote host closed the connection) |
18:50:43 | yglukhov | ephja. not sure i got your questions. about widget packing and c code. what is widget packing? and what c code do you mean exactly? =) |
18:52:39 | * | fastrom joined #nim |
18:53:25 | ephja | yglukhov: I was just curious about the emit directives in the library code |
18:53:50 | ephja | as in GtkBox and QBoxLayout |
18:56:24 | yglukhov | well, emits are usually close to some porting/binding/glue layers... also emits can be a result of lazyness to port some chunk of c code, so we just call to it with emit. ttf.nim is such an example =) |
18:56:37 | ephja | right |
19:20:03 | * | nairobi joined #nim |
19:21:57 | * | fastrom quit (Quit: Leaving.) |
19:25:08 | ephja | yglukhov: I get this when I use a more recent nimx commit: "font.nim(244, 26) Error: type mismatch: got (stbtt_fontinfo, ptr font_type, int literal(0)) but expected one of: proc stbtt_InitFont(info: var stbtt_fontinfo; data: font_type; fontstart: cint): cint" |
19:25:09 | * | nairobi quit (Ping timeout: 276 seconds) |
19:25:56 | yglukhov | ephja: update ttf as well: nimble install -y https://github.com/yglukhov/yyf |
19:25:59 | yglukhov | *ttf |
19:29:13 | ephja | ok. the bug persists with the latest version. I'm not sure if it's related to the open issue |
19:32:06 | * | Matthias247 joined #nim |
19:32:57 | * | nsf joined #nim |
19:36:38 | * | yglukhov quit (Remote host closed the connection) |
19:48:31 | * | yglukhov joined #nim |
19:49:06 | * | yglukhov quit (Remote host closed the connection) |
19:49:20 | * | yglukhov joined #nim |
19:59:26 | * | kingofoz quit (Ping timeout: 244 seconds) |
20:00:33 | * | kingofoz joined #nim |
20:11:15 | * | andi___ joined #nim |
20:14:40 | * | nairobi joined #nim |
20:19:45 | * | nairobi quit (Ping timeout: 276 seconds) |
20:51:37 | * | xet7_ quit (Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )) |
20:52:03 | * | xet7_ joined #nim |
20:52:06 | * | andi___ quit (Ping timeout: 258 seconds) |
20:54:02 | * | andi___ joined #nim |
21:01:13 | * | andi___ quit (Quit: ChatZilla 0.9.92 [Firefox 47.0/20160604131506]) |
21:03:52 | * | michael_campbell quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
21:06:43 | * | Trustable quit (Remote host closed the connection) |
21:08:53 | * | nairobi joined #nim |
21:16:24 | * | Salewski joined #nim |
21:21:21 | Salewski | From manual 0.14.2: proc gtk_image_new(): PGtkWidget{.cdecl, dynlib: "libgtk-x11-2.0.so", importc.} |
21:21:26 | Salewski | Seems that cdecl pragma is not used at all in chapter 8. Is it redundand now? |
21:27:27 | * | andi___ joined #nim |
21:31:31 | * | andi___ quit (Quit: ChatZilla 0.9.92 [Firefox 47.0/20160604131506]) |
21:34:31 | * | irrequietus joined #nim |
21:41:22 | * | Sentreen joined #nim |
21:44:04 | * | yglukhov quit (Remote host closed the connection) |
21:46:31 | * | fredrik92 joined #nim |
21:48:18 | * | yglukhov joined #nim |
21:49:07 | * | pafmaf quit (Ping timeout: 244 seconds) |
21:53:21 | * | yglukhov quit (Ping timeout: 276 seconds) |
21:53:44 | * | AnonymousCoward_ joined #nim |
21:53:44 | * | michael_campbell joined #nim |
21:55:24 | * | AnonymousCoward quit (Ping timeout: 250 seconds) |
21:55:56 | * | Sentreen quit () |
21:59:13 | Araq | Salewski: it's not. |
21:59:40 | Araq | and keep bringing up these things, good work :-) |
22:00:11 | * | nairobi quit (Remote host closed the connection) |
22:00:12 | Salewski | Thanks, and bye. |
22:06:09 | * | kssreeram joined #nim |
22:07:40 | * | Matthias247 quit (Read error: Connection reset by peer) |
22:09:39 | * | AnonymousCoward_ quit (Read error: Connection reset by peer) |
22:09:58 | * | AnonymousCoward_ joined #nim |
22:11:14 | * | Salewski quit (Ping timeout: 250 seconds) |
22:12:16 | * | yglukhov joined #nim |
22:17:01 | * | yglukhov quit (Ping timeout: 252 seconds) |
22:39:50 | * | elrood quit (Quit: Leaving) |
22:48:50 | * | yglukhov joined #nim |
22:53:14 | * | yglukhov quit (Ping timeout: 258 seconds) |
22:55:39 | * | kssreeram quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
22:56:01 | * | kssreeram joined #nim |
23:12:51 | * | yglukhov joined #nim |
23:17:27 | * | yglukhov quit (Ping timeout: 265 seconds) |
23:19:09 | * | gokr quit (Ping timeout: 276 seconds) |
23:22:15 | * | fredrik92 quit (Quit: Shutting down . . .) |
23:34:59 | * | chemist69 quit (Ping timeout: 260 seconds) |
23:36:51 | * | chemist69 joined #nim |
23:37:01 | * | yglukhov joined #nim |
23:41:03 | * | yglukhov quit (Ping timeout: 240 seconds) |
23:44:13 | * | ehaliewicz joined #nim |
23:44:28 | * | Sentreen joined #nim |
23:45:31 | * | rolha quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
23:57:20 | * | kunev quit (Ping timeout: 250 seconds) |