<< 06-01-2016 >>

00:00:02krux02I am so far at the moment that the getType2 returs AST that look almost identical to the type decalations in source
00:03:22krux02generally very similar to the typeToString
00:03:29krux02just as an ast
00:04:25krux02I even think, that typeToString could one day be implemented as node.opMapTypeToAst2.repr
00:06:35*jaco60 quit (Ping timeout: 240 seconds)
00:08:14Araq_perhaps.
00:56:19*brson joined #nim
00:59:29*zepolen joined #nim
01:04:29*zepolen quit (Ping timeout: 265 seconds)
01:07:17*desophos quit (Read error: Connection reset by peer)
01:48:52*boo joined #nim
01:49:16*boo is now known as Guest88610
01:50:44*Guest88610 quit (Client Quit)
02:51:14*bigfondue quit (Ping timeout: 276 seconds)
02:51:48*bigfondue joined #nim
02:52:52*Trustable quit (Remote host closed the connection)
03:17:57*pregressive joined #nim
03:23:44*brson quit (Ping timeout: 276 seconds)
03:30:03*desophos joined #nim
04:32:27*zepolen joined #nim
04:49:20*def- quit (Quit: -)
04:50:23*def- joined #nim
05:16:06*Demon_Fox joined #nim
05:18:43*Demos quit (Quit: Leaving)
05:23:27*krux02 quit (Remote host closed the connection)
05:24:31*darkf joined #nim
05:30:39*pregressive quit ()
05:32:30*vendethiel joined #nim
05:55:26*vendethiel quit (Ping timeout: 240 seconds)
06:07:49*darkf_ joined #nim
06:08:05*darkf quit (Disconnected by services)
06:08:06*darkf_ is now known as darkf
06:45:18*yglukhov joined #nim
06:49:59*yglukhov quit (Ping timeout: 260 seconds)
07:46:00*zepolen quit ()
07:46:22*zepolen joined #nim
07:46:58*zepolen quit (Client Quit)
07:47:15*zepolen joined #nim
07:47:30*Trustable joined #nim
07:50:05*awsteele quit (Quit: My Mac has gone to sleep. ZZZzzz…)
08:04:18*zepolen quit (Remote host closed the connection)
08:10:50*zepolen joined #nim
08:20:07*desophos quit (Read error: Connection reset by peer)
08:32:06*yglukhov joined #nim
08:51:02*Demon_Fox quit (Ping timeout: 246 seconds)
08:56:19*Demon_Fox joined #nim
08:59:39*ephja joined #nim
09:18:52*Demon_Fox quit (Quit: Leaving)
09:27:14*coffeepot joined #nim
09:28:08yglukhovdoes nim have ciclic bit shift ops?
09:32:22Araq_no
09:49:23*coffeepot quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
09:49:44*coffeepot joined #nim
10:08:31*lyro` joined #nim
10:11:09*MyMind joined #nim
10:11:17*lyro` quit (Client Quit)
10:13:57*xet7 quit (Quit: Leaving)
10:14:02*Sembei quit (Ping timeout: 265 seconds)
10:23:30*zepolen quit (Read error: Connection reset by peer)
10:24:21*zepolen joined #nim
10:26:44*xet7 joined #nim
10:39:04*lyro` joined #nim
10:48:26*lyro left #nim ("ERC (IRC client for Emacs 24.5.1)")
10:52:12*lyro joined #nim
10:53:44*lyro left #nim ("ERC (IRC client for Emacs 24.5.1)")
10:54:13*lyro joined #nim
10:56:45*awsteele joined #nim
11:00:58*zepolen quit (Remote host closed the connection)
11:02:28*irrequietus joined #nim
11:04:10*lyro left #nim ("ERC (IRC client for Emacs 24.5.1)")
11:04:52*lyro joined #nim
11:08:12*lyro` quit (Quit: ERC (IRC client for Emacs 24.5.1))
11:26:39*coffeepot quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
11:27:15*zepolen joined #nim
11:29:23*coffeepot joined #nim
11:33:57*saml_ joined #nim
11:46:01ldleworkhmm all the csfml examples crash for me
11:46:06ldleworkBlaXpirit: ^
11:46:15BlaXpirithi
11:46:21BlaXpiritwhat can i do for you today
11:46:51ldleworkI installed libsfml-dev and libcsfml-dev from apt-get, csfml from nimble, then tried to compile and run snakes.nim and it crashes
11:47:01ldleworka number of the examples from csfml's repo does
11:47:18BlaXpiritldlework, probably some ancient distro, huh
11:47:25ldleworkmight be
11:48:04BlaXpiritk
11:48:19BlaXpiritthe information is all there, read it
11:52:29*^aurora^ joined #nim
11:56:20ldleworkBlaXpirit: I untarred SFML and CSFML linked in your README to /usr and they still seem to crash.
11:56:44BlaXpiritjust untarred source? wut
11:56:58ldleworkBlaXpirit: no the compiled releases
11:57:49ldleworkIs that the wrong thing to do?
11:57:59BlaXpiritprobably
11:58:15BlaXpiritI have no idea what you're doing
11:59:00BlaXpiritldlework, https://github.com/BlaXpirit/nim-csfml/wiki/Installing-CSFML + other pages on wiki
11:59:48ldleworkI don't know how I'm being confusing. You alluded that everything is in your README. It says to use 2.3 of CSFML and SFML. So I clicked the links in the README, which brought me to the release pages including compiled releases for linux. Those tars were extracted to /usr
12:00:09ldleworkBut if you want me to compile them instead just say so :(
12:00:11BlaXpiritI don't think that's how installing stuff works on linux
12:00:29BlaXpiritldlework, try to run a C program first, as described on wiki
12:02:04ldleworkBlaXpirit: why would they provide tarfiles with lib/, include/, and share/. I can't think of any other way you're supposed to install that.
12:02:24BlaXpiriti have no idea why they provide that. hopefully nobody uses those
12:02:52*xet7 quit (Quit: Leaving)
12:04:07*zepolen quit (Remote host closed the connection)
12:07:55*xet7 joined #nim
12:09:09ldleworkBlaXpirit: I followed the instructions on your blog for compiling SFML and CSFML, and installed them both globally. snakes doesn't crash but its just a blank window that never paints then prints out a complaint about getting the wrong opengl context or something
12:09:12ldleworkbut flippy bird works
12:09:14ldleworkthanks
12:09:53BlaXpiritldlework, now it must be an old graphiscs card
12:10:03BlaXpirittry context_settings(24,
12:10:27BlaXpiriti shouldve changed the examples to 24..
12:10:29Araq_guys, please test the new-ll branch of the compiler, I want to merge it into devel
12:10:37ldleworkBlaXpirit: that gets rid of the complaining message, but still no paints
12:10:43Araq_fixes a ton of bugs
12:11:23ldleworkBlaXpirit: removing the context thing makes it work
12:11:31BlaXpiritbut then no antialiasing
12:11:39BlaXpiritis your graphics card really that bad
12:12:18ldleworkBlaXpirit: Dell XPS 15 so maybe no card at all
12:12:26ldleworkor wrong drivers or something
12:12:39*awsteele quit (Quit: My Mac has gone to sleep. ZZZzzz…)
12:12:47BlaXpiritit sucks that such a basic feature is not reliable :/
12:13:31ldleworkwell linux laptops suck in general for multimedia
12:13:35ldleworkso I don't think you're asking too much
12:13:47ldleworkanyone else is likely to run it with out issue
12:13:50ldleworkthanks though
12:14:53def-Araq_: This stops working with new-ll: https://github.com/def-/nim-unsorted/blob/master/closures.nim
12:15:27Araq_def-: yeah I need to document this, I changed the semantics
12:15:48Araq_you need a dummy proc () now, look at
12:16:39BlaXpiriti wish there was an easy way to run travis on that branch
12:16:56BlaXpiritmy projects often break :|
12:17:10Araq_https://github.com/nim-lang/Nim/blob/new-ll/tests/closure/tclosure3.nim
12:17:31def-Araq_: this one as well, might be a related semantics change? https://github.com/def-/nim-unsorted/blob/master/harshad.nim
12:17:36Araq_BlaXpirit: I noticed but I blamed destructors for all of it
12:17:48BlaXpiritnah that's just in 1 lib
12:21:51Araq_def-: hmmm
12:21:58BlaXpiritwell if anyone wants to try my projects, they're here https://github.com/blaxpirit/docopt.nim/blob/devel/.travis.yml https://github.com/blaxpirit/nim-random/blob/master/.travis.yml
12:22:25BlaXpiritotherwise i can only rerun in travis when it's merged to devel :|
12:22:40Araq_def-: what's the expected result?
12:23:02def-Araq_: https://github.com/def-/nim-unsorted/blob/master/harshad.out
12:24:36def-Araq_: Two more that fail in nim-unsorted: iban (Error: current routine cannot return an expression), matrixarithmeticseq (GCC error)
12:25:56def-Araq_: and pascalstriangle (Error: '.closure' calling convention for top level routines is invalid)
12:26:32Araq_well the last one triggered a deprecation warning in 0.12 :P
12:27:28def-but I'm not even using .closure there
12:29:38Araq_the slice example corrupts memory, yay
12:39:06*irrequietus quit ()
12:42:43Araq_ah fuck, seems to be a fundamentally wrong to switch the order between these two compiler passes -.-
12:43:29Araq_hmmm
12:50:03Araq_BlaXpirit: any idea what causes the other regressions? concepts?
12:57:30*nastavnic joined #nim
13:14:33yglukhovoh is new-ll ready for testing already?
13:18:12Araq_yglukhov: yes and it's supposed to become 0.13.0
13:18:33yglukhovcool, i'll give it a spin
13:22:13yglukhovcompiler crash! =)
13:22:47yglukhovhow do i koch boot with debug info, stacktraces etc?
13:24:57Araq_'koch boot' ?
13:25:15Araq_only -d:release generates a release compiler
13:26:03yglukhovoh ok
13:26:08yglukhovhere's the trace: https://gist.github.com/yglukhov/7873327f846c5ca0d6ae
13:26:40*def- quit (Ping timeout: 260 seconds)
13:26:48yglukhovdoes it tell anything to you?
13:31:14Araq_tparsecomb in the test suite produces the same stack trace
13:31:23Araq_I'm looking into it
13:31:30yglukhovok cool
13:37:20Araq_ah found it.
13:37:26Araq_it's a very recent regression
13:41:07*def- joined #nim
13:50:56*def- quit (Ping timeout: 272 seconds)
13:51:58*saml_ quit (Quit: Leaving)
14:11:38*def- joined #nim
14:19:23*^aurora^ quit (Quit: My Mac has gone to sleep. ZZZzzz…)
14:22:44*wicast joined #nim
14:34:14*wicast quit (Quit: Page closed)
14:39:45*avsej quit (Quit: Quit)
14:41:15*avsej joined #nim
14:41:15*avsej quit (Changing host)
14:41:15*avsej joined #nim
15:03:11*vqrs quit (Ping timeout: 264 seconds)
15:06:10*vqrs joined #nim
15:33:15*nastavnic quit (Ping timeout: 260 seconds)
15:37:39*vqrs quit (Ping timeout: 245 seconds)
15:42:50*vqrs joined #nim
15:51:13*^aurora^ joined #nim
16:05:46*vqrs quit (Ping timeout: 240 seconds)
16:06:45*vqrs joined #nim
16:13:06*def- quit (Ping timeout: 240 seconds)
16:15:48*def- joined #nim
17:15:09*coffeepot quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
17:16:06*def- quit (Ping timeout: 240 seconds)
17:19:14*def- joined #nim
17:26:41*brson joined #nim
17:29:23*yglukhov quit (Ping timeout: 276 seconds)
18:15:15*yglukhov joined #nim
18:20:05*yglukhov quit (Ping timeout: 260 seconds)
18:21:30*shodan45 joined #nim
18:41:50*zepolen joined #nim
18:44:37*nastavnic joined #nim
18:49:38*yglukhov joined #nim
18:58:35*zepolen quit (Remote host closed the connection)
18:59:12*zepolen joined #nim
19:02:16*desophos joined #nim
19:07:38*shodan45 quit (Remote host closed the connection)
19:07:49*shodan45 joined #nim
19:08:06*CcxCZ quit (Ping timeout: 240 seconds)
19:13:49*irrequietus joined #nim
19:18:07*CcxCZ joined #nim
19:22:10*nastavnic quit (Ping timeout: 272 seconds)
19:28:55*darkf quit (Quit: Leaving)
19:31:26*ola2caref joined #nim
19:33:53ola2carefHi all
19:38:46*nastavnic joined #nim
19:40:54*ola2caref left #nim (#nim)
19:51:38*zepolen quit (Remote host closed the connection)
19:56:52*zepolen joined #nim
20:05:23*xet7 quit (Ping timeout: 276 seconds)
20:20:09*xet7 joined #nim
20:24:19*nastavni1 joined #nim
20:25:30*nastavnic quit (Ping timeout: 260 seconds)
20:42:03*vendethiel joined #nim
20:52:02*nastavni1 quit (Ping timeout: 255 seconds)
20:52:21*nastavni1 joined #nim
21:09:05*irrequietus quit ()
21:17:40ldleworkThe perlin module doesn't compile anymore, simplex.nim(47, 16) Error: no tuple type for constructor
21:19:00ldleworkah its a community lib, dang
21:19:32ldleworkHow do I install nimble packages from source?
21:20:16Araq_is there a way to not install from source?
21:21:02dom96nope
21:21:15ldleworkNimble?
21:21:16dom96You can only install packages from source.
21:21:21ldleworkWhat I mean is
21:21:32ldleworkHow do I take a git repo and install the package threin so I can use it as a library
21:21:38ldleworkVS, installing that same package from nimble
21:21:54ldleworkI'm assuming this author fixed the bug in git but hasn't released to nimble or something
21:22:00ldlework(s/assuming/hoping)
21:22:14dom96A nimble package is stored in a git repo
21:22:17dom96there is no central repo
21:22:25dom96the package list is just a list of git urls
21:22:30ldleworkOkay great
21:22:33dom96just execute: nimble install pkg@#head
21:22:48ldleworkusing a git link? a github link?
21:23:00dom96that works too
21:23:07ldleworkwhat?
21:23:42dom96`pkg` can either be a package name (as long as its in https://github.com/nim-lang/packages/blob/master/packages.json) or a Git/Hg url.
21:23:55ldleworkGot it, thanks
21:24:06ldleworkSo nimble is probably already installing this git revision
21:24:14ldleworkbleh guess I'll send the author an email - thanks
21:24:20dom96well
21:24:27dom96it might not be installing the latest commit
21:24:52dom96`nimble install pkg` will install the latest *tagged* version (if a tag exists)
21:25:02dom96`nimble install pkg@#head` will install the HEAD
21:25:13ldleworkhmm
21:25:25*ldlework tries
21:26:42*BitPuffin|osx joined #nim
21:31:37*nastavnic joined #nim
21:31:50*nastavnic quit (Client Quit)
21:33:24*nastavni1 quit (Ping timeout: 250 seconds)
21:33:37ldleworkdom96: that worked I think
21:33:54dom96cool
21:34:09ldleworkBut now I'm confused about something else. I have an example in Bla's csfml examples directory. It compiles fine and runs. When I copy this file to a new directory and try to compile it, I get errors.
21:34:18ldleworkI dunno how to reason about that.
21:35:32ldleworkthe first file is the example from Bla, and the second is the same text content in a new folder: https://gist.github.com/dustinlacewell/007987e39156025c01da
21:35:43ldleworkI'm just doing "nim c -r filename.nim" on both
21:35:56ldleworkthey have the same text content
21:37:02ldleworkdom96: does that make any sense?
21:38:54dom96the csfml package you have installed is slightly different than the one in /home/dlacewell/nim/nim-csfml/ perhaps?
21:39:25ldleworkinstalled? installed where?
21:39:31ldleworkI don't understand what you mean
21:39:43ldleworkI thought packages are installed to ~/.nimble
21:40:07ldleworkWhy would either program be using something from /home/dlacewell/nim/nim-csfml ? That's just where the examples are.
21:44:04*krux02 joined #nim
22:02:47*vendethiel- joined #nim
22:03:58*Guest4360_ joined #nim
22:04:34*AckZ quit (Ping timeout: 240 seconds)
22:04:34*vendethiel quit (Ping timeout: 240 seconds)
22:04:35*Guest4360 quit (Ping timeout: 240 seconds)
22:04:42*Guest4360_ is now known as Guest4360
22:04:56*dv- quit (Ping timeout: 240 seconds)
22:06:14*dv- joined #nim
22:07:31*zepolen quit (Remote host closed the connection)
22:08:44*zepolen joined #nim
22:09:51*AckZ joined #nim
22:16:41*ephja quit (Ping timeout: 276 seconds)
22:18:14*^aurora^ quit (Quit: My Mac has gone to sleep. ZZZzzz…)
22:21:46*Demon_Fox joined #nim
22:22:11ldleworkdom96: how can I have different versions of csfml installed?
22:24:07ldleworkI'm completely lost
22:24:48dom96because of this https://github.com/BlaXpirit/nim-csfml/blob/master/examples/nim.cfg#L1
22:24:55ldleworkoh I see
22:25:11dom96You can have different versions installed
22:25:16dom96they get installed as pkgname-version
22:25:20dom96in ~/.nimble/pkgs/
22:25:48*zepolen quit (Remote host closed the connection)
22:26:41ldleworkdom96: I did "nimble install csfml@#head" and said 'yes' to overwrite. Then I renamed nim.cfg to .nim.cfg. Now compiling the example fails the same way as the other file. Shouldn't nimble have installed the same version as the one I have checked out in git, to which the examples were previously compiling against (because nim.cfg) ?
22:28:52dom96ldlework: I'm not sure, which version did you check out?
22:29:04ldleworkdom96: head
22:29:06ldleworkI just cloned
22:29:08ldleworkso master
22:29:16dom96Nimble should install the same thing
22:29:21ldleworkthat's my point
22:30:38ldleworkhmm
22:30:47ldleworkdeleting it from pkgs/ and reinstalling seems to have done the trick
22:32:48dom96you sure you didn't have any other versions installed in there?
22:33:37ldleworkno matter, thanks for paying attention to me while I flailed about
22:36:23ldleworkwelp, time to actually refresh how to write Nim
22:52:28dom96no problem, highlight me if you have any more questions.
22:52:57dom96It's worth investigating if you've got more time, it's possible that Nimble failed to uninstall the package properly before reinstalling.
22:58:41BlaXpiritAraq_, this broke https://github.com/BlaXpirit/nim-random/blob/master/src/random/private/testutil.nim#L38-L61
22:58:43BlaXpiritError: ambiguous call; both testutil.chiSquare(rand: proc (): T{.closure.}, bucketCount: int, experiments: int) and testutil.chiSquare(rand: proc (): int{.closure.}, bucketCount: int, experiments: int) match for: (proc (): int{.gcsafe, locks: 0.}, int literal(100), int literal(1000000))
23:01:12Araq_oh my
23:02:04BlaXpirit(new-ll)
23:05:02Araq_and it works with devel?
23:06:00BlaXpirityes, Araq_
23:06:28BlaXpirithttps://travis-ci.org/BlaXpirit/nim-random
23:07:16BlaXpiritwhen i worked around this problem by naming 1 method differently, nothing else was broken. other 2 of my major projects didnt break (well this one didnt really break either, just the testing part)
23:14:19*zepolen joined #nim
23:14:40*jaco60 joined #nim
23:14:45dom96Araq_: Tested jester with the wrk http benchmarker and it seems to be holding up fine.
23:15:14dom96(With new-ll)
23:15:44*zepolen quit (Remote host closed the connection)
23:16:42*zepolen joined #nim
23:22:26Araq_cool. :-)
23:22:27*yglukhov quit (Remote host closed the connection)
23:25:02*vendethiel- quit (Ping timeout: 255 seconds)
23:31:11ldleworkWell, I just tried to sell Nim and an entire channel chose to focus on how with Nim 'everything is implicit' because the last statement is a return value.
23:31:35ldleworka total 'hurr durr' situation
23:35:01*Trustable quit (Remote host closed the connection)
23:39:11dom96hah
23:39:15dom96which channel is this?
23:39:19*shodan45 quit (Quit: Konversation terminated!)