<< 12-07-2016 >>

00:55:24*yglukhov joined #nim
00:59:17*ftsf_ joined #nim
00:59:33*yglukhov quit (Ping timeout: 240 seconds)
01:22:30*chemist69_ joined #nim
01:26:00*chemist69 quit (Ping timeout: 276 seconds)
01:27:23*fastrom joined #nim
01:40:51*brson quit (Quit: leaving)
02:12:08*saml joined #nim
02:14:34*saml quit (Read error: Connection reset by peer)
02:18:02*fastrom quit (Ping timeout: 260 seconds)
02:31:02*kulelu88 quit (Quit: Leaving)
02:40:13*brson joined #nim
02:57:35*yglukhov joined #nim
03:02:55*yglukhov quit (Ping timeout: 258 seconds)
03:54:32*saml joined #nim
03:54:38*saml quit (Read error: Connection reset by peer)
03:55:04*saml joined #nim
04:29:15*Demon_Fox joined #nim
05:00:35*yglukhov joined #nim
05:02:38*brson quit (Quit: leaving)
05:05:42*yglukhov quit (Ping timeout: 276 seconds)
05:08:23*shodan45 quit (Quit: Konversation terminated!)
05:35:32*kssreeram joined #nim
05:48:18*endragor joined #nim
05:53:48*kssreeram quit (Read error: Connection reset by peer)
06:16:15*endragor_ joined #nim
06:19:39*endragor quit (Ping timeout: 264 seconds)
06:20:37*kssreeram joined #nim
06:49:03*Matthias247 joined #nim
06:52:08*yglukhov joined #nim
06:53:11*yglukhov1 joined #nim
06:54:16*pafmaf joined #nim
06:56:36*kssreeram quit (Read error: Connection reset by peer)
06:59:34*Matthias247 quit (Read error: Connection reset by peer)
07:05:42*rok joined #nim
07:07:12*endragor_ quit (Remote host closed the connection)
07:09:55*rusua joined #nim
07:11:13*Varriount quit (Disconnected by services)
07:11:13*Varriount_ joined #nim
07:14:56*Trustable joined #nim
07:18:44*kssreeram joined #nim
07:34:28*endragor joined #nim
07:36:20*akamaus joined #nim
07:38:55*kssreeram quit (Read error: Connection reset by peer)
07:40:40*bjz joined #nim
07:42:11*hendi__ joined #nim
07:44:57*kssreeram joined #nim
07:51:22chemist69_"Araq: chemist69: can you add this information to tables.nim docs?" - done: https://github.com/nim-lang/Nim/pull/4480
07:54:39*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
07:57:07*CcxCZ quit (Quit: WeeChat 1.0-dev)
07:59:56*vendethiel- joined #nim
08:00:31*vendethiel quit (Ping timeout: 240 seconds)
08:03:01*ftsf_ quit (Quit: :q!)
08:14:51*kssreeram quit (Read error: Connection reset by peer)
08:15:33*der-landgraf quit (Quit: WeeChat 1.5)
08:15:53*der-landgraf joined #nim
08:18:06*akamaus quit (Ping timeout: 276 seconds)
08:21:56*kssreeram joined #nim
08:34:02*der-landgraf quit (Quit: WeeChat 1.5)
08:44:35zielmichaShould I report bugs if compiler crashes (or generates invalid code) instead of giving error message? I don't want to spam issues with unimportant problems (as I can generate a lot of them :) )
08:45:20Araqzielmicha: tough question :-)
08:46:52Araqperhaps create a new github repo and add the issues there and then have a single issue in Nim referring to this "bug" repo?
08:47:44*der-landgraf joined #nim
08:48:17*kssreeram quit (Read error: Connection reset by peer)
08:49:50*chemist69_ quit (Ping timeout: 258 seconds)
08:50:09*chemist69_ joined #nim
08:51:15zielmichagood idea
08:54:27*Arrrr joined #nim
08:58:04*bjz joined #nim
09:00:33*TheLemonMan joined #nim
09:05:15*yglukhov1 quit (Ping timeout: 250 seconds)
09:05:33*yglukhov quit (Ping timeout: 240 seconds)
09:06:36*kssreeram joined #nim
09:08:53*rusua quit (Quit: Textual IRC Client: www.textualapp.com)
09:10:50*Demon_Fox quit (Quit: Leaving)
09:11:00flyxwouldn't it be better to just have a tag for these kind of issues in the Nim repo?
09:25:00*Amelie joined #nim
09:30:33*kssreeram quit (Ping timeout: 240 seconds)
09:44:50*yglukhov joined #nim
09:48:32*bjz_ joined #nim
09:49:45*bjz quit (Ping timeout: 276 seconds)
09:50:05*endragor quit (Remote host closed the connection)
09:51:04*yglukhov quit (Ping timeout: 252 seconds)
09:51:54*kssreeram joined #nim
09:53:44Araqno.
10:04:10*yglukhov joined #nim
10:07:40*endragor joined #nim
10:18:45*girvo joined #nim
10:19:08*girvo quit (Client Quit)
10:19:51*girvo joined #nim
10:20:42*girvo quit (Client Quit)
10:22:03*girvo joined #nim
10:22:08girvoHey all
10:24:04*kssreeram quit (Read error: Connection reset by peer)
10:26:04girvoQuick q: how do people go about overriding dependencies when unit-testing nim modules?
10:30:42*girvo quit (Quit: Leaving)
10:40:47*elrood joined #nim
10:53:34*kssreeram joined #nim
11:19:32*nsf quit (Quit: WeeChat 1.5)
11:23:36*fastrom joined #nim
11:27:03*kssreeram quit (Ping timeout: 240 seconds)
11:27:49*fastrom quit (Ping timeout: 250 seconds)
11:30:25*fastrom joined #nim
11:35:50*trusion quit (Ping timeout: 272 seconds)
11:36:25*trusion joined #nim
11:53:01*pafmaf quit (Read error: Connection reset by peer)
11:59:27*Arrrr quit (Read error: Connection reset by peer)
12:01:59*pafmaf joined #nim
12:12:19*Pow joined #nim
12:12:35PowHello
12:14:46PowAraq, what's up?
12:16:46PowAraq: would you change your nickname, please?, because you really don't want to know its meaning in my native language :-)
12:17:37PowSo guys I was wondering if Nim is a joke or something?
12:18:25Amelie:O
12:18:50Amelieplease, be no joke, I'm learning the tutorials atm
12:19:13PowAmelie, dude, Nim is just a project by students
12:19:46Powdom96, is the main developer, and guess what?, he is a first-year computer science student.
12:20:19Amelieoh :/ But the Aporia editor works rather well.
12:20:29AmelieWhat other language would you recommend me?
12:20:47PowAmelie, Python
12:21:24elroodAmelie, just ignore the troll. some people simply are bored and trying to find a way to waste their and other people's time
12:23:30AmelieAh, ok. Wasting time is not worth it. Looking forward to learn Nim more every day
12:23:58*Pow left #nim (#nim)
12:24:47*Pow joined #nim
12:28:14*Pow joined #nim
12:30:39Ameliedom96, my friend bought me your book recently. Looking forward to start reading it, probably in the begin of August
12:31:06dom96Amelie: Awesome! Let me know what you think and/or if you have any questions :)
12:31:12AmelieI will report back whenever I see a typo (not likely) or have problems with the examples
12:32:11AmelieThis is a really valuable asset for the Nim project in a whole
12:32:55Ameliemight be the new Kernighan/Ritchie ...^^
12:34:38dom96heh, I doubt I can even be compared to those legends.
12:35:24Ameliewell, time will tell. Nim for sure has a bright future
12:36:40AmelieAporia already is one of the best editors out there
12:36:57Ameliecompared with Geany or Medit etc.
12:37:57elroodyou'd be amazed how many people have assumed that bright-future-bit for how many languages.. ;)
12:38:19Ameliehaha, maybe. But this time it will happen
12:40:13elroodnim sure shows some promise. let's give it time and not raise expectations too high
12:40:52elroodhave fun with it, and see and decide for yourself if it feels right for you and your projects
12:41:01*xet7_ quit (Remote host closed the connection)
12:41:40*xet7_ joined #nim
12:43:15Ameliethanks, I will for sure. Need a forum account too
12:43:26Ameliejust the whole Nim package
12:43:35Amelie(book, IRC, forum)
12:47:32elrood*cough* github fork, own nimble packages, programming blog, game engine.. *cough*
12:47:54Ameliewait a sec
12:47:58Ameliegame engine?
12:48:01Amelielink plis
12:48:29Amelieand for the other things too
12:49:09*Amelie prepares Nim bookmark folders
12:49:24elroodisn't that what most ki.. young and aspiring coders are after these days?
12:49:32elroodalright, i'll see myself out..
12:50:16Ameliethat's true, gaming might get way too much attention
12:52:17Araqhi Amelie, welcome
12:52:35Ameliehello Araq
12:52:46Araqthere are wrappers for Urho 3D and for Unreal Engine 4
12:53:33Araqbut since these are both really huge beasts I don't think they are good material for learning Nim :-)
12:55:50Ameliehaha, probably
12:56:00Ameliebut it's good to have them around
12:56:47Ameliesome appealing flagship projects always bring new people in
12:57:04Ameliemaybe even the industry
12:57:12*Flox42 quit (Ping timeout: 244 seconds)
12:57:51*M-Quora quit (Ping timeout: 258 seconds)
12:57:51*M-max quit (Ping timeout: 258 seconds)
13:06:46*Flox42 joined #nim
13:30:42*rok quit (Quit: rok)
13:44:45derlafffhttp://nim-lang.org/docs/httpclient.html#request,string,string,string,string,Proxy I want to use Response.body when server responds with 403
13:44:59derlafffbut an exception is generated and it seems to interrupt assigment
13:45:04derlafffhow can I suppress exception?
13:47:21*kssreeram joined #nim
13:51:55derlafffoh, I can't
13:52:12derlaffflooks like a major fault in httpclient
13:52:38*kssreeram quit (Ping timeout: 272 seconds)
13:53:38*pafmaf quit (Quit: Leaving)
14:15:43*asdf quit (Ping timeout: 246 seconds)
14:15:52dom96derlafff: what exception?
14:15:54*asdf joined #nim
14:15:56*ludocode quit (Quit: No Ping reply in 180 seconds.)
14:16:04dom96`request` shouldn't raise exceptions for 403
14:16:11derlafffhmm
14:16:17*asdf is now known as Guest38978
14:18:16*ludocode joined #nim
14:27:18derlafffdom96: btw, thanks for jester
14:43:26*kssreeram joined #nim
14:46:13*endragor quit (Ping timeout: 244 seconds)
14:57:50*endragor joined #nim
15:00:55derlafffhow to use named parameters?
15:01:00derlafff let resp = await client.request(URL, httpGet) # this is OK
15:01:10derlafff let resp = await client.request(URL, httpGet, timeout=30) # this generates tonns of errors
15:02:03derlafffclient -- httpClient
15:08:01*endragor quit (Remote host closed the connection)
15:10:06derlafffah. future version does not have "timeout"
15:11:36*M-Quora joined #nim
15:11:44*M-max joined #nim
15:13:57*kssreeram quit (Quit: My Mac has gone to sleep. ZZZzzz…)
15:15:59*Jesin quit (Quit: Leaving)
15:16:14*endragor joined #nim
15:28:35*Guest38978 is now known as asdf
15:29:41*Jesin joined #nim
15:34:11*hendi__ quit (Ping timeout: 240 seconds)
15:43:33*kulelu88 joined #nim
15:54:05*Jesin quit (Quit: Leaving)
16:08:33*nd_ quit (Ping timeout: 240 seconds)
16:10:34*endragor quit (Remote host closed the connection)
16:12:11*Amelie quit (Quit: Lost terminal)
16:15:51*yglukhov quit (Ping timeout: 276 seconds)
16:15:54*brson joined #nim
16:16:55*vendethiel joined #nim
16:18:27*vendethiel- quit (Ping timeout: 276 seconds)
16:22:01*nd_ joined #nim
16:26:44*endragor joined #nim
16:29:15*fastrom quit (Ping timeout: 264 seconds)
16:30:44*kssreeram joined #nim
16:31:15*fastrom joined #nim
16:37:39*kulelu88 quit (Quit: Leaving)
16:37:41*euantor joined #nim
16:47:26*endragor quit (Remote host closed the connection)
16:51:19*nsf joined #nim
16:53:28*euantor quit ()
17:03:37kierwhat's the 'out' keyword used for?
17:03:44kiercan't seem to find it in the manual
17:08:38flyxcurrently unused afaik
17:11:06*TheLemonMan quit (Quit: "It's now safe to turn off your computer.")
17:12:22*fredrik92 joined #nim
17:12:59kieralso, I have some Nim functions that I'm exporting to C with the exportc pragma. Is there a portable way to export the function declarations to a .h file?
17:13:04*kssreeram quit (Read error: Connection reset by peer)
17:25:06*fastrom1 joined #nim
17:28:07*fastrom quit (Ping timeout: 252 seconds)
17:29:49*fredrik92 left #nim ("Leaving channel")
17:29:52*fastrom1 quit (Ping timeout: 272 seconds)
17:36:38*yglukhov joined #nim
17:38:37*yglukhov_ joined #nim
17:42:33*yglukhov_ quit (Remote host closed the connection)
17:45:27*yglukhov quit (Ping timeout: 264 seconds)
17:50:24*yglukhov joined #nim
17:51:52Araqkier: --genHeader
17:53:34*yglukhov1 joined #nim
17:57:06*kssreeram joined #nim
17:58:53*ldlework quit (Quit: co'o ro pendo be mi)
17:59:23*yglukhov quit (Remote host closed the connection)
17:59:23*yglukhov1 is now known as yglukhov
17:59:41*ldlework joined #nim
18:00:41*xet7_ left #nim ("AndroIRC")
18:01:19*xet7_ joined #nim
18:04:12*yglukhov quit (Ping timeout: 260 seconds)
18:08:10flyxso I tried compiling NimYAML to JS, but apparently, there is no `finished` for iterators. is this correct for the js backend?
18:11:19*yglukhov joined #nim
18:11:23*yglukhov1 joined #nim
18:12:41*shodan45 joined #nim
18:15:23*ldlework quit (Quit: co'o ro pendo be mi)
18:23:50*xet7 quit (Quit: Leaving)
18:28:39*kssreeram quit (Ping timeout: 264 seconds)
18:30:10*xet7 joined #nim
18:36:38kierAraq: thanks, just what I was looking for (though it seems the option is --header rather than --genHeader)
18:44:18*pafmaf joined #nim
19:22:07*shodan45 quit (Quit: Konversation terminated!)
19:27:36*TheLemonMan joined #nim
19:46:48*kssreeram joined #nim
19:47:06*yglukhov quit (Remote host closed the connection)
19:47:06*yglukhov1 is now known as yglukhov
19:48:39*yglukhov_ joined #nim
19:54:11*kssreeram quit (Ping timeout: 240 seconds)
19:58:55*yglukhov_ quit (Remote host closed the connection)
19:59:29*yglukhov_ joined #nim
20:03:42*nsf quit (Quit: WeeChat 1.5)
20:07:34*Matthias247 joined #nim
20:32:48*ldlework joined #nim
20:59:12*TheLemonMan quit (Quit: "It's now safe to turn off your computer.")
21:02:15dom96It seems people still have a problem with style insensitivity in Nim https://www.reddit.com/r/programming/comments/4o0h0u/writing_a_2d_platform_game_in_nim_with_sdl2/d59b7xg?context=3 :\
21:05:38*Araq shrugs
21:20:05ldleworkJust answer his question
21:20:07ldleworkAbout what it solves
21:20:11ldleworkdom96: ^
21:24:29dom96I don't even know what to reply to be honest.
21:27:09*pafmaf quit (Read error: Connection reset by peer)
21:27:29Araqit solves that I don't have to make my compiler enforce fooBar everywhere, though tbh I think I'll do it instead. compiler will get a --fascist mode and enforce NEP-1 everywhere.
21:32:15elroodyou could reply that it's just a matter of different priorities. some like their language of choice to be a rock-solid and dependable tool that doesn't get in their way and just does the job, others like to have it as a playground and field for experimentation. nim will mature, eventually
21:32:22*couven92 joined #nim
21:37:04*freddy92 joined #nim
21:37:25*rok joined #nim
21:37:48*freddy92 quit (Client Quit)
21:38:00*couven92 quit (Quit: Shutting down...)
21:39:32*brson_ joined #nim
21:40:06*brson quit (Ping timeout: 250 seconds)
21:40:09*fastrom joined #nim
21:43:49*brson_ quit (Read error: Connection reset by peer)
21:43:58*fredrik92 joined #nim
21:44:34*brson joined #nim
21:47:54*fastrom quit (Ping timeout: 250 seconds)
21:50:48*pafmaf joined #nim
21:53:51*brson quit (Ping timeout: 276 seconds)
21:54:00*brson joined #nim
21:56:36AraqPython code with its foo_bar_baz surely gets in my way all the time...
21:56:45Araqbecause it's ugly and hard to type.
21:58:15dom96Maybe we should indeed simply enforce camelCase
21:58:33dom96but then we'll have people complaining about that...
21:59:42cheatfateAraq, i need your advice
22:00:16cheatfatei want to make some kind of pluggable request processing to my server
22:00:22cheatfatesome kind of middleware
22:01:19cheatfateand i dont know how to do it
22:02:24AraqI don't even know what "middleware" means
22:03:06cheatfatelet me explain for basic web server works like get/parse request and make response
22:03:26cheatfatemiddleware works between get/parse and make response
22:03:32cheatfatelike session handling
22:04:04*Trustable quit (Remote host closed the connection)
22:04:32cheatfateso some code included and handle sessions so user can easily access it, because some module (lets call it session.nim) is processed request and made some variables inside `request` object
22:05:17cheatfatehttp authorization is also can be made as middleware
22:05:44*rok quit (Quit: rok)
22:06:28cheatfateserver is receiving and parsing request... then it call sequence of middlewares (which can modify request object) then it can pass request to application
22:11:06*elrood quit (Quit: Leaving)
22:11:35*afrigginelf joined #nim
22:19:01*ob_ joined #nim
22:25:14*fastrom joined #nim
22:28:18*ob_ quit (Ping timeout: 276 seconds)
22:32:51*fastrom quit (Ping timeout: 276 seconds)
22:35:06*GangstaCat joined #nim
22:35:24*yglukhov_ quit (Remote host closed the connection)
22:38:50Araqcheatfate: ok, but what kind of advice I could give to you?
22:39:45cheatfateAraq, as i know i can't create types with macro
22:39:53cheatfate?
22:40:31*yglukhov quit (Ping timeout: 252 seconds)
22:45:25*Matthias247 quit (Read error: Connection reset by peer)
22:51:25*fredrik92 quit (Quit: Shutting down...)
22:54:14*fastrom joined #nim
22:54:46Araqwhat does that have to do with anything?
22:58:51*fastrom quit (Ping timeout: 276 seconds)
23:11:45cheatfateAraq, ok forget it :)
23:13:30Araqcheatfate: middleware: pastParsing: seq[proc (r: ref Request)] ?
23:13:53Araqa list of callbacks that is called, what else should it be
23:19:02*kulelu88 joined #nim
23:19:04Araqthe type differences are hidden in the closures, as usual
23:21:19*ephja joined #nim
23:26:07*pafmaf quit (Quit: This computer has gone to sleep)
23:30:39cheatfateAraq, i'm just trying to figure how to make plugin system for this middlewares... so user can just 'import session_middlware' and got it
23:31:28Araqsession_middle registers a callback as a top level statement
23:35:10cheatfateAraq, yep i think you are right
23:35:14cheatfatethis is nice way
23:36:40*yglukhov joined #nim
23:41:00*yglukhov quit (Ping timeout: 250 seconds)