00:02:47 | skrylar | huh |
00:02:50 | skrylar | I forgot about skylights |
00:02:59 | skrylar | wonder 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:05 | subsetpark | Can I create exception types with new attributes? |
05:04:06 | * | bahtiyar quit (Ping timeout: 240 seconds) |
05:20:26 | skrylar | pretty sure you can create exception types |
05:20:38 | skrylar | don't know what attributes on them would do |
05:33:33 | * | pilne quit (Quit: Quitting!) |
05:33:40 | subsetpark | allow me to raise an exception with some value attached and then pull off that value in exception handling |
05:36:55 | ftsf | subsetpark, sounds like it might be doable, have you tried? |
05:38:01 | subsetpark | i 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:14 | subsetpark | and I get an error that only ref objects can be raised |
05:38:38 | ftsf | is MyNewType a ref type? |
05:41:06 | subsetpark | yes, i believe i made sure of that... |
05:41:18 | subsetpark | could have been another issue that was working with stale code or something |
05:46:57 | skrylar | Isn't newException a template that just instantiates an object |
05:48:58 | ftsf | subsetpark, https://gist.github.com/ftsf/2da6d5abce35eec083a061dd5cacdc43 |
05:49:00 | ftsf | that works |
05:49:31 | subsetpark | ftsf: so it might just be a matter of skipping the convenience function |
05:50:56 | ftsf | https://gist.github.com/ftsf/5421b2f77d2d29d576d25ac787d645b5 works too |
05:51:09 | ftsf | newException takes a non-ref type |
05:53:15 | subsetpark | Yes - 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:27 | subsetpark | (BTW, you can now say 'except MyNewException as e') |
05:54:15 | ftsf | mmm 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:16 | euantor | dom96: 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:24 | euantor | Can 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:04 | Araq | euantor: try --os:linux|osx|windows perhaps |
12:52:13 | Araq | might be OS specific and you don't know |
12:52:49 | euantor | That'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:38 | euantor | In 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:49 | krux02 | Araq: 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:57 | Araq | euantor: you don't have to move to a different machine, just use 'nim check --os:macosx ...' |
14:09:09 | Araq | nim can crosscompile out of the box |
14:09:18 | euantor | Oh, I never knew that would work - that's cool |
14:09:40 | euantor | I thought I'd need a working C compiler for cross compilation set up, which I do not have |
14:10:11 | Araq | well yes, if you're interested in a working binary |
14:10:32 | Araq | but in this case you're not. |
14:11:30 | euantor | I didn't even know about the `check` command until now :) That's a very cool feature |
14:11:41 | couven92 | euantor, 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:50 | couven92 | (for cross-platform) |
14:13:13 | PMunch | Araq, I'm still struggling with writing a good test by the way.. |
14:13:48 | PMunch | Can'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:42 | PMunch | I 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:53 | Araq | I would simply specify the string in the 'output' section of the test |
14:16:11 | Araq | don't overcomplicate things and when the string repr changes we're already fucked :-) |
14:16:33 | Araq | recently I changed the compiler's typeToString... I quickly changed it back |
14:16:39 | Araq | code relies on it already |
14:17:35 | PMunch | Hmm, 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:50 | PMunch | But I guess that would work |
14:19:17 | dom96 | euantor: it does? how did you install it? |
14:19:43 | krux02 | SPAM: https://www.youtube.com/watch?v=JO0iqGDgFqA |
14:19:56 | krux02 | it's a (slow speaking of me) demo of my project |
14:20:13 | euantor | dom96: Used the self-extracting .exe on Windows 10 Enterprise x64. None of the support DLLs were pulled in |
14:20:17 | PMunch | Is there a guide on how to write these tests by the way? |
14:21:05 | dom96 | euantor: did the self-extracting .exe work? |
14:21:08 | euantor | I'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:11 | euantor | It did, yes |
14:21:24 | dom96 | no, the DLLs are put into ~/.nimble/bin |
14:21:32 | dom96 | Did you add that to your PATH? |
14:21:46 | euantor | Yep, no DDLs there |
14:22:07 | euantor | https://usercontent.irccloud-cdn.com/file/opVP54tJ/Capture.PNG |
14:23:43 | dom96 | hrm, I guess I forgot to copy them in the .bat script. |
14:23:59 | dom96 | Please create an issue |
14:25:10 | euantor | Done |
14:25:26 | * | xet7 quit (Quit: Leaving) |
14:27:20 | dom96 | thanks |
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:40 | shmup | should 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:05 | dom96 | shmup: yes, but your shell might treat '#' as a comment |
16:29:08 | dom96 | so you may need to quote it |
16:29:13 | dom96 | or escape the # |
16:29:27 | * | yglukhov quit (Remote host closed the connection) |
16:30:02 | shmup | that 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:00 | demi- | 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:35 | dom96 | demi-: have you tried the Jester devel branch? |
17:03:04 | demi- | 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:39 | krux02 | Araq: 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:48 | shmup | hm, cannot choosenim \#head (or quoting) |
17:31:55 | shmup | however echo \#head does in fact echo #head |
17:32:02 | shmup | I am in msys aka git bash |
17:32:22 | shmup | #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:23 | dom96 | shmup: choosenim "#head"? |
18:08:22 | shmup | yeah tried that dom96 |
18:08:40 | shmup | $ choosenim "#head" |
18:08:40 | shmup | Downloading Nim devel from GitHub |
18:08:40 | shmup | Error: unhandled exception: The handle is invalid. |
18:08:40 | shmup | [OSError] |
18:08:55 | shmup | same result for \ and ' |
18:09:03 | dom96 | oh, well that's nothing to do with the escaping. |
18:09:18 | dom96 | No idea what the problem is there. Maybe try via cmd.exe |
18:09:28 | shmup | yeah, I'm sure it'll work there |
18:11:13 | shmup | and indeed it does |
18:11:18 | shmup | i'll still try solving it for git bash folk |
18:11:22 | shmup | msys folk |
18:23:57 | chrisheller | I like that nim check feature. |
18:27:34 | dom96 | shmup: 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:51 | krux02 | Is there a way to get the username in Nim? |
18:47:17 | krux02 | I can get the user home directory and then strip it to the user name, but I thought of something more sane |
18:49:22 | chrisheller | Do you mean in a cross platform way? |
18:49:45 | krux02 | yes |
18:49:58 | krux02 | I can also do in a cross platform way get the home directory |
18:50:26 | krux02 | I want to use it, because that is a good default name for highscore in my game |
18:50:47 | * | ElPresidenteP joined #nim |
18:50:53 | chrisheller | The os module exposes getHomeDir, but nothing for the current user |
18:52:58 | * | ElPresidenteP_ joined #nim |
18:53:28 | chrisheller | Python'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:00 | chrisheller | Since 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:26 | demi- | 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:35 | LyndsySimon | I'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:18 | LyndsySimon | https://usercontent.irccloud-cdn.com/file/p7TSr9NR/image.png |
19:49:37 | LyndsySimon | Nevermind :) |
19:50:42 | demi- | what font is that? |
19:55:09 | LyndsySimon | monofur |
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:58 | LyndsySimon | Well, 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:07 | LyndsySimon | https://gitlab.com/lyndsysimon/roguelike-nim |
20:19:01 | LyndsySimon | No, 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:28 | demi- | LyndsySimon: that is pretty neat |
20:31:14 | LyndsySimon | demi-: 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:06 | dom96 | LyndsySimon: What you've got so far looks good :) |
20:38:22 | LyndsySimon | Awesome, thanks! |
20:38:45 | LyndsySimon | I 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:12 | demi- | indeed |
20:40:29 | * | nsf joined #nim |
20:40:36 | demi- | and tbh the code looks pretty clean for a first pass/attempt |
20:46:46 | dom96 | yep ^ |
20:53:26 | * | rauss quit (Quit: WeeChat 1.8) |
20:58:50 | Araq | krux02: 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) |