<< 03-06-2016 >>

00:12:15*desophos quit (Ping timeout: 244 seconds)
00:23:40girvodumb q that I can't seem to find the answer for: easy way of iterating over an object's k=>v pairs?
00:26:02girvoI've got a 512 byte header object I want to write out to a file
00:26:28girvohttp://hastebin.com/agedututuv.nim
00:26:42girvoThe Record object is what I want to write out
00:27:15kieraccording to the stdlib marshal module, 'for key, val in fields(obj)' is a thing
00:27:23kierhttps://github.com/nim-lang/Nim/blob/devel/lib/pure/marshal.nim#L60
00:27:53girvofields()! perfect
00:27:55girvoThanks kier :)
00:28:02kierfields comes from typoinfo
00:28:03kierhttp://nim-lang.org/docs/typeinfo.html#fields.i,Any
00:28:11kiertypeinfo, even.
00:28:41girvoThanks so much, helps heaps
00:30:48Araqgirvo: don't use typeinfo, use fieldPairs from system. much faster.
00:30:59*yglukhov joined #nim
00:33:06kierah, didn't know that existed
00:33:39kierone 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:08girvoAraq: beautiful, thank you
00:40:29girvoI swear every time I need some feature, it already exists heh. This is why I keep IRC open ;)
00:43:33girvoOops I broke the compiler attempting to write out my object's array[100, char] value
00:43:49girvoSIGSEGV: Illegal storage access. (Attempt to read from nil?)
00:55:13Araqtautologico: ok, I wrapped it, will upload it to Nimble tomorrow.
00:55:18*yglukhov joined #nim
00:55:29Araqalso have c2nim'ed an example.
01:00:00*yglukhov quit (Ping timeout: 276 seconds)
01:02:59girvoWhere should I be looking for a way to convert a string to an array[100, char]?
01:08:27*chemist69 joined #nim
01:08:34AraqsetLen(s, 100), cast[ptr array[...]](addr(s[0])
01:08:58tautologicothat'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:27girvoCheers Araq
01:30:39girvoCute, that totally works!
01:30:40girvohttp://hastebin.com/ukowodenor.nim
01:31:35girvoOops I spoke too soon, and probably did something wrong here
01:31:48*yglukhov joined #nim
01:31:51girvohttp://hastebin.com/uzuherawop.sh
01:33:18girvoCompilation to C seems to work, but the compilation _of_ C fails
01:33:47girvoOh man. Ignore me, I think that's my fault.. hold on
01:34:05girvowait, 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:06AraqI 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:56girvoAraq: right, my bad on that one
02:39:57girvo"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:05girvoOh 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:35dom96Araq: Should we add add a deprecated `random` into `math`?
10:58:02Araqno, 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:10dom96ok, but it will break a lot.
11:24:38dom96Araq: 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:48dom96or maybe I should pass 'addr MyRefObj[]' instead of casting?
11:26:03Araqcasting is more readable IMO
11:26:09dom96ok
11:26:10Araqand yes, that's right.
11:28:10*cheatfate quit (Read error: Connection reset by peer)
11:28:27*cheatfate joined #nim
11:28:46ArrrrCant nim auto unref on importc procs interaction?
11:30:26Araqhow would that work?
11:30:45Araqthe point is to pass ownership to C for an undetermined amount of time
11:31:11Araqthat's not "auto"able in any sane way.
11:32:42Arrrrhahah
11:33:59Araqdom96: you also need to show "protect" for your concurrency chapter
11:34:21Araqand then more people need to buy your book, because protect is not documented yet.
11:34:45pigmejlol :D
11:34:49dom96Yeah, no. Won't be able to fit that in.
11:35:00dom96*You* need to read the book!
11:37:09Araqit's easy. instead of GC_ref / GC_unref you use protect() and dispose()
11:37:19Araqand then it's threadsafe.
11:42:26dom96I don't think I mentioned GC_ref/GC_unref
11:43:07Arrrris GC_* the definitive name?
11:45:50dom96Araq: seriously though, please read it, they're starting "production" already.
11:46:08Araqwhat?!
11:46:22Araqis it finished?
11:46:52dom96no, but they are going through chapters 1-6 and preparing them for the final book because they are "stable"
11:47:11dom96so making changes to those will become more difficult
11:48:42*Bruh joined #nim
11:52:31Araqokok
11:52:50dom96So 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:23sadgfgdfgsi
13:16:28*sadgfgdfgs left #nim (#nim)
13:16:58kierwords to live by.
13:16:58*fowl quit (Ping timeout: 272 seconds)
13:21:35MrFlibblethis is the first IRC channel to mention my lib!
13:22:17Araqyour lib is called 'i'?
13:22:29MrFlibbleno
13:22:30MrFlibbleneogfx
13:23:02Araqsorry to disappoint you, but nobody said 'neogfx'
13:23:13MrFlibblethey did in February according to Google search
13:23:55Araqcool. so create a Nim wrapper for it.
13:24:30MrFlibbleI 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:56euantorI 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:10Araqeuantor: it's called 'find'
13:34:37euantorAraq: 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:13arnetheduckIs the ReadEffect/WriteEffect stuff used?
14:10:24arnetheduck*IOEffect
14:29:44*euantor quit (Quit: Page closed)
14:47:39*Parashurama joined #nim
14:49:44ParashuramaAraq_: 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:05ParashuramaAraq_: And it could affect performance if it is a large enough object.
14:55:19AraqParashurama: yes.
14:57:40ParashuramaAraq_: Ok. It's not really a problem, for i in 0..list.high: list[i].addr
14:57:51Parashuramais just a proc away.
15:01:54*endragor quit (Ping timeout: 246 seconds)
15:03:40*nsf quit (Quit: WeeChat 1.4)
15:09:48Araqmitems?
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:02cheatfateeuantor, i think
15:28:28cheatfateAraq, 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:24ParashuramaAraq_: sorry internet problems. Yeah mitems can work for that too.
16:10:18*deavmi joined #nim
16:10:22deavmiHello o/
16:10:34deavmiI just had a random session of learning nim
16:10:52deavmiI played around with redis earlier because i was trying to get something to work
16:11:13deavmiand Then i found the nim redis library, made a few redis objects
16:13:08*BitPuffin joined #nim
16:14:01deavmiand made this: https://paste.rel4tion.org/4241285101062717440
16:14:11deavmiI felt so proud that I did all of that
16:14:24deavmiOf course i checked out redis.io but that was easy.
16:14:28Parashuramacheatfate: 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:30deavmichecking 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:00cheatfateAraq, 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:17Arrrrexpr -> untyped
17:19:13*PMunch joined #nim
17:19:24*brson joined #nim
17:19:30Araqcheatfate: Arrrr is right.
17:19:45cheatfateAraq, doesnt help...
17:20:15cheatfatesame error
17:20:38Araqoverloaded templates need to agree on the position of 'untyped'
17:20:47Araq(we could make the compiler check for that)
17:23:08*krolik quit (Ping timeout: 250 seconds)
17:26:11cheatfateso is there resolution for my problem? or i need to find another way?
17:27:35Araqdid you really read what I wrote?
17:28:20Araquse untyped instead of expr. and be consistent about it, and then it really should work.
17:28:27ArrrrMaybe you can try with {.dirty.}. Also, at this point i dont think you need .inject.
17:28:54cheatfateAraq, it not works at all with `expr` or `untyped`
17:29:00cheatfatelet me remove inject
17:30:02Araqotherwise you need to give me something I can compile
17:31:20cheatfateAraq, when i trying to make something you can compile everything is compiling fine, but in some cases i've got a problem
17:31:54Araqah! yeah, it's when you use it in generics
17:32:59Araqthen you need a 'mixin adata' in the generic
17:33:20Araqso that the compiler knows it'll be introduced after generic instantiation
17:33:39Araqsucks, I know, but I never found a better solution for this problem
17:34:07cheatfateso i need to declare adata and then mixin it in template?
17:34:19cheatfateor i can just mixin value?
17:34:55Araqin the generic where you instantiate your template, you need a 'mixin adata' statement
17:35:05cheatfatebecause simple `mixin value` in template body not working also
17:35:43Arrrrthe heck
17:36:11ArrrrEmbrace dirty
17:36:14*Bruh left #nim ("I'll think about it")
17:36:26AraqArrrr: dirty doesn't help.
17:36:59cheatfateAraq, but i dont want to declare adata, template can make it for me
17:37:17Araqin 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:39cheatfatei dont understand you Araq, really... so i will try to find another way and try to avoid templates in future...
17:38:54Araqwhy?
17:39:04Araqwhat's wrong with the 'mixin' statement?
17:39:44cheatfatebecause i dont understand where i need to put `mixin adata` so i got `Error: invalid expression: 'mixin adata'`
17:39:58Araquse it a statement
17:40:46cheatfateAraq, i'm not a compiler guru... i dont understand you trying to explain to me
17:41:35MrFlibbleldleworker: 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:52Araqcheatfate: ah well, never mind, it's a compiler bug.
17:58:05AraqI had an older version of the spec in mind :P
18:00:14Araqlet's see if I can reproduce it.
18:01:52*Demon_Fox joined #nim
18:04:38Araqyep.
18:11:43Araqcheatfate: https://gist.github.com/Araq/874f689a22fa2375ffee9335a0ac32d0 works for me
18:11:55Araqwhat are you doing differently?
18:14:45Araqso no, I cannot reproduce.
18:23:26cheatfateAraq, i'm trying to instantiate [T] variable
18:24:10cheatfatei will try to write code
18:34:25cheatfateAraq, i'm trying to do something like this https://gist.github.com/cheatfate/eb5aaff111ca701387f2837638235f4a
18:34:40cheatfateAraq, but this code works
18:34:46cheatfateAraq, mine is not
18:35:03cheatfateMaybe because they are from different modules
18:40:09*mlitwiniuk quit (Ping timeout: 244 seconds)
18:51:03cheatfatethis annoying i still can't reproduce it
18:52:19Araqdoes mixin help at all?
18:57:06*lubos_cz joined #nim
18:57:37Araqhttps://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:59dom96Araq: that's awesome
19:00:46dom96also this https://github.com/pragmagic/NimPlatformerGame
19:01:53dom96Pity it's not in Nimble
19:26:28*|meta joined #nim
19:30:19*BitPuffin quit (Read error: Connection reset by peer)
19:30:47cheatfateAraq, could you point me where you want to put `mixin adata`
19:47:33cheatfateAraq, 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:49cheatfatei think this is strange annoying bug in compiler
19:51:13Araqcheatfate: for your example code
19:51:25Araqinsert in line 49
19:51:32Araqmixin adata
19:52:30TheLemonManthe nim-mode for emacs is unbearably slow for huge files :(
19:53:11*Arrrr quit (Quit: WeeChat 1.4)
19:56:54cheatfateAraq, and i got `templateshell.nim(49, 3) Error: invalid expression: 'mixin adata'`
19:57:29cheatfateand my last example compiles well without `mixin adata`
20:01:52Araqok ok, the mixin is only valid in a generic
20:02:13AraqTheLemonMan: tell reactormonk about it
20:02:55reactormonkIt's been a while since I've touched elisp
20:03:25reactormonkTheLemonMan, profiler-start /-report/-stop
20:04:16TheLemonManreactormonk, the self-insert-hook's the main culprit
20:16:14TheLemonMana mixture of font locking and indentation it seems
20:18:22Araqcheatfate: try 'koch temp --verbosity:3 c foo.nim'
20:18:33Araqwhere 'foo.nim' is the file you wanna compiler
20:18:36Araq*compile
20:18:44Araqand gist me the stack trace please
20:26:54cheatfatehttps://gist.github.com/cheatfate/2bd7d160b2b2a311024793728f76bf54
20:26:58cheatfateAraq, https://gist.github.com/cheatfate/2bd7d160b2b2a311024793728f76bf54
20:27:21*fredrik92 left #nim ("Leaving channel")
20:28:09Araqmeh, just push your code into some branch and let me access it.
20:28:40cheatfateAraq, do you have linux?
20:28:56Araqyes and no, but it doesn't matter
20:29:09Araqit doesn't fail at runtime and I know about --os:linux
20:37:28cheatfateAraq, 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:56filwitdom96: hey, have you ever tried to upload a file (<input type="file" ...>) via Ajax using POST with Jester?
20:50:56Araqcheatfate:
20:51:12dom96filwit: A while ago I think I have. Is it not working?
20:51:16Araqioselectors.nim
20:51:25Araqline 1989
20:51:31dom96filwit: I've got this in the tests: https://github.com/dom96/jester/blob/master/tests/alltest.nim#L81
20:51:32filwitI 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:49dom96but Ajax is a bit different I suppose
20:51:59Araqone of your withData is not consistent with the others and omg you should have fewer of these :P
20:52:03dom96Write me a quick test case and I will investigate :)
20:52:34filwitdom96: yeah it works fine with a Submit button on the Form.. but Ajax is different..
20:52:48cheatfateAraq, you can comment it and this doesnt help
20:53:06filwitdom96: 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:10Araqit does, the compiler than crashes with something else :P
20:53:34filwitdom96: I'll write a test for you when I'm home though
20:53:39dom96filwit: 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:52dom96a test would be great
20:53:57filwitdom96: k
20:54:18cheatfateAraq, yeah i've got https://github.com/cheatfate/Nim/tree/helpmeAraq
20:54:28cheatfateAraq, sorry missclick i got SIGSEGV
20:54:49cheatfatebut yeah its just result of my 12hours fight with this bug
20:55:25*yglukhov joined #nim
20:58:12Araqdon't worry, I'm on it.
20:58:24Araqand you should have taken some break earlier :P
21:05:50Araqfd_180259: ["sfUsed", "sfExported", "sfGlobal"], [], ["ioselectors.nim", 1201, 13], skTemplate
21:06:09Araqyour code is really messy :P
21:07:29Araqcheatfate: try 'nim devel'
21:07:42Araqit tells you your next error properly, you have an 'fd' template
21:11:35cheatfateAraq, thank you for help, now i got it
21:11:51Araqno need to thank me.
21:12:24Araqbut 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:11dom96anybody here got any graphic design skills?
21:26:27*xet7 quit (Quit: Leaving)
21:31:40dom96well 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:47cheatfatedom96, 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:54cheatfatehere we have 4
21:47:04cheatfateleft part of you picture is fine
21:47:11cheatfatebut right picture needs some improvement
21:47:23*fastrom joined #nim
21:47:28cheatfateand please do not use more than 2 font types
21:47:49dom96meh, I only use helvetica.
21:47:53dom96I don't know what that logo uses
21:48:04dom96the other difference is only in size and color
21:48:11cheatfatebut you have 3 sizes and weights of helvetica
21:48:34dom96I 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:54cheatfatealso 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:30dom96cheatfate: do you think I should just remove the names and "and many more"?
22:00:06dom96it will look kind of empty then though
22:00:46SalewskiIs nesting of the new multiline coments allowed, something like #[ xxx #[ xxx ]# www ]# ?
22:01:37AraqSalewski: yes
22:01:46cheatfatedom96, you are right, but i could not help you with it
22:01:49SalewskiGreat, 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:48Mat4hello
22:16:36Araqhi
22:18:49*woadwarrior quit (Quit: My Mac has gone to sleep. ZZZzzz…)
22:24:50Mat4As things stand today, I'm able to start working on these Rim project from 20.6 on
22:25:42Mat4probably 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:47Araqsure
22:31:02Mat4fine
22:31:06Mat4thanks
22:36:42Mat4what's the future strategy for supporting unsigned arithmetic and logic operations ?
22:41:51*mcc joined #nim
22:42:05mccI am looking at the basic2d module can you help me understand why the type name is Point2D but the constructor is point2D?
22:42:42dom96because type names by convention should start with an uppercase letter
22:42:51dom96whereas procedures shouldn't
22:43:12dom96the basic2d module should call the constructor initPoint2D or newPoint2D though (depending on whether it's a ref or not)
22:43:17cheatfateAraq, thanks you we got even 50% faster asyncdispatch then previous version...
22:43:58mccdom96 thanks. so if i said Point2d(x: 3, y:6) that would be correct?
22:44:04cheatfate353.47us avg request response time for asynchttpserver
22:44:22mccBecause then I'm calling the constructor not the convenience proc?
22:44:23dom96mcc: sure
22:44:23cheatfatefor my linux in vm
22:44:26mcccool
22:51:38AraqMat4: I'm open to your suggestions.
22:51:53AraqI have no strategy except fixing bugs for these.
22:56:37Mat4restrict the type system to integers of word width
22:59:02Mat4and add support for overflow and borrow detection
23:04:54Mat4you 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:30mccIf 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:41Araqmake a proc.
23:18:21mccok
23:24:26mccam 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:28Araqfoo(bar=3, baz=44, x, y)
23:26:02*^aurora^ joined #nim
23:26:42*Jesin joined #nim
23:28:06mccok, and testing i see that this works with default arguments. cool.
23:32:06cheatfateAraq, sizeof() on type with [T] is not possible, yes?
23:32:39Araqwhy not?
23:33:22Araqit'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:15cheatfateError: 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:19cheatfatelooks 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)