<< 25-11-2016 >>

00:00:14FromGitter<Alan-FGR> Shouldn't it be in the include path?
00:00:47FromGitter<Alan-FGR> Or is nim supposed to copy that on the fly?
00:04:25Araqnim doesn't copy std headers
00:06:16FromGitter<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:55Araqhttp://stackoverflow.com/questions/4505362/cl-exe-not-finding-any-standard-include-file
00:07:15FromGitter<Alan-FGR> Going to try. Thanks.
00:07:29Araqjust use the devel version of Nim which has tools dealing with the visual studio environment setup mess
00:08:26FromGitter<Alan-FGR> OK then. I'll let you know if it works :)
00:09:50vktecafaict, 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:49Araqthere should be a newline but not an empty line
00:15:08vktecOkay
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:11FromGitter<Alan-FGR> I've installed the development version in another folder, but it's still using the cfgs from the stable installation :(
00:35:38FromGitter<Alan-FGR> The Path is correctly pointing to the devel versions
00:35:56FromGitter<Alan-FGR> where does nim get the cfgs path from?
00:35:57Araqit always uses the config relative to the .exe
00:36:06Araqremebmer you need to restart your console
00:37:30*yglukhov quit (Ping timeout: 244 seconds)
00:42:51FromGitter<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:16FromGitter<Alan-FGR> had to configure it to use cl, but same trouble as before :(
00:43:22FromGitter<Alan-FGR> really, gonna use mingw
00:43:42FromGitter<Alan-FGR> too much trouble using vcc, i suspect gcc is gonna be way easier
00:44:26Araqwell you need ot build vccexe.exe first I guess
00:44:59FromGitter<Alan-FGR> Oh do I? Anyway, just changed to gcc and it worked outta the box :P
00:45:25Araqnim c -o:bin/vccexe.exe tools/vccenv/vccexe
00:45:25FromGitter<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:48FromGitter<Alan-FGR> Araq: Lemme try that just outta curiosity :)
00:49:05FromGitter<Alan-FGR> returns an error: ⏎ test.exe(1, 1) Error: undeclared identifier: 'MZÉ' ⏎ maybe some file encoding problem?
00:49:15FromGitter<Alan-FGR> it's just a hello world
00:49:33Araqnim c -r hello.exe # find the error
00:50:17FromGitter<Alan-FGR> Actually, I was trying to compile the text.exe, it works fine, thanks Araq :P
00:50:24FromGitter<Alan-FGR> That's really embarassing
00:55:37FromGitter<Alan-FGR> For some reason however, 'compile&run' on Aporia only compiles really :P
00:56:25FromGitter<Alan-FGR> It's an readLine(stdin), so it's not like the terminal emulator is quitting
00:56:48Araqor maybe the console window pops up too quickly for you
00:57:05Araqdiscard stdin.readline()
00:58:15Araqgood night
00:58:22FromGitter<Alan-FGR> No deal, terminal emulator shows for a sec, then Aporia displays Process terminated with exit code 0
00:58:38FromGitter<Alan-FGR> Anyway, no biggie, thanks for the help Araq, have a good night
00:59:15FromGitter<Alan-FGR> I just realized people on IRC don't see the edits on gitter :P
01:02:31FromGitter<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:44vktecIs 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:08vktecI'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:12krux02Alan-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:13krux02the 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:34krux02vktec: as far as I know in nim nil does not yet have it's own nil type
01:28:13krux02when 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:42vktec@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:37vkteckrux02: 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:47FromGitter<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:48cheatfateVSCode is electron (Chrome) + nodejs + some javascript code from Microsoft...
01:30:00*[CBR]Unspoken quit (Ping timeout: 246 seconds)
01:30:02krux02sublime 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:12cheatfateAlan-FGR: Sublime is not good for starting and learning nim
01:30:18vktecElectron. Ew. Node.JS. Ew. Microsoft. Ew.
01:30:19vktec:P
01:30:34vktec^ My thoughts on VSCode
01:30:40FromGitter<Alan-FGR> cheatfate: and VSCode is?
01:31:28cheatfateAlan-FGR i think its better to start with VSCode and when you get tired switch to Sublime :)
01:31:33krux02vktec: exactly my thoights too :P
01:31:42*[CBR]Unspoken joined #nim
01:31:55vktec:D
01:32:07cheatfatevktec, krux02 and what browsers you are using?
01:32:17vktecqutebrowser
01:32:27cheatfatei thought you are using `lynx` :)
01:32:31krux02I have at the moment firefox open
01:32:49vkteccheatfate: I occasionally use elinks, actually :P
01:33:16vktecOh, and I check my email using command line tools :P
01:33:19cheatfateoldschool
01:33:34krux02I actually like the fact that there is a terminal based browser. I've heard it is the best browser for blind people
01:33:35vktecOld is usually good. IRC has proved that to be true
01:33:46krux02I just used it for curiosity
01:33:51krux02was fun
01:34:07krux02no old is not usually good
01:34:16krux02old and still active proves something
01:34:27vktecs/usually/often/
01:34:30vktecBetter?
01:34:36cheatfatezlib is not active for too long and still used everywhere
01:35:55krux02I like irc after I learned how to use it
01:36:37krux02but 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:56krux02I now use HexChat which is almost the same
01:37:10krux02but now I know what my common actions are and it is usable
01:37:36krux02but for first try people without any help it really feels strange
01:39:20vktecYeah
01:39:36vktecIt was very alien to me at first too
01:40:08*BitPuffin|osx joined #nim
01:40:22vktecNow I'm running a text-based, 100% self-configured IRC client in a terminal multiplexor :P
01:40:29vktec*multiplexer
01:40:45*vktec always struggles to spell that word
01:48:55krux02http://imgur.com/a/DFygo
01:49:12krux02when the link works that are screenshots of my current nim project
01:49:15krux02some rendering stuff
01:50:20vktecOoh, nice
01:50:41vktecThat's a lot more fancy than my current project :D
01:51:05Demosvery nice
01:51:17Demoslove them plasma effects
01:51:35krux02I am working on an opengl macro library to get gpu programming fun again
01:53:33krux02the 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:52krux02in the last screenshot I wanted to know how many objects I can render with instancing. It is one million
01:58:15krux02all objects have their own model matrix
02:01:19krux02are any of you currently working on some opengl code?
02:01:20cheatfatekrux02, and what fps you got with million?
02:01:36krux02cheatfate: just a few ;)
02:01:54krux02cheatfate: I would call it interactive framerate
02:02:14krux02not something you would want to have in a game though
02:03:10cheatfatekrux02, but plasma is looks very nice
02:03:46krux02you should see it in 60 fps
02:04:53krux02https://github.com/krux02/opengl-sandbox/blob/master/examples/neuralnetwork.nim
02:05:06krux02if you checkout the project, you should be able to run it
02:05:16krux02it only needs an opengl 3.3 core context
02:05:33krux02and arb direct state access
02:06:43krux02it even runs on mesa software rendering
02:13:51DemosI want mesa 4.5 core
02:13:56Demoslike D3D's ref device
02:14:46krux02Demos: yea but that doesn't help me, I am developing on Linux
02:15:21krux02I have the feeling, that I am the only developer who tries seriously to develop graphics applications on Linux
02:15:53krux02I 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:00Demosyeah
02:16:13Demosimo the tooling is just that there so much on linux
02:16:19Demosand drivers are just getting good
02:16:28krux02it's not just drivers
02:16:36krux02it's most of all tool support
02:16:44DemosI mean tool support blows on windows too
02:16:50Demoslike using DSA crashes renderdoc for me
02:16:55Demosand nsight
02:16:59krux02I am really happy for apitrace
02:17:12krux02that's the only tool on linux that actually works satisfyingly
02:18:18Demosyeah
02:18:23krux02but 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:52krux02But I am very happy to have at least that
02:22:34*vlad1777d quit (Quit: Leaving)
02:23:11krux02ok, I should now get ready to go home
02:23:23krux02otherwise the night might be over and I did not get any sleep
02:23:41DemosI 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:04vktecWhat'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:18def-vktec: template filename: string = instantiationInfo().filename
08:53:41vktecThanks def-
08:56:52*bjz joined #nim
09:01:09vktecHmm... 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:45Arrrr.compile ?
09:09:56vktec> header files
09:10:14vktecThe compile pragma is for C source files, no?
09:11:53Arrrrr-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:35elroodkrux02: 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:05zevlghey, guys, got build error under centos6
12:49:08zevlgc_code/2_2/stdlib_osproc.o: In function `nospwaitForExit':
12:49:08zevlgstdlib_osproc.c:(.text+0x1764): undefined reference to `clock_gettime'
12:49:08zevlg
12:49:35zevlg-lrt was missing
12:49:46zevlgwith -lrt it does links properly
12:54:22cheatfateAraq, its interesting issue, because osproc.nim imports posix.nim, which has `{.passL: "-lrt".}` for linux
12:54:53cheatfatezevlg, what is version of nim?
12:56:09zevlgnim-0.15.2
13:00:17zevlgI'm using this patch right now - http://pastebin.com/raw/DAHvC4eK
13:01:40cheatfatezevlg, you got build error, when building nim itself, or your got build error while building your nim project?
13:01:50zevlgwhile building nim itself
13:04:15Araqcheatfate: no, it's an old niminst issue, not interesting and hard to fix
13:04:33Araqthis part of the build script is not generated
13:04:56Araqbesides, not all versions of Linux require -lrt iirc
13:05:53*chemist69 quit (Ping timeout: 260 seconds)
13:06:45cheatfateAraq, 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:21cheatfateAraq, 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:07Araqno, because it should be generated
13:20:36*vlad1777d joined #nim
13:20:55elroodAraq, 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:56cheatfate`-lrt is only linux`
13:25:07cheatfatebuild.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:06elroodwell, 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:56elroodfor 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:54elroodthe 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:36cheatfateI 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:36cheatfateeven marking text via shift+arrows
14:01:49*Ven quit (Read error: Connection reset by peer)
14:02:16*Ven joined #nim
14:02:28cheatfatenow i dont want to make asyncronous console for windows anymore :)
14:03:24*kunev quit (Ping timeout: 260 seconds)
14:03:38AraqI use "cmder"
14:04:04cheatfatecmder?
14:05:03Araqhttp://cmder.net/
14:05:12cheatfateasync 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:09Calinoucmder 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:08federico3"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:43FromGitter<ephja> what about the powershell console? the tab completion can be modified, but maybe it lacks other things
15:36:14FromGitter<konqoro> so is there a reason for shl and shr when they could be <<, >>?
15:41:24cheatfatecommon 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:15cheatfateif unix implementation is trivial, windows implementation is not
15:42:22*Ven_ quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
15:43:53Araqkongo: do you want the shift ops to have the same precedence as comparion ops?
15:44:03Araq*comparison
15:45:05FromGitter<konqoro> yes
15:45:13*brechtm joined #nim
15:45:57FromGitter<konqoro> thats a problem
15:46:49federico3https://paste.debian.net/898811/ o
15:47:08federico3that's an odd bug... is anybody aware of it or shall I open an issue?
15:48:00*Ven joined #nim
15:50:20Araqcreate an iisue
15:50:31*Trustable quit (Remote host closed the connection)
15:54:08federico3#5055
16:03:58Araqfederico3: it's a codegen bug
16:04:18Araqthe codegen forgot to initialize the internal typeinfo field :-)
16:04:31Araqvery interesting
16:04:34federico3good spot :)
16:04:50federico3I'm surprised other people did not run into it
16:05:13FromGitter<ephja> let's ban bugs
16:05:21*Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
16:05:43Araqfor 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:55cheatfateyay, very painful bug
16:22:23*miere joined #nim
16:31:39krux02cheatfate: yes?
16:32:37krux02I recently found a bug, where a global variable was overridden when I changed focus of the opened window
16:32:55krux02that bug caused the program to crash instantly
16:33:24krux02at 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:04FromGitter<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:53dom96wow, 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:44krux02dom96: I don't care I don't read or interact with reddid
18:14:47*pregress_ quit (Ping timeout: 258 seconds)
18:15:12krux02but do they want to have the community centralized somewhere elese then?
18:16:57*libman joined #nim
18:17:38elroodit's perhaps less about reddit than about overmoderation in general, as i read it
18:18:10krux02can 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:07elroodnot 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:38elroodoh, btw, krux02, do you read the irc backlogs? seen the error i ran into when trying to build your gl project?
18:23:14krux02elrood: sometimes, but didn't read it doday not today
18:24:19*byte512 quit (Ping timeout: 252 seconds)
18:24:54krux02elrood: 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:42krux02elrood: I just saw the error, that import statement is unused and should be deleted
18:29:13elroodyep, 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:54krux02thanks, good to know
18:31:58krux02does it work now?
18:34:16elroodnope, samplers.nim(34, 5) Error: undeclared identifier: 'glBindTextureUnit'
18:38:02elroodnevermind 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:50krux02elrood: actually I have a similar problem with my laptod that I used for development from time to time
18:39:07krux02are you running linux?
18:39:15elroodaye
18:39:35krux02can you tell me the output of glxinfo | grep version?
18:39:49krux02I am sure it works in software rendering
18:40:42elrood1.4, 2.1 mesa 11.1, so.. oold
18:40:44*dddddd joined #nim
18:40:46krux02but it's weird that it says undeclared identifier
18:40:49krux02ok
18:41:44krux02can you write this: export LIBGL_ALWAYS_SOFTWARE=1
18:41:52krux02and tell me the output again
18:43:26dom96krux02: 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:51dom96Now because of this someone decided that the /r/golang subreddit should be deleted
18:44:04dom96And many prominent go-lang users agreed
18:44:17elroodah, i see, thanks for clearing that up
18:44:22dom96Which is in my opinion an over reaction.
18:44:42dom96s/the decided/he decided/
18:45:20elroodkrux02, no difference, btw
18:46:11krux02with export LIBGL_ALWAYS_SOFTWARE=1 you should be able to get a 3.3 core context
18:46:21krux02and 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:53elroodkrux02, 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:26krux02yea and I would really like other people to be able to use it
18:53:38krux02even with mesa software rendering
18:54:03*Matthias247 joined #nim
18:55:03elroodif 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:30dom96don't worry about cluttering the channel
18:57:39dom96It's not as if there is much activity otherwise...
18:57:46dom96krux02: does it support OS X?
18:58:24krux02dom96: I never tested it, but there is nothing in it that would be a reason for it to not run on OSX
18:58:31krux02it's just SDL2 and Opengl
18:58:36krux02nothing else
19:00:42dom96I'll test it in a couple of minutes :)
19:02:21krux02to 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:07dom96The testall script doesn't seem to work on OS X
19:32:13dom96find: -executable: unknown primary or operator
19:33:41*nsf quit (Quit: WeeChat 1.6)
19:34:12dom96deferred_shading fails with `could not find symbol: glCreateBuffers`
19:34:50dom96And neural network does too :\
19:34:52dom96krux02:
19:35:47krux02testall is very buggy that's true
19:36:03krux02I think I used it once when I wrote it and then forgot about it
19:36:40krux02I rely on direct state access
19:40:26vktecWould someone be able to take a look at my PR on the packages repo, when they have a moment?
19:40:36vktec#426, fwiw
19:41:49dom96Does this work? https://notabug.org/vktec/nimbox/src/master/nimbox.nimble#L58
19:42:40vktecdom96: Works for me
19:43:15dom96Cool.
19:44:32dom96merged
19:44:36vktecThanks!
19:53:22vktecI'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:23vktecusing c2nim and a nicer interface)
19:55:29*krux02 quit (Quit: Leaving)
20:02:17vktecOh. 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:35dom96Glad you're pleased :)
20:04:39dom96Please report that as a bug.
20:04:47vktecWill do
20:05:30*stisa joined #nim
20:05:48*space-wizard quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
20:06:04federico3ooh 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:43vktecdom96: I've created issue #280 on nim-lang/nimble
20:09:44*space-wizard quit (Client Quit)
20:10:02dom96vktec: thanks
20:10:10vktecdom96: 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:34dom96You can also install packages via git URL
20:10:38dom96I bet it happens in that case as well
20:10:43vktecAh, lemme test
20:11:04*space-wizard joined #nim
20:11:20*space-wizard quit (Client Quit)
20:11:28vktecbefore install is run when I install from Git
20:11:32vktecbiab
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:12dom96that'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:07vktecdom96: Indeed
21:21:02*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
21:44:11vktecdom96: 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:01vktecFound 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:59vktecWhen 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:07vktecThat's the issue, afaict
22:09:48vktecThe only problem is, that's gonna be damn hard to fix.
22:10:07vktecMaybe 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:01vktecdom96: 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:54dom96vktec: I reopened it.
23:03:00vktecOkay
23:04:39dom96Anybody 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:42vktecWhat'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:12cheatfatevktec, you mean you want to make 2 string objects from 1 string objects without memory allocation?
23:44:21vktecIdeally, yes
23:45:49cheatfatevktec, system.nim has nice type `Slice`, but i can't find any proper examples/documentation about it
23:46:04cheatfateso maybe its only prototype
23:47:09*chemist69 joined #nim
23:48:36vktecI think that's "foobar"[1..3] == "oob"
23:52:41*pregressive joined #nim
23:54:03vktecHmm... 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:48vktecGiven 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:06vktecUnless I'm missing it under a different name