<< 16-06-2017 >>

00:02:47skrylarhuh
00:02:50skrylarI forgot about skylights
00:02:59skrylarwonder how much of it still works in .17
00:10:01*skrylar wonders if its worth fixing up skylights or better to just keep things in separate packages
00:26:23*yglukhov quit (Remote host closed the connection)
00:28:53*yglukhov joined #nim
00:33:10*yglukhov quit (Ping timeout: 240 seconds)
00:41:01*skrylar_ joined #nim
01:27:50*skrylar_ quit (Remote host closed the connection)
01:28:09*skrylar_ joined #nim
01:28:20*gokr quit (Ping timeout: 255 seconds)
01:38:04*vlad1777d quit (Quit: Leaving)
01:40:59*chemist69 quit (Disconnected by services)
01:41:05*chemist69_ joined #nim
02:30:57*skrylar_ quit (Ping timeout: 260 seconds)
02:39:50*rauss joined #nim
02:52:07*skrylar_ joined #nim
03:02:25*libman quit (Quit: Connection closed for inactivity)
03:03:59*smt joined #nim
03:42:42*dave24 quit (Ping timeout: 260 seconds)
03:44:07*dave24 joined #nim
03:44:55*skrylar_ quit (Ping timeout: 258 seconds)
03:52:48*bahtiyar joined #nim
04:46:57*bahtiyar quit (Ping timeout: 240 seconds)
04:51:45*bahtiyar joined #nim
04:54:05subsetparkCan I create exception types with new attributes?
05:04:06*bahtiyar quit (Ping timeout: 240 seconds)
05:20:26skrylarpretty sure you can create exception types
05:20:38skrylardon't know what attributes on them would do
05:33:33*pilne quit (Quit: Quitting!)
05:33:40subsetparkallow me to raise an exception with some value attached and then pull off that value in exception handling
05:36:55ftsfsubsetpark, sounds like it might be doable, have you tried?
05:38:01subsetparki have tried - i declare a new type, inherit from exception with another field; then i call newE = newException(MyNewType, "foo"); then I say newE.newField = value; finally raise newE
05:38:04*rauss quit (Quit: WeeChat 1.8)
05:38:14subsetparkand I get an error that only ref objects can be raised
05:38:38ftsfis MyNewType a ref type?
05:41:06subsetparkyes, i believe i made sure of that...
05:41:18subsetparkcould have been another issue that was working with stale code or something
05:46:57skrylarIsn't newException a template that just instantiates an object
05:48:58ftsfsubsetpark, https://gist.github.com/ftsf/2da6d5abce35eec083a061dd5cacdc43
05:49:00ftsfthat works
05:49:31subsetparkftsf: so it might just be a matter of skipping the convenience function
05:50:56ftsfhttps://gist.github.com/ftsf/5421b2f77d2d29d576d25ac787d645b5 works too
05:51:09ftsfnewException takes a non-ref type
05:53:15subsetparkYes - ftsf I have it working in the second way too, now. It might have also been an issue with the fact that I was declaring it as a generic type and things were getting muddled...
05:53:27subsetpark(BTW, you can now say 'except MyNewException as e')
05:54:15ftsfmmm yeah i thought there was something like that but can't find it in the manual.
06:04:13*nsf joined #nim
06:05:22*Vladar joined #nim
06:31:52*Arrrr joined #nim
06:31:52*Arrrr quit (Changing host)
06:31:52*Arrrr joined #nim
06:40:11*bahtiyar joined #nim
06:58:38*xet7 joined #nim
07:08:17*sleepyqt joined #nim
07:10:20*skrylar quit (Remote host closed the connection)
07:16:43*Matthias247 joined #nim
07:27:29*yglukhov joined #nim
07:31:50*yglukhov quit (Ping timeout: 240 seconds)
07:36:51*Andris_zbx joined #nim
07:44:16*Vladar quit (Quit: Leaving)
07:58:27*bahtiyar quit (Remote host closed the connection)
08:14:27*Trustable joined #nim
08:18:43*PMunch joined #nim
09:03:14*yglukhov joined #nim
09:03:43*Vladar joined #nim
09:03:49*gokr joined #nim
09:06:56*couven92 joined #nim
09:07:25*yglukhov quit (Ping timeout: 255 seconds)
09:10:11*yglukhov joined #nim
09:18:52*sleepyqt quit (Quit: WeeChat 1.8)
10:36:42*Snircle joined #nim
10:51:17*yeeve quit (Remote host closed the connection)
11:10:13*Sentreen quit (Quit: WeeChat 1.4)
11:11:01*skrylar_ joined #nim
11:16:27*vlad1777d joined #nim
11:20:37*vlad1777d quit (Remote host closed the connection)
11:22:27*vlad1777d joined #nim
11:48:39*yeeve joined #nim
12:01:16euantordom96: Just moved my work laptop install to choosenim, is there a reason it doesn't include a tool to grab the Windows DLLs automatically for you (such as libeay32.dll)?
12:13:07*vlad1777d quit (Ping timeout: 260 seconds)
12:37:24euantorCan anybody replicate this issue by any chance? I've tried both 17.0.0 and HEAD (17.0.1) and cnanot replicate it: https://github.com/euantorano/dotenv.nim/issues/1
12:46:35*Sentreen joined #nim
12:48:28*vlad1777d joined #nim
12:50:10*skrylar_ quit (Quit: Leaving)
12:52:04Araqeuantor: try --os:linux|osx|windows perhaps
12:52:13Araqmight be OS specific and you don't know
12:52:49euantorThat's probably the cause, good catch. I've tried it on Windows now, and will try it on my mac later as that should give a pretty good idea
12:53:38euantorIn fact, that'll be it - https://github.com/nim-lang/Nim/blob/devel/lib/pure/os.nim#L346 this is wrapped inside a when not windows
12:56:08*sleepyqt joined #nim
12:59:47*couven92 quit (Quit: Client disconnecting)
13:11:08*Arrrr quit (Ping timeout: 240 seconds)
13:35:44*krux02 joined #nim
13:37:49krux02Araq: ping
13:45:12*ftsf quit (Remote host closed the connection)
13:59:50*couven92 joined #nim
14:07:24*xet7 quit (Quit: Leaving)
14:07:52*xet7 joined #nim
14:08:57Araqeuantor: you don't have to move to a different machine, just use 'nim check --os:macosx ...'
14:09:09Araqnim can crosscompile out of the box
14:09:18euantorOh, I never knew that would work - that's cool
14:09:40euantorI thought I'd need a working C compiler for cross compilation set up, which I do not have
14:10:11Araqwell yes, if you're interested in a working binary
14:10:32Araqbut in this case you're not.
14:11:30euantorI didn't even know about the `check` command until now :) That's a very cool feature
14:11:41couven92euantor, pass -c to nim as well... then it will just spit out the c code without c-compiling it... That way you can at least dry-run the nim compile part
14:11:50couven92(for cross-platform)
14:13:13PMunchAraq, I'm still struggling with writing a good test by the way..
14:13:48PMunchCan't get Nim to run the code from my generated string so I can check the AST it creates vs. the one I'm given.
14:14:42PMunchI could of course just compare it to a string that I know is right. But if the AST parsing changes or the printed representation changes it would fail the test without actually breaking the code...
14:15:53AraqI would simply specify the string in the 'output' section of the test
14:16:11Araqdon't overcomplicate things and when the string repr changes we're already fucked :-)
14:16:33Araqrecently I changed the compiler's typeToString... I quickly changed it back
14:16:39Araqcode relies on it already
14:17:35PMunchHmm, well I tend to stay away from string comparisons as they are generally a bad idea (apart from comparing stuff that are actually string values of course)
14:17:50PMunchBut I guess that would work
14:19:17dom96euantor: it does? how did you install it?
14:19:43krux02SPAM: https://www.youtube.com/watch?v=JO0iqGDgFqA
14:19:56krux02it's a (slow speaking of me) demo of my project
14:20:13euantordom96: Used the self-extracting .exe on Windows 10 Enterprise x64. None of the support DLLs were pulled in
14:20:17PMunchIs there a guide on how to write these tests by the way?
14:21:05dom96euantor: did the self-extracting .exe work?
14:21:08euantorI'd assume they should be in ~/.choosenim\toolchains\nim-0.16.0\bin (0.16.0 is also the version it installed by default, rather than 0.17.0 and stable also chooses 16 over 17...)
14:21:11euantorIt did, yes
14:21:24dom96no, the DLLs are put into ~/.nimble/bin
14:21:32dom96Did you add that to your PATH?
14:21:46euantorYep, no DDLs there
14:22:07euantorhttps://usercontent.irccloud-cdn.com/file/opVP54tJ/Capture.PNG
14:23:43dom96hrm, I guess I forgot to copy them in the .bat script.
14:23:59dom96Please create an issue
14:25:10euantorDone
14:25:26*xet7 quit (Quit: Leaving)
14:27:20dom96thanks
14:45:26*rauss joined #nim
14:49:03*adeohluwa joined #nim
15:17:38*sz0 joined #nim
15:23:58*ofelas joined #nim
15:24:34*nsf quit (Quit: WeeChat 1.7.1)
15:39:49*gokr quit (Ping timeout: 255 seconds)
15:46:27*vlad1777d quit (Ping timeout: 240 seconds)
15:50:35*obrecht joined #nim
15:51:44*obrecht quit (Client Quit)
15:52:41*obrecht joined #nim
15:55:57*obrecht left #nim (#nim)
15:56:22*obrecht joined #nim
15:56:53*obrecht quit (Client Quit)
15:58:21*vlad1777d joined #nim
15:59:18*murych joined #nim
16:13:12*Andris_zbx quit (Remote host closed the connection)
16:21:40shmupshould I be able to just `choosenim #head`
16:28:25*yglukhov quit (Remote host closed the connection)
16:28:43*yglukhov joined #nim
16:29:05dom96shmup: yes, but your shell might treat '#' as a comment
16:29:08dom96so you may need to quote it
16:29:13dom96or escape the #
16:29:27*yglukhov quit (Remote host closed the connection)
16:30:02shmupthat makes a lot of sense ty
16:30:49*vlad1777d quit (Ping timeout: 246 seconds)
16:34:17*yglukhov joined #nim
16:38:36*yglukhov quit (Ping timeout: 240 seconds)
16:42:02*gokr joined #nim
17:02:00demi-dom96: do you know how jester handles with large files? i've got a ~550MB gz file that brings everything to a halt when i try to download it
17:02:35dom96demi-: have you tried the Jester devel branch?
17:03:04demi-hmmm, i don't think so; i could give it a go this weekend
17:08:50*couven92 quit (Ping timeout: 255 seconds)
17:11:39krux02Araq: you still want to talk about the NEP2?
17:19:22*yglukhov joined #nim
17:23:30*yglukhov quit (Remote host closed the connection)
17:23:42*yglukhov joined #nim
17:26:12*pilne joined #nim
17:31:31*yglukhov quit (Remote host closed the connection)
17:31:48shmuphm, cannot choosenim \#head (or quoting)
17:31:55shmuphowever echo \#head does in fact echo #head
17:32:02shmupI am in msys aka git bash
17:32:22shmup#head alone is treated as a comment
17:36:25*gokr quit (Read error: No route to host)
17:37:03*yglukhov joined #nim
17:52:22*ElPresidente joined #nim
17:55:26*SusWombat quit (Remote host closed the connection)
17:57:38*SusWombat joined #nim
17:58:50*adeohluwa quit (Quit: Connection closed for inactivity)
18:00:00*couven92 joined #nim
18:03:23dom96shmup: choosenim "#head"?
18:08:22shmupyeah tried that dom96
18:08:40shmup$ choosenim "#head"
18:08:40shmupDownloading Nim devel from GitHub
18:08:40shmupError: unhandled exception: The handle is invalid.
18:08:40shmup [OSError]
18:08:55shmupsame result for \ and '
18:09:03dom96oh, well that's nothing to do with the escaping.
18:09:18dom96No idea what the problem is there. Maybe try via cmd.exe
18:09:28shmupyeah, I'm sure it'll work there
18:11:13shmupand indeed it does
18:11:18shmupi'll still try solving it for git bash folk
18:11:22shmupmsys folk
18:23:57chrishellerI like that nim check feature.
18:27:34dom96shmup: yes, please repprt it as a bug
18:31:37*Vladar quit (Quit: Leaving)
18:45:10*couven92 quit (Ping timeout: 240 seconds)
18:46:51krux02Is there a way to get the username in Nim?
18:47:17krux02I can get the user home directory and then strip it to the user name, but I thought of something more sane
18:49:22chrishellerDo you mean in a cross platform way?
18:49:45krux02yes
18:49:58krux02I can also do in a cross platform way get the home directory
18:50:26krux02I want to use it, because that is a good default name for highscore in my game
18:50:47*ElPresidenteP joined #nim
18:50:53chrishellerThe os module exposes getHomeDir, but nothing for the current user
18:52:58*ElPresidenteP_ joined #nim
18:53:28chrishellerPython's getpass module just uses environment variables to try figuring this out. https://github.com/python/cpython/blob/3.6/Lib/getpass.py#L154
18:54:00chrishellerSince you are just defaulting a name for your game, I think that logic would be OK.
18:54:08*ElPresidente quit (Ping timeout: 240 seconds)
18:55:34*ada[m] quit (Ping timeout: 264 seconds)
18:55:34*ehmry quit (Ping timeout: 264 seconds)
18:56:08*ElPresidenteP quit (Ping timeout: 240 seconds)
18:57:26demi-krux02: how cross platform is "cross platform", because i think there should be a way to do this in posix
18:59:08*stisa quit (Ping timeout: 240 seconds)
18:59:11*vopi181[m] quit (Ping timeout: 255 seconds)
18:59:33*dyce[m] quit (Ping timeout: 258 seconds)
18:59:34*mindB quit (Ping timeout: 246 seconds)
18:59:37*federico3p quit (Ping timeout: 245 seconds)
18:59:37*TheManiac quit (Ping timeout: 255 seconds)
18:59:38*hohlerde quit (Ping timeout: 255 seconds)
18:59:59*Jipok[m] quit (Ping timeout: 255 seconds)
19:00:04*jivank[m] quit (Ping timeout: 255 seconds)
19:00:04*MrAxilus[m] quit (Ping timeout: 255 seconds)
19:00:58*ElPresidenteP joined #nim
19:03:48*ElPresidenteP_ quit (Ping timeout: 240 seconds)
19:15:36*ElPresidenteP quit (Quit: Leaving)
19:16:38*sz0 quit (Quit: Connection closed for inactivity)
19:19:52*rauss quit (Ping timeout: 258 seconds)
19:21:45*rauss joined #nim
19:23:00*PMunch quit (Quit: leaving)
19:42:26*libman joined #nim
19:46:35LyndsySimonI'm getting an error on this line, and am drawing a blank: https://gitlab.com/lyndsysimon/roguelike-nim/blob/primary/main.nim#L21
19:47:18LyndsySimonhttps://usercontent.irccloud-cdn.com/file/p7TSr9NR/image.png
19:49:37LyndsySimonNevermind :)
19:50:42demi-what font is that?
19:55:09LyndsySimonmonofur
20:02:30*vlad1777d joined #nim
20:03:16*murych quit (Read error: Connection reset by peer)
20:11:08*vlad1777d quit (Ping timeout: 240 seconds)
20:17:58LyndsySimonWell, I'm gonna call that a successful meeting. Instead of staring off into space, I built the very bare bones of a roguelike in Nim. It draws the map, waits for input, and lets you move the character around with WASD.
20:18:07LyndsySimon https://gitlab.com/lyndsysimon/roguelike-nim
20:19:01LyndsySimonNo, the code isn't something I'm proud of. It's literally the first thing I've built in Nim, I'm just getting a feel for how things work.
20:20:10*sleepyqt quit (Quit: WeeChat 1.8)
20:30:28demi-LyndsySimon: that is pretty neat
20:31:14LyndsySimondemi-: I'm planning on following along with this Reddit thread: https://www.reddit.com/r/roguelikedev/comments/6h4z09/roguelikedev_does_the_complete_roguelike_tutorial/?utm_content=comments&utm_medium=hot&utm_source=reddit&utm_name=roguelikedev
20:35:21*gokr joined #nim
20:36:06dom96LyndsySimon: What you've got so far looks good :)
20:38:22LyndsySimonAwesome, thanks!
20:38:45LyndsySimonI feel like I still have a lot to learn about the type system. OTOH, this seems like a great project to learn with.
20:40:12demi-indeed
20:40:29*nsf joined #nim
20:40:36demi-and tbh the code looks pretty clean for a first pass/attempt
20:46:46dom96yep ^
20:53:26*rauss quit (Quit: WeeChat 1.8)
20:58:50Araqkrux02: if you want to I'm ready now
21:02:37*planhths joined #nim
21:12:21*Neomex joined #nim
21:15:20*gokr quit (Read error: Connection reset by peer)
21:28:10*krux02 quit (Remote host closed the connection)
21:31:23*stisa joined #nim
21:36:10*gokr joined #nim
21:37:09*MrAxilus[m] joined #nim
21:37:10*dyce[m] joined #nim
21:37:16*vopi181[m] joined #nim
21:37:16*Jipok[m] joined #nim
21:37:16*jivank[m] joined #nim
21:37:17*mindB joined #nim
21:37:17*ada[m] joined #nim
21:37:17*hohlerde joined #nim
21:37:17*TheManiac joined #nim
21:37:18*ehmry joined #nim
21:37:26*federico3p joined #nim
21:49:22*Jesin quit (Quit: Leaving)
21:54:39*Trustable quit (Remote host closed the connection)
22:10:29*ofelas quit (Quit: shutdown -h now)
22:24:59*Jesin joined #nim
23:02:13*libman quit (Quit: Connection closed for inactivity)
23:16:46*oprypin quit (Quit: Bye)
23:17:01*FromGitter joined #nim
23:17:09*oprypin joined #nim
23:21:28*gokr quit (Ping timeout: 240 seconds)
23:21:34*literal_ joined #nim
23:26:14*onionhammer1 quit (*.net *.split)
23:26:15*vqrs quit (*.net *.split)
23:26:15*literal quit (*.net *.split)
23:26:16*d10n quit (*.net *.split)
23:27:06*onionhammer1 joined #nim
23:27:38*vqrs joined #nim
23:28:06*dave24 quit (Ping timeout: 240 seconds)
23:29:04*d10n joined #nim
23:29:04*d10n quit (Changing host)
23:29:04*d10n joined #nim
23:29:53*dave24 joined #nim
23:58:19*Matthias247 quit (Read error: Connection reset by peer)