00:00:14 | FromGitter | <Alan-FGR> Shouldn't it be in the include path? |
00:00:47 | FromGitter | <Alan-FGR> Or is nim supposed to copy that on the fly? |
00:04:25 | Araq | nim doesn't copy std headers |
00:06:16 | FromGitter | <Alan-FGR> OK, how can I point it to the correct location? Just edit the vcc.options in the config file? |
00:06:17 | * | vlad1777d joined #nim |
00:06:55 | Araq | http://stackoverflow.com/questions/4505362/cl-exe-not-finding-any-standard-include-file |
00:07:15 | FromGitter | <Alan-FGR> Going to try. Thanks. |
00:07:29 | Araq | just use the devel version of Nim which has tools dealing with the visual studio environment setup mess |
00:08:26 | FromGitter | <Alan-FGR> OK then. I'll let you know if it works :) |
00:09:50 | vktec | afaict, NEP-1 doesn't specify whether or not there should be a new line between multi-line procedure definitions and the procedure body. Is that left up to the programmer or is there something I've missed? |
00:14:49 | Araq | there should be a newline but not an empty line |
00:15:08 | vktec | Okay |
00:24:18 | * | cheatfate joined #nim |
00:28:54 | * | elrood quit (Quit: Leaving) |
00:32:38 | * | Matthias247 quit (Read error: Connection reset by peer) |
00:32:58 | * | yglukhov joined #nim |
00:35:11 | FromGitter | <Alan-FGR> I've installed the development version in another folder, but it's still using the cfgs from the stable installation :( |
00:35:38 | FromGitter | <Alan-FGR> The Path is correctly pointing to the devel versions |
00:35:56 | FromGitter | <Alan-FGR> where does nim get the cfgs path from? |
00:35:57 | Araq | it always uses the config relative to the .exe |
00:36:06 | Araq | remebmer you need to restart your console |
00:37:30 | * | yglukhov quit (Ping timeout: 244 seconds) |
00:42:51 | FromGitter | <Alan-FGR> yeah, that's correct, but for some reason I had these lines in my cfg: ⏎ # Configuration for the Visual C/C++ compiler: ⏎ vcc.exe = "vccexe.exe" ⏎ vcc.linkerexe = "vccexe.exe" [https://gitter.im/nim-lang/Nim?at=5837890a444b3778765293d9] |
00:43:16 | FromGitter | <Alan-FGR> had to configure it to use cl, but same trouble as before :( |
00:43:22 | FromGitter | <Alan-FGR> really, gonna use mingw |
00:43:42 | FromGitter | <Alan-FGR> too much trouble using vcc, i suspect gcc is gonna be way easier |
00:44:26 | Araq | well you need ot build vccexe.exe first I guess |
00:44:59 | FromGitter | <Alan-FGR> Oh do I? Anyway, just changed to gcc and it worked outta the box :P |
00:45:25 | Araq | nim c -o:bin/vccexe.exe tools/vccenv/vccexe |
00:45:25 | FromGitter | <Alan-FGR> I think compile times aren't that bad for gcc so it's fine for the time being |
00:45:27 | * | Dankrad joined #nim |
00:45:48 | FromGitter | <Alan-FGR> Araq: Lemme try that just outta curiosity :) |
00:49:05 | FromGitter | <Alan-FGR> returns an error: ⏎ test.exe(1, 1) Error: undeclared identifier: 'MZÉ' ⏎ maybe some file encoding problem? |
00:49:15 | FromGitter | <Alan-FGR> it's just a hello world |
00:49:33 | Araq | nim c -r hello.exe # find the error |
00:50:17 | FromGitter | <Alan-FGR> Actually, I was trying to compile the text.exe, it works fine, thanks Araq :P |
00:50:24 | FromGitter | <Alan-FGR> That's really embarassing |
00:55:37 | FromGitter | <Alan-FGR> For some reason however, 'compile&run' on Aporia only compiles really :P |
00:56:25 | FromGitter | <Alan-FGR> It's an readLine(stdin), so it's not like the terminal emulator is quitting |
00:56:48 | Araq | or maybe the console window pops up too quickly for you |
00:57:05 | Araq | discard stdin.readline() |
00:58:15 | Araq | good night |
00:58:22 | FromGitter | <Alan-FGR> No deal, terminal emulator shows for a sec, then Aporia displays Process terminated with exit code 0 |
00:58:38 | FromGitter | <Alan-FGR> Anyway, no biggie, thanks for the help Araq, have a good night |
00:59:15 | FromGitter | <Alan-FGR> I just realized people on IRC don't see the edits on gitter :P |
01:02:31 | FromGitter | <Alan-FGR> Would you guys recommend VSCode or Sublime? I use Visual Studio so the obvious choice would be VSCode, but I hear the Nim plugin is too intrusive, like shows autocompletion popup even when there's nothing typed and such... |
01:12:44 | vktec | Is it possible to create a proc with an argument that can only be nil? |
01:13:36 | * | cheatfate quit (Ping timeout: 250 seconds) |
01:14:08 | vktec | I'm trying to overload a procedure that takes an argument which can't be nil to allow it to take nil as an argument |
01:23:12 | krux02 | Alan-FGR: I use neither of the tools, I use emacs. Don't know if I would recommend though. It was a lot of struggle and annoying the developers to get it running, and emaces is also very different that usual muscle memory |
01:25:13 | krux02 | the question for the best editor is still open |
01:26:43 | * | vktec would like to say that Vim works quite well for Nim dev |
01:27:01 | * | cheatfate joined #nim |
01:27:34 | krux02 | vktec: as far as I know in nim nil does not yet have it's own nil type |
01:28:13 | krux02 | when you create a variable with nil, the type is infered to be nil, but I haven't seen it possible to explicitly require it to be nil |
01:28:42 | vktec | @Alan-FGR, I'd recommend Sublime out of the two, but that's only because it's the only one I've used and because I'm rather biased against anything made by Micro$oft. I've never used Sublime for Nim, but it works very nicely for everything I've used it for, so it'll probably work fine. |
01:29:37 | vktec | krux02: Okay, that's what I figured. Probably the best hack would be to define a proc which takes a bool or something similar and then check with isNil |
01:29:47 | FromGitter | <Alan-FGR> krux02: OK, fair enough. Thanks. vktec: Yeah, I'll give Sublime a try first. I've used it before and was not bad |
01:29:48 | cheatfate | VSCode is electron (Chrome) + nodejs + some javascript code from Microsoft... |
01:30:00 | * | [CBR]Unspoken quit (Ping timeout: 246 seconds) |
01:30:02 | krux02 | sublime is not a bad editor at all. Easy to learn and istantly powerful, I just don't know how well the nim integration is. |
01:30:12 | cheatfate | Alan-FGR: Sublime is not good for starting and learning nim |
01:30:18 | vktec | Electron. Ew. Node.JS. Ew. Microsoft. Ew. |
01:30:19 | vktec | :P |
01:30:34 | vktec | ^ My thoughts on VSCode |
01:30:40 | FromGitter | <Alan-FGR> cheatfate: and VSCode is? |
01:31:28 | cheatfate | Alan-FGR i think its better to start with VSCode and when you get tired switch to Sublime :) |
01:31:33 | krux02 | vktec: exactly my thoights too :P |
01:31:42 | * | [CBR]Unspoken joined #nim |
01:31:55 | vktec | :D |
01:32:07 | cheatfate | vktec, krux02 and what browsers you are using? |
01:32:17 | vktec | qutebrowser |
01:32:27 | cheatfate | i thought you are using `lynx` :) |
01:32:31 | krux02 | I have at the moment firefox open |
01:32:49 | vktec | cheatfate: I occasionally use elinks, actually :P |
01:33:16 | vktec | Oh, and I check my email using command line tools :P |
01:33:19 | cheatfate | oldschool |
01:33:34 | krux02 | I actually like the fact that there is a terminal based browser. I've heard it is the best browser for blind people |
01:33:35 | vktec | Old is usually good. IRC has proved that to be true |
01:33:46 | krux02 | I just used it for curiosity |
01:33:51 | krux02 | was fun |
01:34:07 | krux02 | no old is not usually good |
01:34:16 | krux02 | old and still active proves something |
01:34:27 | vktec | s/usually/often/ |
01:34:30 | vktec | Better? |
01:34:36 | cheatfate | zlib is not active for too long and still used everywhere |
01:35:55 | krux02 | I like irc after I learned how to use it |
01:36:37 | krux02 | but to be honest, when I used it the first time to connect to the nim community I was very confused by all the clutter and non-important options I could do in XChat |
01:36:56 | krux02 | I now use HexChat which is almost the same |
01:37:10 | krux02 | but now I know what my common actions are and it is usable |
01:37:36 | krux02 | but for first try people without any help it really feels strange |
01:39:20 | vktec | Yeah |
01:39:36 | vktec | It was very alien to me at first too |
01:40:08 | * | BitPuffin|osx joined #nim |
01:40:22 | vktec | Now I'm running a text-based, 100% self-configured IRC client in a terminal multiplexor :P |
01:40:29 | vktec | *multiplexer |
01:40:45 | * | vktec always struggles to spell that word |
01:48:55 | krux02 | http://imgur.com/a/DFygo |
01:49:12 | krux02 | when the link works that are screenshots of my current nim project |
01:49:15 | krux02 | some rendering stuff |
01:50:20 | vktec | Ooh, nice |
01:50:41 | vktec | That's a lot more fancy than my current project :D |
01:51:05 | Demos | very nice |
01:51:17 | Demos | love them plasma effects |
01:51:35 | krux02 | I am working on an opengl macro library to get gpu programming fun again |
01:53:33 | krux02 | the first two screenshots are colors created by a neural network that is eveluated on the gpu |
01:56:19 | * | Calinou quit (Read error: Connection reset by peer) |
01:57:52 | krux02 | in the last screenshot I wanted to know how many objects I can render with instancing. It is one million |
01:58:15 | krux02 | all objects have their own model matrix |
02:01:19 | krux02 | are any of you currently working on some opengl code? |
02:01:20 | cheatfate | krux02, and what fps you got with million? |
02:01:36 | krux02 | cheatfate: just a few ;) |
02:01:54 | krux02 | cheatfate: I would call it interactive framerate |
02:02:14 | krux02 | not something you would want to have in a game though |
02:03:10 | cheatfate | krux02, but plasma is looks very nice |
02:03:46 | krux02 | you should see it in 60 fps |
02:04:53 | krux02 | https://github.com/krux02/opengl-sandbox/blob/master/examples/neuralnetwork.nim |
02:05:06 | krux02 | if you checkout the project, you should be able to run it |
02:05:16 | krux02 | it only needs an opengl 3.3 core context |
02:05:33 | krux02 | and arb direct state access |
02:06:43 | krux02 | it even runs on mesa software rendering |
02:13:51 | Demos | I want mesa 4.5 core |
02:13:56 | Demos | like D3D's ref device |
02:14:46 | krux02 | Demos: yea but that doesn't help me, I am developing on Linux |
02:15:21 | krux02 | I have the feeling, that I am the only developer who tries seriously to develop graphics applications on Linux |
02:15:53 | krux02 | I think every other game developer on this planet does it in visual studio, or at least under windows and then only ports to Linux |
02:16:00 | Demos | yeah |
02:16:13 | Demos | imo the tooling is just that there so much on linux |
02:16:19 | Demos | and drivers are just getting good |
02:16:28 | krux02 | it's not just drivers |
02:16:36 | krux02 | it's most of all tool support |
02:16:44 | Demos | I mean tool support blows on windows too |
02:16:50 | Demos | like using DSA crashes renderdoc for me |
02:16:55 | Demos | and nsight |
02:16:59 | krux02 | I am really happy for apitrace |
02:17:12 | krux02 | that's the only tool on linux that actually works satisfyingly |
02:18:18 | Demos | yeah |
02:18:23 | krux02 | but that's a weird tool, it records everything I do in opengl in a trace file, and then I can replay it and look up what went wrong |
02:18:52 | krux02 | But I am very happy to have at least that |
02:22:34 | * | vlad1777d quit (Quit: Leaving) |
02:23:11 | krux02 | ok, I should now get ready to go home |
02:23:23 | krux02 | otherwise the night might be over and I did not get any sleep |
02:23:41 | Demos | I know that feeling well |
02:24:37 | * | [CBR]Unspoken quit (Ping timeout: 248 seconds) |
02:25:47 | * | [CBR]Unspoken joined #nim |
02:34:52 | * | yglukhov joined #nim |
02:35:47 | * | krux02 quit (Quit: Leaving) |
02:39:03 | * | euantor quit (Read error: Connection reset by peer) |
02:39:13 | * | yglukhov quit (Ping timeout: 245 seconds) |
02:39:30 | * | euantor joined #nim |
02:40:17 | * | Varriount|Phone joined #nim |
02:44:13 | * | Varriount|Mobile quit (Ping timeout: 245 seconds) |
02:49:25 | * | chemist69 quit (Ping timeout: 260 seconds) |
03:03:07 | * | chemist69 joined #nim |
03:23:51 | * | kulelu88 quit (Quit: Leaving) |
03:25:27 | * | [CBR]Unspoken quit (Ping timeout: 256 seconds) |
03:28:09 | * | [CBR]Unspoken joined #nim |
03:32:04 | * | BitPuffin|osx quit (Ping timeout: 260 seconds) |
03:41:45 | * | Demos_ joined #nim |
03:41:51 | * | Varriount|Phone quit (Read error: Connection reset by peer) |
03:42:06 | * | Varriount|Phone joined #nim |
03:44:37 | * | Demos quit (Ping timeout: 258 seconds) |
03:51:58 | * | Dankrad quit (Ping timeout: 256 seconds) |
04:27:46 | * | pregressive joined #nim |
04:36:19 | * | yglukhov joined #nim |
04:40:37 | * | yglukhov quit (Ping timeout: 240 seconds) |
04:42:31 | * | couven92 quit (Read error: Connection reset by peer) |
04:55:08 | * | byte512 joined #nim |
05:24:04 | * | [CBR]Unspoken quit (Ping timeout: 250 seconds) |
05:25:40 | * | [CBR]Unspoken joined #nim |
05:32:02 | * | nsf joined #nim |
05:35:49 | * | pregressive quit (Remote host closed the connection) |
05:36:26 | * | pregressive joined #nim |
05:40:37 | * | pregressive quit (Ping timeout: 240 seconds) |
06:02:17 | * | chemist69 quit (Ping timeout: 240 seconds) |
06:04:48 | * | yglukhov joined #nim |
06:04:56 | * | chemist69 joined #nim |
06:08:35 | * | byte512 quit (Quit: WeeChat 1.6) |
06:08:53 | * | byte512 joined #nim |
06:09:24 | * | yglukhov quit (Ping timeout: 250 seconds) |
06:31:53 | * | space-wizard quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
06:33:08 | * | space-wizard joined #nim |
06:33:26 | * | space-wizard quit (Client Quit) |
06:33:53 | * | space-wizard joined #nim |
06:34:14 | * | space-wizard quit (Client Quit) |
06:34:42 | * | space-wizard joined #nim |
06:35:02 | * | space-wizard quit (Client Quit) |
06:35:32 | * | space-wizard joined #nim |
06:35:50 | * | space-wizard quit (Client Quit) |
06:36:17 | * | space-wizard joined #nim |
06:36:38 | * | space-wizard quit (Client Quit) |
06:37:10 | * | space-wizard joined #nim |
06:37:26 | * | space-wizard quit (Client Quit) |
06:58:12 | * | [CBR]Unspoken quit (Ping timeout: 258 seconds) |
06:59:58 | * | Demos_ quit (Read error: Connection reset by peer) |
07:01:06 | * | [CBR]Unspoken joined #nim |
07:14:10 | * | bjz joined #nim |
07:21:57 | * | yglukhov joined #nim |
07:30:09 | * | yglukhov quit (Ping timeout: 246 seconds) |
07:45:24 | * | Arrrr joined #nim |
07:53:59 | * | Ven joined #nim |
07:54:42 | * | Ven quit (Read error: Connection reset by peer) |
07:55:04 | * | Ven joined #nim |
08:03:56 | * | yglukhov joined #nim |
08:08:18 | * | yglukhov quit (Ping timeout: 250 seconds) |
08:09:21 | * | chemist69 quit (Ping timeout: 256 seconds) |
08:20:20 | * | Trustable joined #nim |
08:22:35 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
08:23:39 | * | Andris_zbx joined #nim |
08:30:19 | * | brechtm joined #nim |
08:32:23 | * | Ven joined #nim |
08:36:08 | * | chemist69 joined #nim |
08:45:04 | vktec | What's the best way to get the source filename at compile time? |
08:45:42 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
08:50:30 | * | Calinou joined #nim |
08:52:15 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
08:52:18 | def- | vktec: template filename: string = instantiationInfo().filename |
08:53:41 | vktec | Thanks def- |
08:56:52 | * | bjz joined #nim |
09:01:09 | vktec | Hmm... that was a bit of an XY problem, sorry. My real question is "What's the best way to include C header files from the same directory as a Nim file?" |
09:07:45 | Arrrr | .compile ? |
09:09:56 | vktec | > header files |
09:10:14 | vktec | The compile pragma is for C source files, no? |
09:11:53 | Arrrr | r-right |
09:14:00 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
09:18:38 | * | yglukhov joined #nim |
09:23:28 | * | yglukhov quit (Ping timeout: 256 seconds) |
09:28:13 | * | yglukhov joined #nim |
09:28:17 | * | yglukhov quit (Remote host closed the connection) |
09:29:17 | * | yglukhov joined #nim |
09:31:20 | * | yglukhov_ joined #nim |
09:34:24 | * | yglukhov quit (Ping timeout: 246 seconds) |
09:38:09 | * | brechtm_ joined #nim |
09:41:02 | * | brechtm quit (Ping timeout: 256 seconds) |
09:41:04 | * | brechtm__ joined #nim |
09:43:28 | * | brechtm_ quit (Ping timeout: 250 seconds) |
09:43:29 | * | chemist69 quit (Ping timeout: 250 seconds) |
09:52:09 | * | yglukhov_ quit (Remote host closed the connection) |
09:56:05 | * | Ven joined #nim |
09:56:11 | * | bjz joined #nim |
09:57:50 | * | yglukhov joined #nim |
09:58:39 | * | arnetheduck joined #nim |
10:01:21 | * | chemist69 joined #nim |
10:03:06 | * | yglukhov quit (Remote host closed the connection) |
10:10:50 | * | yglukhov joined #nim |
10:16:48 | * | yglukhov quit (Remote host closed the connection) |
10:19:24 | * | yglukhov joined #nim |
10:27:48 | * | yglukhov quit (Remote host closed the connection) |
10:29:09 | * | yglukhov joined #nim |
10:32:45 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
11:04:31 | * | vlad1777d joined #nim |
11:16:00 | * | couven92 joined #nim |
11:38:36 | * | zevlg joined #nim |
11:46:42 | * | chemist69 quit (Ping timeout: 250 seconds) |
11:46:47 | * | Ven joined #nim |
11:48:19 | * | chemist69 joined #nim |
11:52:26 | * | bjz_ joined #nim |
11:53:11 | * | bjz quit (Ping timeout: 256 seconds) |
11:53:54 | * | elrood joined #nim |
12:07:39 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
12:08:59 | * | Ven joined #nim |
12:09:17 | * | Ven quit (Read error: Connection reset by peer) |
12:12:30 | * | Ven joined #nim |
12:15:23 | * | Ven quit (Client Quit) |
12:21:09 | * | brechtm__ quit (Remote host closed the connection) |
12:21:23 | * | Ven joined #nim |
12:21:35 | elrood | krux02: fyi, your fancy gl project currently fails while building here with .. .nimble/pkgs/glm-0.1.1/glm/mat.nim(385, 8) Error: cannot open 'arnelib' |
12:29:00 | * | zevlg quit (Remote host closed the connection) |
12:44:46 | * | zevlg joined #nim |
12:49:05 | zevlg | hey, guys, got build error under centos6 |
12:49:08 | zevlg | c_code/2_2/stdlib_osproc.o: In function `nospwaitForExit': |
12:49:08 | zevlg | stdlib_osproc.c:(.text+0x1764): undefined reference to `clock_gettime' |
12:49:08 | zevlg | |
12:49:35 | zevlg | -lrt was missing |
12:49:46 | zevlg | with -lrt it does links properly |
12:54:22 | cheatfate | Araq, its interesting issue, because osproc.nim imports posix.nim, which has `{.passL: "-lrt".}` for linux |
12:54:53 | cheatfate | zevlg, what is version of nim? |
12:56:09 | zevlg | nim-0.15.2 |
13:00:17 | zevlg | I'm using this patch right now - http://pastebin.com/raw/DAHvC4eK |
13:01:40 | cheatfate | zevlg, you got build error, when building nim itself, or your got build error while building your nim project? |
13:01:50 | zevlg | while building nim itself |
13:04:15 | Araq | cheatfate: no, it's an old niminst issue, not interesting and hard to fix |
13:04:33 | Araq | this part of the build script is not generated |
13:04:56 | Araq | besides, not all versions of Linux require -lrt iirc |
13:05:53 | * | chemist69 quit (Ping timeout: 260 seconds) |
13:06:45 | cheatfate | Araq, i think it depends... on c library it uses |
13:07:57 | * | vlad1777d quit (Read error: Connection reset by peer) |
13:11:12 | * | vlad1777d joined #nim |
13:14:03 | * | Arrrr quit (Quit: WeeChat 1.5) |
13:14:21 | cheatfate | Araq, hard to fix because depends on linux distro? |
13:15:31 | * | vlad1777d quit (Read error: Connection reset by peer) |
13:19:20 | * | chemist69 joined #nim |
13:20:07 | Araq | no, because it should be generated |
13:20:36 | * | vlad1777d joined #nim |
13:20:55 | elrood | Araq, wouldn't an easy fix be to just add -lrt to the linker flags by default? even if it's superfluous on most systems that shouldn't have any adverse effects, should it? |
13:24:21 | * | vlad1777d quit (Read error: Connection reset by peer) |
13:24:56 | cheatfate | `-lrt is only linux` |
13:25:07 | cheatfate | build.sh is looks like for all unixes |
13:27:08 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
13:28:55 | * | vlad1777d joined #nim |
13:33:06 | elrood | well, it's posix' realtime extensions. for the majority and common cases if i am not mistaken just adding it, even if repetitively, won't do any harm |
13:33:56 | elrood | for the few outliers it would probably be easier to remove a switch you get a definite error for than having to investigate in which library to find a missing function |
13:34:54 | elrood | the alternative would be to add a more fine-grained distinction for several different systems or even libc implementations to nim's build scripts, which probably would neither be that easy nor desireable |
13:44:16 | * | Ven joined #nim |
14:00:36 | cheatfate | I have tried to make asynchronous console for Windows, and found that windows have simple editor inside of console inputs with (clipboard support, words jumping, insert mode) |
14:01:36 | cheatfate | even marking text via shift+arrows |
14:01:49 | * | Ven quit (Read error: Connection reset by peer) |
14:02:16 | * | Ven joined #nim |
14:02:28 | cheatfate | now i dont want to make asyncronous console for windows anymore :) |
14:03:24 | * | kunev quit (Ping timeout: 260 seconds) |
14:03:38 | Araq | I use "cmder" |
14:04:04 | cheatfate | cmder? |
14:05:03 | Araq | http://cmder.net/ |
14:05:12 | cheatfate | async console is a nice idea, so you can run something like webserver and also get some commands from console |
14:05:21 | * | kunev joined #nim |
14:07:14 | * | PMunch joined #nim |
14:22:09 | Calinou | cmder is just a nice ConEmu bundle |
14:22:45 | * | BitPuffin|osx joined #nim |
14:38:23 | * | bjz_ quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
14:41:29 | * | chemist69 quit (Ping timeout: 256 seconds) |
14:59:55 | * | chemist69 joined #nim |
15:08:02 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
15:13:08 | federico3 | "Error: string expected for a field name expected" now, that's confusing :) |
15:15:48 | * | Ven joined #nim |
15:17:12 | * | Ven quit (Read error: Connection reset by peer) |
15:17:12 | * | Ven_ joined #nim |
15:29:43 | FromGitter | <ephja> what about the powershell console? the tab completion can be modified, but maybe it lacks other things |
15:36:14 | FromGitter | <konqoro> so is there a reason for shl and shr when they could be <<, >>? |
15:41:24 | cheatfate | common guys i just want to make async console for nim, to be able to read from console without blocking, i dont care about features of console emulators |
15:42:15 | cheatfate | if unix implementation is trivial, windows implementation is not |
15:42:22 | * | Ven_ quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
15:43:53 | Araq | kongo: do you want the shift ops to have the same precedence as comparion ops? |
15:44:03 | Araq | *comparison |
15:45:05 | FromGitter | <konqoro> yes |
15:45:13 | * | brechtm joined #nim |
15:45:57 | FromGitter | <konqoro> thats a problem |
15:46:49 | federico3 | https://paste.debian.net/898811/ o |
15:47:08 | federico3 | that's an odd bug... is anybody aware of it or shall I open an issue? |
15:48:00 | * | Ven joined #nim |
15:50:20 | Araq | create an iisue |
15:50:31 | * | Trustable quit (Remote host closed the connection) |
15:54:08 | federico3 | #5055 |
16:03:58 | Araq | federico3: it's a codegen bug |
16:04:18 | Araq | the codegen forgot to initialize the internal typeinfo field :-) |
16:04:31 | Araq | very interesting |
16:04:34 | federico3 | good spot :) |
16:04:50 | federico3 | I'm surprised other people did not run into it |
16:05:13 | FromGitter | <ephja> let's ban bugs |
16:05:21 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
16:05:43 | Araq | for days I have been looking for a bug that might be related to what you just reported |
16:10:45 | * | PMunch quit (Quit: leaving) |
16:13:53 | * | krux02 joined #nim |
16:15:22 | * | zevlg quit (Remote host closed the connection) |
16:19:55 | cheatfate | yay, very painful bug |
16:22:23 | * | miere joined #nim |
16:31:39 | krux02 | cheatfate: yes? |
16:32:37 | krux02 | I recently found a bug, where a global variable was overridden when I changed focus of the opened window |
16:32:55 | krux02 | that bug caused the program to crash instantly |
16:33:24 | krux02 | at least it crashed instanly, and I could immediately see when the proplem came up |
16:34:37 | * | arnetheduck quit (Ping timeout: 240 seconds) |
17:00:13 | * | brechtm_ joined #nim |
17:02:01 | * | couven92 quit (Read error: Connection reset by peer) |
17:03:27 | * | brechtm quit (Ping timeout: 246 seconds) |
17:10:04 | FromGitter | <konqoro> I am glad I can do this :p proc `<<` T (x, y: T): T = discard ⏎ proc `>>` T (x, y: T): T = discard ⏎ proc `~` T (x: T): T = discard ⏎ proc `&` T (x, y: T): T = discard ⏎ proc `|` T (x, y: T): T = discard ... [https://gitter.im/nim-lang/Nim?at=5838706c8d65e3830e9cd0a5] |
17:13:15 | * | rokups quit (Quit: Connection closed for inactivity) |
17:15:52 | * | chemist69 quit (Ping timeout: 250 seconds) |
17:28:53 | dom96 | wow, did you guys see this? https://www.reddit.com/r/golang/comments/5eqs64/proposal_to_delete_rgolang/ |
17:29:26 | * | yglukhov_ joined #nim |
17:31:03 | * | zaquest quit (Ping timeout: 260 seconds) |
17:32:27 | * | yglukhov quit (Ping timeout: 260 seconds) |
17:33:45 | * | yglukhov_ quit (Ping timeout: 256 seconds) |
17:35:47 | * | chemist69 joined #nim |
17:44:58 | * | Andris_zbx quit (Remote host closed the connection) |
17:45:48 | * | space-wizard joined #nim |
17:47:18 | * | pregressive joined #nim |
17:48:02 | * | zaquest joined #nim |
17:54:17 | * | pregress_ joined #nim |
17:54:31 | * | pregressive quit (Read error: Connection reset by peer) |
18:09:02 | * | themagician joined #nim |
18:12:22 | * | pregressive joined #nim |
18:13:38 | * | pregressive quit (Remote host closed the connection) |
18:14:12 | * | pregressive joined #nim |
18:14:44 | krux02 | dom96: I don't care I don't read or interact with reddid |
18:14:47 | * | pregress_ quit (Ping timeout: 258 seconds) |
18:15:12 | krux02 | but do they want to have the community centralized somewhere elese then? |
18:16:57 | * | libman joined #nim |
18:17:38 | elrood | it's perhaps less about reddit than about overmoderation in general, as i read it |
18:18:10 | krux02 | can you give me a quick overview. I am not a reddid user at all, so I have no idea what the problem is. |
18:18:31 | * | pregressive quit (Ping timeout: 256 seconds) |
18:19:47 | * | kulelu88 joined #nim |
18:21:07 | elrood | not really, just skimmed the threads myself, but someone apparently made an offensive comment, a subreddit moderator reacted inadequately, and now certain members of the golang core team who have had a critical opinion about reddit all along have proposed to shut down the whole subreddit as a consequence |
18:22:38 | elrood | oh, btw, krux02, do you read the irc backlogs? seen the error i ran into when trying to build your gl project? |
18:23:14 | krux02 | elrood: sometimes, but didn't read it doday not today |
18:24:19 | * | byte512 quit (Ping timeout: 252 seconds) |
18:24:54 | krux02 | elrood: I can imagine, that glm is not on the newest version as a nimble package could be that you need to manually clone that and install it |
18:26:15 | * | yglukhov joined #nim |
18:27:42 | krux02 | elrood: I just saw the error, that import statement is unused and should be deleted |
18:29:13 | elrood | yep, that's what i figured myself. just wanted to let you know it currently fails |
18:30:52 | * | yglukhov quit (Ping timeout: 260 seconds) |
18:31:11 | * | [ui] joined #nim |
18:31:54 | krux02 | thanks, good to know |
18:31:58 | krux02 | does it work now? |
18:34:16 | elrood | nope, samplers.nim(34, 5) Error: undeclared identifier: 'glBindTextureUnit' |
18:38:02 | elrood | nevermind about me though, the integrated graphics unit probably isn't up to date enough to run anything developed in the last decade anyways |
18:38:05 | * | couven92 joined #nim |
18:38:50 | krux02 | elrood: actually I have a similar problem with my laptod that I used for development from time to time |
18:39:07 | krux02 | are you running linux? |
18:39:15 | elrood | aye |
18:39:35 | krux02 | can you tell me the output of glxinfo | grep version? |
18:39:49 | krux02 | I am sure it works in software rendering |
18:40:42 | elrood | 1.4, 2.1 mesa 11.1, so.. oold |
18:40:44 | * | dddddd joined #nim |
18:40:46 | krux02 | but it's weird that it says undeclared identifier |
18:40:49 | krux02 | ok |
18:41:44 | krux02 | can you write this: export LIBGL_ALWAYS_SOFTWARE=1 |
18:41:52 | krux02 | and tell me the output again |
18:43:26 | dom96 | krux02: elrood: The_Donald (a Donald Trump subreddit) was insulting the CEO of reddit (/u/spez) because he shutdown another subreddit (/r/pizzagate), the decided to modify their comments to insult moderators of The_Donald instead of him, they noticed and then he admitted to doing it. |
18:43:51 | dom96 | Now because of this someone decided that the /r/golang subreddit should be deleted |
18:44:04 | dom96 | And many prominent go-lang users agreed |
18:44:17 | elrood | ah, i see, thanks for clearing that up |
18:44:22 | dom96 | Which is in my opinion an over reaction. |
18:44:42 | dom96 | s/the decided/he decided/ |
18:45:20 | elrood | krux02, no difference, btw |
18:46:11 | krux02 | with export LIBGL_ALWAYS_SOFTWARE=1 you should be able to get a 3.3 core context |
18:46:21 | krux02 | and that is what I am requirering for all examples |
18:48:28 | * | Matthias247 joined #nim |
18:49:51 | * | chemist69 quit (Ping timeout: 246 seconds) |
18:49:51 | * | Matthias247 quit (Read error: Connection reset by peer) |
18:52:29 | * | chemist69 joined #nim |
18:52:53 | elrood | krux02, i am inclined to blame the outdated hardware in use here, if it works for you and others i wouldn't sweat it. would've been nice to play around with and see what's possible with nim and ogl on linux, nothing more |
18:53:26 | krux02 | yea and I would really like other people to be able to use it |
18:53:38 | krux02 | even with mesa software rendering |
18:54:03 | * | Matthias247 joined #nim |
18:55:03 | elrood | if there's anything you'd like me to try, don't hesitate, i'm here. i don't think we should clutter the channel with it though |
18:57:30 | dom96 | don't worry about cluttering the channel |
18:57:39 | dom96 | It's not as if there is much activity otherwise... |
18:57:46 | dom96 | krux02: does it support OS X? |
18:58:24 | krux02 | dom96: I never tested it, but there is nothing in it that would be a reason for it to not run on OSX |
18:58:31 | krux02 | it's just SDL2 and Opengl |
18:58:36 | krux02 | nothing else |
19:00:42 | dom96 | I'll test it in a couple of minutes :) |
19:02:21 | krux02 | to repeat it there is an unused import in glm |
19:03:23 | * | Matthias247 quit (Read error: Connection reset by peer) |
19:05:41 | * | Matthias247 joined #nim |
19:09:36 | * | miere quit (Read error: Connection reset by peer) |
19:32:07 | dom96 | The testall script doesn't seem to work on OS X |
19:32:13 | dom96 | find: -executable: unknown primary or operator |
19:33:41 | * | nsf quit (Quit: WeeChat 1.6) |
19:34:12 | dom96 | deferred_shading fails with `could not find symbol: glCreateBuffers` |
19:34:50 | dom96 | And neural network does too :\ |
19:34:52 | dom96 | krux02: |
19:35:47 | krux02 | testall is very buggy that's true |
19:36:03 | krux02 | I think I used it once when I wrote it and then forgot about it |
19:36:40 | krux02 | I rely on direct state access |
19:40:26 | vktec | Would someone be able to take a look at my PR on the packages repo, when they have a moment? |
19:40:36 | vktec | #426, fwiw |
19:41:49 | dom96 | Does this work? https://notabug.org/vktec/nimbox/src/master/nimbox.nimble#L58 |
19:42:40 | vktec | dom96: Works for me |
19:43:15 | dom96 | Cool. |
19:44:32 | dom96 | merged |
19:44:36 | vktec | Thanks! |
19:53:22 | vktec | I'm very pleased with the Nimble packaging process. Just nimble init, make some changes to the .nimble file, PR the Git repo with some JSON and it's done. Very easy, makes good use of existing tools and, because PRs have to be merged by a collaborator, you don't end up with a bunch of rubbishy packages or multiple ones doing the same thing (though there was already a termbox wrapper for Nim, I just rewrote it |
19:53:23 | vktec | using c2nim and a nicer interface) |
19:55:29 | * | krux02 quit (Quit: Leaving) |
20:02:17 | vktec | Oh. That's odd... seems the before install doesn't work after all. It works when running nimble install in the repo, but not when installed using nimble install nimbox |
20:04:35 | dom96 | Glad you're pleased :) |
20:04:39 | dom96 | Please report that as a bug. |
20:04:47 | vktec | Will do |
20:05:30 | * | stisa joined #nim |
20:05:48 | * | space-wizard quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
20:06:04 | federico3 | ooh the psutil lib is in nimble |
20:06:21 | * | yglukhov joined #nim |
20:07:01 | * | space-wizard joined #nim |
20:07:20 | * | space-wizard quit (Client Quit) |
20:07:49 | * | space-wizard joined #nim |
20:08:08 | * | space-wizard quit (Client Quit) |
20:08:38 | * | space-wizard joined #nim |
20:08:56 | * | space-wizard quit (Client Quit) |
20:09:26 | * | space-wizard joined #nim |
20:09:43 | vktec | dom96: I've created issue #280 on nim-lang/nimble |
20:09:44 | * | space-wizard quit (Client Quit) |
20:10:02 | dom96 | vktec: thanks |
20:10:10 | vktec | dom96: As I said in the issue, I'm not sure how to test this further, since I'd have to have a test package in nim-lang/packages, afaict |
20:10:15 | * | space-wizard joined #nim |
20:10:32 | * | space-wizard quit (Client Quit) |
20:10:34 | dom96 | You can also install packages via git URL |
20:10:38 | dom96 | I bet it happens in that case as well |
20:10:43 | vktec | Ah, lemme test |
20:11:04 | * | space-wizard joined #nim |
20:11:20 | * | space-wizard quit (Client Quit) |
20:11:28 | vktec | before install is run when I install from Git |
20:11:32 | vktec | biab |
20:11:52 | * | space-wizard joined #nim |
20:12:08 | * | space-wizard quit (Client Quit) |
20:14:37 | * | chemist69 quit (Ping timeout: 240 seconds) |
20:15:12 | dom96 | that's interesting |
20:17:18 | * | bjz joined #nim |
20:28:30 | * | chemist69 joined #nim |
20:41:29 | * | [ui] quit (Quit: Connection closed for inactivity) |
20:41:47 | * | ksano joined #nim |
20:54:15 | * | ksano quit (Quit: Leaving) |
20:56:08 | * | nsf joined #nim |
21:02:15 | * | pregressive joined #nim |
21:02:19 | * | space-wizard joined #nim |
21:02:56 | * | stisa quit (Quit: Leaving) |
21:06:43 | * | pregressive quit (Ping timeout: 245 seconds) |
21:10:58 | * | xet7 quit (Quit: Leaving) |
21:14:07 | vktec | dom96: Indeed |
21:21:02 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
21:44:11 | vktec | dom96: Turns out the Git thing was a red herring. I was running the command from my project directory |
21:56:42 | * | libman quit (Remote host closed the connection) |
22:08:01 | vktec | Found it! This line here is what's causing the issue: https://github.com/nim-lang/nimble/blob/master/src/nimble.nim#L910 |
22:08:41 | * | Sembei joined #nim |
22:08:59 | vktec | When nimble install is run, nimble parses that as an actionInstall Action. Then, execHook is run, but there's no .nimble file, so nimble ignores the hook and moves on |
22:09:07 | vktec | That's the issue, afaict |
22:09:48 | vktec | The only problem is, that's gonna be damn hard to fix. |
22:10:07 | vktec | Maybe I should just regenerate the file every time termbox makes a release |
22:11:58 | * | bjz joined #nim |
22:31:55 | * | nsf quit (Quit: WeeChat 1.6) |
22:33:01 | vktec | dom96: I think changing this behaviour will require a major refactor and possibly even redesign of Nimble, and it's not particularly necessary, so I've closed the issue. Feel free to reopen it if you think this is something that could do with being addressed |
22:48:37 | * | Sembei quit (Ping timeout: 248 seconds) |
23:00:08 | * | elrood quit (Quit: Leaving) |
23:02:54 | dom96 | vktec: I reopened it. |
23:03:00 | vktec | Okay |
23:04:39 | dom96 | Anybody have time to help with our Exercism track? https://github.com/exercism/xnim/issues/13 |
23:16:24 | * | dddddd quit (Remote host closed the connection) |
23:25:25 | * | space-wizard quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
23:25:56 | * | space-wizard joined #nim |
23:26:14 | * | space-wizard quit (Client Quit) |
23:26:46 | * | space-wizard joined #nim |
23:27:02 | * | space-wizard quit (Client Quit) |
23:27:31 | * | space-wizard joined #nim |
23:27:50 | * | space-wizard quit (Client Quit) |
23:28:18 | * | space-wizard joined #nim |
23:28:37 | * | chemist69 quit (Ping timeout: 240 seconds) |
23:28:38 | * | space-wizard quit (Client Quit) |
23:29:10 | * | space-wizard joined #nim |
23:29:26 | * | space-wizard quit (Client Quit) |
23:29:55 | * | space-wizard joined #nim |
23:30:14 | * | space-wizard quit (Client Quit) |
23:30:41 | * | space-wizard joined #nim |
23:31:02 | * | space-wizard quit (Client Quit) |
23:31:29 | * | space-wizard joined #nim |
23:31:50 | * | space-wizard quit (Client Quit) |
23:32:42 | vktec | What's the best way to split a string at a particular index? |
23:40:14 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
23:44:12 | cheatfate | vktec, you mean you want to make 2 string objects from 1 string objects without memory allocation? |
23:44:21 | vktec | Ideally, yes |
23:45:49 | cheatfate | vktec, system.nim has nice type `Slice`, but i can't find any proper examples/documentation about it |
23:46:04 | cheatfate | so maybe its only prototype |
23:47:09 | * | chemist69 joined #nim |
23:48:36 | vktec | I think that's "foobar"[1..3] == "oob" |
23:52:41 | * | pregressive joined #nim |
23:54:03 | vktec | Hmm... is there a pop() like proc for strings? |
23:55:14 | * | vlad1777d quit (Quit: Leaving) |
23:57:12 | * | pregressive quit (Ping timeout: 268 seconds) |
23:57:48 | vktec | Given that it's only 4 lines of code, and literally copied and pasted from the version for seq[T] it might be a good idea to include that in system |
23:58:06 | vktec | Unless I'm missing it under a different name |