00:12:15 | * | desophos quit (Ping timeout: 244 seconds) |
00:23:40 | girvo | dumb q that I can't seem to find the answer for: easy way of iterating over an object's k=>v pairs? |
00:26:02 | girvo | I've got a 512 byte header object I want to write out to a file |
00:26:28 | girvo | http://hastebin.com/agedututuv.nim |
00:26:42 | girvo | The Record object is what I want to write out |
00:27:15 | kier | according to the stdlib marshal module, 'for key, val in fields(obj)' is a thing |
00:27:23 | kier | https://github.com/nim-lang/Nim/blob/devel/lib/pure/marshal.nim#L60 |
00:27:53 | girvo | fields()! perfect |
00:27:55 | girvo | Thanks kier :) |
00:28:02 | kier | fields comes from typoinfo |
00:28:03 | kier | http://nim-lang.org/docs/typeinfo.html#fields.i,Any |
00:28:11 | kier | typeinfo, even. |
00:28:41 | girvo | Thanks so much, helps heaps |
00:30:48 | Araq | girvo: don't use typeinfo, use fieldPairs from system. much faster. |
00:30:59 | * | yglukhov joined #nim |
00:33:06 | kier | ah, didn't know that existed |
00:33:39 | kier | one day I will have a good idea of what's actually in system.nim. today is not that day. |
00:35:57 | * | yglukhov quit (Ping timeout: 276 seconds) |
00:40:08 | girvo | Araq: beautiful, thank you |
00:40:29 | girvo | I swear every time I need some feature, it already exists heh. This is why I keep IRC open ;) |
00:43:33 | girvo | Oops I broke the compiler attempting to write out my object's array[100, char] value |
00:43:49 | girvo | SIGSEGV: Illegal storage access. (Attempt to read from nil?) |
00:55:13 | Araq | tautologico: ok, I wrapped it, will upload it to Nimble tomorrow. |
00:55:18 | * | yglukhov joined #nim |
00:55:29 | Araq | also have c2nim'ed an example. |
01:00:00 | * | yglukhov quit (Ping timeout: 276 seconds) |
01:02:59 | girvo | Where should I be looking for a way to convert a string to an array[100, char]? |
01:08:27 | * | chemist69 joined #nim |
01:08:34 | Araq | setLen(s, 100), cast[ptr array[...]](addr(s[0]) |
01:08:58 | tautologico | that's pretty cool, I think I'll have a use for it soon |
01:11:48 | * | chemist69_ quit (Ping timeout: 272 seconds) |
01:13:59 | * | k1io joined #nim |
01:19:27 | girvo | Cheers Araq |
01:30:39 | girvo | Cute, that totally works! |
01:30:40 | girvo | http://hastebin.com/ukowodenor.nim |
01:31:35 | girvo | Oops I spoke too soon, and probably did something wrong here |
01:31:48 | * | yglukhov joined #nim |
01:31:51 | girvo | http://hastebin.com/uzuherawop.sh |
01:33:18 | girvo | Compilation to C seems to work, but the compilation _of_ C fails |
01:33:47 | girvo | Oh man. Ignore me, I think that's my fault.. hold on |
01:34:05 | girvo | wait, nope, still fails |
01:36:06 | * | yglukhov quit (Ping timeout: 244 seconds) |
01:55:03 | * | Demon_Fox joined #nim |
01:55:47 | * | yglukhov joined #nim |
02:00:01 | * | yglukhov quit (Ping timeout: 240 seconds) |
02:06:06 | Araq | I told you to cast to ptr array |
02:12:06 | * | desophos joined #nim |
02:19:41 | * | brson quit (Ping timeout: 264 seconds) |
02:20:11 | * | yglukhov joined #nim |
02:24:31 | * | yglukhov quit (Ping timeout: 252 seconds) |
02:39:56 | girvo | Araq: right, my bad on that one |
02:39:57 | girvo | "error: array type 'TY186014' (aka 'NIM_CHAR [100]') is not assignable LOC1.filename = ((NIM_CHAR*) ((&s->data[((NI) 0)]))); ~~~~~~~~~~~~~ ^ |
02:56:31 | * | yglukhov joined #nim |
03:00:33 | * | yglukhov quit (Ping timeout: 246 seconds) |
03:01:24 | * | |meta quit (Quit: Connection closed for inactivity) |
03:16:05 | girvo | Oh neat system.writeBytes looks pretty much spot on for what I'm after |
03:20:45 | * | yglukhov joined #nim |
03:24:58 | * | yglukhov quit (Ping timeout: 244 seconds) |
03:56:54 | * | yglukhov joined #nim |
04:01:49 | * | yglukhov quit (Ping timeout: 260 seconds) |
04:01:56 | * | user2 joined #nim |
04:08:59 | * | k1io quit (Quit: Connection closed for inactivity) |
04:21:03 | * | yglukhov joined #nim |
04:24:19 | * | desophos quit (Read error: Connection reset by peer) |
04:25:50 | * | yglukhov quit (Ping timeout: 260 seconds) |
04:30:52 | * | girvo quit (Quit: leaving) |
04:37:39 | * | pregressive joined #nim |
04:47:30 | * | yglukhov joined #nim |
04:52:12 | * | yglukhov quit (Ping timeout: 272 seconds) |
04:57:39 | * | pregressive quit (Remote host closed the connection) |
04:58:14 | * | pregressive joined #nim |
04:58:19 | * | wuehlmaus quit (Quit: Lost terminal) |
05:02:15 | * | pregressive quit (Ping timeout: 244 seconds) |
05:10:59 | * | endragor joined #nim |
05:11:53 | * | yglukhov joined #nim |
05:16:43 | * | yglukhov quit (Ping timeout: 260 seconds) |
05:36:43 | * | jeffc_ joined #nim |
05:38:47 | * | jeffc quit (Ping timeout: 244 seconds) |
05:45:27 | * | s4 joined #nim |
05:48:01 | * | yglukhov joined #nim |
05:52:03 | * | yglukhov quit (Ping timeout: 240 seconds) |
05:56:03 | * | user2 quit (Ping timeout: 240 seconds) |
06:11:33 | * | woadwarrior joined #nim |
06:17:35 | * | endragor_ joined #nim |
06:19:26 | * | user2 joined #nim |
06:21:49 | * | endragor quit (Ping timeout: 260 seconds) |
06:24:19 | * | yglukhov joined #nim |
06:28:06 | * | Bruh joined #nim |
06:29:33 | * | yglukhov quit (Ping timeout: 276 seconds) |
06:32:00 | * | endragor_ quit (Remote host closed the connection) |
06:32:40 | * | endragor joined #nim |
06:47:05 | * | gokr joined #nim |
06:48:13 | * | wuehlmaus joined #nim |
06:48:42 | * | wuehlmaus quit (Client Quit) |
06:50:17 | * | wuehlmaus joined #nim |
07:24:15 | * | endragor quit (Remote host closed the connection) |
07:24:36 | * | Trustable joined #nim |
07:46:33 | * | filcuc joined #nim |
07:53:43 | * | endragor joined #nim |
07:58:24 | * | ivan quit (Remote host closed the connection) |
08:04:38 | * | user2 quit (Ping timeout: 244 seconds) |
08:34:36 | * | krolik joined #nim |
08:37:33 | * | OnO_ joined #nim |
08:38:14 | * | heinrich5991_ joined #nim |
08:38:53 | * | asdf_ joined #nim |
08:39:02 | * | yglukhov joined #nim |
08:39:06 | * | OnO quit (Ping timeout: 264 seconds) |
08:39:06 | * | heinrich5991 quit (Ping timeout: 264 seconds) |
08:39:07 | * | asdf quit (Ping timeout: 264 seconds) |
08:40:15 | * | heinrich5991_ is now known as heinrich5991 |
08:43:34 | * | filcuc quit (Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/) |
08:45:33 | * | Senketsu joined #nim |
08:48:07 | * | ivan joined #nim |
09:00:43 | * | vendethiel joined #nim |
09:05:53 | * | Arrrr joined #nim |
09:05:53 | * | Arrrr quit (Changing host) |
09:05:53 | * | Arrrr joined #nim |
09:09:01 | * | nsf quit (Quit: WeeChat 1.4) |
09:13:02 | * | der-landgraf quit (Quit: WeeChat 1.5) |
09:14:22 | * | der-landgraf joined #nim |
09:30:43 | * | Demon_Fox quit (Quit: Leaving) |
09:34:51 | * | user2 joined #nim |
09:46:17 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
09:48:25 | * | user2 quit (Ping timeout: 260 seconds) |
09:59:52 | * | mlitwiniuk quit (Ping timeout: 244 seconds) |
10:00:32 | * | bjz joined #nim |
10:02:07 | * | ivan quit (Remote host closed the connection) |
10:04:40 | * | RushPL quit (Remote host closed the connection) |
10:06:13 | * | MyMind quit (Max SendQ exceeded) |
10:07:26 | * | RushPL joined #nim |
10:07:27 | * | MyMind joined #nim |
10:07:56 | * | wuehlmau1 joined #nim |
10:09:01 | * | ivan joined #nim |
10:09:25 | * | gokr quit (Ping timeout: 260 seconds) |
10:13:48 | * | gokr joined #nim |
10:16:13 | * | wuehlmaus quit (*.net *.split) |
10:16:13 | * | regtools quit (*.net *.split) |
10:16:13 | * | beatmox quit (*.net *.split) |
10:19:57 | * | user2 joined #nim |
10:20:51 | * | der-land1 joined #nim |
10:21:54 | * | der-landgraf quit (Ping timeout: 246 seconds) |
10:23:21 | * | RushPL quit (Remote host closed the connection) |
10:26:12 | * | RushPL joined #nim |
10:36:34 | * | asdf_ is now known as asdf |
10:44:12 | * | TheLemonMan joined #nim |
10:50:04 | * | mlitwiniuk joined #nim |
10:50:04 | * | regtools joined #nim |
10:50:04 | * | beatmox joined #nim |
10:53:35 | dom96 | Araq: Should we add add a deprecated `random` into `math`? |
10:58:02 | Araq | no, that would meam math.nim depends on times.nim again |
11:00:17 | * | user2 quit (Ping timeout: 250 seconds) |
11:01:18 | * | Bruh quit (Quit: nah. no znc) |
11:05:10 | dom96 | ok, but it will break a lot. |
11:24:38 | dom96 | Araq: I can cast a 'ref' to a pointer and pass it to a C proc as long as I GC_ref it right? |
11:25:48 | dom96 | or maybe I should pass 'addr MyRefObj[]' instead of casting? |
11:26:03 | Araq | casting is more readable IMO |
11:26:09 | dom96 | ok |
11:26:10 | Araq | and yes, that's right. |
11:28:10 | * | cheatfate quit (Read error: Connection reset by peer) |
11:28:27 | * | cheatfate joined #nim |
11:28:46 | Arrrr | Cant nim auto unref on importc procs interaction? |
11:30:26 | Araq | how would that work? |
11:30:45 | Araq | the point is to pass ownership to C for an undetermined amount of time |
11:31:11 | Araq | that's not "auto"able in any sane way. |
11:32:42 | Arrrr | hahah |
11:33:59 | Araq | dom96: you also need to show "protect" for your concurrency chapter |
11:34:21 | Araq | and then more people need to buy your book, because protect is not documented yet. |
11:34:45 | pigmej | lol :D |
11:34:49 | dom96 | Yeah, no. Won't be able to fit that in. |
11:35:00 | dom96 | *You* need to read the book! |
11:37:09 | Araq | it's easy. instead of GC_ref / GC_unref you use protect() and dispose() |
11:37:19 | Araq | and then it's threadsafe. |
11:42:26 | dom96 | I don't think I mentioned GC_ref/GC_unref |
11:43:07 | Arrrr | is GC_* the definitive name? |
11:45:50 | dom96 | Araq: seriously though, please read it, they're starting "production" already. |
11:46:08 | Araq | what?! |
11:46:22 | Araq | is it finished? |
11:46:52 | dom96 | no, but they are going through chapters 1-6 and preparing them for the final book because they are "stable" |
11:47:11 | dom96 | so making changes to those will become more difficult |
11:48:42 | * | Bruh joined #nim |
11:52:31 | Araq | okok |
11:52:50 | dom96 | So read it already :P |
11:56:12 | * | Bruh quit (Quit: nah. no znc) |
11:57:20 | * | gokr quit (Ping timeout: 260 seconds) |
12:03:45 | * | gokr joined #nim |
12:05:12 | * | arnetheduck joined #nim |
12:05:46 | * | Gonzih quit (Remote host closed the connection) |
12:14:49 | * | chemist69 quit (Ping timeout: 250 seconds) |
12:25:53 | * | chemist69 joined #nim |
12:51:27 | * | Gonzih joined #nim |
12:53:55 | * | arnetheduck quit (Remote host closed the connection) |
12:56:53 | * | arnetheduck joined #nim |
13:01:04 | * | gokr quit (Ping timeout: 258 seconds) |
13:07:40 | * | MrFlibble joined #nim |
13:15:03 | * | sadgfgdfgs joined #nim |
13:16:23 | sadgfgdfgs | i |
13:16:28 | * | sadgfgdfgs left #nim (#nim) |
13:16:58 | kier | words to live by. |
13:16:58 | * | fowl quit (Ping timeout: 272 seconds) |
13:21:35 | MrFlibble | this is the first IRC channel to mention my lib! |
13:22:17 | Araq | your lib is called 'i'? |
13:22:29 | MrFlibble | no |
13:22:30 | MrFlibble | neogfx |
13:23:02 | Araq | sorry to disappoint you, but nobody said 'neogfx' |
13:23:13 | MrFlibble | they did in February according to Google search |
13:23:55 | Araq | cool. so create a Nim wrapper for it. |
13:24:30 | MrFlibble | I would if I had the time .. I still have to finish the lib. |
13:25:44 | * | euantor joined #nim |
13:27:06 | * | s4 quit (Quit: Konversation terminated!) |
13:27:56 | euantor | I may be being blind, but does `strutils` not have an indexOf type method to find the first index of a character in a string? |
13:28:07 | * | tankfeeder joined #nim |
13:30:10 | Araq | euantor: it's called 'find' |
13:34:37 | euantor | Araq: Oh, that would explain it. I searched "index", but only found the `abbrev` proc |
13:36:24 | * | desophos joined #nim |
13:39:44 | * | tankfeeder left #nim ("Leaving") |
13:55:05 | * | ozra_ joined #nim |
14:03:50 | * | nsf joined #nim |
14:10:13 | arnetheduck | Is the ReadEffect/WriteEffect stuff used? |
14:10:24 | arnetheduck | *IOEffect |
14:29:44 | * | euantor quit (Quit: Page closed) |
14:47:39 | * | Parashurama joined #nim |
14:49:44 | Parashurama | Araq_: I was playing around with the byref pragma. Is it intended to only affect passing to procs. Iterating like "for item in list:" make a copy on the stack in the generated C. |
14:50:05 | Parashurama | Araq_: And it could affect performance if it is a large enough object. |
14:55:19 | Araq | Parashurama: yes. |
14:57:40 | Parashurama | Araq_: Ok. It's not really a problem, for i in 0..list.high: list[i].addr |
14:57:51 | Parashurama | is just a proc away. |
15:01:54 | * | endragor quit (Ping timeout: 246 seconds) |
15:03:40 | * | nsf quit (Quit: WeeChat 1.4) |
15:09:48 | Araq | mitems? |
15:13:22 | * | desophos_ joined #nim |
15:21:28 | * | matkuki joined #nim |
15:23:08 | * | desophos_ quit (Remote host closed the connection) |
15:26:03 | * | arnetheduck quit (Ping timeout: 240 seconds) |
15:27:21 | * | yglukhov quit (Ping timeout: 240 seconds) |
15:28:02 | cheatfate | euantor, i think |
15:28:28 | cheatfate | Araq, i've got one more strange error with my `with` templates |
15:36:20 | * | desophos_ joined #nim |
15:37:11 | * | desophos_ quit (Client Quit) |
15:38:16 | * | Parashurama quit (Ping timeout: 264 seconds) |
15:40:06 | * | saml quit (Read error: Connection reset by peer) |
15:45:12 | * | bjz_ joined #nim |
15:45:21 | * | themagician quit (Ping timeout: 240 seconds) |
15:46:29 | * | bjz quit (Ping timeout: 260 seconds) |
15:55:24 | * | fowl joined #nim |
15:56:57 | * | pregressive joined #nim |
16:04:32 | * | Bruh joined #nim |
16:04:55 | * | fredrik92 joined #nim |
16:08:12 | * | Parashurama joined #nim |
16:09:24 | Parashurama | Araq_: sorry internet problems. Yeah mitems can work for that too. |
16:10:18 | * | deavmi joined #nim |
16:10:22 | deavmi | Hello o/ |
16:10:34 | deavmi | I just had a random session of learning nim |
16:10:52 | deavmi | I played around with redis earlier because i was trying to get something to work |
16:11:13 | deavmi | and Then i found the nim redis library, made a few redis objects |
16:13:08 | * | BitPuffin joined #nim |
16:14:01 | deavmi | and made this: https://paste.rel4tion.org/4241285101062717440 |
16:14:11 | deavmi | I felt so proud that I did all of that |
16:14:24 | deavmi | Of course i checked out redis.io but that was easy. |
16:14:28 | Parashurama | cheatfate: do you have a reference to your `with` template. I sometime use a `with` macro based on python context manager. I can gist the code if you want. |
16:14:30 | deavmi | checking commands for redis and such |
16:14:52 | * | Jesin quit (Quit: Leaving) |
16:17:36 | * | Jesin joined #nim |
16:30:54 | * | yglukhov joined #nim |
16:34:32 | * | saml joined #nim |
16:35:03 | * | yglukhov quit (Ping timeout: 240 seconds) |
16:36:38 | * | saml quit (Read error: Connection reset by peer) |
16:38:02 | * | saml joined #nim |
16:42:00 | cheatfate | Araq, i'm stuck and lost at least 10 hours on this problem, please help me https://gist.github.com/cheatfate/2af43c76a47f891d3aa292ace74fa68f |
16:42:10 | * | fowl quit (Ping timeout: 272 seconds) |
16:42:50 | * | deavmi quit (Ping timeout: 250 seconds) |
16:44:08 | * | matkuki quit (Quit: ChatZilla 0.9.92 [Firefox 46.0.1/20160502172042]) |
16:47:49 | * | yglukhov joined #nim |
16:58:26 | * | fowl joined #nim |
17:14:39 | * | ics joined #nim |
17:18:17 | Arrrr | expr -> untyped |
17:19:13 | * | PMunch joined #nim |
17:19:24 | * | brson joined #nim |
17:19:30 | Araq | cheatfate: Arrrr is right. |
17:19:45 | cheatfate | Araq, doesnt help... |
17:20:15 | cheatfate | same error |
17:20:38 | Araq | overloaded templates need to agree on the position of 'untyped' |
17:20:47 | Araq | (we could make the compiler check for that) |
17:23:08 | * | krolik quit (Ping timeout: 250 seconds) |
17:26:11 | cheatfate | so is there resolution for my problem? or i need to find another way? |
17:27:35 | Araq | did you really read what I wrote? |
17:28:20 | Araq | use untyped instead of expr. and be consistent about it, and then it really should work. |
17:28:27 | Arrrr | Maybe you can try with {.dirty.}. Also, at this point i dont think you need .inject. |
17:28:54 | cheatfate | Araq, it not works at all with `expr` or `untyped` |
17:29:00 | cheatfate | let me remove inject |
17:30:02 | Araq | otherwise you need to give me something I can compile |
17:31:20 | cheatfate | Araq, when i trying to make something you can compile everything is compiling fine, but in some cases i've got a problem |
17:31:54 | Araq | ah! yeah, it's when you use it in generics |
17:32:59 | Araq | then you need a 'mixin adata' in the generic |
17:33:20 | Araq | so that the compiler knows it'll be introduced after generic instantiation |
17:33:39 | Araq | sucks, I know, but I never found a better solution for this problem |
17:34:07 | cheatfate | so i need to declare adata and then mixin it in template? |
17:34:19 | cheatfate | or i can just mixin value? |
17:34:55 | Araq | in the generic where you instantiate your template, you need a 'mixin adata' statement |
17:35:05 | cheatfate | because simple `mixin value` in template body not working also |
17:35:43 | Arrrr | the heck |
17:36:11 | Arrrr | Embrace dirty |
17:36:14 | * | Bruh left #nim ("I'll think about it") |
17:36:26 | Araq | Arrrr: dirty doesn't help. |
17:36:59 | cheatfate | Araq, but i dont want to declare adata, template can make it for me |
17:37:17 | Araq | in the longer run we might need to do withData(p.selector, var adata, fd) do so that everybody (incl the compiler) knows that 'adata' is introduced by the template |
17:38:39 | cheatfate | i dont understand you Araq, really... so i will try to find another way and try to avoid templates in future... |
17:38:54 | Araq | why? |
17:39:04 | Araq | what's wrong with the 'mixin' statement? |
17:39:44 | cheatfate | because i dont understand where i need to put `mixin adata` so i got `Error: invalid expression: 'mixin adata'` |
17:39:58 | Araq | use it a statement |
17:40:46 | cheatfate | Araq, i'm not a compiler guru... i dont understand you trying to explain to me |
17:41:35 | MrFlibble | ldleworker: out of idle curiosity I did a google search for mentions of my lib and saw that you were interested in it... |
17:42:17 | * | ozra_ left #nim ("Konversation terminated!") |
17:49:17 | * | nsf joined #nim |
17:57:52 | Araq | cheatfate: ah well, never mind, it's a compiler bug. |
17:58:05 | Araq | I had an older version of the spec in mind :P |
18:00:14 | Araq | let's see if I can reproduce it. |
18:01:52 | * | Demon_Fox joined #nim |
18:04:38 | Araq | yep. |
18:11:43 | Araq | cheatfate: https://gist.github.com/Araq/874f689a22fa2375ffee9335a0ac32d0 works for me |
18:11:55 | Araq | what are you doing differently? |
18:14:45 | Araq | so no, I cannot reproduce. |
18:23:26 | cheatfate | Araq, i'm trying to instantiate [T] variable |
18:24:10 | cheatfate | i will try to write code |
18:34:25 | cheatfate | Araq, i'm trying to do something like this https://gist.github.com/cheatfate/eb5aaff111ca701387f2837638235f4a |
18:34:40 | cheatfate | Araq, but this code works |
18:34:46 | cheatfate | Araq, mine is not |
18:35:03 | cheatfate | Maybe because they are from different modules |
18:40:09 | * | mlitwiniuk quit (Ping timeout: 244 seconds) |
18:51:03 | cheatfate | this annoying i still can't reproduce it |
18:52:19 | Araq | does mixin help at all? |
18:57:06 | * | lubos_cz joined #nim |
18:57:37 | Araq | https://github.com/pragmagic/nimue4 this deserves more attention |
18:57:46 | * | lubos_cz quit (Remote host closed the connection) |
18:57:52 | * | lubos_cz_ joined #nim |
18:58:14 | * | lubos_cz joined #nim |
18:58:59 | dom96 | Araq: that's awesome |
19:00:46 | dom96 | also this https://github.com/pragmagic/NimPlatformerGame |
19:01:53 | dom96 | Pity it's not in Nimble |
19:26:28 | * | |meta joined #nim |
19:30:19 | * | BitPuffin quit (Read error: Connection reset by peer) |
19:30:47 | cheatfate | Araq, could you point me where you want to put `mixin adata` |
19:47:33 | cheatfate | Araq, this is what i'm trying to do, but for some reason in my code this get compilation error, but in this example not... https://gist.github.com/cheatfate/618766ff969e6ec4b206332fb29d86c6 |
19:48:58 | * | desophos quit (Ping timeout: 252 seconds) |
19:49:03 | * | pregressive quit (Remote host closed the connection) |
19:50:49 | cheatfate | i think this is strange annoying bug in compiler |
19:51:13 | Araq | cheatfate: for your example code |
19:51:25 | Araq | insert in line 49 |
19:51:32 | Araq | mixin adata |
19:52:30 | TheLemonMan | the nim-mode for emacs is unbearably slow for huge files :( |
19:53:11 | * | Arrrr quit (Quit: WeeChat 1.4) |
19:56:54 | cheatfate | Araq, and i got `templateshell.nim(49, 3) Error: invalid expression: 'mixin adata'` |
19:57:29 | cheatfate | and my last example compiles well without `mixin adata` |
20:01:52 | Araq | ok ok, the mixin is only valid in a generic |
20:02:13 | Araq | TheLemonMan: tell reactormonk about it |
20:02:55 | reactormonk | It's been a while since I've touched elisp |
20:03:25 | reactormonk | TheLemonMan, profiler-start /-report/-stop |
20:04:16 | TheLemonMan | reactormonk, the self-insert-hook's the main culprit |
20:16:14 | TheLemonMan | a mixture of font locking and indentation it seems |
20:18:22 | Araq | cheatfate: try 'koch temp --verbosity:3 c foo.nim' |
20:18:33 | Araq | where 'foo.nim' is the file you wanna compiler |
20:18:36 | Araq | *compile |
20:18:44 | Araq | and gist me the stack trace please |
20:26:54 | cheatfate | https://gist.github.com/cheatfate/2bd7d160b2b2a311024793728f76bf54 |
20:26:58 | cheatfate | Araq, https://gist.github.com/cheatfate/2bd7d160b2b2a311024793728f76bf54 |
20:27:21 | * | fredrik92 left #nim ("Leaving channel") |
20:28:09 | Araq | meh, just push your code into some branch and let me access it. |
20:28:40 | cheatfate | Araq, do you have linux? |
20:28:56 | Araq | yes and no, but it doesn't matter |
20:29:09 | Araq | it doesn't fail at runtime and I know about --os:linux |
20:37:28 | cheatfate | Araq, https://github.com/cheatfate/Nim/tree/helpmeAraq, you just need to compile asyncdispatch.nim |
20:37:57 | * | Matthias247 joined #nim |
20:40:15 | * | themagician joined #nim |
20:45:25 | * | TheLemonMan quit (Quit: "It's now safe to turn off your computer.") |
20:47:37 | * | yglukhov quit (Remote host closed the connection) |
20:48:55 | * | filwit joined #nim |
20:49:56 | filwit | dom96: hey, have you ever tried to upload a file (<input type="file" ...>) via Ajax using POST with Jester? |
20:50:56 | Araq | cheatfate: |
20:51:12 | dom96 | filwit: A while ago I think I have. Is it not working? |
20:51:16 | Araq | ioselectors.nim |
20:51:25 | Araq | line 1989 |
20:51:31 | dom96 | filwit: I've got this in the tests: https://github.com/dom96/jester/blob/master/tests/alltest.nim#L81 |
20:51:32 | filwit | I kept getting either a 502 bad gateway error, or Jester would crash.. I can work around that for now using a Submit button, but really need it in the future |
20:51:49 | dom96 | but Ajax is a bit different I suppose |
20:51:59 | Araq | one of your withData is not consistent with the others and omg you should have fewer of these :P |
20:52:03 | dom96 | Write me a quick test case and I will investigate :) |
20:52:34 | filwit | dom96: yeah it works fine with a Submit button on the Form.. but Ajax is different.. |
20:52:48 | cheatfate | Araq, you can comment it and this doesnt help |
20:53:06 | filwit | dom96: I can't right now, I'm at work.. I just wanted to logon real quick and see if you'd tried it before and maybe had some insight on it |
20:53:10 | * | dom96 really needs to set up automatic tests for jester |
20:53:10 | Araq | it does, the compiler than crashes with something else :P |
20:53:34 | filwit | dom96: I'll write a test for you when I'm home though |
20:53:39 | dom96 | filwit: I see. No, sorry. Make sure to at least create a bug report when you get a chance, even if it is just "Ajax file upload doesn't work" |
20:53:52 | dom96 | a test would be great |
20:53:57 | filwit | dom96: k |
20:54:18 | cheatfate | Araq, yeah i've got https://github.com/cheatfate/Nim/tree/helpmeAraq |
20:54:28 | cheatfate | Araq, sorry missclick i got SIGSEGV |
20:54:49 | cheatfate | but yeah its just result of my 12hours fight with this bug |
20:55:25 | * | yglukhov joined #nim |
20:58:12 | Araq | don't worry, I'm on it. |
20:58:24 | Araq | and you should have taken some break earlier :P |
21:05:50 | Araq | fd_180259: ["sfUsed", "sfExported", "sfGlobal"], [], ["ioselectors.nim", 1201, 13], skTemplate |
21:06:09 | Araq | your code is really messy :P |
21:07:29 | Araq | cheatfate: try 'nim devel' |
21:07:42 | Araq | it tells you your next error properly, you have an 'fd' template |
21:11:35 | cheatfate | Araq, thank you for help, now i got it |
21:11:51 | Araq | no need to thank me. |
21:12:24 | Araq | but please the next time, ask me earlier and do something productive while i'm not available |
21:17:38 | * | der-land1 quit (Read error: Connection reset by peer) |
21:18:04 | * | der-landgraf joined #nim |
21:24:36 | * | Parashurama quit (Ping timeout: 276 seconds) |
21:25:11 | dom96 | anybody here got any graphic design skills? |
21:26:27 | * | xet7 quit (Quit: Leaving) |
21:31:40 | dom96 | well even if you don't, any ideas how to improve this? http://imgur.com/Bzif4p4 |
21:37:48 | * | desophos joined #nim |
21:37:54 | * | der-landgraf quit (Quit: WeeChat 1.5) |
21:38:30 | * | saml quit (Quit: Leaving) |
21:38:34 | * | der-landgraf joined #nim |
21:46:47 | cheatfate | dom96, from my old work i know one `designer rule` you can't use more than 3 types of fonts on one page/picture or something |
21:46:54 | cheatfate | here we have 4 |
21:47:04 | cheatfate | left part of you picture is fine |
21:47:11 | cheatfate | but right picture needs some improvement |
21:47:23 | * | fastrom joined #nim |
21:47:28 | cheatfate | and please do not use more than 2 font types |
21:47:49 | dom96 | meh, I only use helvetica. |
21:47:53 | dom96 | I don't know what that logo uses |
21:48:04 | dom96 | the other difference is only in size and color |
21:48:11 | cheatfate | but you have 3 sizes and weights of helvetica |
21:48:34 | dom96 | I have 3 sizes, yes. Weights are the same. |
21:49:25 | * | lubos_cz quit (Ping timeout: 250 seconds) |
21:49:25 | * | lubos_cz_ quit (Ping timeout: 250 seconds) |
21:50:54 | cheatfate | also sponsor names and `and many more` is very pale |
21:55:00 | * | lubos_cz_ joined #nim |
21:55:01 | * | lubos_cz joined #nim |
21:55:06 | * | lubos__ joined #nim |
21:56:45 | * | filwit quit (Read error: Connection reset by peer) |
21:58:32 | * | Salewski joined #nim |
21:59:30 | dom96 | cheatfate: do you think I should just remove the names and "and many more"? |
22:00:06 | dom96 | it will look kind of empty then though |
22:00:46 | Salewski | Is nesting of the new multiline coments allowed, something like #[ xxx #[ xxx ]# www ]# ? |
22:01:37 | Araq | Salewski: yes |
22:01:46 | cheatfate | dom96, you are right, but i could not help you with it |
22:01:49 | Salewski | Great, thanks. |
22:01:59 | * | lubos_cz quit (Ping timeout: 250 seconds) |
22:02:02 | * | Salewski quit (Client Quit) |
22:02:24 | * | lubos__ quit (Ping timeout: 250 seconds) |
22:02:25 | * | lubos_cz_ quit (Ping timeout: 250 seconds) |
22:11:52 | * | lubos_cz joined #nim |
22:11:52 | * | lubos_cz_ joined #nim |
22:11:59 | * | lubos__ joined #nim |
22:15:45 | * | Mat4 joined #nim |
22:15:48 | Mat4 | hello |
22:16:36 | Araq | hi |
22:18:49 | * | woadwarrior quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
22:24:50 | Mat4 | As things stand today, I'm able to start working on these Rim project from 20.6 on |
22:25:42 | Mat4 | probably it's possible to discuss some details with you beside programming ? |
22:26:20 | * | lubos__ quit (Remote host closed the connection) |
22:26:20 | * | lubos_cz quit (Remote host closed the connection) |
22:26:20 | * | lubos_cz_ quit (Remote host closed the connection) |
22:26:39 | * | lubos_cz joined #nim |
22:30:31 | * | Trustable quit (Remote host closed the connection) |
22:30:47 | Araq | sure |
22:31:02 | Mat4 | fine |
22:31:06 | Mat4 | thanks |
22:36:42 | Mat4 | what's the future strategy for supporting unsigned arithmetic and logic operations ? |
22:41:51 | * | mcc joined #nim |
22:42:05 | mcc | I am looking at the basic2d module can you help me understand why the type name is Point2D but the constructor is point2D? |
22:42:42 | dom96 | because type names by convention should start with an uppercase letter |
22:42:51 | dom96 | whereas procedures shouldn't |
22:43:12 | dom96 | the basic2d module should call the constructor initPoint2D or newPoint2D though (depending on whether it's a ref or not) |
22:43:17 | cheatfate | Araq, thanks you we got even 50% faster asyncdispatch then previous version... |
22:43:58 | mcc | dom96 thanks. so if i said Point2d(x: 3, y:6) that would be correct? |
22:44:04 | cheatfate | 353.47us avg request response time for asynchttpserver |
22:44:22 | mcc | Because then I'm calling the constructor not the convenience proc? |
22:44:23 | dom96 | mcc: sure |
22:44:23 | cheatfate | for my linux in vm |
22:44:26 | mcc | cool |
22:51:38 | Araq | Mat4: I'm open to your suggestions. |
22:51:53 | Araq | I have no strategy except fixing bugs for these. |
22:56:37 | Mat4 | restrict the type system to integers of word width |
22:59:02 | Mat4 | and add support for overflow and borrow detection |
23:04:54 | Mat4 | you can also take a look here: http://resources.sei.cmu.edu/library/asset-view.cfm?assetid=9019 |
23:12:08 | * | woadwarrior joined #nim |
23:12:52 | * | Mat4 quit (Quit: Leaving) |
23:15:30 | mcc | If I have defined an object, is there a way to provide "default" values for certain members if the user did not include those keys when calling the constructor? Or is the way to do that to make a proc? |
23:15:41 | Araq | make a proc. |
23:18:21 | mcc | ok |
23:24:26 | mcc | am i correct that there is no default-argument / call-with-named-parameter syntax? just argument-type dispatch? |
23:24:41 | * | Jesin quit (Quit: Leaving) |
23:25:28 | Araq | foo(bar=3, baz=44, x, y) |
23:26:02 | * | ^aurora^ joined #nim |
23:26:42 | * | Jesin joined #nim |
23:28:06 | mcc | ok, and testing i see that this works with default arguments. cool. |
23:32:06 | cheatfate | Araq, sizeof() on type with [T] is not possible, yes? |
23:32:39 | Araq | why not? |
23:33:22 | Araq | it's just that the compiler doesn't know sizeof(myobj) because it's too risky to pretend to know C's alignment rules etc |
23:35:15 | cheatfate | Error: cannot evalutate 'sizeof' because type is not defined completely |
23:40:09 | * | bjz_ quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
23:40:19 | cheatfate | looks my own error |
23:58:58 | * | Matthias247 quit (Read error: Connection reset by peer) |
23:59:13 | * | yglukhov quit (Remote host closed the connection) |
23:59:41 | * | lubos_cz quit (Ping timeout: 240 seconds) |