<< 02-05-2015 >>

00:00:00ldleworkinside the condition is include_other_template(template_name, context_dictionary)
00:00:03onionhammerthat gets translated into if/else branch in nim
00:00:20onionhammerldlework you can call another proc
00:00:32ldleworkright
00:00:47ldleworkSo where does template inheritance come in
00:00:49ldleworknm
00:00:51onionhammeryour dictionary of templates would have to be compiled
00:01:01ldleworkits not a dictionary of templates
00:01:02onionhammeryou cant load them from a templates folder
00:01:09ldleworkits a dictionary of values that the template should use to render
00:01:25onionhammerok
00:01:32onionhammerwell you can definitely write something like your example
00:01:36ldleworkok :)
00:01:44onionhammerit would be fairly simple
00:01:57ldleworkI believe you. I think I was confused earlier
00:01:58onionhammerwhen I say it's compiled I dont mean that the string is generated at compile time and thats all u can use
00:01:59fowlSee how macros.quote is implemented
00:02:13ldleworkonionhammer: I think that's what I thought
00:02:39onionhammeri agree that would be pretty pointless :P
00:05:50onionhammerBlaXpirit-UA how would you write an html template with nimception?
00:05:57BlaXpirit-UAhttps://gist.github.com/BlaXpirit/067a7cce395f2146ebba
00:06:22BlaXpirit-UAhtml coming up
00:06:23onionhammerhm, theres no html in there
00:06:51ldleworkI don't understand it
00:07:22ldleworkIf you type 'yes' the first time, the template gets rendered, and it asks for input a second time?
00:07:23BlaXpirit-UAjust a convoluted proof of concept that it's not just all static
00:07:40BlaXpirit-UAldlework, if u type yes, you can type another line to put into the template
00:07:46ldleworknice dude
00:08:09ldleworkBlaXpirit-UA: so unlike jinja, even the runtime stuff is full Nim? (like the second readline)
00:08:19BlaXpirit-UAyes, it's just nim
00:08:21ldleworkthat's nuts
00:08:35BlaXpirit-UAit's same as onionhammer's but extremely short
00:08:48ldleworkso, the second readline... that too is compiled at compile time?
00:10:03ldleworkWhat's nice about this, is a template has a compiler checked function signature...
00:10:18BlaXpirit-UAok there is some problem with nimception and i can't produce an html example :D
00:10:26onionhammerldlework its the same w/ nim-template
00:10:26ldleworkCompared to python where you just pass a dictionary, and you may or may not be passing everything the template needs.
00:10:29BlaXpirit-UAoh nvm i just forgot how to use it
00:10:37onionhammertemplates basically are procs
00:10:50ldleworkonionhammer: I believe you. My 'nice' isn't to his in particular, but my ongoing cognitive revelation of how nim templates actually behave.
00:10:57ldleworkonionhammer: yeah that's really useful
00:11:03*JinShil joined #nim
00:11:37BlaXpirit-UAfinally https://gist.github.com/BlaXpirit/d3ca3f4acbd00783bc1f
00:11:42onionhammeryou get syntax highlighting for templates with nimlime too ;)
00:12:17onionhammerBlaXpirit-UA cool, what about C/C++?
00:12:20onionhammeror CSS
00:12:23onionhammerafk a bit
00:12:32BlaXpirit-UAcan do anything, it's just indentation-based
00:12:56BlaXpirit-UAwhich is an inconvenience more often than not
00:14:40BlaXpirit-UAwell actually no, it can't do anything. basing it on indentation is a huge limitation
00:14:49BlaXpirit-UAbut whatever, it's just a proof of concept
00:15:52Siecjeldlework: how is that different than jinja2?
00:16:32ldleworkSiecje: how is what
00:17:10SiecjeYou said "unlike jinja, even the runtime stuff is full Nim"
00:17:27ldleworkSiecje: jinja2 doesn't let you run arbitrary Python
00:17:29SiecjeOh you mean inside the templates you can just write Nim
00:17:31ldleworkinside the templates
00:17:33ldleworkyeah
00:17:44ldleworkI mean, most of the time that's a good thing I guess
00:17:48BlaXpirit-UAwell jinja could also just have arbitrary python
00:17:50SiecjeFor better or worse, yeah
00:17:55BlaXpirit-UAit was a voluntary choice to not
00:18:21ldleworkBlaXpirit-UA: yeah but doing it with arbitrary python in python would be messier than in nim
00:18:31BlaXpirit-UAcan't see how
00:18:48ldleworkyou have to manually set up the avilable scope to the things you eval and so on
00:19:12ldleworkthough I suppose here you're stitching strings together to generate code
00:19:27reactormonkwhat's the windows equivalent to EADDRINUSE?
00:20:30*BlaXpirit-UA quit (Quit: Quit Konversation)
00:28:30reactormonkfound it
00:33:03*JinShil quit (Quit: Konversation terminated!)
00:35:01*DSAFDSGFD quit (Quit: Page closed)
00:38:46*Sharcho quit (Quit: Leaving)
00:44:32*nimnoob123 quit (Quit: Page closed)
00:46:47SiecjeI have a file called name.nim with a proc inside. I'm trying from name import proc, but it says undeclared identifier 'proc'
00:47:05*FDGFGFGDFD joined #nim
00:47:22*xificurC_ joined #nim
00:47:31reactormonkSiecje, gotta export the proc via *
00:48:01*xificurC quit (Remote host closed the connection)
00:48:30Siecjereactormonk: Ty, I had the '*' is confusing in my notes from last time I played with nim, now I know why
00:50:16fowlFrom name import func1, func2
00:52:36*Trustable quit (Remote host closed the connection)
01:01:00*saml_ joined #nim
01:06:09*darkf joined #nim
01:19:39SiecjeI was planning on having the templates as nim code but I can't pass which file to import from https://dpaste.de/RdLJ#L1,4
01:20:23*JinShil joined #nim
01:32:54onionhammersec Siecje..
01:41:24*JinShil quit (Quit: Konversation terminated!)
01:47:14onionhammerSiecje https://gist.github.com/onionhammer/5bef227ffa5280f7da66
01:47:44onionhammerit's easier to work with strings than macros/templates though
01:49:40onionhammeradded a string version
01:50:49onionhammerbtw nim-template reindents your template, so you dont need to have it aligned all the way to the left
01:50:49*wb quit (Ping timeout: 264 seconds)
01:51:18reactormonkonionhammer, still gotta do the html escape dance
01:51:29onionhammerhtml escape dance?
01:51:51Siecjeonionhammer: I don't think that was my issue (not yet anyways) the problem was importing the template function
01:52:27onionhammerSiecje I just noticed you had your code with no indentation
01:52:33onionhammerjust a note
01:54:02Siecjeonionhammer: well they are in different files and the rest is a string?
01:54:27onionhammerright, i'm saying you can indent the string further
01:54:59SiecjeDoesn't that add whitespace to the string itself though?
01:55:24onionhammeryes but nim-templates automatically removes it
01:55:43onionhammerit uses the line with the least leading whitespace and re-indents the rest of the lines to match
01:55:52Siecjeokay thanks
02:09:13Siecjeonionhammer: How does the string get passed to the template?
02:09:13Siecjelayout.render(title):
02:09:13Siecje tmpl html"""
02:10:52onionhammerhttp://nim-lang.org/0.11.0/manual.html#macros-statement-macros
02:10:59onionhammerit's a nim macro
02:11:37onionhammersince you're kinda just starting out w/ nim, and it's not trivial, i would just stick to passing strings & using procs
02:11:45onionhammerlike the example in alternate.nim
02:19:36SiecjeIn view.nim I'm getting Error: cannot open 'templates'
02:24:27onionhammergist your code
02:34:01Siecjehttps://dpaste.de/4bC8#L3
02:34:26Siecjehttps://dpaste.de/4bC8#L3,49
02:37:55onionhammerare underscores in filenames allowed?
02:37:57onionhammeri dont think so.
02:45:42Siecjesame error
02:49:49*gokr_ quit (Ping timeout: 245 seconds)
02:49:49*Amrykid quit (Ping timeout: 245 seconds)
02:50:27onionhammerSiecje works for me
02:50:45onionhammeronce i got rid of the _'s and renamed the index proc to something else
02:50:53*Amrykid joined #nim
02:50:56onionhammerthe index proc and the index module makes its usage ambiguous
02:52:52*Valiance joined #nim
02:53:24Siecjeoh right
02:54:08Siecjehmm I'm still getting the templates error
02:55:38Siecjenimble install nim-templates fails https://dpaste.de/zD6P
02:57:29onionhammerdo `nimble search templates`
02:59:04Siecjesuccess it finds your github repo
03:00:06Siecjeokay I needed to install templates
03:00:36Siecjeonionhammer: thanks for your help
03:01:32onionhammernp
03:04:11*kjo1 joined #nim
03:06:17*Valiance quit (Quit: Page closed)
03:13:14*kjo1 left #nim (#nim)
03:14:09fowlIs master or devel the main branch of work now?
03:23:50reactormonk\o/ epc works - now I just need to make it give me a suggestion
03:28:49*BitPuffin|osx quit (Ping timeout: 250 seconds)
03:29:01SiecjeI see { content } on the page and not the inner template
03:34:01*Demon_Fox quit (Ping timeout: 250 seconds)
03:35:32*Demon_Fox joined #nim
03:35:42reactormonkI just can't tickle the nimsuggest to give me something :-/ Anyone got some data ready?
03:36:29reactormonknope, this one should work. hmm.
03:43:28*johnsoft quit (Ping timeout: 252 seconds)
03:43:36*johnsoft joined #nim
03:48:59reactormonkok, wtf. I'm calling
03:49:02reactormonk suggest.suggestionResultHook = proc (s: Suggest) =
03:49:03reactormonk results.add(s)
03:49:17reactormonkand when checking echo(isNil(suggestionResultHook))
03:49:23reactormonkover in suggest.nim, I get true
03:52:08*Demon_Fox quit (Ping timeout: 256 seconds)
03:53:45*Demon_Fox joined #nim
03:57:43*vendethiel joined #nim
04:02:15*RaphaelHythloday joined #nim
04:02:40RaphaelHythlodayI have a problem with the interpreter: I typed "var a: int" and got "
04:02:40RaphaelHythlodayNo command 'var' found, but there are 22 similar ones
04:02:40RaphaelHythlodayvar: command not found"
04:02:53*xificurC_ quit (Write error: Broken pipe)
04:03:00*xificurC joined #nim
04:04:06reactormonkRaphaelHythloday, yeah, we dropped interpreter support because it sucks
04:04:19reactormonksorry, gotta go with a test file and just nim -r c in behind
04:04:28RaphaelHythlodayOk
04:04:29reactormonkit's fast enough that you don't really know the difference
04:04:36RaphaelHythlodayThe flag should be removed then, though
04:04:37RaphaelHythlodaynim i
04:04:48RaphaelHythlodayIf it doesn't work
04:05:02RaphaelHythlodayAnd the code purged from the compiler, kept seperate in github
04:06:21reactormonksomeone can pull it from the git history if they want, I opened an issue on purging it, let's see
04:07:35reactormonkbut as mentioned, nim -r c test.nim is as fast as nim i - just gotta add that echo stuff
04:14:56*brson joined #nim
04:31:25*RaphaelHythloday quit (Ping timeout: 265 seconds)
04:32:03reactormonkAraq, https://github.com/Araq/Nim/issues/2634 blocks emacs stuff atm :-(
04:50:21onionhammerSiecje $ needs to be followed by a var or {}
04:50:39onionhammer$ { content } wont work, ${ content } or $content
04:50:48Siecjeahh
05:02:19*vendethiel quit (Ping timeout: 245 seconds)
05:15:30*ddl_smurf quit (Quit: ddl_smurf)
05:26:08*Siecje quit (Quit: Leaving.)
05:28:48*gsingh93 joined #nim
05:39:59*gsingh93 quit (Ping timeout: 276 seconds)
05:47:12*brson quit (Quit: leaving)
05:51:07*johnsoft quit (Ping timeout: 255 seconds)
05:51:15*johnsoft joined #nim
06:05:20*BlaXpirit joined #nim
06:13:41*synthmeat joined #nim
06:14:45*iamd3vil joined #nim
06:33:15*JinShil joined #nim
06:38:45*nimnoob123 joined #nim
06:39:02nimnoob123def- or fowl you around? https://github.com/nim-lang/sdl2/pull/42
06:40:22nimnoob123sound that when i was trying to compile w/ the latest commits - 'when not defined()' got changed to 'when defined()' :#
06:40:26fowlHey what doss this this fix exactly
06:40:32nimnoob123fixes the imports
06:40:46fowlFrom missing symbols?
06:41:14nimnoob123when def- added the sdl_static check he did a double when SDL_Static when the first check was meant to check for the dynamic libs
06:41:22fowlDo you have an up to date lib?
06:41:28nimnoob123so basically it's not checking anymore (yes)
06:42:00fowlOh I thought this just added deadcodeelim
06:42:35fowlSry for the confusion :p its merged
06:42:40nimnoob123+1
06:43:27fowlcheck out nimx
06:43:35nimnoob123yeah i was trying to compile and "can't import TTF_Init" etc... im like O_o lol
06:44:00nimnoob123what's nimx (going to go google)
06:45:04fowlhttps://github.com/yglukhov/nimx
06:45:35fowlhas its own TTF and image loading
06:46:11fowlim trying to get a screenshot
06:46:28nimnoob123neat, i'll check it out after im done testing this sound stuff im working on
06:50:15*saml_ quit (Quit: Leaving)
06:50:40fowlhttp://i.imgur.com/FTWt9CG.png
06:50:51nimnoob123nice
06:52:09fowlcompiles to ios, android or js too
06:53:03*oleg joined #nim
06:53:26*oleg is now known as Guest81147
06:55:00nimnoob123neat :)
06:59:22*MyMind quit (Quit: WeeChat 1.2-dev)
07:15:47*yglukhov_ joined #nim
07:33:41novistis there a way to define wide strings from literals? basically strings that would work with windows API, you know like L"utf-16le string here" in c/c++
07:49:06*Guest81147 quit (Quit: Page closed)
07:53:14*iamd3vil quit (Ping timeout: 276 seconds)
08:00:38*JinShil quit (Quit: Konversation terminated!)
08:17:39*wtw joined #nim
08:17:44*wtw left #nim (#nim)
08:17:49*wtw joined #nim
08:19:36*Ven joined #nim
08:28:04*HakanD_ joined #nim
08:30:07*Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
08:47:54*Ven joined #nim
09:04:15*yglukhov_ quit (Quit: Be back later ...)
09:06:06*milosn quit (Quit: leaving)
09:21:29*yglukhov_ joined #nim
09:21:35*yglukhov_ quit (Client Quit)
09:26:57*grncdr joined #nim
09:35:23*grncdr1 joined #nim
09:36:46*grncdr quit (Ping timeout: 272 seconds)
09:37:37*gokr_ joined #nim
09:42:15*iamd3vil joined #nim
09:43:26iamd3vilCan anyone tell me what type of archive format, zipfiles module can support?
09:45:39BlaXpiritiamd3vil, maybe... zip?
09:47:22*ir2ivps10 quit (Ping timeout: 255 seconds)
09:47:41HakanD_dom96: there is still a 0.9.6 milestone in github issues
09:51:25iamd3vilI am trying to open a Zip file and extract it. I get the following error "SIGSEGV: Illegal storage access. (Attempt to read from nil?)" But the Zip file contains files.
09:51:41iamd3vilWhat am I doing wrong?
09:52:27HakanD_You are probably not initializing something correctly
09:52:34HakanD_can't tell without looking at your code
09:53:23*wb joined #nim
09:53:53iamd3vilhere is my code: http://pastebin.com/ghkvG4wi
09:54:27*JinShil joined #nim
09:55:10*jholland quit (Quit: Connection closed for inactivity)
09:56:53*loz1 joined #nim
09:57:12*JinShil quit (Client Quit)
09:57:20*Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
09:58:58loz1hi guys, i have type declaration in library:
09:58:58loz1 Rect* = tuple[x, y: cint, w, h: cint]
09:58:58loz1but i get undeclared error on:
09:58:58loz1 var rect = Rect(1, 1, 10, 10)
09:59:47loz1looks like a stupid mistake, but i cant find it(
10:00:17def-loz1: var rect: Rect = (1, 1, 10, 10) should work, but the compiler doesn't like cint literals
10:00:36def-1.cint etc work, but that's not as nice of course
10:00:48*bluenote joined #nim
10:01:05def-tuple initialization is a bit bad still
10:01:10grncdr1is there a way to get nim to dump out the source after expanding macros?
10:01:24iamd3vilHakanD_: Any idea what I did wrong?
10:01:25grncdr1I assume there must be, but I'm not seeing it in the help when I run `nim`
10:01:37def-grncdr1: at the end of a macro you can do: echo result.repr
10:01:48grncdr1ah nice
10:01:49def-grncdr1: no other way I think
10:02:44grncdr1oh, except I was trying to get away with just templates :(
10:02:57def-iamd3vil: looks like the zipfiles module is just broken a bit
10:03:24def-grncdr1: I guess it could be added to the compiler rather easily
10:03:40HakanD_iamd3vil: it requires libzip2, I couldn't try it, dunno
10:03:56grncdr1def-: will consider diving into the compiler tomorrow I think
10:04:02grncdr1this is day 2 of nim for me :P
10:04:12loz1def-: your variant gives: Error: type mismatch: got ((int, int, int, int)) but expected 'Rect'
10:04:18def-grncdr1: Yep, changing the compiler is definitely for day 2, not day 1
10:04:31grncdr1;)
10:04:31HakanD_but judging from the existing T,P stuff, which is a depreciated convention, I seems nobody touched it for some time
10:04:46novistanyone happen to know if there is any difference between *I and *I64 operations? for example ModI vs ModI64. Seems unsigned integer operations make no distinction between I and I64, just signed ones. however from looking at compiler code i couldnt really tell if there is any difference.. would for example ModI magic work fine with 64 bit ints?
10:05:01def-loz1: right, because the compiler doesn't do auto-literal conversion in tuples yet. Needs to be "1.cint" etc, or the type could be int
10:09:12loz1def-: ok, ill try it
10:09:45loz1def-: it works, thanks)
10:10:03*HakanD__ joined #nim
10:13:14*HakanD_ quit (Ping timeout: 246 seconds)
10:14:46*Kingsquee quit (Quit: Konversation terminated!)
10:18:14*Ven joined #nim
10:19:05*Sembei joined #nim
10:37:20*banister quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
10:37:21*yglukhov_ joined #nim
10:40:14*gokr_ quit (Ping timeout: 245 seconds)
10:41:23*JinShil joined #nim
10:41:27*JinShil quit (Client Quit)
10:42:34*yglukhov_ quit (Ping timeout: 252 seconds)
10:43:59*gokr_ joined #nim
10:45:47*banister joined #nim
10:47:58*filcuc joined #nim
10:49:17*Matthias247 joined #nim
10:50:32FDGFGFGDFDlol tried to compile the new nim version and got ==> Error: execution of an external program failed; rerun with --parallelBuild:1 to see the error message
10:50:52FDGFGFGDFDi ran with --parallelBuild:1 and it completed
10:50:55FDGFGFGDFDlol
10:52:19BlaXpirito.o
10:52:29BlaXpiritbut u should probably update csources
10:52:59FDGFGFGDFDisnt csource just for boostrapping when u dont have a first nim version?
10:53:21BlaXpiritthat
10:53:24BlaXpiritis probably true
10:53:39FDGFGFGDFDanyway it worked without error with --parallelbuild:1
10:53:40BlaXpiriti dunno, i'm doing something weird with building, so updating csources helped me
10:53:41fowlIf your Nim is a few weeks old it shouldn't build
10:53:52FDGFGFGDFDok
10:54:08FDGFGFGDFDbut it worked
10:54:18novisti had same error, getting new csources fixed it
10:54:28fowlYou should buy a lottery ticket then friend
10:54:35fowllol
10:54:38loz1what should i write on case's else branch if i dont want to do anything?
10:54:47novistdiscard
10:55:10loz1novist: thank you)
10:56:32*banister quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
10:56:45*yglukhov_ joined #nim
10:57:43synthmeatfowl: just out of interest - why have case's else if it doesn't do anything?
10:58:25synthmeatloz1, not fowl. apologies.
10:58:39fowlGuarantee that every case is covered synthmeat
10:59:29synthmeatit's not gonna fall through?
10:59:39loz1synthmeat: ye, compiler wants me to cover all cases
11:00:04loz1and its kinda nice btw, reminds me ocaml
11:00:16synthmeatah, i see. didn't notice warning. builds though.
11:00:56synthmeatcould use some color in compiler output :)
11:01:07loz1well, i got an error "not all cases are covered"
11:01:12loz1not a warning
11:01:39fowlNo fall through on cases. If you cover every case you don't need else though
11:01:54synthmeat0.11 over here, not all cases covered, only warning
11:02:17synthmeat"Warning: use 'else: discard'; non-ordinal case without 'else' is deprecated [Deprecated]"
11:02:49fowlDunno what that means
11:03:29*BitPuffin|osx joined #nim
11:04:24loz1synthmeat: test_sdl2.nim(36, 7) Error: not all cases are covered
11:04:45loz1nim updated yesturday
11:06:09synthmeatthis is what i'm compiling with 0.11 to get that http://pastie.org/10124938
11:06:56*gokr_ quit (Ping timeout: 240 seconds)
11:07:20*synthmeat is just now on switch statement bit of tutorial :)
11:07:46*gokr_ joined #nim
11:08:27fowlsynthmeat, oh ok it used to be the case that else was optional for string cases since you cant cover every case
11:08:33fowli guess its deprecated now
11:10:36*OnO joined #nim
11:10:56*Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
11:11:28synthmeati agree with that change
11:12:22*seymour joined #nim
11:16:39*cryzed joined #nim
11:19:52*OnO is now known as ono
11:20:42FDGFGFGDFDyes more errors catched at compile time is a good thing
11:21:11synthmeata question about idioms - so, i should use parentheses only on function invocations?
11:26:01bluenoteI'm trying to "nimble update opengl" but I get "Error: unhandled exception: Name or service not known [OSError]"
11:26:30def-bluenote: same here, let's see
11:26:33bluenoteany ideas how to solve that? I recompiled nimble and performed "nimble update"
11:27:07bluenote"nimble install opengl" gives a json parsing error
11:27:45def-bluenote: ehm, "nimble update" doesn't take a name
11:27:56def-nimble update; nimble install opengl
11:28:26def-With "nimble update opengl" you tell nimble to update its packages database from the url "opengl" which obviously is no URL at all
11:29:03bluenoteyou are right: I though I'm supposed to do "nimble update <package>"
11:29:28synthmeatbluenote: i don't think you were counter-intuitive in thinking that should work
11:29:39bluenoteand note that "nimble update opengl" indead does break something because after that "nimble list" does no longer work
11:29:41*synthmeat is not using nimble yet though
11:29:58bluenoteyes, this makes sense than
11:30:16bluenoteseems to work fine now after "nimble update"
11:30:48def-bluenote: "nimble install <package>" updates the package
11:31:21def-yes, "nimble update opengl" first deletes the old packages.json, then tries downloading a new one
11:31:37FDGFGFGDFDis there plan for a float32 math library?
11:31:56*JinShil joined #nim
11:32:00def-FDGFGFGDFD: haven't heard of anything
11:33:49FDGFGFGDFDok i guess ill just wrap what i need then, opengl is all about float32 :(
11:36:55bluenotehm, is it possible to tell nimble to update to a certain commit hash? e.g. nim-glfw already has a commit making it 0.11 compatible but there is no tag to pull this version directly...
11:37:30dom96bluenote: nimble install nim-glfw@#hash
11:38:27bluenotedom96: great, thanks!
11:38:53BlaXpiritbluenote, in this case u may just use HEAD
11:42:58synthmeatblock breaking! awesome.
11:43:30*Ven joined #nim
11:47:03*Trustable joined #nim
11:47:10FDGFGFGDFDimo the slideshow on nim-lang.com should be 3 separate blocks, or at least redesigned... i visit the website often and i just saw that it was a slideshow with more than 1 slide today lol
11:47:37*Trustable quit (Remote host closed the connection)
11:48:37*Trustable joined #nim
11:49:29*wb quit (Ping timeout: 246 seconds)
11:50:24*Ven quit (Read error: Connection reset by peer)
11:51:36*ingsoc joined #nim
11:52:54fowlFunny someone just said it changes too fast
11:53:06fowlI thought it was slow
11:54:44*wb joined #nim
11:55:25BlaXpiriti think this person said it is too slow
11:55:58FDGFGFGDFDits like on a 10sec timer
11:56:12FDGFGFGDFDand the controls are all the way on the right T_T
11:57:05FDGFGFGDFDpast 2 second on the front page, you either scrolled, or clicked on a link imo
12:01:31FDGFGFGDFDfunction slideshow_enter() { clearTimeout(timer); } function slideshow_exit () { startTimer(16000); }
12:02:19*TEttinger quit (Ping timeout: 245 seconds)
12:02:24FDGFGFGDFDaint nobody got time fo dat
12:02:34BlaXpiritFDGFGFGDFD, i think u can make a pull request
12:04:39fowlI use the edit button on github for PRs all the time :(
12:05:04BlaXpirit:(
12:05:31*ono quit (Quit: My iMac has gone to sleep. ZZZzzz…)
12:06:07fowlcba to do the whole clone commit push thing
12:11:27*iamd3vil quit (Remote host closed the connection)
12:14:07*Ven joined #nim
12:20:17*Ven quit (Read error: Connection reset by peer)
12:25:04*novist is now known as r-ku
12:25:20*yglukhov_ quit (Read error: Connection reset by peer)
12:25:56*yglukhov_ joined #nim
12:48:25*filcuc quit (Quit: Konversation terminated!)
12:56:55*loz1 quit (Ping timeout: 250 seconds)
13:01:15*HakanD__ quit (Ping timeout: 250 seconds)
13:07:46r-kui dont get it.. how am i supposed to build compiler after i add new magic to it? i did it very carefully following example of another magic and it appears to be all ok, i build compiler, but then when i try to build something i get error about unknown added magic
13:11:26dom96where are you using this magic?
13:11:34r-kusystem.nim
13:12:05dom96I think you should test the magic outside of that module first.
13:12:16dom96what magic are you adding?
13:13:04r-kuUIntToStr
13:13:13r-kuguess name is pretty obvious
13:14:08r-kuhm, koch does not put newly compiled compiler to bin dir?
13:15:28r-kulooks like compiler/nim executable recognizes new magic, guess that solves it
13:16:27def-Why does UIntToStr need any magic? can't you import unsigned and use $?
13:17:02*vendethiel joined #nim
13:17:03*HakanD__ joined #nim
13:17:08fowlr-ku, use a symlink ;)
13:18:15fowlsymlinks solve all problems
13:18:20r-kuunsigned numbers are neglected to a point that makes me want to tear my hairs out
13:18:38r-kuconverting to string for uint64 is implemented in repr.min and it calls c_sprintf
13:18:44dom96r-ku: when developing the compiler use ./koch temp
13:18:51dom96then you will get nim_temp in the bin dir
13:19:03r-kuthanks for the tip
13:20:39*banister joined #nim
13:20:44r-kueither of you happen to know why there are separate magics for 64 bit ints? they do either same thing or just include explicit cast to int64. it does not make much sense
13:24:06fowlhave not looked into it myself
13:26:03r-kuasking because i want to know if its ok to remove them. my magic hacking basically was turning Int64ToStr to UIntToStr because Int64ToStr was totally redundant
13:34:24*grncdr1 quit (Quit: Leaving.)
13:34:34dom96sorry, no idea.
13:35:48*darkf quit (Quit: Leaving)
13:36:47Joe-Tdoes that compiler crash still happen on
13:37:16Joe-Thttps://github.com/Araq/Nim/issues/2518
13:38:05*banister quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
13:39:33Joe-Tthere's loads of "nkCharLit..nkInt64Lit:"
13:44:20*JinShil quit (Quit: Konversation terminated!)
13:47:00*yglukhov_ quit (Read error: Connection reset by peer)
13:47:33*yglukhov_ joined #nim
13:50:39*johnsoft quit (Ping timeout: 250 seconds)
13:51:00*johnsoft joined #nim
13:54:36*vendethiel quit (Ping timeout: 240 seconds)
13:57:39*Matthias247 quit (Read error: Connection reset by peer)
14:02:17*vendethiel joined #nim
14:03:31*milosn joined #nim
14:13:24*ddl_smurf joined #nim
14:25:15*vendethiel quit (Ping timeout: 256 seconds)
14:38:32*BitPuffin|osx quit (Ping timeout: 246 seconds)
14:51:26*r-ku is now known as novist
14:51:29*novist is now known as r-ku
14:51:42*r-ku quit (Quit: ZNC - http://znc.in)
14:52:46*r-ku joined #nim
15:13:29*banister joined #nim
15:13:33*banister quit (Max SendQ exceeded)
15:14:11*banister joined #nim
15:14:38*loz1 joined #nim
15:27:30*flaviu joined #nim
15:27:34flaviuhttps://gist.github.com/173615c7635f78495938
15:27:48flaviuIt runs and produces reasonable AST :D
15:29:33BlaXpiritso?
15:29:38FDGFGFGDFDis nimweb suposed to work on windows? i havent looked at the source, but i get this error--> [Error] cannot open: ticker.txt
15:30:07flaviuBlaXpirit: I don't have to mess around with the parser, this could technically be done with a macro.
15:30:21BlaXpiritok but it's not viable
15:30:56flaviuI'm not sure what you mean.
15:31:56BlaXpiritwell first of all you'd have to macro all your code
15:32:09flaviuAh, I see what you mean. I agree.
15:32:09BlaXpiritor am i missing some pragma/filter
15:32:36flaviuI think you can .push. .pop. macros, but, yes, this would go better in the compiler.
15:44:14*Sembei quit (Ping timeout: 272 seconds)
15:44:27*MyMind joined #nim
15:45:16*Ven joined #nim
15:53:03reactormonkr-ku, yeah, we treat unsigned as second-class, which is alright imo
15:54:21r-kuim not so sure about that
15:55:23reactormonkr-ku, you should only use unsigned ints for pointers
15:55:32reactormonk... or interacting with c programs
15:56:16r-kusee there is conflict right there. nim has terrific interfacing with c/c++ capabilities, but unsigned mess makes it pain in the ass
15:56:57reactormonkIt's recommended to use signed ints in nim.
15:59:00reactormonkmaybe write a macro that you can add to an importc'd proc that writes a wrapper proc that uses ints?
16:00:12reactormonkand why do you need magic for that btw? Normal $ not good enough because?
16:00:41*Ven quit (Read error: Connection reset by peer)
16:01:22r-kubecause normally compiler stringifies integer through proc in sysstr.nim (if name is right)
16:01:31r-kuand compiler makes call to it
16:01:50r-kusure there could be custom $ operator for uint64 but then it would be duplication of code
16:03:25*Ven joined #nim
16:04:59reactormonkisn't there a $ in unsigned?
16:08:52reactormonkNot sure what Araq's thoughts on hacking additional unsigned magic into the compiler are, but I would say it doesn't have too high of a chance of being accepted. If you want to make some unsigned contributions, please add them to the unsigned.nim file in the stdlib.
16:11:00FDGFGFGDFDfinally got nimweb working lol
16:11:04r-kuso basically copying code from one place to another, having two copies of same func is better solution?
16:11:28*HakanD__ quit (Ping timeout: 272 seconds)
16:14:07*banister quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
16:14:37*Ven quit (Ping timeout: 256 seconds)
16:16:45*gokr_ quit (Remote host closed the connection)
16:20:17*loz1 quit (Ping timeout: 256 seconds)
16:24:50reactormonkr-ku, what are you trying to do?
16:25:11r-kustringify 64bit unsigned int at compile time
16:25:14*wb quit (Ping timeout: 256 seconds)
16:25:39reactormonkah, I see.
16:26:43reactormonkwhy do you need that again exactly?
16:27:35reactormonkBlaXpirit, btw, I agree with bluenote
16:28:02BlaXpiritreactormonk, Arаq is one of the few who want Haskell's naming
16:28:21BlaXpirithaven't heard any reasons for it
16:28:50r-kujust trying random things. however it should work anyway
16:28:54reactormonkBlaXpirit, so switch it up
16:29:21BlaXpirit...
16:29:30BlaXpirithonestly i don't care anymore
16:29:39reactormonkI can't push to your PR ;-)
16:30:16r-kuis there a way to mix types at compile time? cast not working so im bit at loss there too
16:30:17BlaXpiritreactormonk, pretty sure u can make a PR to my PR
16:30:29*johnsoft quit (Ping timeout: 256 seconds)
16:30:45BlaXpiritbut please don't bother
16:30:56BlaXpiritr-ku, cast is not what you want
16:31:02*banister joined #nim
16:31:14*johnsoft joined #nim
16:31:17BlaXpiritcast is byte twiddling
16:31:25r-kuhow it should be done then? say i have int and i want to assign it to int8
16:31:40r-ku(at compile time)
16:31:55BlaXpiritthe basic recipe is
16:31:59BlaXpiritType(value)
16:32:14reactormonkBlaXpirit, we'll see.
16:32:17BlaXpiritstrange that you need to convert here
16:32:28BlaXpiritsome_int8 = int8(some_int)
16:32:59r-kuohh
16:33:14r-kushould have been obvious
16:50:54Araqr-ku: adding UIntToStr magic is perfect. removing the 64 bit variants too. go ahead please. :-)
16:51:19r-kuoh good to hear, thanks
16:51:52nimnoob123are there box2d bindings for nim?
16:52:31BlaXpiritnimnoob123, i don't think so
16:52:41BlaXpiritchipmunk is better anyway
16:53:00nimnoob123never heard of chipmunk
16:56:13*filcuc joined #nim
16:56:35*ingsoc quit (Quit: Leaving.)
16:59:16*johnsoft quit (Ping timeout: 240 seconds)
17:01:47Araqbbl
17:03:38*Strikecarl joined #nim
17:10:16*Strikecarl quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
17:11:58FDGFGFGDFDhttps://github.com/Araq/Nim/pull/2639
17:13:36FDGFGFGDFDi think its a simple fix for the slideshow problems, instead of fiddling with de timers etc
17:13:46*BitPuffin|osx joined #nim
17:16:02bluenoteBlaXpirit: are you still there?
17:16:07BlaXpirithi
17:16:51*ingsoc joined #nim
17:17:02bluenotehi! I'm just studying your maybe[t] implementation. Looks really promising. I'm a huge fan of your ?= template
17:17:03*filcuc quit (Quit: Konversation terminated!)
17:17:24bluenoteone question regarding your naming convention suggestions though:
17:17:45bluenotewhat is the difference between a.get, and a.get(b) ?
17:18:06BlaXpiritnone.get -> exception none.get(x) -> x
17:18:18BlaXpiritbluenote, is that unclear from docs?
17:18:30*gsingh93 joined #nim
17:18:41bluenotehm, then I was expecting unsafeGet to be get :)
17:19:05BlaXpiritnone.unsafeGet -> your computer explodes
17:19:13bluenote;)
17:19:34bluenoteI mean: There is no safe get without offering an alternative...
17:20:11bluenoteso I just don't see the reason for get, unsafeGet, get(default)
17:20:39BlaXpirityou'll have to be clearer than that
17:21:14bluenote"get" alone cannot be safe
17:21:55bluenoteand thus equivalent to unsafeGet ?
17:22:41BlaXpiritexceptions are safe
17:22:48BlaXpiritthey can't blow up your computer
17:23:59bluenoteoh, you _really_ mean this kind of unsafe :)
17:24:45bluenoteI wasn't expecting this. "unsafe" to me was suggesting "this function may throw"
17:25:16BlaXpiritwell no, that's probably impossible to blow up a computer, but it's just null pointer dereference
17:25:49bluenoteyes, I see
17:26:54bluenotethe average functional language just don't has this type of unsafe
17:27:49bluenotegotta think about it a bit more
17:28:40BlaXpiritgood thing you didn't see https://github.com/BlaXpirit/Nim/blob/954c57ad/lib/pure/optionals.nim
17:28:48bluenotewhat I don't like is that "get" and "get(default)" have the same name, although they are semantically extremely different, since the first is "unsafe" (=can throw) while the second is perfectly safe
17:29:35bluenoteI did! And I'm glad to see that you got rid of the "nil implies None" semantic
17:29:48BlaXpiritwell actually you could opt out of it
17:29:49bluenotethis would definitely cause trouble
17:30:29bluenoteyes, and it might make sense in certain performance critical situations
17:31:39*Demon_Fox quit (Ping timeout: 250 seconds)
17:32:29bluenotebut I think the general motivation for Option[T] is type safety -- if performance matters, I can always opt out
17:33:37bluenotecurrently I would probably vote for get + uncheckedGet + getOrElse(default)
17:34:37BlaXpiritD:
17:35:03bluenotebtw: usually there is also a function to inject another option:
17:35:55*NimBot joined #nim
17:36:13bluenoteoptionA.getOr(optionB), where optionB is not a default of type T but another Option[T]
17:36:55BlaXpiritbluenote, that is currently present
17:37:06FDGFGFGDFDgetOrElse is ugly lol
17:37:16bluenotebut this makes probably only sense with Scala's optional parenthesis: o1 getOr o2 getOr o3 getOrElse somedefault
17:37:31bluenoteugly be explicit
17:37:48bluenoteit is?
17:39:33bluenoteoh yes, the overloaded or
17:41:00bluenotenot a big fan of overloading `or` here, since this removes the possibility to overload `or` for Maybe[bool]
17:41:43bluenotewhich might be handy in situations where you have to evaluation conditions of bools which are all wrapped in Options
17:42:14FDGFGFGDFDi think a standard function would be better than overloading or
17:43:36bluenotethis would give for instance: some(false) or some(true) == some(false) which a user may write accidently when working with Maybe[bool]
17:43:37*flaviu quit (Remote host closed the connection)
17:46:47FDGFGFGDFDa default map function on maybe would be nice to have too imo
17:47:07FDGFGFGDFDon option* sorry
17:47:49bluenoteFDGFGFGDFD: yes, at first I was also missing this a lot
17:48:06FDGFGFGDFDmap f nothing -> nothing , map f just x -> just f x
17:49:20bluenotebut currently mapping itself is not a very common in the standard library, and there even is no flatMap
17:52:51FDGFGFGDFDpattern matching would be really fun to have too
17:53:03FDGFGFGDFDim spoiled by haskell lol
17:53:18bluenoteme too
17:54:52bluenotefor the maybe monad the ?= template actually suffices: if x ?= someOptX: <stmt using x, if someOptX was defined> else: <stmt otherwise>
17:54:55Araqbluenote: afaict Nim doesn't return 0 when C compilation fails
17:55:34bluenoteAraq: I would have been surprised if it really does, but that is what I got
17:55:48bluenoteI'll have to check again what could have went wrong here...
17:55:59Araqdunno about 'nimrun' though
17:57:08bluenotein fact I modified nimrun, placed an echo of the compiler exit immediately after the compilation to double-check...
17:58:00*Demon_Fox joined #nim
17:59:40*skyfex joined #nim
18:00:16bluenoteAraq: Now, I triple-checked and I have found the error, stupid me, "immediately after the compilation" ...
18:00:50bluenotewhat nimrun does: compile + parameter shift + check status
18:01:23*saml_ joined #nim
18:01:24bluenoteinteresting that the parameter shift apparently maintains the error code in some cases
18:01:40bluenoteso I did not see this issue with other compilation errors
18:02:13bluenoteI
18:02:20bluenote'll close the issue...
18:03:24*filcuc joined #nim
18:03:48Araqyay
18:10:40*vendethiel joined #nim
18:26:23*polkm joined #nim
18:26:34polkmhow hard would it be to make a nim port of glm?
18:26:54*filcuc_ joined #nim
18:27:34*filcuc quit (Ping timeout: 255 seconds)
18:28:20def-polkm: I guess you mean this: http://glm.g-truc.net/0.9.6/index.html
18:28:24def-polkm: port or wrapper?
18:30:07polkmyeah thats the one, and I guess i mean bindings
18:30:42def-Urhonimo is a wrapper of a quite big C++ library, so your chances are good: https://github.com/3dicc/Urhonimo
18:34:29*vendethiel quit (Ping timeout: 250 seconds)
18:34:47bluenote@polkm: I have something like that on my todo list
18:36:40onionhammeraraq have you looked into a libgccjit or cling based backend?
18:37:28*filcuc_ quit (Ping timeout: 255 seconds)
18:37:31*grncdr joined #nim
18:40:33*filcuc_ joined #nim
18:40:46nimnoob123is there a way to do something like: nim c "-d:one,two,three" or -d:"one,two,three" or would I have to do: nim c -d:one -d:two -d:three every time
18:41:16*bluenote quit (Ping timeout: 246 seconds)
18:44:00*vendethiel joined #nim
18:44:44fowlPut it in a Nim.cfg file nimnoob123
18:44:53fowlThen you don't have to mess with it
18:45:26fowlThey have to be separate tho
18:46:54*johnsoft joined #nim
18:48:20nimnoob123hmm yeah that'd work, going to test that in a bit
18:58:14*gsingh93 quit (Ping timeout: 256 seconds)
19:11:06*ingsoc quit (Quit: Leaving.)
19:12:00*lakurei joined #nim
19:13:08lakureiHi. I'm trying nim for a future project and made a small benchmark as a test.
19:13:15lakureiHere's the code: http://pastebin.com/raw.php?i=xxDx02q6
19:13:56lakureiI would like to know if I did something wrong that could skew the result.
19:14:02def-lakurei: so, how's it doing?
19:14:13lakureiCurrently, this is twice as fast as the Java ( -server !!!) version.
19:14:31lakureiIs nim doing something incredibly clever that won't scale to bigger programs or is this really the performance to expect?
19:15:08def-Let me take a look
19:15:18def-but generally top performance is what I expect of Nim
19:15:43lakureiMy times are: 1.4s (nim), 2.2s (JDK 8, -server), 3.4 (.NET, Microsoft runtime), 6.9s (Dlang)
19:15:43def-I have a few benchmark links down here if you're interested: https://github.com/def-/nim-benchmarksgame
19:16:16def-lakurei: Is it intentional that your intcache has 1025 values?
19:16:47lakureiYes, it's the closest thing to the actual program I want to write (an interpreter, it will cache 1024 ints too to avoid stressing the gc).
19:17:11lakureiBut I tested with other sizes.
19:17:18def-I think GCC is doing some great optimization work here. With GCC I get 1.3 s runtime, with clang 3.1 s
19:17:19*Ven joined #nim
19:17:21grncdrhow does one forward-declare a proc?
19:17:27lakureiIn this particular program is doesn't matter that much beyond size 5+.
19:17:31def-grncdr: proc foo(x: int)
19:17:41grncdrdef-: no return type then?
19:17:47def-grncdr: also add the return type
19:17:50onionhammerlakurei wheres the rest of the code?
19:17:53def-grncdr: but no "=" and body of course
19:17:59lakureionionhammer: the java version?
19:18:09onionhammerthe .net version/d version and stuff
19:18:12lakureiIt's basically the same, using classes instead of the tagged union.
19:18:29grncdrthat's giving me "implementation of yourProc.yourProc" expected…
19:18:39lakureiIdentical, same cache, same procedures, etc
19:18:49def-grncdr: have a full example?
19:19:04lakureiFor D I wrote two versions, one with a tagged union one with classes (the classes one was horribly slow).
19:20:32grncdrdef-: http://pastebin.com/MKbdvP9U <- minimal example that gives me that error
19:20:42*filcuc_ quit (Ping timeout: 272 seconds)
19:20:42*Kingsquee joined #nim
19:20:51def-grncdr: that may be a problem with generics
19:20:57*Ven quit (Read error: Connection reset by peer)
19:21:27def-grncdr: oh, you're just missing a "=" in line 3
19:21:39def-grncdr: sorry if I made you remove that unintentionally
19:21:47grncdrno, that was a brain fart
19:22:24grncdrstrange, I think this might be something else…
19:22:34*skyfex_ joined #nim
19:23:32def-lakurei: the code looks just fine. I only made some stylistic changes: https://gist.github.com/def-/0732f243d80f33901208
19:23:44def-lakurei: I tried using non-ref objects but they're slower in this usecase
19:23:46onionhammerlakurei you dont actually need 'return' in single statement functions
19:24:13lakureidef-: thanks, I've never used nim, good to see the actual style. :)
19:24:14onionhammerah def- saw the same thing :0
19:25:23onionhammeralso echo can just be echo space instead of echo(..) def- :P
19:25:25def-lakurei: Generally with Nim it's worth compiling with GCC and Clang if you want to benchmark. For some problems clang optimizes better, for others GCC
19:25:31def-onionhammer: right, thanks
19:25:51lakureiI always use the latest mingw gcc.
19:25:55def-lakurei: Any reason it's a ValueUnion instead of just an int?
19:26:02lakureiYes.
19:26:05*skyfex quit (Ping timeout: 265 seconds)
19:26:09lakureiThe idea is to write a lisp dialect.
19:26:22lakureiWhen I write it, the values will be represented in the same way.
19:26:29def-Oh, I did that recently as well: http://hookrace.net/blog/make-a-lisp-in-nim/
19:26:43onionhammerlakurei inlining make_int might also improve peformance
19:26:57lakureiYeah, your post was actually a good inspiration, specially the part "only second in performance to the Java version". :)
19:27:05onionhammernah nevermind it was a fluke :0
19:27:21*vendethiel quit (Ping timeout: 250 seconds)
19:28:19lakureiFor reference, this is the Java version:
19:28:20lakureihttp://pastebin.com/raw.php?i=3WZYgYdS
19:28:44lakurei(I tried declaring everything as final, etc, no changes in performance)
19:29:23def-Java doesn't have the float variant
19:29:37lakureiYeah, I didn't bother to add the abstract base class
19:29:43lakureiand a float additional class.
19:29:50lakureiBecause it's actually slower even without it.
19:31:23*Ven joined #nim
19:31:47lakureiA version that does have it (same exact performance): http://pastebin.com/raw.php?i=kGpDiW3Z
19:32:35lakureiBTW, offtopic: nice work with the nes emulator, it works well on Windows.
19:33:03def-If you wanted, you could use converters to make it less explicit in Nim (still does exactly the same): https://gist.github.com/def-/0732f243d80f33901208
19:33:08def-Thanks, great to hear!
19:33:23def-I'm playing Tetris all the time now, might have been a bad idea
19:33:38lakureiOh, mmm, mpairs is mutable, that's nice.
19:34:13lakureiAnd the converter makes up for quite clean code, although I'm not sure if I like it for bigger programs.
19:34:36def-right, it becomes too implicit and you don't know what's happeneing exactly anymore. have to be careful with that
19:34:58lakureiI've been playing Ice Climber. :)
19:35:20*Ven quit (Read error: Connection reset by peer)
19:35:31lakureiFun mistake: when I first made the benchmark, Nim was like 12 seconds instead of 1.x.
19:35:36lakureiAnd I thought: this is dog-slow.
19:35:37def-No -d:release?
19:35:41lakureiExactly.
19:35:56lakureiI also compiled nimes without -d:release and it was like 3 fps.
19:36:04lakureiI supposed --opt:speed was the flag to set.
19:36:20*Ven joined #nim
19:36:25lakureiIt was the emulator that I thought: if this runs fast when compiled to JS it can't be so slow natively.
19:36:49def-It already says "Debug Build" in the compiler output
19:36:58def-Maybe colorizing the output would help
19:37:45*elbow_json joined #nim
19:38:24*Ven quit (Read error: Connection reset by peer)
19:41:09*Ven joined #nim
19:44:29lakureiAlso, mmm, I see a pdcurses.dll in the nim lib folder, can I use it from nim?
19:44:49def-import pdcurses
19:44:55def-there's a lib/wrappers/pdcurses.nim
19:45:32lakureiGreat. I hate that the Python curses module only works on unix.
19:45:54lakureiAnd I always wanted to make a small ascii sokoban for the terminal. Perhaps another good choice for nim.
19:45:54def-From what I see the Nim curses module only works on Windows, haha
19:46:01*vendethiel joined #nim
19:46:02lakureiOh what the heh.
19:46:13def-at least I haven't seen pdcurses on linux
19:47:18def-Maybe termbox works, no idea
19:47:24def-That looked like a modern curses
19:47:37lakureiAnyway, thanks a lot for the help. I can't wait to start writing something (that isn't a bench) with this. :)
19:48:04def-glad to help, have fun
19:51:11*saml_ quit (Remote host closed the connection)
19:59:16*Ven quit (Read error: Connection reset by peer)
19:59:59*Ven joined #nim
20:05:02*grncdr quit (Quit: Leaving.)
20:05:35*Ven quit (Read error: Connection reset by peer)
20:09:01*Ven joined #nim
20:10:01*vendethiel quit (Ping timeout: 264 seconds)
20:10:38*OnO joined #nim
20:12:57*Ven quit (Read error: Connection reset by peer)
20:15:34*grncdr joined #nim
20:17:44*filcuc_ joined #nim
20:17:52*Ven joined #nim
20:21:09*OnO quit (Quit: My iMac has gone to sleep. ZZZzzz…)
20:26:31*Varriount quit (Read error: Connection reset by peer)
20:34:38*vendethiel joined #nim
20:48:22*BlaXpirit_ joined #nim
20:51:37*polkm quit (Quit: Page closed)
20:53:31*Ven quit (Read error: Connection reset by peer)
21:02:57*transfuturist joined #nim
21:03:04transfuturisthttp://harmful.cat-v.org/software/c++/I_did_it_for_you_all
21:03:19*BlaXpirit_ quit (Quit: Quit Konversation)
21:05:11*yglukhov_ quit (Quit: Be back later ...)
21:16:36*vendethiel quit (Ping timeout: 244 seconds)
21:17:22*gsingh93 joined #nim
21:19:43*wb joined #nim
21:23:09*flaviu joined #nim
21:24:14flaviuiamd3vil: If you read the logs, try --debuginfo --linedir:on, run it through GDB, and see where GDB tells you the problem is.
21:35:56*loz1 joined #nim
21:38:44*ingsoc joined #nim
21:39:19flaviubluenote: Thanks for pointing out the bug, I've applied your patches.
21:45:30*elbow_json quit (Quit: Leaving)
21:54:25*Trustable quit (Ping timeout: 264 seconds)
21:58:06*filcuc_ quit (Quit: Konversation terminated!)
21:59:33*gsingh93 quit (Ping timeout: 276 seconds)
22:04:56*ingsoc quit (Quit: Leaving.)
22:17:44*Ven joined #nim
22:20:25*Ven quit (Read error: Connection reset by peer)
22:36:45*Ven joined #nim
22:38:10*Ven quit (Read error: Connection reset by peer)
22:43:42nimnoob123well this is a neat warning: Warning: 'l' should not be used as an identifier; may look like '1' (one) [SmallLshouldNotBeUsed]
22:51:55BlaXpirityes, very useful
22:52:09BlaXpirit /s
22:53:58def-BlaXpirit: just disable it in your global Nim config if you don't like it
23:00:28*grncdr quit (Quit: Leaving.)
23:06:11*vendethiel joined #nim
23:15:38def-fowl: are you working on adding GCC overflow detection or should I take a look?
23:16:26*TEttinger joined #nim
23:16:42fowlNot me
23:17:01def-alright, fun for me then
23:20:15def-oh, that's only available in GCC 5.0. Can we check for GCC version?
23:21:12fowlstaticExec
23:21:40def-That's not a good approach. Imagine we're just building the C files and want to compile elsewhere
23:21:57def-I guess we'll have to go down to CPP defines
23:22:56fowlnot sure how to solve with the cross compiling scenario
23:24:00def-huh, Nim's overflow checks look wrong
23:27:51*vendethiel quit (Ping timeout: 250 seconds)
23:33:00*eskimo joined #nim
23:38:42*BlaXpirit_ joined #nim
23:41:43*BlaXpirit quit (Ping timeout: 256 seconds)
23:46:07*eskimo quit (Quit: Leaving)
23:48:56*BlaXpirit_ quit (Quit: Quit Konversation)
23:50:12*jsseb joined #nim
23:55:28*wan joined #nim