<< 29-05-2018 >>

00:00:44*find0x90 quit (Quit: find0x90)
00:02:00*Electrux quit (Ping timeout: 260 seconds)
00:04:51*xkapastel quit (Quit: Connection closed for inactivity)
00:07:12*Electrux joined #nim
00:11:45*Electrux quit (Ping timeout: 264 seconds)
00:13:41*cornfeedhobo quit (Ping timeout: 265 seconds)
00:14:18FromDiscord<citycide> when nimble fails on windows with `Error: unhandled exception: The process cannot access the file because it is being used by another process.` - what file is it talking about exactly?
00:14:32FromDiscord<citycide> that's after `nimble install` btw
00:17:11*Electrux joined #nim
00:21:41*Electrux quit (Ping timeout: 256 seconds)
00:28:12*Electrux joined #nim
00:32:45*Electrux quit (Ping timeout: 264 seconds)
00:46:57*xkapastel joined #nim
00:48:11*Electrux joined #nim
00:52:00*cornfeedhobo joined #nim
00:52:53*Electrux quit (Ping timeout: 268 seconds)
01:07:11*Electrux joined #nim
01:11:33*Electrux quit (Ping timeout: 256 seconds)
01:17:12*Electrux joined #nim
01:21:55*Electrux quit (Ping timeout: 260 seconds)
01:37:15*Electrux joined #nim
01:41:42*Electrux quit (Ping timeout: 252 seconds)
01:47:12*Electrux joined #nim
01:51:29*Electrux quit (Ping timeout: 248 seconds)
01:55:39FromGitter<Varriount> Sounds like nimble is unable to open one of the files it's just written
01:55:54FromGitter<Varriount> Another process has opened the file in locked mode
01:57:47*Electrux joined #nim
02:07:06*Sentreen quit (Ping timeout: 256 seconds)
02:07:33*Sentreen joined #nim
02:08:32*Electrux quit (Quit: WeeChat 2.1)
02:08:54*Electrux joined #nim
02:37:17*macsek1911[m] quit (*.net *.split)
02:37:18*Jipok[m] quit (*.net *.split)
02:37:18*stisa quit (*.net *.split)
02:37:18*hohlerde quit (*.net *.split)
02:37:19*Abnegation quit (*.net *.split)
02:37:35*macsek1911[m] joined #nim
02:37:35*Jipok[m] joined #nim
02:37:35*stisa joined #nim
02:37:35*hohlerde joined #nim
02:37:35*Abnegation joined #nim
02:37:49*skrylar joined #nim
02:39:27*Cthalupa quit (Ping timeout: 240 seconds)
02:40:28*Abnegation quit (Ping timeout: 240 seconds)
02:40:51*carterza[m] quit (Ping timeout: 256 seconds)
02:40:53*dyce[m] quit (Ping timeout: 256 seconds)
02:41:15*stisa quit (Ping timeout: 240 seconds)
02:41:15*hohlerde quit (Ping timeout: 240 seconds)
02:41:27*TheManiac quit (Ping timeout: 245 seconds)
02:41:39*macsek1911[m] quit (Ping timeout: 240 seconds)
02:41:39*Jipok[m] quit (Ping timeout: 240 seconds)
02:41:42*zielmicha[m]1 quit (Ping timeout: 255 seconds)
02:41:42*yglukhov quit (Ping timeout: 255 seconds)
02:41:42*endes[m] quit (Ping timeout: 255 seconds)
02:41:42*sroecker[m] quit (Ping timeout: 260 seconds)
02:41:42*narimiran[m] quit (Ping timeout: 260 seconds)
02:41:46*mgdelacroix[m] quit (Ping timeout: 260 seconds)
02:41:46*Miguelngel[m] quit (Ping timeout: 260 seconds)
02:41:46*pqflx3[m] quit (Ping timeout: 260 seconds)
02:41:47*sendell[m] quit (Ping timeout: 255 seconds)
02:41:48*petersjt014[m] quit (Ping timeout: 255 seconds)
02:41:49*solitudesf quit (Ping timeout: 255 seconds)
02:41:50*Sentreen quit (*.net *.split)
02:41:50*vivus quit (*.net *.split)
02:41:51*libman[m] quit (Ping timeout: 260 seconds)
02:41:51*metaden92[m] quit (Ping timeout: 260 seconds)
02:41:58*marszym[m] quit (Ping timeout: 256 seconds)
02:41:59*notdekka[m] quit (Ping timeout: 256 seconds)
02:41:59*unclechu quit (Ping timeout: 256 seconds)
02:41:59*hitchhooker[m] quit (Ping timeout: 256 seconds)
02:42:02*planetis[m] quit (Ping timeout: 277 seconds)
02:42:05*amp907[m] quit (Ping timeout: 277 seconds)
02:42:05*byteflame quit (Ping timeout: 277 seconds)
02:42:09*Demos[m] quit (Ping timeout: 277 seconds)
02:42:09*Sentreen joined #nim
02:42:09*vivus joined #nim
02:42:36*vivus quit (Quit: Leaving)
02:44:50*sz0 quit (*.net *.split)
02:44:51*pwntus quit (*.net *.split)
02:44:51*Notkea quit (*.net *.split)
02:44:51*qwertfisch quit (*.net *.split)
02:44:51*JStoker quit (*.net *.split)
02:44:52*skrzyp quit (*.net *.split)
02:44:52*crem quit (*.net *.split)
02:44:53*Cthalupa joined #nim
02:44:56*Snircle quit (*.net *.split)
02:44:56*gmpreussner quit (*.net *.split)
02:44:56*SunDwarf quit (*.net *.split)
02:44:57*zszf6cefj5iz quit (*.net *.split)
02:45:12*Snircle joined #nim
02:45:12*gmpreussner joined #nim
02:45:12*SunDwarf joined #nim
02:45:12*zszf6cefj5iz joined #nim
02:45:17*sz0 joined #nim
02:45:17*pwntus joined #nim
02:45:17*Notkea joined #nim
02:45:17*qwertfisch joined #nim
02:45:17*JStoker joined #nim
02:45:17*skrzyp joined #nim
02:45:17*crem joined #nim
02:45:34*skrzyp quit (Max SendQ exceeded)
02:45:34*sz0 quit (Max SendQ exceeded)
02:46:50*oprypin quit (*.net *.split)
02:46:51*mwbrown quit (*.net *.split)
02:46:51*riidom quit (*.net *.split)
02:46:51*shashlick quit (*.net *.split)
02:46:54*der quit (*.net *.split)
02:46:54*couven92 quit (*.net *.split)
02:46:54*pydsigner quit (*.net *.split)
02:46:55*Calinou quit (*.net *.split)
02:46:55*Sargun quit (*.net *.split)
02:46:55*Lord_Nightmare quit (*.net *.split)
02:46:56*GaveUp quit (*.net *.split)
02:46:56*craigger quit (*.net *.split)
02:46:56*ofelas quit (*.net *.split)
02:46:56*mostly-harmless quit (*.net *.split)
02:46:56*Tanger quit (*.net *.split)
02:46:56*jsn- quit (*.net *.split)
02:46:57*edcragg quit (*.net *.split)
02:46:57*copygirl quit (*.net *.split)
02:46:57*tersec quit (*.net *.split)
02:46:58*hogeland quit (*.net *.split)
02:46:59*pwntus quit (*.net *.split)
02:46:59*Notkea quit (*.net *.split)
02:46:59*qwertfisch quit (*.net *.split)
02:46:59*JStoker quit (*.net *.split)
02:47:00*crem quit (*.net *.split)
02:47:00*Snircle quit (*.net *.split)
02:47:00*gmpreussner quit (*.net *.split)
02:47:00*SunDwarf quit (*.net *.split)
02:47:01*zszf6cefj5iz quit (*.net *.split)
02:47:01*Sentreen quit (*.net *.split)
02:47:03*surma quit (*.net *.split)
02:47:03*zielmicha_ quit (*.net *.split)
02:47:03*zama quit (*.net *.split)
02:47:04*jxy quit (*.net *.split)
02:47:04*literal quit (*.net *.split)
02:47:04*def- quit (*.net *.split)
02:47:04*regtools quit (*.net *.split)
02:47:04*EastByte quit (*.net *.split)
02:47:05*FromDiscord quit (*.net *.split)
02:47:05*WA9ACE quit (*.net *.split)
02:47:05*dada78641 quit (*.net *.split)
02:47:05*joshbaptiste quit (*.net *.split)
02:47:06*enigmeta quit (*.net *.split)
02:47:06*avsej quit (*.net *.split)
02:47:06*byte512 quit (*.net *.split)
02:47:06*FromGitter quit (*.net *.split)
02:47:07*skelett quit (*.net *.split)
02:47:08*skrylar quit (*.net *.split)
02:47:08*onionhammer quit (*.net *.split)
02:47:08*rauss quit (*.net *.split)
02:47:08*gb00s quit (*.net *.split)
02:47:08*Widdershins quit (*.net *.split)
02:47:08*d10n quit (*.net *.split)
02:47:09*awal quit (*.net *.split)
02:47:09*mr_yogurt quit (*.net *.split)
02:47:09*Electrux quit (*.net *.split)
02:47:09*ldlework quit (*.net *.split)
02:47:09*gangstacat quit (*.net *.split)
02:47:10*euantor quit (*.net *.split)
02:47:10*odc quit (*.net *.split)
02:47:10*r4vi quit (*.net *.split)
02:47:10*ehmry quit (*.net *.split)
02:47:11*CcxWrk quit (*.net *.split)
02:47:11*Cthalupa quit (*.net *.split)
02:47:11*thor77 quit (*.net *.split)
02:47:11*Araq quit (*.net *.split)
02:47:11*jonafato quit (*.net *.split)
02:47:11*subsetpark quit (*.net *.split)
02:47:12*Yardanico quit (*.net *.split)
02:47:12*shodan45 quit (*.net *.split)
02:47:12*federico3 quit (*.net *.split)
02:47:12*xkapastel quit (*.net *.split)
02:47:12*zahary quit (*.net *.split)
02:47:13*m712 quit (*.net *.split)
02:47:13*mgdelacroix quit (*.net *.split)
02:47:13*msmorgan quit (*.net *.split)
02:47:13*dashed quit (*.net *.split)
02:47:13*dzho quit (*.net *.split)
02:47:13*JacobEdelman quit (*.net *.split)
02:47:13*Guest40451 quit (*.net *.split)
02:47:14*abeaumont quit (*.net *.split)
02:47:14*cornfeedhobo quit (*.net *.split)
02:47:14*beatmox quit (*.net *.split)
02:47:15*mal`` quit (*.net *.split)
02:47:15*dom96 quit (*.net *.split)
02:47:16*mrshu quit (*.net *.split)
02:47:16*Elronnd\srn quit (*.net *.split)
02:47:16*vegax87 quit (*.net *.split)
02:47:16*livcd quit (*.net *.split)
02:47:17*vqrs quit (*.net *.split)
02:47:17*smt quit (*.net *.split)
02:47:17*ketralnis quit (*.net *.split)
02:47:18*flyx quit (*.net *.split)
02:47:18*cmk_zzz quit (*.net *.split)
02:47:18*acidx quit (*.net *.split)
02:47:18*Amun_Ra quit (*.net *.split)
02:47:18*heinrich5991 quit (*.net *.split)
02:47:53*crem joined #nim
02:47:53*JStoker joined #nim
02:47:53*qwertfisch joined #nim
02:47:53*Notkea joined #nim
02:47:53*pwntus joined #nim
02:47:53*zszf6cefj5iz joined #nim
02:47:53*SunDwarf joined #nim
02:47:53*gmpreussner joined #nim
02:47:53*Snircle joined #nim
02:47:53*Cthalupa joined #nim
02:47:53*Sentreen joined #nim
02:47:53*skrylar joined #nim
02:47:53*Electrux joined #nim
02:47:53*cornfeedhobo joined #nim
02:47:53*xkapastel joined #nim
02:47:53*Lord_Nightmare joined #nim
02:47:53*smt joined #nim
02:47:53*onionhammer joined #nim
02:47:53*zahary joined #nim
02:47:53*GaveUp joined #nim
02:47:53*der joined #nim
02:47:53*couven92 joined #nim
02:47:53*craigger joined #nim
02:47:53*beatmox joined #nim
02:47:53*ldlework joined #nim
02:47:53*edcragg joined #nim
02:47:53*rauss joined #nim
02:47:53*gangstacat joined #nim
02:47:53*ofelas joined #nim
02:47:53*Elronnd\srn joined #nim
02:47:53*mostly-harmless joined #nim
02:47:53*gb00s joined #nim
02:47:53*pydsigner joined #nim
02:47:53*Calinou joined #nim
02:47:53*copygirl joined #nim
02:47:53*jxy joined #nim
02:47:53*dzho joined #nim
02:47:53*literal joined #nim
02:47:53*Tanger joined #nim
02:47:53*jsn- joined #nim
02:47:53*Sargun joined #nim
02:47:53*WA9ACE joined #nim
02:47:53*tersec joined #nim
02:47:53*ketralnis joined #nim
02:47:53*def- joined #nim
02:47:53*m712 joined #nim
02:47:53*mgdelacroix joined #nim
02:47:53*msmorgan joined #nim
02:47:53*dashed joined #nim
02:47:53*enigmeta joined #nim
02:47:53*surma joined #nim
02:47:53*zielmicha_ joined #nim
02:47:53*avsej joined #nim
02:47:53*Yardanico joined #nim
02:47:53*regtools joined #nim
02:47:53*shodan45 joined #nim
02:47:53*mal`` joined #nim
02:47:53*thor77 joined #nim
02:47:53*vegax87 joined #nim
02:47:53*EastByte joined #nim
02:47:53*byte512 joined #nim
02:47:53*FromGitter joined #nim
02:47:53*euantor joined #nim
02:47:53*cmk_zzz joined #nim
02:47:53*federico3 joined #nim
02:47:53*Widdershins joined #nim
02:47:53*odc joined #nim
02:47:53*Araq joined #nim
02:47:53*hogeland joined #nim
02:47:53*zama joined #nim
02:47:53*r4vi joined #nim
02:47:53*JacobEdelman joined #nim
02:47:53*Guest40451 joined #nim
02:47:53*FromDiscord joined #nim
02:47:53*skelett joined #nim
02:47:53*d10n joined #nim
02:47:53*flyx joined #nim
02:47:53*ehmry joined #nim
02:47:53*abeaumont joined #nim
02:47:53*dada78641 joined #nim
02:47:53*jonafato joined #nim
02:47:53*acidx joined #nim
02:47:53*joshbaptiste joined #nim
02:47:53*Amun_Ra joined #nim
02:47:53*awal joined #nim
02:47:53*mr_yogurt joined #nim
02:47:53*dom96 joined #nim
02:47:53*mrshu joined #nim
02:47:53*livcd joined #nim
02:47:53*subsetpark joined #nim
02:47:53*CcxWrk joined #nim
02:47:53*heinrich5991 joined #nim
02:47:53*vqrs joined #nim
02:48:01*arecaceae quit (Max SendQ exceeded)
02:48:04*oprypin joined #nim
02:48:04*mwbrown joined #nim
02:48:04*riidom joined #nim
02:48:04*shashlick joined #nim
02:48:25*arecaceae joined #nim
02:48:26*skrzyp joined #nim
02:48:38*sz0 joined #nim
02:50:03*der quit (*.net *.split)
02:50:03*couven92 quit (*.net *.split)
02:50:04*pydsigner quit (*.net *.split)
02:50:04*Calinou quit (*.net *.split)
02:50:04*Sargun quit (*.net *.split)
02:50:07*Lord_Nightmare quit (*.net *.split)
02:50:08*GaveUp quit (*.net *.split)
02:50:08*craigger quit (*.net *.split)
02:50:08*ofelas quit (*.net *.split)
02:50:08*mostly-harmless quit (*.net *.split)
02:50:09*Tanger quit (*.net *.split)
02:50:09*jsn- quit (*.net *.split)
02:50:11*edcragg quit (*.net *.split)
02:50:11*copygirl quit (*.net *.split)
02:50:11*tersec quit (*.net *.split)
02:50:12*hogeland quit (*.net *.split)
02:50:29*der joined #nim
02:50:30*couven92 joined #nim
02:50:30*pydsigner joined #nim
02:50:30*Calinou joined #nim
02:50:30*Sargun joined #nim
02:51:01*GaveUp joined #nim
02:51:01*craigger joined #nim
02:51:01*ofelas joined #nim
02:51:01*mostly-harmless joined #nim
02:51:01*Tanger joined #nim
02:51:01*jsn- joined #nim
02:51:06*edcragg joined #nim
02:51:07*copygirl joined #nim
02:51:07*tersec joined #nim
02:51:07*hogeland joined #nim
02:52:43*Lord_Nightmare joined #nim
02:55:21*skrzyp quit (Ping timeout: 240 seconds)
02:56:45*skrzyp joined #nim
03:08:28*Snircle quit (Quit: Textual IRC Client: www.textualapp.com)
03:13:22*pqflx3[m] joined #nim
03:18:53FromDiscord<citycide> @Varriount yes I understand the message but which file?
03:20:12*leorize joined #nim
03:32:55*hitchhooker[m] joined #nim
03:32:55*byteflame joined #nim
03:32:56*Abnegation joined #nim
03:32:56*yglukhov joined #nim
03:32:56*Miguelngel[m] joined #nim
03:32:56*mgdelacroix[m] joined #nim
03:32:56*dyce[m] joined #nim
03:32:57*Demos[m] joined #nim
03:32:57*solitudesf joined #nim
03:32:57*unclechu joined #nim
03:33:02*carterza[m] joined #nim
03:33:02*marszym[m] joined #nim
03:33:02*narimiran[m] joined #nim
03:33:02*endes[m] joined #nim
03:33:02*sendell[m] joined #nim
03:33:02*petersjt014[m] joined #nim
03:33:02*Jipok[m] joined #nim
03:33:03*TheManiac joined #nim
03:33:03*stisa joined #nim
03:33:03*zielmicha[m] joined #nim
03:33:03*planetis[m] joined #nim
03:33:03*metaden92[m] joined #nim
03:33:03*libman[m] joined #nim
03:33:04*macsek1911[m] joined #nim
03:33:04*amp907[m] joined #nim
03:33:05*notdekka[m] joined #nim
03:33:05*hohlerde joined #nim
03:33:06*sroecker[m] joined #nim
03:45:22FromDiscord<citycide> it'd be helpful if those error messages included the name of the file is all
04:00:58*skrylar quit (Remote host closed the connection)
04:04:18*xet7 joined #nim
04:09:17*xet7 quit (Remote host closed the connection)
04:11:05*xet7 joined #nim
04:18:56FromGitter<kayabaNerve> @citycide Try writing each of the files one by one to find out
04:19:03FromGitter<kayabaNerve> Or just clear the directory and try again
04:19:11FromGitter<kayabaNerve> Or search for an old lockfile
04:29:57*Elronnd\srn is now known as Elronnd
04:41:03Electruxlol the macros part of this language will take a while to understand... read through it... didn't understand half of it :P but now i understand at least some of the second part of the tutorial yaay :D
04:51:35*endragor joined #nim
05:14:56Electruxhuh... plotly doesn't seem to run for me... i build the code of their first example, it builds correctly, but nothing on my browser... it does not even open my browser
05:15:53Electruxand outputs an empty sequence ( @[] ) on my console
05:33:50*nsf joined #nim
06:57:42FromGitter<alehander42> what is the most confsing thing about macros? have you used another macro system before?
06:58:47FromGitter<alehander42> if you haven't they can be a really strange concept, but think of them as functions on compile time, which take part of your code as argument and replace it by another code
06:59:32FromGitter<alehander42> if you have, probably you used lisp? i guess templates are closer to nim macros
07:00:18FromGitter<alehander42> but they can't express everything, so you need to half-manually build the AST of the new code sometimes and you use directly `macro`
07:00:42FromGitter<alehander42> (but usually you can still build the subblocks of your macro with quote: + placeholders)
07:02:44FromGitter<alehander42> (it's interesting for me to see what is the hardest part for a new user)
07:39:16Araqfyi I only have occasional wifi here
07:41:22Araqbut I'm alive and brought you this lovely thing: https://github.com/nim-lang/Nim/blob/araq-big-refactoring/tests/compilerapi/tcompilerapi.nim
07:47:27*floppydh joined #nim
08:02:50*gmpreussner quit (Ping timeout: 260 seconds)
08:05:13*gmpreussner_ joined #nim
08:10:18*sendell joined #nim
08:13:20Yardanicointeresting - https://github.com/snowlt23/Flori (programming language compiler implemented in nim)
08:15:32FromGitter<alehander42> @Araq awesome, so the compiler depends fully on conf not globals now? does it gets us closer to symbol files ?
08:15:49Araqyup
08:17:53Yardanico@PMunch hi, I have a little suggestion for binaryparse - is there a way to add something like "loop"? E.g.: I have a file which consists of a lot of entries, each of them has 4 int32 fields, but there's no thing like "size" in the file. Of course I can easily read this file with streams module, but maybe it would be good for binaryparse to have that functionality.
08:19:34YardanicoHmm, maybe it would be better if I make this an issue
08:20:15Electruxdoes nim have an auto completion engine for vim?
08:50:13FromGitter<data-man> So, Unicode RFC: #7902 ⏎ The thoughts, ideas, opinions, comments, corrections, criticism, likes ~~and dislikes~~ *highly* appreciated.
08:52:55*floppydh quit (Remote host closed the connection)
09:16:09*floppydh joined #nim
09:28:05*Vladar joined #nim
09:28:59FromGitter<krux02> @data-man what is the difference between code point and rune?
09:31:25FromGitter<data-man> Rune isn't good name, IMHO.
09:34:52*xkapastel quit (Quit: Connection closed for inactivity)
09:37:38*sendell quit (Remote host closed the connection)
09:39:01FromGitter<Vindaar> @Electrux regarding plotly: if you see @[] on your console that (I assume) means plotly doesn't find a suitable browser on your system to open
09:39:40Electruxoh... crap lol ok so how do i get it to recognize my brwoser? it is safari
09:47:52FromGitter<krux02> @data-man well yea Rune isn't great for a name, but it is already established. I don't concider Nim powerful enough to make an impact here. And inventing a new name for something really should have a good reason.
09:49:12FromGitter<krux02> and that table is very hard to read
09:49:46FromGitter<krux02> it doesn't find in the github page I have to scroll horizontally. and to do that I first have to scoll all the way down scroll right and then back up again.
09:50:09FromGitter<krux02> I know it's a github fault, but you might put your table somewhere else
09:50:27FromGitter<Vindaar> @Electrux I don't have a Mac, so I'm not entirely sure. Currently plotly only looks for the following browser (see in plotly/src/plotly/browser.nim): ⏎ ⏎ ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=5b0d2263a7abc8692ef18992]
09:50:39FromGitter<Vindaar> you could go ahead and try to add "safari" to that seq
09:52:37FromGitter<data-man> @krux02: So shows github. :( If I convert a table into a picture, would it be better?
09:53:50FromGitter<data-man> Maybe ```uchar``` instead of CodePoint.
09:54:49Electruxi installed plotly from nimble... where can i find its src?
09:55:48FromGitter<Vindaar> oh, then it should be here: ⏎ ⏎ ```~/.nimble/pkgs/plotly-0.1.0/plotly``` [https://gitter.im/nim-lang/Nim?at=5b0d23a452e35117cded30d6]
09:59:32FromGitter<alehander42> @Electrux I left some very basic hints about macros up there, sorry that I forgot to tag ya
10:02:34Electruxthanks Vindaar, and thanks alehander42 :D
10:03:39FromGitter<GULPF> @krux02 Can you post the code that reached the register limit in the VM? I think it's really hard to reach the register limit unless you have like several hundreds local variables or something, so it might be a bug
10:05:42FromGitter<Vindaar> @Electrux does it work now? If so it'd be a good idea to create a PR for plotly :)
10:09:03Electruxi haven't tried right now... gotta go for now, will try after i come back :) Vindaar
10:09:24FromGitter<Vindaar> Ah ok, no worries!
10:11:33Electruxbtw, safari doesn't really have a command to open it except "open -a safari"
10:11:54Electruxor "/Applications/Safari.app/Contents/MacOS/Safari"
10:13:27FromGitter<krux02> @GULPF well it might be that I have several hundreds of local variables
10:14:09FromGitter<krux02> That is just how I write the code, everything inline
10:14:31FromGitter<krux02> and macros generating more local variables, because I use quite a compex ast pattern matching tree
10:15:44FromGitter<GULPF> then that's probably the issue. the vm isn't very smart about data flow, so it needs
10:15:55FromGitter<GULPF> so it needs one register for every local
10:17:07FromGitter<Vindaar> oh, I see. Then one probably needs to do something along the lines of. Maybe also check for `defined(MacOSX)` ⏎ ⏎ ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=5b0d28a2e26c847ac89d15e6]
10:18:56FromGitter<GULPF> the vm could be improved to use live variable analysis to reduce the number of registers needed, but it might be hard to incorporate into vmgen
10:19:11FromGitter<krux02> @GULPF this is the line that I added to create the compilation failure: https://github.com/krux02/opengl-sandbox/blob/master/experiment/glslTranslate.nim#L263
10:37:57FromGitter<Varriount> @data-man Why do the other languages use trie as the data structure for Unicode?
10:41:55FromGitter<data-man> @Varriount: Fast and compact.
10:46:10FromGitter<data-man> It's multi-stage tables in fact.
10:58:21FromGitter<data-man> Oh, I forgot about the ICU library for C ++. :) It also uses Trie.
11:19:28Electruxif i modify a package of nimble, how do i update that package? for myself
11:23:26FromGitter<zetashift> What do you mean? If you modified it and saved it, it should be fine
11:24:03FromGitter<zetashift> you could try `nimble build` maybe
11:25:27Electruxyes ur right... it automatically handles that and when i use nim to compile, the modified file is compiled again
11:25:33ElectruxVindaar are u there?
11:25:59FromGitter<Vindaar> yeah, still here
11:26:03Electruxthanks zetashift :)
11:26:14FromGitter<Vindaar> will be gone for ~half an hour in a couple minutes though
11:26:16ElectruxVindaar, i got how to make the safari work :D
11:26:20FromGitter<zetashift> That's all you electrux :D
11:26:23FromGitter<Vindaar> nice!
11:26:43Electruxso... where am i supposed to post a PR about it?
11:27:11Electruxbrentp/plotly?
11:27:17Electruxbrentp/nim-plotly?
11:27:18FromGitter<Vindaar> yup
11:27:33*athenot joined #nim
11:28:22Electruxok thanks :D
11:33:12Electruxbtw, it is not able to make the /tmp/x.html file i guess since there exists no file with that name after the program runs
11:33:16ElectruxVindaar
11:54:08*floppydh quit (Quit: WeeChat 2.1)
12:09:40FromGitter<Vindaar> @Electrux I'm not sure what you mean. plotly creates that file as a temporary file, which contains the calls to plotly incl. the data. After it runs it's deleted.
12:10:00Electruxso why is it trying to open that file on my browser? :O
12:10:08*floppydh joined #nim
12:11:29FromGitter<Vindaar> so plotly creates that file -> opens your browser with that file -> then deletes the file
12:12:06FromGitter<Vindaar> what exactly did you change to get the correct call to safari?
12:17:06Electruxjust added "open" in the sequence
12:17:23Electruxand why does it open my browser with that file? my browser complains that there is no file of that name lol
12:20:44FromGitter<krux02> Electrux when I understand open correctly, open checks for a command that is associated with a file type
12:21:00FromGitter<krux02> and when a file type is configured to be opened in the browser, the browser will ope
12:21:35Electruxyes
12:21:47Electruxbut that is not just for files
12:21:51Electruxit also applies to URLs
12:23:12FromGitter<Vindaar> so basically the call plotly is doing on your machine is "open /tmp/x.html" if I'm not mistaken
12:23:35*FuntDobra joined #nim
12:23:49FromGitter<Vindaar> and this does indeed open safari with a tab in which it tries to access /tmp/x.html, but that says file not found?
12:24:04FromGitter<Vindaar> because normally the file is deleted only after it was read by the browser
12:24:40*DarkArctic joined #nim
12:26:23Electruxyea... it opens safari correctly with a tab but then i find file not found
12:26:52Electruxi guess the program is closing too quickly? because as far as i know, calling open is not synchronous
12:28:49FromGitter<Vindaar> maybe opens returns immediately? so that the line `var (outp, errC) = execCmdEx(b & " " & path)`finishes and then in plotly.nim ⏎ ⏎ ``` browser.open(path) ⏎ removeFile(path)``` ⏎ ⏎ the first line is finished before safari actually has the time to open that file [https://gitter.im/nim-lang/Nim?at=5b0d47814eaffb692d64801a]
12:29:52FromGitter<Vindaar> maybe try to add an `import os` statement at the top of plotly.nim and then put a `sleep(1)` in between these two lines
12:30:03FromGitter<Vindaar> *sleep(1000)
12:30:53FromGitter<Vindaar> nvm `import os`, already imported :P
12:38:41*athenot quit (Ping timeout: 276 seconds)
12:38:52*athenot_ joined #nim
12:46:27Electruxyes, as far as i know, "open" returns immediately
12:47:01FromGitter<Vindaar> then that's probably the issue
12:48:11Electruxyea... lemme try something
12:53:07Electruxyep, commenting out the delete file function makes the site show correctly
12:53:26Electruxso yea... "open" does not block... Vindaar
12:54:03FromGitter<Vindaar> yup. But try with a sleep in between the two lines, maybe that's enough. No need to keep the file around
13:01:04Electruxwon't that depend on the computer's speed? my system is fast enough, but if someone's isn't they will encounter the problem
13:01:30Electruxso it would be kind of a gamble... Vindaar
13:02:43dom96why remove that file so quickly after opening in safari?
13:04:20FromDiscord<citycide> why doesn't plotly just use https://nim-lang.org/docs/browsers.html#openDefaultBrowser,string
13:04:33Yardanicowho knows :D
13:17:58Electruxmaybe because it is also non blocking call and they need it to be blocking in order to prevent file from being deleted before browser opens?
13:20:53FromGitter<krux02> hmm I have a bug
13:21:16FromGitter<krux02> when I try to do printf debugging but it seems to be total foobar
13:22:36*Vladar quit (Quit: Leaving)
13:22:41FromGitter<krux02> this code here: ``` echo "body:" ⏎ ⏎ `````` [https://gitter.im/nim-lang/Nim?at=5b0d5421361a950a66245394]
13:23:37FromGitter<krux02> produces the following output: http://ix.io/1bIH
13:23:42FromGitter<krux02> total BS
13:27:31FromGitter<zetashift> C# has this nameof function which can give you a simple name of a function/method. Is there an equivalant in Nim?
13:27:55FromGitter<zetashift> Is it name() in the typetraits module?
13:28:06FromGitter<brentp> just seeing the discussion re plotly. I didn't know about `browsers` module until recently. I guess nim-plotly should use that instead. is the removeFile causing problems for some folks?
13:28:33FromGitter<brentp> ... gotta change the path to a random file too.
13:28:54FromGitter<zetashift> I haven't checked nim-plotly out yet, but it looked really interesting, if you need any testing on a windows machine just drop it on me @brentp
13:30:25FromGitter<brentp> @zetashift that would be great. looks like windows support would be a good reason to use the browsers module from stdlib.
13:38:35*skrylar joined #nim
13:41:32*BitPuffin joined #nim
13:42:04FromGitter<krux02> @zetashift nim has macros, you can not only get the name, but the entire implementation of the names and types of of all nodes in the tree of the implementation
13:43:54FromGitter<zetashift> With great power comes great responsibility
13:44:32*SenasOzys joined #nim
13:44:40*themagician joined #nim
13:46:07FromGitter<zetashift> I just need to the name for now, google says foo().procname or a newCall() macro
13:46:25FromGitter<7sDream> can nimbot eval multiline program?
13:46:28FromGitter<krux02> newCall is kind of the opposite of what you want
13:46:39FromGitter<krux02> @7sDream no
13:46:42FromGitter<zetashift> both didn't work as procname didn't work and newCall gave a nimnode
13:46:43FromGitter<7sDream> !eval ⏎ echo "1" ⏎ echo "2"
13:46:43NimBotCompile failed: <no output>
13:46:47FromGitter<7sDream> OK
13:46:56dom96use https://play.nim-lang.org
13:47:17FromGitter<7sDream> just want to give an simple example with macro
13:47:20FromGitter<krux02> dom96: do you know a bit how the nimvm works?
13:47:37FromGitter<krux02> maybe you can help me to work around a bug/limitation of it that I was not aware of
13:47:53dom96probably less than you :)
13:48:15FromGitter<krux02> well maybe
13:48:21FromGitter<krux02> maybe you will be my rubber duck
13:48:42FromGitter<krux02> well the problem is that I use a lot of local variables
13:48:59FromGitter<krux02> I think most are generated by my own macro for ast pattern matching
13:49:40FromGitter<krux02> this results in nim generating too many local variables and boom, nim compilation crashes with non-informative error message
13:49:42FromGitter<alehander42> I think you can replace some of those local vars by local templates and template invocations, but that might be incredibly wrong
13:49:56FromGitter<krux02> but at least I know now that the problem is not to use too many variables
13:50:21FromGitter<alehander42> at least that was one of my ideas in my fork (but for different reason: to let one easily modify a matched value)
13:50:30FromGitter<alehander42> without overhead
13:50:39FromGitter<krux02> but I would like to know if I put things into a function, if I can then use a new set of local variables,
13:51:26FromGitter<krux02> well the overhead of creating a local variables should not be big at all
13:52:02FromGitter<krux02> and I think it is correct
13:52:13FromGitter<krux02> because I have to take a child node and then do checks on it.
13:52:29FromGitter<7sDream> @zetashift https://glot.io/snippets/f1hmmznif1
13:52:31FromGitter<7sDream> try this
13:52:47FromGitter<alehander42> the overhead was for stuff like assigning a sequence to a local variable
13:53:00FromGitter<zetashift> thanks! I'll try it out
13:55:00FromGitter<zetashift> Didn't work, seems I have an other problem :(
13:55:43FromGitter<7sDream> Maybe you need to describe your needs in detail?
13:56:52FromGitter<zetashift> I'm gonna try and work this out a bit more since it might not be Nim related. Still thanks @7sDream :D
13:59:06FromGitter<7sDream> 👌
13:59:46skrylarmratsim: you have to pull tensors back from openCL to run the activation functions? gross :x
14:01:21FromGitter<zetashift> whoop fixed it, I needed to add a certain pragma
14:02:53FromGitter<mratsim> @skrylar, lack of time, idem for Cuda ;)
14:04:16*xkapastel joined #nim
14:05:43skrylari actually have no idea how to write custom opencl kernels
14:10:05FromGitter<mratsim> 37 lines, here you go: https://github.com/mratsim/Arraymancer/blob/master/src/tensor/private/p_kernels_interface_opencl.nim#L42-L79
14:13:27*FuntDobra quit (Ping timeout: 240 seconds)
14:13:39skrylari'll keep the tab open, thanks.
14:14:03skrylartrying to replicate VoiceLoop. if i get it working will definitely want to shove the relus and friends on to the GPU
14:16:31*Gnjurac joined #nim
14:16:31*Gnjurac quit (Changing host)
14:16:31*Gnjurac joined #nim
14:16:33Gnjurachi
14:23:04skrylarhiyo
14:30:19Gnjuracwanted to ask something but figured it out :)
14:30:27*endragor quit (Remote host closed the connection)
14:30:56*endragor joined #nim
14:35:27*endragor quit (Ping timeout: 240 seconds)
14:37:31Gnjurachaw to make tuple seq
14:37:36*nsf quit (Quit: WeeChat 2.1)
14:37:45skrylarseq[tuple[winning]]?
14:38:12YardanicoGnjurac seq[tuple(string, string)] will create a sequence of tuples with two strings
14:38:18Gnjuracoh i was trying var showsFolder : tuple[kind: PathComponent, path: string]
14:38:21Yardanico*it wouldn't create, it's a type
14:45:45*Snircle joined #nim
14:51:53*Gnjurac quit (Remote host closed the connection)
15:02:36*xet7 quit (Ping timeout: 256 seconds)
15:14:38skrylarhrm. i seem to be confused as to how this embedding matrix can be updated when it is used to create a longer tensor
15:14:45*SenasOzys quit (Ping timeout: 256 seconds)
15:15:43*xet7 joined #nim
15:17:40Electruxwhy can i not use paramStr( 0 )? shouldn't the 0th index contain program name?
15:18:39FromGitter<Vindaar> yep, it should. what doesn't work for you?
15:19:01*SenasOzys joined #nim
15:19:55Electruxoh it is given in documentation to use from 1..paramCount()
15:20:07*athenot_ quit (Read error: Connection reset by peer)
15:20:19FromGitter<7sDream> you need https://nim-lang.org/docs/os.html#getAppFilename
15:20:19Electruxand that other indices would give error
15:21:59Electruxoh... nevermind... turns out that index 0 does give program name... so what is the need of getAppFilename() then?
15:22:11Electruxboth give exactly same result
15:22:27*athenot joined #nim
15:22:34leorizenot all os have program name at index 0
15:23:05FromGitter<Vindaar> yep, also mentioned here: https://nim-lang.org/docs/os.html#paramStr,int
15:24:47FromGitter<7sDream> and `getAppFilename` gives you a `string`, `paramStr` gives a system spec string or some other name(when in a spec compile mode)
15:25:28Electruxwow really? i did not know that leorize... could u please give me an example? it's fascinating :)
15:25:49FromGitter<7sDream> see https://nim-lang.org/docs/manual.html#taint-mode
15:25:59Electrux:O
15:26:14*Trustable joined #nim
15:27:22Electruxwhat does input validation mean? i don't get the taint mode ( string example ) i apologize :(
15:29:26*athenot quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
15:29:30FromGitter<7sDream> He just helps the compiler(and you can) realize that this string comes from an untrusted environment, and that you do some processing before you use it (eg, format validation, escape)
15:29:56FromGitter<7sDream> Just my opinion
15:30:35Electruxoooh
15:30:44Electruxso i should use tainted string when taking input?
15:32:26Electruxand is there a code completion engine of nim for vim?
15:32:35Electruxlike YouCompleteMe for C++
15:33:08FromGitter<zetashift> the nim-mode should take care of that no?
15:33:13leorizezah/nim.vim have the function, although last time I check it uses the long gone nim idetools
15:33:22FromGitter<7sDream> I personally just a newcomer, still learning Nim, so I have not actually used this mode
15:33:24leorizezetashift: nim-mode is emacs-only
15:33:30FromGitter<zetashift> whoops
15:34:06FromGitter<zetashift> I had emacs in my mind since I saw that they just released a new version
15:34:40leorizeElectrux: https://stackoverflow.com/questions/2050961/is-argv0-name-of-executable-an-accepted-standard-or-just-a-common-conventi
15:34:49FromGitter<7sDream> VSCode extension works well for me
15:35:13Electruxbut i don't use VSCode... i use Vim ( neovim to be precise )
15:35:19FromGitter<7sDream> except for parameter hint :/
15:35:25leorizeit's a bit (*cough* electron) heavy though
15:35:55FromGitter<7sDream> Aha, I agree
15:36:23*FuntDobra joined #nim
15:37:36Electruxand thanks for that link leorize :) i never knew that... guess i should read me the C standard book or something haha
15:37:38Electrux:P
15:38:04FromGitter<zetashift> @Electrux did you try this one? https://github.com/baabelfish/nvim-nim it mentions code completion
15:38:07leorizeneovim completion plugin https://github.com/baabelfish/nvim-nim
15:38:37leorizeit's abandoned though, last time I check the highlighting wasn't working that great
15:41:02Electruxwow it is SOOOOO laggy :O
15:41:42Electruxand it screws up the indentation...
15:41:55Electruxoh well... will keep using zah/nim for now <3
15:42:58Electruxthanks leorize :)
15:44:05*athenot joined #nim
15:45:43Yardanicoleorize VSCode is still much better than atom
15:46:01FromGitter<7sDream> +++++1
15:46:07*floppydh quit (Quit: WeeChat 2.1)
15:46:11leorizestill, that doesn't excuse it from the RAM eating habit of electron
15:46:24Yardanicoleorize there are no alternatives for Nim development
15:46:39leorizeor you can write your own plugin for vim
15:46:45Yardanico(I mean real alternatives with full autocompletion support)
15:46:51leorizeI did, never finish it though, but good enough for me
15:46:57YardanicoI don't use any console editors except nano for quick editing :)
15:51:05*FuntDobra quit (Ping timeout: 260 seconds)
15:51:13Electruxwait... u wrote a plugin for vim? leorize can i have it too?
15:52:48leorizeno, sorry, it's currently a mess over here :( I planned to tidy it up and properly integrate neovim's new socket support but haven't got anytime to do so
15:54:48Electruxlol oh well... ok guess i should attempt to understand how vim plugins and completion integrations work too :P
15:55:52leorizehttp://learnvimscriptthehardway.stevelosh.com/
15:56:19leorizethat book helped me a lot when I was writing the plugin
15:56:32leorizehopefully you would find it useful :)
15:58:00FromGitter<krux02> Yardanico: I will try VSCode again as soon as it supports keyboard layouts
15:58:22FromGitter<krux02> because currently VSCode is broken if you don't use US qwerty
15:58:35Yardanicohow it's broken? you mean keyboard shortcuts?
15:58:48FromGitter<krux02> yes, I can't use keyboard shortcuts
15:59:07YardanicoI have two layouts - russian and US qwerty, just switched to russian and they still work for me
15:59:14*SenasOzys quit (Remote host closed the connection)
15:59:32*SenasOzys joined #nim
15:59:44FromGitter<krux02> well they have some magic in the background that fucks up keboard layout support
16:00:05FromGitter<krux02> for example I can't bind the undo key to undo my edits
16:00:10FromGitter<krux02> but that is not essential
16:00:29FromGitter<krux02> the problem is "they keyboard shortcut is not possible in your keyboard layout configuration"
16:00:58*couven92 quit (Quit: Client disconnecting)
16:00:59FromGitter<krux02> ctrl+ü is traslated to be ctrl+z and ctrl+z is also ctrl+z
16:01:03*yglukhov[i] joined #nim
16:01:04FromGitter<krux02> yay two ways of doing the same
16:01:09FromGitter<krux02> and other things I can't do at all
16:01:43FromGitter<krux02> I wonder when application programmers learn to not mess with the keyboard
16:02:03FromGitter<krux02> just take the keys as they come in, and not try to magically resolve "what you meant"
16:02:07FromGitter<krux02> it always breaks
16:02:42FromGitter<krux02> btw I have "de neo" as my layout, a but unconventional, but not so much where I live.
16:05:34Electruxoooh thanks leorize :D
16:07:26FromGitter<zetashift> @Electrux you could take a look at spacemacs+nim it uses the emacs plugin but has vim keybindings
16:08:14*athenot quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
16:08:31leorizethere's a plugin for vscode as well to use neovim as it's backend, which sounds cool
16:08:39Electruxoh... wait... nim has a spacemacs layer?
16:08:42leorizebut afaik it's still unfinised
16:08:52Electruxthat's awesome because i use spacemacs too yaay :D
16:09:00leorizenim-mode is an emacs plugin after all :P
16:09:00Yardanico@PMunch - if you're around - https://github.com/PMunch/binaryparse/issues/2
16:09:32Electruxwell... still... i'd like to try this vim thingy too :P
16:09:57Electruxcool! i'll see how well it works on emacs :D
16:10:12Electruxbtw are u all contributors? it feels like u guys are
16:10:25Yardanicoa lot of us are :)
16:10:45Electruxor pro nimsters
16:10:49Electruxcoool :D
16:11:09Electruxi hope to learn the language enough and contribute someday too :)
16:22:25FromGitter<ephja> does every other site make the content fit on small browser windows by determining if the user is using a phone for example rather than only taking the width into account? -.-
16:22:27FromGitter<zetashift> I'm a hobby programmer instead of the usual python java learning route I took elixir nim and scala, which...isn't effective but fun!
16:23:03FromGitter<zetashift> @ephja I think they use that @media query
16:23:38leorizeephja: there's no reliable way aside from @media query
16:25:49*FuntDobra joined #nim
16:28:52FromGitter<ephja> a lot of sites still don't, apparently. yeah, this particular one uses tables. well, disabling page style to the rescue
16:30:29FromGitter<ephja> that and only highlighting comments in code makes for a nice change actually
16:32:50FromGitter<ephja> the biggest problem might be the occasional full-width svg image :p
16:33:13Yardanico@ephja some websites have a completely separate mobile version
16:33:13Electruxumm where is the documentation for sdl library?
16:33:28YardanicoElectrux use https://github.com/Vladar4/sdl2_nim :)
16:33:46Electruxwhy? the official one is not good? :O
16:34:09*elrood joined #nim
16:34:13Yardanicowell, there's a FAQ in sdl2_nim readme
16:34:22leorizefor the official one, just refer to sdl own docs
16:35:00YardanicoElectrux sdl2_nim is more nim-like
16:35:21Electruxoh... ok
16:35:23leorizethe official is even more nim-like :P
16:35:55Electruxleonize, u mean that the official sdl uses same function names and parameters as the actual sdl library?
16:36:11Yardanicoleorize not really :)
16:36:13leorizegot overloads for destroy() so that you can just go destroy() every object possible :)
16:36:28YardanicoElectrux just try both
16:36:44Yardanicoand see which is easier to use/better-looking for you
16:36:49leorizeElectrux: yes, just remember that destroy() is usable for everything :), and we don't have the SDL_ prefix
16:37:07leorizeand yes, try both :)
16:37:13Electruxah... ok... thanks both of u :)
16:40:27*FuntDobra quit (Ping timeout: 240 seconds)
16:42:43*FuntDobra joined #nim
16:44:27*yglukhov[i] quit (Ping timeout: 252 seconds)
16:45:32FromGitter<Varriount> Electrux: It's essentially a reminder in the form of forcing you to do an object conversion.
16:45:56Electruxit?
16:46:14FromGitter<Varriount> Sorry, I responded to an earlier question of yours
16:46:18*yglukhov[i] joined #nim
16:54:08FromGitter<7sDream> I'm a little confused about `shadowCopy a b` and `a = b` when `a` `b` are `string` or `seq`, are they are same?
16:55:09FromGitter<7sDream> https://nim-lang.org/docs/system.html#shallowCopy,T,T ⏎ doc says they are different……but, any example?
16:58:33*FuntDobra quit (Ping timeout: 264 seconds)
17:02:47FromGitter<Varriount> @7sDream Strings and Sequences are "value" types - they are copied on assignment.
17:03:32FromGitter<Varriount> If I do `var a = @[1, 2, 3] ; var b = a`, the following occurs:
17:04:16FromGitter<Varriount> A new sequence is created and assigned to `a`.
17:04:21FromGitter<Varriount> `a` has the values `1`, `2`, and `3` added.
17:04:47FromGitter<Varriount> A new sequence is created and assigned to `b`.
17:05:00FromGitter<Varriount> The contents of `a` are copied into `b`.
17:05:16FromGitter<7sDream> yes, `a = b` copy value in a to b... how about `shallowCopy`?
17:05:32FromGitter<7sDream> > use this instead of = for a shallow copy. The shallow copy only changes the semantics for sequences and strings (and types which contain those). Be careful with the changed semantics though! There is a reason why the default assignment does a deep copy of sequences and strings.
17:05:37FromGitter<Varriount> `shallowCopy` doesn't create a new sequence. Instead, both variables share the same underlying sequence.
17:07:15*FuntDobra joined #nim
17:07:28FromGitter<7sDream> !eval var a = @[1]; var b: seq[int]; shallowCopy(b, a); a.add(1); echo a; echo b
17:07:29FromGitter<ephja> I'll have to test it again because it didn't seem to work before
17:07:30NimBot@[1, 1]↵@[1]
17:07:45FromGitter<7sDream> var a = @[1]; var b: seq[int]; b = a; a.add(1); echo a; echo b
17:08:08FromGitter<7sDream> !eval var a = @[1]; var b: seq[int]; shallowCopy(b, a); a.add(1); echo a; echo b
17:08:10NimBot@[1, 1]↵@[1]
17:08:35FromGitter<7sDream> !eval var a = @[1]; var b: seq[int]; b = a; a.add(1); echo a; echo b
17:08:38NimBot@[1, 1]↵@[1]
17:08:54FromGitter<ephja> I might have tried it when I tried to implement seq range views without introducing additional indirection
17:11:51FromGitter<7sDream> !eval echo NimVersion
17:11:53NimBot0.18.0
17:12:10*FuntDobra quit (Ping timeout: 260 seconds)
17:14:50FromGitter<7sDream> I notice a issue #644
17:15:14FromGitter<7sDream> It still open for now
17:18:24FromGitter<ephja> that must have been the issue
17:20:53FromGitter<7sDream> but, It was opened in 2013...we've been waiting too long 😶
17:25:30FromGitter<mratsim> oh, strange, shallowCopy and shallow pragma works for normal seq, I wonder why it’s ignored for strings
17:26:48FromGitter<7sDream> > works for normal seq ⏎ any example?
17:28:37FromGitter<krux02> why has nim so many bugs?
17:28:55FromGitter<tim-st> That's something I wondered too :\
17:29:39FromGitter<ephja> lack of resources
17:30:18FromGitter<krux02> I just faced a bug where I generate a type in a macro, and in the second invocation of that marco another type is generated but for some onknown reason the C code generator generates just uses the first type again, meaning it generates C code with the wrong types
17:30:24FromGitter<krux02> and that then fails to compile
17:30:46FromGitter<tim-st> Btw regarding incremental compilation: wouldnt it be easier to build a full interpreter similar to INim but quicker start of interpretion; or in the very worst case: build a single dll for every lib?
17:30:47FromGitter<7sDream> I really like Nim, But lack for programming knowledge about compiler
17:37:31FromGitter<mratsim> @7sDream here you go: https://github.com/mratsim/Arraymancer/blob/master/src/tensor/data_structure.nim#L21
17:37:56FromGitter<mratsim> in the past Arraymancer was also littered with shallowCopy before I decided to make it shallow by default
17:40:58FromGitter<Varriount> @mratsim How do you deal with the fact that you can't modify shallow sequences?
17:41:13FromGitter<mratsim> What do you mean I can’t?
17:42:02FromGitter<Varriount> Sorry, you can't use 'add' on shallow sequences.
17:42:32*Electrux quit (Ping timeout: 256 seconds)
17:42:48FromGitter<mratsim> Really? I didn’t know. This is not needed for tensors anyway.
17:43:41FromGitter<data-man> List of issues: 1.. 50 out of *6655* (pages) ⏎ 50*6655 == 332750 ⏎ Oldest: № 6686 - 95 months ago ⏎ ID with maximal № 1778410 - 52 months ago ⏎ Easy issues: 15450 ... [https://gitter.im/nim-lang/Nim?at=5b0d914c93dc78791c9569c4]
17:43:49FromGitter<data-man> It's Python :)
17:44:53FromGitter<mratsim> @Varriount I checked, I have no add for tensors/shallow seq
17:44:58FromGitter<Varriount> @mratsim "The shallow copy only changes the semantics for sequences and strings (and types which contain those). Be careful with the changed semantics though! There is a reason why the default assignment does a deep copy of sequences and strings"
17:45:11FromGitter<mratsim> in anycase `add` is incompatible with OpenMP.
17:45:43FromGitter<Varriount> If I have 2 variables, `a` and `b`, and both share the same sequence, what happens when I perform `a.add(...)`?
17:46:13FromGitter<Varriount> The underlying sequence may need to be resized.
17:46:58FromGitter<mratsim> I don’t have this issue in Arraymancer, I always know the start and the final size.
17:47:32FromGitter<mratsim> I always preallocate and then assign values potentially in parallel
17:47:44FromGitter<Varriount> Yeah, just wanted to point out that behavior.
17:48:09FromGitter<mratsim> and yeah OpenMP fails with add if there is a reallocation
17:48:13*Electrux joined #nim
17:48:18FromGitter<mratsim> error is super cryptic as well
17:49:44*jjido joined #nim
17:52:51*Electrux quit (Ping timeout: 256 seconds)
17:58:35*DarkArctic_ joined #nim
18:01:13*Gnjurac joined #nim
18:01:45Gnjurachow to get location or nim.exe or whatewer i call it
18:01:54*FuntDobra joined #nim
18:02:06Gnjuraci need app location
18:02:27*DarkArctic quit (Ping timeout: 240 seconds)
18:02:55*SenasOzys quit (Ping timeout: 252 seconds)
18:04:24YardanicoGnjurac your app or compiler?
18:04:44YardanicoGnjurac if your app - please stop trolling and start searching in docs before you ask some questions :)
18:05:07Gnjuracmy app just want to put db next to it , i am allready searching docs i think i am blind
18:05:17Gnjuraci searched direcotry and os module
18:05:17Yardanicoit's getAppDir() from os
18:05:29Yardanico"Returns the directory of the application's executable. "
18:05:35Yardanico!eval echo getAppDir()
18:05:35Gnjuracomg i think i am blind
18:05:36NimBotCompile failed: in.nim(1, 6) Error: undeclared identifier: 'getAppDir'
18:05:43Yardanico!eval import os; echo getAppDir()
18:05:46NimBot/usercode
18:05:46Gnjuraci like 2 times passed os from top down
18:06:23Gnjuracyep i am blind 200%
18:06:29Yardanicowell, it's fine :)
18:06:53*SenasOzys joined #nim
18:06:56FromGitter<krux02> ok wrote my bug report
18:06:57FromGitter<krux02> https://github.com/nim-lang/Nim/issues/7905
18:07:00FromGitter<krux02> if you care
18:10:03FromGitter<krux02> Gnjurac: when nim is on the path and you are on a unix terminal "which nim" should give you the path to the executable, but I am not sure if that is what you want
18:10:17*jjido quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
18:11:01FromGitter<krux02> yea sorry I didn't read the conversation to the end it is already solved
18:15:16*Trustable quit (Remote host closed the connection)
18:19:22Gnjuraccan nim documentation be downlaoded as pdf ?
18:22:02Gnjuracfoud it :)
18:22:16YardanicoGnjurac you can use devdocs
18:22:22Yardanico(it can be used offline)
18:23:17Gnjuracty will try that do , this online thing just added their logo to evry page
18:38:28*DarkArctic__ joined #nim
18:40:27*SenasOzys quit (Ping timeout: 256 seconds)
18:41:11*icebattle joined #nim
18:42:09*DarkArctic_ quit (Ping timeout: 248 seconds)
18:43:16*SenasOzys joined #nim
18:43:34*DarkArctic__ quit (Quit: Leaving)
18:43:51*DarkArctic joined #nim
18:48:00*mostly-h1rmless joined #nim
18:48:15*jsn-_ joined #nim
18:51:59*^GaveUp^ joined #nim
18:52:03*craigger_ joined #nim
18:52:32*Vladar joined #nim
18:53:00*GaveUp quit (*.net *.split)
18:53:00*craigger quit (*.net *.split)
18:53:00*ofelas quit (*.net *.split)
18:53:00*mostly-harmless quit (*.net *.split)
18:53:00*Tanger quit (*.net *.split)
18:53:01*jsn- quit (*.net *.split)
18:53:01*^GaveUp^ is now known as GaveUp
18:55:19*jjido joined #nim
18:57:02*SenasOzys quit (Ping timeout: 260 seconds)
18:58:27*jjido quit (Client Quit)
18:59:11*Tanger joined #nim
19:00:47*ofelas joined #nim
19:01:17*SenasOzys joined #nim
19:12:21*rockcavera quit (Ping timeout: 264 seconds)
19:14:45*rockcavera joined #nim
19:21:10*nsf joined #nim
19:22:54*dddddd joined #nim
19:31:04*vivus joined #nim
19:45:42Gnjurachow to catch sql exeption https://hastebin.com/urunububex.http
19:45:57Gnjuraci duno how to get error msg
19:47:12*Electrux joined #nim
19:48:00*SenasOzys__ joined #nim
19:48:45*SenasOzys quit (Read error: Connection reset by peer)
19:49:28YardanicoGnjurac it's in the docs :(
19:49:36YardanicoGnjurac getCurrentExceptionMsg() in "except" block
19:50:36Gnjurachttps://nim-lang.org/docs/db_sqlite.html dident found it here
19:50:47Gnjuracbut sorry
19:50:50Gnjuraci try :)
19:51:44*Electrux quit (Ping timeout: 255 seconds)
19:54:50YardanicoGnjurac why did you search for it on db_sqlite? :)
19:55:11YardanicoException handling in Nim is built into the language, so you should search in the index or in system module :)
19:55:32*Vladar quit (Remote host closed the connection)
19:55:51*Vladar joined #nim
19:55:57*endragor joined #nim
19:56:29Gnjuracnext time i will :)
20:00:35*darithorn joined #nim
20:00:40*endragor quit (Ping timeout: 256 seconds)
20:00:40*SenasOzys__ quit (Ping timeout: 256 seconds)
20:08:06*Electrux joined #nim
20:12:50*Electrux quit (Ping timeout: 265 seconds)
20:14:17*SenasOzys__ joined #nim
20:24:26dom96Nowadays you can do: except DbError as exc: echo(exc.msg)
20:24:55Gnjuracnice
20:25:28Yardanicodom96 can you do except Exception as ex: ?
20:25:41dom96yes
20:26:20Yardanicoamazing
20:27:15Gnjuracye ex: sounds better :)
20:28:10*Electrux joined #nim
20:29:20Gnjuracanyway i go sleep good night :)
20:29:24*Gnjurac quit (Quit: Leaving)
20:32:39*Electrux quit (Ping timeout: 256 seconds)
20:36:39*FuntDobra quit (Remote host closed the connection)
20:37:12*Electrux joined #nim
20:43:02*Electrux quit (Ping timeout: 255 seconds)
20:44:17*jjido joined #nim
20:48:13*Electrux joined #nim
20:50:11FromDiscord<emekoi> is there a way to write the contents of one stream into another?
20:51:21*Vladar quit (Quit: Leaving)
20:53:20*Electrux quit (Ping timeout: 276 seconds)
20:55:01FromDiscord<emekoi> nvm i found a way
21:21:33*Electrux joined #nim
21:32:21*Electrux quit (Ping timeout: 256 seconds)
21:37:13*Electrux joined #nim
21:38:04*nsf quit (Quit: WeeChat 2.1)
21:41:47*Electrux quit (Ping timeout: 256 seconds)
21:58:12*Electrux joined #nim
22:02:27*Electrux quit (Ping timeout: 240 seconds)
22:08:10*Electrux joined #nim
22:10:51*jjido quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
22:12:57*Electrux quit (Ping timeout: 256 seconds)
22:13:42*elrood quit (Quit: Leaving)
22:18:10*Electrux joined #nim
22:22:35*Electrux quit (Ping timeout: 256 seconds)
22:35:02*themagician quit ()
23:04:12*BitPuffin quit (Remote host closed the connection)
23:06:18*darithorn1 joined #nim
23:07:14*Electrux joined #nim
23:12:05*Electrux quit (Ping timeout: 260 seconds)
23:20:23*darithorn1 left #nim (#nim)
23:28:11*Electrux joined #nim
23:32:36*Electrux quit (Ping timeout: 256 seconds)
23:43:32*yglukhov[i] quit (Read error: Connection reset by peer)
23:44:09*yglukhov[i] joined #nim
23:58:11*Electrux joined #nim