00:10:06 | * | desophos quit (Remote host closed the connection) |
00:34:31 | * | brson quit (Quit: leaving) |
00:35:00 | * | brson joined #nim |
00:35:44 | * | benwbooth quit (Ping timeout: 250 seconds) |
00:48:35 | * | bjz joined #nim |
00:52:22 | * | desophos joined #nim |
01:01:33 | * | brson quit (Quit: leaving) |
01:05:15 | * | desophos quit (Read error: Connection reset by peer) |
01:06:18 | * | desophos joined #nim |
01:14:38 | * | yglukhov quit (Remote host closed the connection) |
01:28:59 | * | ftsf_ joined #nim |
01:38:39 | * | chemist69 joined #nim |
01:41:39 | * | chemist69_ quit (Ping timeout: 260 seconds) |
01:42:43 | * | Jesin quit (Quit: Leaving) |
01:46:33 | * | wuehlmaus quit (Quit: Lost terminal) |
01:50:54 | * | bjz_ joined #nim |
01:52:25 | * | bjz quit (Ping timeout: 244 seconds) |
01:53:14 | * | whatelse joined #nim |
02:15:08 | * | yglukhov joined #nim |
02:19:39 | * | yglukhov quit (Ping timeout: 264 seconds) |
02:21:55 | * | desophos_ joined #nim |
02:22:11 | * | kssreeram quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
02:22:23 | * | fredrik92 quit (Quit: Shutting down...) |
02:26:22 | * | desophos_ quit (Ping timeout: 244 seconds) |
02:27:11 | * | Jesin joined #nim |
02:31:57 | * | hendi__ joined #nim |
02:35:58 | * | hendi_ quit (Ping timeout: 272 seconds) |
03:23:28 | * | edub4rt quit (Quit: Leaving) |
03:35:13 | * | M-Quora quit (Read error: Connection reset by peer) |
03:35:14 | * | M-max quit (Remote host closed the connection) |
03:35:14 | * | Flox42 quit (Remote host closed the connection) |
03:40:12 | * | Flox42 joined #nim |
03:53:03 | * | bjz_ quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
03:56:00 | * | ics joined #nim |
04:00:32 | * | GangstaCat quit (Quit: Leaving) |
04:16:57 | * | yglukhov joined #nim |
04:21:45 | * | yglukhov quit (Ping timeout: 276 seconds) |
04:30:08 | * | kssreeram joined #nim |
04:32:38 | * | bjz joined #nim |
05:04:05 | * | endragor joined #nim |
05:22:24 | * | desophos_ joined #nim |
05:22:35 | * | M-Quora joined #nim |
05:22:43 | * | M-max joined #nim |
05:27:36 | * | desophos_ quit (Ping timeout: 272 seconds) |
05:34:37 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
05:40:38 | * | brechtm joined #nim |
05:59:15 | * | brechtm quit (Ping timeout: 264 seconds) |
06:06:28 | * | bacterius joined #nim |
06:19:36 | * | endragor_ joined #nim |
06:23:03 | * | endragor quit (Ping timeout: 240 seconds) |
06:27:11 | * | brechtm joined #nim |
06:31:52 | * | brechtm quit (Remote host closed the connection) |
06:37:03 | * | brechtm joined #nim |
06:41:09 | * | yglukhov joined #nim |
06:42:48 | * | yglukhov quit (Remote host closed the connection) |
06:42:48 | * | zodiak quit (Ping timeout: 244 seconds) |
06:44:39 | * | endragor_ quit (Remote host closed the connection) |
06:45:08 | * | endragor joined #nim |
06:46:07 | * | endragor quit (Remote host closed the connection) |
06:46:36 | * | endragor joined #nim |
06:50:05 | * | wuehlmaus joined #nim |
06:51:18 | * | Demon_Fox quit (Quit: Leaving) |
06:51:21 | * | brechtm quit (Remote host closed the connection) |
06:55:50 | * | Trustable joined #nim |
07:15:24 | * | kssreera_ joined #nim |
07:15:54 | * | vqrs quit (Ping timeout: 272 seconds) |
07:17:54 | * | vqrs joined #nim |
07:18:48 | * | kssreeram quit (Ping timeout: 244 seconds) |
07:24:54 | * | pafmaf joined #nim |
07:26:29 | * | yglukhov joined #nim |
07:27:06 | * | desophos quit (Read error: Connection reset by peer) |
07:49:09 | * | desophos joined #nim |
07:52:38 | ftsf_ | is it safe to cast a vector2d to a point2d and vise versa? |
07:54:13 | * | desophos quit (Ping timeout: 252 seconds) |
07:54:21 | * | brechtm joined #nim |
07:57:21 | fowl | ftsf_: if they use the same float type it should be safe |
07:57:43 | ftsf_ | I'm confused at the difference between the two... |
07:57:54 | ftsf_ | transformNorm takes vector not point |
07:58:16 | ftsf_ | It seems to suggest point should be used for things that will be transformed however |
07:58:35 | ftsf_ | "Direction vector means, that when transforming a vector with a matrix, the translational part of the matrix is ignored" |
07:58:47 | ftsf_ | But since you need to cast to vector to use transform anyway... |
08:00:50 | flyx | well casts are inherently unsafe. I wouldn't bet on it and rather write a converter. |
08:01:17 | ftsf_ | I see.. I'm just curious what the correct thing to do is I guess |
08:01:36 | ftsf_ | how would you generally apply a transformation matrix to a point? |
08:02:17 | * | brechtm quit (Remote host closed the connection) |
08:03:34 | fowl | a point is a position and a vector has magnitude and length |
08:03:57 | fowl | thats why for ex + is defined for (Point2d, Vector2d) but not (Vector2d, Point2d) |
08:04:05 | flyx | `&`(p: Point2d, t: Matrix2d) ? |
08:04:22 | flyx | seems like a strange operator to use |
08:04:39 | ftsf_ | hmm =\ |
08:04:56 | * | flyx does not really know the basic2d module |
08:05:03 | ftsf_ | no Point2d + Point2d either |
08:05:31 | bacterius | its a semantic difference |
08:05:36 | bacterius | it doesn't make sense to add two points together |
08:05:42 | flyx | well, mathematically, what would be the sum of two points? |
08:06:12 | ftsf_ | hmm I guess i'm used to dealing with vectors and points interchangably |
08:06:24 | flyx | if you need to add two points in your code, you are probably doing your math wrong. |
08:07:04 | ftsf_ | eg. worldpoint = centerpoint + localpoint |
08:08:11 | flyx | what would be the semantic of that? you have two point and… somehow… add them together? |
08:08:46 | flyx | the most sensible thing that could come out of this, mathematically, would be a line |
08:09:19 | ftsf_ | hmm in my situation I have an object with a location (should that be a vector or a point?) and then I have an array of local space vertices (should they be points or vectors?) and then I want to find the world coordinates of those vertices for that object |
08:10:30 | ftsf_ | in every other library i've only had "vectors" which were used as both vectors and points as far as i can tell |
08:11:18 | ftsf_ | maybe I should just be using vectors for everything |
08:11:29 | flyx | well, the mathematically correct approach would be (localpoint - (0,0)) + centerpoint |
08:12:12 | flyx | `localpoint - (0,0)` is a vector from (0,0) to localpoint. I am not perfectly sure about the order… |
08:13:19 | flyx | most libraries represent points as location vectors |
08:13:33 | ftsf_ | yes |
08:13:39 | ftsf_ | so this is a bit confusing for me |
08:13:49 | flyx | I am not sure why basic2d doesn't |
08:14:23 | ftsf_ | but based on the "Direction vector means, that when transforming a vector with a matrix, the translational part of the matrix is ignored" thing sounds like i shouldn't use vectors for anything that should be translated |
08:14:40 | ftsf_ | maybe I should make my own vector calss |
08:14:56 | bacterius | vectors don't have a notion of origin, so they can't be "translated" meaningfully |
08:15:05 | ftsf_ | but i'd like to understand how to use this properly |
08:15:30 | * | fold4 quit (Ping timeout: 246 seconds) |
08:18:41 | flyx | this is very confusing. a 2d matrix represents a linear function in 2d space, so it actually cannot have any translational part. |
08:19:10 | ftsf_ | presumably it's a 3d matrix for 2d |
08:19:16 | flyx | to add a translational part to a matrix, you actually need to make it a 3x3 matrix |
08:19:22 | ftsf_ | err 3x3 matrix |
08:19:33 | flyx | ah well, the Matrix2d is actually a Matrix3d |
08:19:40 | flyx | well this module *is* confusing |
08:19:48 | ftsf_ | "Implements a row major 2d matrix, which means transformations are applied the order they are concatenated. The rightmost column of the 3x3 matrix is left out since normally not used for geometric transformations in 2d" |
08:20:02 | ftsf_ | so it's a 3x2 matrix? |
08:20:07 | ftsf_ | ~__~ |
08:20:31 | flyx | oh, it is 3x2. this is even more confusing |
08:24:52 | flyx | well I only know how it works in 3d space, perhaps you can simplify it that way in 2d space |
08:25:18 | ftsf_ | yeah, maybe |
08:26:33 | * | bjz joined #nim |
08:32:14 | * | confusednewnimus joined #nim |
08:32:25 | confusednewnimus | Hi all, I am new to nim |
08:32:32 | confusednewnimus | is there a reference page for C FFi? |
08:32:50 | confusednewnimus | something like this: http://docs.julialang.org/en/release-0.4/manual/calling-c-and-fortran-code/ |
08:33:09 | * | PMunch joined #nim |
08:33:13 | confusednewnimus | I am trying to embed GNU guile into my application by following this tutorial |
08:33:15 | confusednewnimus | https://www.gnu.org/software/guile/docs/guile-tut/tutorial.html |
08:33:37 | ftsf_ | "While sequences are dynamically allocated, they are still immutable." this is confusing, in the following example it shows adding to the seq. Does it destroy and create a new seq? |
08:34:11 | confusednewnimus | but I am not sure how do I represent the ®ister_functions, NULL part in nim procs template for the import c |
08:34:50 | flyx | confusednewnimus: did you try using c2nim? |
08:35:08 | confusednewnimus | it's a very simple program |
08:35:18 | confusednewnimus | I am trying to use the FFI |
08:35:49 | PMunch | ftsf_, that doesn't sound right |
08:36:11 | PMunch | According to the official docs seqs are implemented as growable arrays (ie. realloc calls on an array structure) |
08:36:17 | * | fold4 joined #nim |
08:36:22 | ftsf_ | https://nim-by-example.github.io/seqs/ |
08:36:29 | PMunch | Yea I found that |
08:36:41 | flyx | ftsf_: what it tries to tell you is that seqs have value semantics |
08:36:43 | flyx | it does so poorly. |
08:36:58 | ftsf_ | I see... kind of =p |
08:37:16 | PMunch | Oh yeah. By passing it to let it actually makes the sequence itself immutable and not only the reference |
08:37:21 | flyx | i.e. `s2 = s1` copies s1. and if s1 is a `let` variable, it cannot be modified |
08:37:58 | ftsf_ | so a seq created with let is immutable, not seqs in general |
08:38:26 | PMunch | In some languages "let a = @[1,2,3]" Would just mean that a would be an immutable reference to the sequence. So you could do "a = @[4,5]" because that would break the reference. |
08:38:41 | PMunch | But you could still add elements to the original seq because the data changes and not the reference. |
08:38:55 | flyx | confusednewnimus: what hinders you from using c2nim? it is the de-facto tool for telling you how to wrap C functions properly. |
08:39:18 | confusednewnimus | flyx: I am trying it now, is the nimble installation up to date? |
08:39:40 | confusednewnimus | flyx: I just installed it using nimble but the repo says to build manually |
08:39:52 | * | Arrrr joined #nim |
08:40:31 | PMunch | What he tries to explain there is that, as flyx mentioned, seqs have value semantics meaning that let will make the "value" of seq immutable and passing seqs to functions would make them immutable in that scope (to emulate pass by value (don't think it actually creates a copy though)) and to modify you need to pass it as var. |
08:40:43 | flyx | well then building manually is the way to go. last release was july 2015 |
08:41:50 | * | gokr joined #nim |
08:43:10 | * | fold4 quit (Ping timeout: 244 seconds) |
08:45:06 | ftsf_ | thanks for your help so far =) |
08:46:14 | PMunch | Hmm, any particular reason why I'm unable to get iup from nimble: github.com/nim-lang/iup |
08:48:12 | confusednewnimus | flyx: should I use c2nim on the whole library or only just the headers? |
08:48:27 | bacterius | weird, I can't import/include anything from panicoverride.nim |
08:51:25 | * | rolha joined #nim |
08:52:53 | * | fold4 joined #nim |
08:53:44 | flyx | confusednewnimus: just the headers |
08:58:54 | PMunch | Okay, so the iup bindings are apparently available as part of the standard library. But iup itself is a bit of a pain to install.. |
09:05:18 | flyx | PMunch: did you consider using libui instead? there is an autogenerated binding, but I am not sure how usable it is currently. |
09:06:57 | PMunch | Oooh, that looks promising |
09:07:22 | PMunch | Any existing Nim bindings? |
09:08:36 | chemist69 | PMunch: https://github.com/nim-lang/ui by Araq |
09:09:22 | chemist69 | I have tested it on Linux and Windows, looks great! |
09:09:33 | PMunch | Oh man, I was looking all over for this yesterday but couldn't find it.. |
09:09:52 | PMunch | And it was all there in the main repo -_- |
09:10:02 | PMunch | I think I must stop using DDG and go back to Google.. |
09:10:21 | chemist69 | Often the good lies so near (or so they say...) |
09:10:35 | flyx | it is pretty new and may not be found easily |
09:10:51 | chemist69 | Try using startpage instead of Google |
09:11:01 | vegansk | PMunch, what's the problem with iup? |
09:11:08 | PMunch | Someone linked it in this channel the other day, and I though I should try it out. |
09:11:27 | PMunch | vegansk, well the library itself wasn't in my package manager |
09:11:32 | PMunch | So I had to build it from source |
09:11:47 | PMunch | But it has no instructions on how you would go about doing that |
09:12:52 | PMunch | Running make complained about missing dependencies and I stopped there. It shouldn't be too hard to get up and running but if ui (seriously this needs a more distinguishing name) works well I'll just stick with that. |
09:18:58 | vegansk | PMunch, when I was testing iup, I was lazy too :-) and I used prebuild so with LD_LIBRARY_PATH |
09:22:13 | PMunch | My problem is that they don't have prebuilts for my kernel.. |
09:22:31 | PMunch | Not sure if it matters though.. |
09:25:16 | PMunch | Got libui set up now and it looks really good :) |
09:25:19 | vegansk | Ok, if you change your mind, here is an example from official tutorial, that uses some helpers, so it looks not so "c like" as with pure iup module :-) https://github.com/vegansk/nimtests/blob/master/stdlib/iup/tutorial/ex3_4.nim |
09:26:35 | PMunch | So with iup and ui do the user need to have the libraries? |
09:27:29 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
09:30:05 | PMunch | Or would it be possible to, on compiletime, define which library should be used and just ship different binaries |
09:31:26 | * | gokr quit (Ping timeout: 272 seconds) |
09:31:28 | * | kssreeram joined #nim |
09:32:03 | vegansk | They have different APIs. Do you want to write two versions of UI? Choose the best :-) |
09:32:34 | PMunch | Oh no, not choose between iup and ui |
09:33:30 | * | gokr joined #nim |
09:33:44 | PMunch | What I meant was: In either iup or ui, is it possible to choose which library (both supports various ui toolkits for different platforms) that should be used |
09:35:03 | * | kssreera_ quit (Ping timeout: 276 seconds) |
09:37:17 | flyx | PMunch: not in the Nim code. the libui binary for Linux will use GTK+, the one for Windows will use the WinAPI, and the one for OSX will use Cocoa |
09:37:47 | flyx | it does not really make sense to use WinAPI on Linux, does it |
09:38:57 | PMunch | No, but it would be nice to cross compile to Windows |
09:39:18 | chemist69 | PMunch: That is possible, I have tried it already |
09:39:25 | PMunch | Currently it seems that you need libui.{so|dll|whatever a mac uses} installed |
09:39:29 | vegansk | flyx, I know one cryptoprovier for Microsoft CryptoAPI, that brings the part of WinAPI to use it on Linix :-) |
09:39:59 | * | arnetheduck quit (Ping timeout: 260 seconds) |
09:40:00 | chemist69 | I just copied the libui.dll together with the executable to Windows |
09:40:11 | PMunch | Hmm |
09:40:23 | PMunch | I guess that would work.. |
09:40:35 | PMunch | Wonder how portable the libui.so file is |
09:47:22 | * | kssreeram quit (Ping timeout: 250 seconds) |
09:49:45 | * | confusednewnimus quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) |
09:50:42 | * | gokr quit (Ping timeout: 260 seconds) |
09:58:58 | * | endragor quit (Remote host closed the connection) |
09:59:28 | Flox42 | Does anybody know if there's a nim lib like https://github.com/urfave/cli for go? |
10:00:21 | * | chrisheller quit (Remote host closed the connection) |
10:01:07 | vegansk | Flox42, try docopt package |
10:02:01 | * | endragor joined #nim |
10:03:46 | Flox42 | cool, thanks |
10:05:47 | * | brechtm joined #nim |
10:05:52 | * | gokr joined #nim |
10:06:01 | * | dmitry_p joined #nim |
10:07:18 | * | kssreeram joined #nim |
10:12:06 | * | kssreeram quit (Ping timeout: 276 seconds) |
10:12:21 | * | bacterius quit (Quit: Leaving) |
10:16:18 | * | desophos joined #nim |
10:17:18 | * | brechtm quit (Remote host closed the connection) |
10:19:54 | * | Arrrr quit (Read error: Connection reset by peer) |
10:21:03 | * | desophos quit (Ping timeout: 240 seconds) |
10:37:04 | * | fredrik92 joined #nim |
10:37:14 | dmitry_p | I'm delving into working with http in Nim right now, implementing a simple http proxy as a base. There are some annoyances with API consistency (which I expressed in a github issue), but I can work around most of them. There is, however, a problem that would probably require fixing the library itself. |
10:37:14 | dmitry_p | In httpcore module there is a HttpHeaders type, which is a map from string to seq[string]. It is used in asynchttpserver for storing headers in a request. It stores its keys as lowercase strings - this way API user need not bother to remember the correct case of the header (StringTableRef was not an option since it isn't generic in its values, I suppose). |
10:37:14 | dmitry_p | However, in my use case this is a major pain - transferring headers from asynchttpserver's Request to httpclient requires restoring the initial case. This is doable (for some subset of headers), but is probably not the best way to handle the situation. |
10:37:20 | dmitry_p | I am considering changing the underlying data structure to preserve both the original case and the case-insensitive comparisons. What would the best option (that would have better chances to make it into the main branch): |
10:37:23 | dmitry_p | 1) Store the original key with the value. Less memory-effective. |
10:37:25 | dmitry_p | 2) Create a distinct type wrapper for keys with case-insensitive equality. My favorite, but the lookups will be slower. |
10:37:28 | dmitry_p | 3) Something else? |
10:38:27 | * | brechtm joined #nim |
10:42:09 | * | bjz joined #nim |
10:45:16 | * | coffeepot joined #nim |
11:02:55 | * | nsf quit (Quit: WeeChat 1.5) |
11:05:32 | * | elrood joined #nim |
11:07:39 | Araq | why is the initial casing so important? |
11:08:34 | dmitry_p | Probably not the initial one, but the correct one. Since header names are case-sensitive. |
11:09:18 | Araq | they are? I'm pretty sure they are not. |
11:12:33 | flyx | they are not. https://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2 „Field names are case-insensitive“ |
11:13:45 | dmitry_p | Wow. Put a foot in my mouth, didn't I?.. Somehow I assumed that was the meaning of Tomcat's errors... Nevermind then, will try to figure out what this is really about. Thank you for your time. |
11:26:58 | * | lyro quit (Ping timeout: 244 seconds) |
11:30:41 | * | lyro joined #nim |
11:31:51 | * | gokr quit (Ping timeout: 240 seconds) |
11:35:23 | * | gokr joined #nim |
11:53:57 | * | chemist69 quit (Ping timeout: 258 seconds) |
11:58:17 | * | kssreeram joined #nim |
11:58:22 | * | chemist69 joined #nim |
12:01:04 | * | dmitry_p quit (Remote host closed the connection) |
12:11:20 | * | desophos joined #nim |
12:15:33 | * | desophos quit (Ping timeout: 240 seconds) |
12:22:15 | * | fredrik92 quit (Ping timeout: 246 seconds) |
12:28:03 | * | euantor joined #nim |
12:32:30 | * | euantor quit (Remote host closed the connection) |
12:46:10 | * | euantor joined #nim |
12:47:36 | * | kssreeram quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
12:49:43 | * | euantor quit (Remote host closed the connection) |
12:54:31 | * | kssreeram joined #nim |
12:59:48 | * | kulelu88 joined #nim |
12:59:48 | * | kulelu88 quit (Changing host) |
12:59:48 | * | kulelu88 joined #nim |
13:03:18 | * | gokr1 joined #nim |
13:05:54 | * | gokr quit (Ping timeout: 260 seconds) |
13:08:14 | * | gokr1 quit (Ping timeout: 260 seconds) |
13:25:35 | * | huonw quit (K-Lined) |
13:25:49 | * | huonw joined #nim |
13:26:01 | * | kssreeram quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
13:27:19 | * | kssreeram joined #nim |
13:40:46 | * | kssreeram quit (Read error: Connection reset by peer) |
13:59:33 | * | zodiak joined #nim |
14:01:44 | * | chemist69 quit (Ping timeout: 250 seconds) |
14:04:47 | * | chemist69 joined #nim |
14:08:05 | * | dhk joined #nim |
14:09:24 | * | dhk quit (Client Quit) |
14:15:59 | * | kssreeram joined #nim |
14:18:49 | * | freezerburnV joined #nim |
14:19:11 | * | ftsf_ quit (Quit: :q!) |
14:19:22 | * | pregressive quit (Remote host closed the connection) |
14:19:55 | * | pregressive joined #nim |
14:24:15 | * | pregressive quit (Ping timeout: 250 seconds) |
14:25:16 | * | freezerburnV quit (Ping timeout: 252 seconds) |
14:26:34 | * | kulelu88 quit (Quit: Leaving) |
14:28:51 | zds | is there a way to get the 'shape' of an openArray aside from just calling `len` on one of its elements? |
14:34:52 | * | endragor quit () |
14:36:11 | * | endragor joined #nim |
14:36:33 | * | fredrik92 joined #nim |
14:37:51 | chemist69 | Hmm, on 14.2, when I run var dir = parentDir("/home/xxx/dev/nim/somefile.csv"), I get an error: lib/pure/ospaths.nim(173, 19) Error: invalid pragma: rtl |
14:42:16 | cheatfate | chemist69, please fill an issue |
14:43:30 | chemist69 | Will do. |
14:46:55 | chemist69 | Meant of course Nim *0.*14.2 |
14:50:43 | chemist69 | issue submitted: https://github.com/nim-lang/Nim/issues/4424 |
14:52:03 | * | freezerburnV joined #nim |
14:52:36 | chemist69 | bbl |
14:58:12 | ftsf | hi, how do i correctly indent an array initialiser over multiple lines? |
14:58:30 | * | xet7 joined #nim |
15:15:12 | * | kulelu88 joined #nim |
15:15:12 | * | kulelu88 quit (Changing host) |
15:15:12 | * | kulelu88 joined #nim |
15:16:59 | * | flyx quit (Quit: ZNC - http://znc.in) |
15:17:36 | * | flyx joined #nim |
15:18:04 | * | freezerburnV quit (Ping timeout: 252 seconds) |
15:22:42 | * | lcm337 joined #nim |
15:24:01 | * | GangstaCat joined #nim |
15:32:39 | * | freezerburnV joined #nim |
15:33:14 | * | pregressive joined #nim |
15:50:09 | * | pafmaf quit (Ping timeout: 246 seconds) |
15:50:11 | * | kssreeram quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
15:57:02 | * | brson joined #nim |
15:58:11 | * | endragor quit (Ping timeout: 240 seconds) |
16:00:58 | * | lcm337 quit (Quit: Page closed) |
16:04:36 | * | chrisheller joined #nim |
16:14:09 | * | coffeepot quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) |
16:14:45 | * | nsf joined #nim |
16:19:19 | * | abc joined #nim |
16:19:42 | * | abc is now known as Guest72346 |
16:21:44 | * | Guest72346 quit (Client Quit) |
16:36:56 | * | kulelu88 quit (Quit: Leaving) |
16:49:12 | chrisheller | Regarding the case sensitivity of HTTP headers discussed earlier; there are definitely servers out there that don't handle lowercase headers for common things like Host. |
16:49:51 | * | whatelse left #nim (#nim) |
16:51:35 | cheatfate | Araq, ping :) |
16:52:47 | Araq | pong |
16:54:19 | Araq | chrisheller: these servers need to be fixed then. |
16:55:20 | * | fredrik92 quit (Read error: Connection reset by peer) |
16:55:52 | * | PMunch quit (Quit: leaving) |
16:56:11 | cheatfate | could you please to look at this https://gist.github.com/cheatfate/7b540b5c0ac2adb80e9303ee375d410e |
16:56:37 | chrisheller | You're right, but if you're not in control of those servers and have to interact with them, then you're stuck. |
16:58:25 | Araq | cheatfate: yes it's possible. |
16:58:48 | cheatfate | if think its possible but i dont know how? :) |
16:58:52 | Araq | it 't' is your ref-type, use getType(t[0]) |
16:59:11 | * | yglukhov quit (Ping timeout: 244 seconds) |
16:59:14 | Araq | you need to invoke getType() multiple types to resolve type recursions |
16:59:49 | cheatfate | ahh ok |
17:10:28 | * | brechtm quit (Remote host closed the connection) |
17:34:39 | * | yglukhov joined #nim |
17:39:03 | * | yglukhov quit (Ping timeout: 240 seconds) |
17:48:27 | * | yglukhov joined #nim |
17:50:11 | * | brechtm joined #nim |
17:56:02 | * | brechtm quit (Remote host closed the connection) |
18:02:01 | * | kssreeram joined #nim |
18:03:04 | * | akamaus quit (Ping timeout: 252 seconds) |
18:11:43 | * | Demon_Fox joined #nim |
18:20:54 | * | kssreeram quit (Ping timeout: 276 seconds) |
18:54:12 | * | TheLemonMan joined #nim |
19:14:12 | * | kamicut joined #nim |
19:15:08 | * | desophos joined #nim |
19:15:34 | * | kamicut left #nim (#nim) |
19:25:38 | * | gokr joined #nim |
19:33:14 | * | xet7 quit (Ping timeout: 260 seconds) |
19:38:34 | * | kssreeram joined #nim |
19:39:02 | * | vendethiel joined #nim |
19:40:27 | * | xet7 joined #nim |
19:42:58 | * | brson quit (Ping timeout: 244 seconds) |
19:52:33 | * | lyro quit (Ping timeout: 276 seconds) |
19:58:21 | * | xet7 quit (Ping timeout: 250 seconds) |
20:11:55 | * | xet7 joined #nim |
20:14:35 | * | Matthias247 joined #nim |
20:17:17 | * | pafmaf joined #nim |
20:28:59 | * | brson joined #nim |
20:40:45 | * | PMunch joined #nim |
20:43:48 | * | onionhammer quit (Ping timeout: 246 seconds) |
20:56:22 | * | chemist69 quit (Ping timeout: 258 seconds) |
20:58:31 | * | chemist69 joined #nim |
21:00:03 | * | fredrik92 joined #nim |
21:05:03 | * | GangstaCat quit (Quit: Leaving) |
21:06:49 | * | gokr quit (Ping timeout: 250 seconds) |
21:16:28 | * | pregressive quit (Remote host closed the connection) |
21:16:52 | * | pregressive joined #nim |
21:22:20 | * | gokr joined #nim |
21:23:29 | * | saml quit (Quit: Leaving) |
21:28:49 | PMunch | Quick question: I'm getting a "Cannot prove that 'evt' is initialized. This will become a compile time error in the future. [ProveInit]" warning in the Atom plugin, but not when running nim from the terminal. |
21:29:57 | PMunch | The line that creates the error is simply the statement "var evt = Event(kind: QuitEvent)" where Event is from the SDL binding |
21:40:03 | * | PMunch quit (Quit: leaving) |
21:45:34 | * | TheLemonMan quit (Quit: "It's now safe to turn off your computer.") |
21:58:42 | * | pafmaf quit (Ping timeout: 260 seconds) |
22:04:20 | * | elrood quit (Quit: Leaving) |
22:24:20 | * | Trustable quit (Remote host closed the connection) |
22:24:42 | def- | PMunch: var evt = defaultEvent |
22:38:31 | * | fredrik92 quit (Quit: Shutting down...) |
22:39:52 | * | gokr quit (Ping timeout: 258 seconds) |
22:50:59 | * | rolha quit (Ping timeout: 260 seconds) |
22:52:34 | * | fvs joined #nim |
23:02:06 | * | chemist69 quit (Ping timeout: 272 seconds) |
23:04:09 | * | chemist69 joined #nim |
23:37:21 | * | NimBot joined #nim |
23:40:19 | * | GangstaCat joined #nim |
23:44:13 | * | Matthias247 quit (Read error: Connection reset by peer) |
23:52:37 | * | fvs quit (Quit: ERC (IRC client for Emacs 24.5.1)) |
23:56:55 | * | yglukhov quit (Remote host closed the connection) |
23:57:12 | * | fvs joined #nim |