<< 03-04-2017 >>

00:00:13zachcarterah you guys are using JACK?
00:00:24zachcartercool
00:02:10zachcarterto answer your question Idlework about whether all the proc sound could be supported: I’m not sure if it could all be supported as it stands right now, but I’d definitely be willing to add whatever support is necessary to get things working. If it’s just playing sounds and adjusting gain - I dont think that’s a problem. If it’s more than that then we may need to expose some more functionality through sound.
00:04:35zachcarteralso Idlework: If you guys don’t want to ditch the codebase you have now and just want to swap out SDL2 for bgfx or something similar, I could potentially help with that too
00:05:01zachcartergoing to run out and grab some food, be back in a few
00:06:41ldleworkzachcarter: yeah its a synthesizer so it generates actual sound data on the fly
00:06:51ldleworkcontinuously
00:07:25*PMunch quit (Quit: leaving)
00:37:02zachcarterIdlework: right
00:37:20zachcarterIdlework: if all that needs to be done is to play that stream of data, then sound is probably sufficient
00:37:34ldleworkzachcarter: oh nice
00:37:39ldleworkzachcarter: btw we're in #zynth
00:37:46ldleworkif you wanna hang out and participate in discussions
00:37:51zachcarterokay cool
00:45:34*Guest93374 quit (Quit: Leaving)
00:51:58*fastrom joined #nim
01:16:24*jez__ joined #nim
01:22:24libmanI humbly hope that the Nim community will tolerate one "please use MIT" license nag issue per restrictively licensed module, ex https://github.com/unicredit/cello/issues/1
01:49:35*smt_ quit (Read error: Connection reset by peer)
01:54:14*smt joined #nim
01:57:15*chemist69 quit (Ping timeout: 256 seconds)
02:09:07*jez__ quit (Quit: :q!)
02:09:35*ftsf quit (Remote host closed the connection)
02:09:36*chemist69 joined #nim
02:09:52*ftsf joined #nim
02:23:18*smt_ joined #nim
02:23:32*smt quit (Ping timeout: 260 seconds)
02:59:24*fastrom quit (Quit: Leaving.)
02:59:42*fastrom joined #nim
03:00:10*fastrom quit (Client Quit)
03:11:20Lord_Nightmarelibman: i'm in agreement, apache2 prevents use/linking with gplv2 unless a specific extra compatibility statement is attached to apache2, hence i avoid it
03:11:39Lord_Nightmarethis is also why the openssl relicensing to apache2 is such a terrible idea
03:12:44Lord_Nightmarelibman: is there a problem with using mit-alike licenses, like 3bsd, 2bsd, isc ?
03:15:03libmanMIT-alike ("copyfree") licenses are the least problematic alternative. Even "public domain" can involve some legal BS in some jurisdictions.
03:16:14libmanMy goal is to nag the Nim ecosystem into a state of "don't worry about legalese and just code", which will happen if all core libraries and tools use copyfree licenses. ;-)
03:56:23*zachcarter quit (Quit: zachcarter)
04:33:00*ftsf quit (Ping timeout: 246 seconds)
04:42:07ldleworkwhat does setupForeignThreadGc do
04:44:59*ftsf joined #nim
04:58:01*shashlick quit (Ping timeout: 256 seconds)
04:58:43*shashlick joined #nim
05:17:27*chemist69 quit (Ping timeout: 240 seconds)
05:20:16*chemist69 joined #nim
05:55:30*IRCFrEAK joined #nim
05:56:53*IRCFrEAK left #nim (#nim)
06:35:09*Vladar joined #nim
06:36:13*nsf joined #nim
06:38:36ldleworkHow do I import https://github.com/oprypin/nim-random if there is a stdlib module by the same name?
07:03:28*yglukhov joined #nim
07:08:21*couven92 joined #nim
07:09:55ldleworkyay just got my biome generator working again for latest nim
07:15:31*rokups joined #nim
07:16:19ldleworkis there a way to have nimble tell you what version of a package you have installed?
07:18:02Araqldlework: dunno, but you can just look into ~/.nimble/pckgs/
07:18:13Araq*pkgs
07:21:25ldleworkgenerators.nim(29, 1) Warning: overloaded '.' and '()' operators are now .experimental; () is deprecated [Deprecated]
07:21:28ldleworkawwww
07:25:52ldleworkAraq: expr and stmt are deprecated?
07:26:35ldleworkWhat does my macro return...?
07:26:47Araqit returns 'untyped'
07:27:06Araqalso: 'expr' -> 'untyped' and 'stmt' -> 'untyped'
07:29:48ldleworkthanks
07:32:13ldleworkAraq: I'm so glad my crazy macro ECS has survived all this time with barely scrapes and brusies
07:32:14ldleworkgood job
07:35:00ldleworkwell maybe I spoke too soon haha
07:38:19ldleworkAraq: was there a module with a `to` method
07:38:23ldleworkI forget...
07:38:26ldleworkoh there's an index
07:38:59ldleworkwell hard to search
07:39:42ldleworkmarshal
07:40:51ldleworkthere we go
07:40:54ldleworkno more warnings ø/
07:41:40FromGitter<TiberiumPY> Btw, I'm really interested in https://github.com/oprypin/nim-random
07:41:48FromGitter<TiberiumPY> Maybe just fork and rename ?
07:42:14chemist69Araq: isn't it `expr` -> `typed` ?
07:43:49FromGitter<TiberiumPY> well, this random library uses interesting thing
07:44:00FromGitter<TiberiumPY> It has a macro in
07:44:06FromGitter<TiberiumPY> The main file
07:44:26FromGitter<TiberiumPY> And staticRead's another .Nim file
07:44:28Araqchemist69: it's actually expr->untyped and stmt->typed but 'stmt' is used for 'untyped' bodies in 99% of all cases
07:45:10Araqso I suggested the more likely transition path
07:45:55Araqto solve the conflict, import "nim-random/random" or some path that works
07:46:08chemist69now I'm really confused. Have to read up on this again...
07:50:59*ftsf quit (Quit: :q!)
08:01:04*libman quit (Quit: Connection closed for inactivity)
08:23:59*fastrom joined #nim
08:26:42euantorTiberiumPY: What are you wanting to do with nim-random? I recently knocked together a simple too lto read random data from system sources of randomness
08:27:43euantornim-random has similar capabilities, but doesn't use the same techniques such as using `arc4random` on OpenBSD or the `getrandom` systemcall on Linux
08:30:33euantorAnd on Windows nim-random uses CryptGenRandom which is more heavyweight than RtlGenRandom (which CryptGenRandom actually uses under the hood)
08:31:35euantorMy library lacks a lot of the fancy extra features, as mine is just based on what libsodium provides
08:45:43*PMunch joined #nim
08:52:03*Senketsu_ joined #nim
08:52:20*yglukhov_ joined #nim
08:52:29*fredrik92 joined #nim
08:52:50*Pisuke joined #nim
08:54:57*yglukhov quit (Ping timeout: 264 seconds)
08:55:33*couven92 quit (Ping timeout: 264 seconds)
08:55:33*Senketsu quit (Ping timeout: 264 seconds)
08:56:09*MyMind quit (Ping timeout: 264 seconds)
09:29:02*Arrrr joined #nim
09:42:01FromGitter<Natsirtt> Hey @Araq :) Indeed on windows, trying to access environment variables from a loaded DLL is what's triggering my Illegal storage access error ; thanks for the pointers!
09:54:44*Sembei joined #nim
10:00:50Araqping PMunch
10:00:59PMunchHi Araq
10:02:15Araqoh hi. that was quick.
10:02:39PMunchHaha, I get notified when I'm highligted :)
10:02:50Araqso I've a DOM creating DSL and it requires me to write
10:03:00Araqlet tree = createDom(tr) do: ...
10:03:16Araqand in the ... the macro does a statement/expression distinction
10:03:40Araqand an expression 'x' is transformed into tmp.add x
10:03:51Araqand 'tmp' are introduced to build the tree as necessary
10:04:16Araqand this weekend I patched Nim to avoid the ugly 'do' notation in this context ;-)
10:04:39AraqI think your wxWidgets DSLs should take the same approach
10:04:57Araqso instead of foo%bar or whatever it was called
10:05:18Araqleave the 'let foo = bar: ...' part so that it is obvious a new identifier is introduced
10:06:08PMunchWell the foo%bar is inside the macro
10:06:19PMunchgenui: doesn't really return anything.
10:06:21Araqin my DSL tag(attr=value): ... produces <tag attr=value>...</tag>
10:06:56Araqbut for flexibility it should support explicit Nim identifiers, so some widgets can be referenced from outside
10:07:26Araqdon't you think it would work for your case too?
10:13:24PMunchHmm, it might. I'll look into it :)
10:13:33PMunchBut I've got to go now, back in a couple of hours.
10:14:39Araqsure thing
10:15:37*fredrik92 quit (Quit: Client disconnecting)
10:47:55yglukhov_Araq, dom96, sorry, just noticed i've made a commit to sdl2 without a pr. pls review.
11:06:43*arnetheduck joined #nim
11:44:18*zachcarter joined #nim
11:44:45*couven92 joined #nim
11:45:31*krux02 quit (Remote host closed the connection)
11:54:51*bjz joined #nim
12:01:04*jackv quit (Quit: ZNC - 1.6.0 - http://znc.in)
12:09:20*krux02 joined #nim
12:20:45*BitPuffin|osx joined #nim
12:33:23*zachcarter quit (Quit: zachcarter)
12:35:31*jackv joined #nim
12:44:13*rolha joined #nim
12:44:48*rolha left #nim (#nim)
12:51:37*fastrom quit (Quit: Leaving.)
12:53:29*smt_ quit (Ping timeout: 240 seconds)
13:02:47FromGitter<TiberiumPY> hmm, is there a place where I can submit a bug in github web?
13:03:06FromGitter<TiberiumPY> https://github.com/Vladar4/ng2planetoids/blob/master/src/rock.nim ⏎ ⏎ GitHub doesn't know about ' in Nim
13:03:07*PMunch quit (Quit: leaving)
13:03:13FromGitter<TiberiumPY> (starting on line 53)
13:05:57AraqI don't remember, github uses some broken Nim lexer written in Python
13:06:14Araqyou would fix it there and wait for github to use a more recent version of the library.
13:06:26Araqthat would be within next 5-10 years.
13:06:47Araqit took them that long to rename 'nimrod' to 'nim'.
13:12:05FromGitter<stisa> @TiberiumPY maybe https://github.com/github/linguist/blob/master/README.md#theres-a-problem-with-the-syntax-highlighting-of-a-file
13:12:52dom96Araq: no, it doesn't anymore.
13:13:02dom96It uses the Sublime text syntax higlighter
13:13:26Araqdoes it change much?
13:18:21*zachcarter joined #nim
13:18:27FromGitter<TiberiumPY> https://github.com/Varriount/NimLime
13:18:44FromGitter<TiberiumPY> so if Varriount will release new version, github will automatically pick it up?
13:23:40*bjz_ joined #nim
13:24:26*bjz quit (Ping timeout: 240 seconds)
13:34:54Araqno, it won't and that's why everything I said is relevant.
13:43:54FromGitter<TiberiumPY> Araq - btw, bitbucket still calls Nim as "Nimrod"
13:50:28*smt joined #nim
14:02:25*bjz joined #nim
14:03:32*bjz_ quit (Ping timeout: 260 seconds)
14:13:00*ludocode_ is now known as ludocode
14:13:31*ludocode quit (Quit: ludocode)
14:16:16*ludocode joined #nim
14:28:14*couven92 quit (Quit: Client disconnecting)
14:31:16*xet7 quit (Quit: Leaving)
14:33:26*bjz_ joined #nim
14:34:27*bjz quit (Ping timeout: 240 seconds)
14:41:10*Tiberium joined #nim
14:41:35chemist69when I try to install c2nim with nimble, I get this error: `[...]/.nimble/pkgs/compiler-0.16.1/compiler/idents.nim(15, 21) Error: cannot open 'etcpriv'`
14:42:05*fastrom joined #nim
14:47:01*cheatfate quit (Read error: Connection reset by peer)
14:47:20*cheatfate joined #nim
14:50:23Araqchemist69: ugh, use the compiler/ from git devel
14:50:42Araqnim c --noNimblePath -p:../nim
14:50:57Araqor wherever your nim/compiler resides
14:51:51chemist69my Nim compiler is completely updated to devel. The error is in the compiler sources that are pulled into the nimble pkg dir, I guess.
14:55:16Araqnim c --noNimblePath -p:../nim c2nim.nim
14:56:08zachcarterDoes anyone have some very simple examples of asyncdispatch using futures and await? I’m pretty much a noob when it comes to using async / await
14:56:18chemist69ok, thanks
14:56:22*rauss joined #nim
14:57:23zachcarterI’d like to find a way to call the sdl_image load methods asyncrhonously / on another thread if I can
14:57:39zachcarterasynchronously*
15:03:02zachcarterdom96: does your book cover async / await pretty well?
15:04:34*bjz_ quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
15:05:22FromGitter<evacchi> how could I define a joinThread(maxMillis: int) i.e., await for some threads to terminate up to a given max time ?
15:06:22FromGitter<evacchi> I could do an os.sleep :P but of course, if the threads terminate before the timeout I would like to retun immediately
15:08:12*libman joined #nim
15:08:50Araqevacchi: you need to wrap OS specific stuff and patch system/threads.nim
15:10:21FromGitter<evacchi> ouch
15:11:10FromGitter<evacchi> maybe I'll try and deal with it at a higher level
15:14:35*bjz joined #nim
15:17:23*yglukhov_ quit (Remote host closed the connection)
15:34:50*Trustable joined #nim
15:35:46*azur_kind joined #nim
15:42:50dom96zachcarter: yes
15:43:01zachcartersweet I’ll grab a copy thanks
15:47:04*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
15:52:31SusWombatcan anyone tell me why i can load a dll with loadLib but not a .so?
15:54:20SusWombatnvm ... forgot "./"
16:00:21*Serenitor joined #nim
16:02:01*gogogo2go joined #nim
16:07:26FromGitter<Varriount> SusWombat: It's always those finicky Lorie platform details
16:07:39FromGitter<Varriount> *little
16:10:57FromGitter<Varriount> Araq: Here's a comment you'll love: https://news.ycombinator.com/item?id=14023906
16:22:18*sz0 joined #nim
16:26:56*yglukhov joined #nim
16:31:41*yglukhov quit (Ping timeout: 260 seconds)
16:33:34*krux02 quit (Quit: Leaving)
16:35:11*nsf quit (Quit: WeeChat 1.7)
16:36:19SusWombatWhen i loop over stdin.lines how do i find out that there are no lnew liones anymore? as it seems to never stop looping?
16:51:38Tiberiumwhile readLine(stdin) maybe?
16:51:39Tiberiumidk
16:55:16*gogogo2go quit (Quit: Leaving)
16:57:07*arnetheduck quit (Ping timeout: 256 seconds)
16:57:16subsetparkI believe the last line will be an empty string
16:57:59subsetparkThen again, that might only be when a socket is closed. Otherwise you might have to watch out for a control sequence
17:01:15Tiberiumsocket?
17:01:31Tiberiumsuswombat was talking about stdin
17:01:48subsetparkI know, that's why I amended my answer :)
17:02:31*xet7 joined #nim
17:06:41ArrrrIt shouldn't be necessary to check against EOL.
17:06:49ArrrrMaybe your file is infinite.
17:07:51SusWombatwell stdin is propably infinite O:
17:10:05*yglukhov joined #nim
17:12:54ArrrrI thought it was from reading a file
17:13:14subsetparkpiping a text file through `for line in stdin.lines` does the right thing - it processes each line of the file and then exits the loop
17:19:56*azur_kind quit (Remote host closed the connection)
17:27:58*Sembei quit (Ping timeout: 240 seconds)
17:34:26Tiberiumhmm, how can I fix this error? https://gist.github.com/TiberiumN/49becb2878bb5bbf87fa18e677540e2f
17:36:19Tiberiumah, return type
17:36:35Tiberiumwell it worked
17:38:31*yglukhov quit (Remote host closed the connection)
17:40:31Tiberiumcan I have something like "zip" in Python?
17:40:47Tiberiumso I have two openarrays, and I want to iterate over them at once
17:40:57Tiberiumlike for first, second in zip(firstarray, secondarray):
17:41:02Tiberiumin macro
17:42:28Tiberiumah, nvm
17:42:42*yglukhov joined #nim
17:48:13dom96hello guys
17:48:44Tiberiumhi
17:51:30Tiberiumdom96, can I pass module or modules to macro?
17:51:45Tiberiumso I have imported module "greeting", and I want to pass it to macro
17:51:51Tiberiumlike myMacro(greeting)
17:52:07dom96No idea, try it and see.
17:52:41Tiberiumwell I'm trying to call a proc from this module in a macro :D
17:53:57*yglukhov quit (Remote host closed the connection)
18:04:50*yglukhov joined #nim
18:05:53libmangradha removed his repo, so https://github.com/Araq/badger_bits points to many 404s
18:10:14Araqlibman: so create a PR
18:11:28libmanIs that better than an IRC mention for such a casual observation? I have no clue what that project is, just surfed onto it for a second and bumped into a dead link.
18:15:27Araqwell if you want me to do anything, a PR is better
18:16:14AraqI couldn't care less about dead links on my gradha forks, I only forked it to not lose it
18:16:52SusWombatHow can i kill a spawned task=
18:16:54SusWombat?*
18:23:43Araqyou can't.
18:24:13SusWombatok ty
18:28:10*couven92 joined #nim
18:32:43*yglukhov quit (Remote host closed the connection)
18:32:54*Matthias247 joined #nim
18:33:24*yglukhov joined #nim
18:41:16SusWombatcan i redirect stdin without reading from it?
18:41:17*SusWombat_ joined #nim
18:41:18*SusWombat quit (Remote host closed the connection)
18:41:58*couven92 quit (Remote host closed the connection)
18:42:13*couven92 joined #nim
18:56:40ldleworkdom96, if I supported Nim in Action, do I get a copy of the book at some point
18:59:55*Arrrr quit (Quit: Leaving.)
19:31:22*esauceda joined #nim
19:31:27*esauceda left #nim (#nim)
19:39:17*bjz joined #nim
19:45:28*shashlick quit (Ping timeout: 240 seconds)
19:45:48*shashlick joined #nim
19:46:01SusWombat_how do i kill a thread?
19:46:14cheatfateyou can't kill thread
19:46:58SusWombat_why :(
19:47:32ldleworkDoes Nim have a single-thread async library?
19:47:33dom96ldlework: supported?
19:47:39ldleworkdom96, paid for it
19:47:44ldleworkwill I eventually get a real copy
19:48:12cheatfateSusWombat: there many reasons, but currently we can't do it properly
19:48:51SusWombat_cheatfate, thing is even when i spawn readline or loop through stdin via spawn and load a dynlib under windows stdin blocks :/ it doesnt under linux tho
19:48:55couven92cheatfate, because of GC? I guess the call to ExitThread (or pthread_exit) is not the issue?
19:49:03SusWombat_so thats why i wanted to kill the reading while loading a lib
19:49:16dom96ldlework: What do you mean by "real copy"?
19:49:24SusWombat_a printed book i guess
19:49:25ldleworka dead tree copy
19:49:30ldleworkto put on my bookshelf
19:49:33dom96ldlework: Did you pay for one?
19:49:35dom96If so, yes.
19:49:36ldleworkto objectify my personhood
19:49:49cheatfatecouven92, call to ExitThread of course will exit thread, but it also introduce you memory leak
19:50:07ldleworkdom96, I have access to the manning previews, so I paid early support. Does that result in getting shiped the final book at the end? I just forget the terms.
19:50:21couven92cheatfate, yeah... that's what I meant with GC... Makes sense
19:50:35dom96ldlework: It depends on if you bought the ebook or the printed book.
19:50:41SusWombat_cheatfate, do you have any idea regarding my problem
19:50:54dom96SusWombat_: Are you trying to read from stdin without blocking?
19:50:55ldleworkdom96, aha gotcha
19:52:35SusWombat_dom96, yes and i do it via spawn but as soon as i do loadLib under windows it blocks again
19:52:37cheatfateSusWombat_, windows stdin blocks until Enter pressed
19:52:50SusWombat_cheatfate, yeah and i need to get around it :/
19:52:55cheatfateyou can't
19:53:26cheatfatethere is a way but then you will need to draw cursor and perform editing by yourself
19:53:50cheatfatehandle cursor keys and all other crap
19:54:13ldlework"windows stdin blocks until Enter is pressed" does not sound like an accurate depiction of the situation
19:54:27SusWombat_well its exactly what happens
19:54:48SusWombat_cheatfate, how would i go about that?
19:55:05SusWombat_how would i do that*
19:55:06ldleworkstdin doesen't "block"
19:55:14ldleworkthat doesn't even make sense as a phrase.
19:55:24SusWombat_it does
19:55:46ldleworkWhatt does "block" mean to you?
19:55:54dom96reading from stdin does
19:56:02dom96It's clear what SusWombat_ means
19:56:35dom96SusWombat_: Not sure if you're aware but my book has an example of how to do that with 'spawn': https://github.com/dom96/nim-in-action-code/blob/master/Chapter3/ChatApp/src/client.nim#L38
19:56:44dom96It doesn't go as far as supporting what you want though
19:56:47ldleworkReading from stdin blocks if you use a blocking API to read it.
19:56:49dom96(it still requires pressing enter)
19:57:17SusWombat_dom96, yeah i looked at your code but like you said you still need to press enter
20:00:16cheatfateSusWombat_, you need functions getNumberOfConsoleEvents/peekConsoleInput/readConsoleInput
20:02:16*rokups quit (Quit: Connection closed for inactivity)
20:04:03Serenitorreading stdin only blocks one thread though, isn't that right? so with threading you could use it effectively non-blocking
20:04:11*Tiberium quit (Remote host closed the connection)
20:05:44ldlework There are also non-blocking API's to read from files including stdin
20:06:05ldleworkIO is not inherently blocking, it is the mechanism by which you access IO that is either blocking or not.
20:06:25SusWombat_it seems to block only when i load a library under windows tho
20:07:00ldleworkI mean I know I've used Twisted with Python on windows and streamed stdin in a non-blocking way
20:07:39SusWombat_so when i spawn "proc processCommands(): void =
20:07:39SusWombat_ for line in stdin.lines:
20:07:39SusWombat_ if line == "help":
20:07:39SusWombat_ echo "Go wikiüpedia noob""
20:08:10SusWombat_it doesntz block but as soon as i do loadLib("bla.dll") it starts to block
20:29:42*devted joined #nim
20:33:10*Sembei joined #nim
20:44:07ldleworkAre there any example uses of embedded nimscript?
20:44:16ldleworkUsing nimscript to script a nim application? Other than the compiler?
20:44:57ldleworkIt would be cool if NimScript actually exposed the VM as an object
20:45:08ldleworkso you could maintain multiple isolated vm instances
20:45:18ldleworkan were able to expose native functions to their runtime
20:45:24ldleworkand able to manually tick the vm
20:45:29ldleworkAraq: am I dreaming?
20:48:25FromGitter<Varriount> SusWombat_: What dll is this?
20:48:48SusWombat_A dll i made with nim c --app:lib
20:49:12SusWombat_i dont actually use the lib its just for testing the loading
20:49:59*zachcarter quit (Ping timeout: 260 seconds)
20:51:04*libman quit (Quit: Connection closed for inactivity)
20:52:44*Trustable quit (Remote host closed the connection)
20:54:25*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
20:56:52*Nobabs27 joined #nim
20:57:57FromGitter<Varriount> And as soon as you load it, the app blocks/pauses?
20:58:04FromGitter<Varriount> For how long?
20:58:05*yglukhov quit (Remote host closed the connection)
20:58:22SusWombat_forever till you place enter
20:58:28SusWombat_press*
20:58:49SusWombat_in the console
20:59:06*rauss quit (Quit: WeeChat 1.7)
21:00:06FromGitter<Varriount> Why? Do you have some wait for console input?
21:06:40SusWombat_well i read from stdin all the time
21:06:52SusWombat_to react to entered commands
21:07:04*Vladar quit (Quit: Leaving)
21:07:08SusWombat_and when i do loadLib it blocks every output
21:08:39*chemist69 quit (Ping timeout: 260 seconds)
21:21:24cheatfateSusWombat_, try to load any other dlls, openssl for example
21:21:36cheatfatei think its a problem with nim dlls
21:22:15SusWombat_cheatfate, ok gonna try this later thanks
21:22:29SusWombat_wouldnt fix my problem but it would be intresting to see
21:23:53cheatfateI think nim dll is allocating console in stub
21:24:06cheatfateso its why everything is blocks
21:24:25SusWombat_cheatfate, but why only under windows tho?
21:24:58cheatfatebecause windows is not *nix
21:25:41FromGitter<TiberiumPY> :)
21:29:57cheatfateSusWombat_, do you have any `echo` or any other functions which interacts with stdin/stdout inside of your dll?
21:30:53SusWombat_cheatfate, no
21:31:05SusWombat_or wait
21:31:16SusWombat_but like i said i dont call anything frin the dll
21:31:22SusWombat_from*
21:32:14cheatfateSusWombat_, it doesn't matter because if you have `echo` or any other functions then initialization of console will be performed
21:32:34cheatfatecan you gist your <namedll>.c from nimcache folder?
21:35:26*chemist69 joined #nim
21:44:25*bjz joined #nim
21:51:28*zachcarter joined #nim
21:53:50*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
21:56:23*zachcarter_ joined #nim
21:56:49*devted quit (Quit: Sleeping.)
21:57:21*zachcarter quit (Ping timeout: 264 seconds)
21:57:21*zachcarter_ is now known as zachcarter
22:00:25*bjz joined #nim
22:06:53*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
22:10:20ldleworkDoes Nim have a way to get a unique id for a given instance of a RootObj?
22:13:05*nsf joined #nim
22:28:37ldleworkLet's say I have two types Param and Bind which both have variants discriminant on ParamKind
22:29:22ldleworkIn the definition of Bind, when casing the kind to define the variants, is there a way I can have each variant of Bind have a reference to a specific variant of Param?
22:37:16*LeNsTR quit (Changing host)
22:37:16*LeNsTR joined #nim
22:40:58*LeNsTR is now known as lenstr
22:44:55FromGitter<Varriount> ldlework: At compile time, or runtime
22:47:46ldleworkFromGitter: compile time, as part of the definition of Bind
22:47:46FromGitterldlework, I'm a bot, *bleep, bloop*. I relay messages between here and https://gitter.im/nim-lang/Nim
22:47:52ldleworkerr Varriount
22:48:19ldleworkVarriount, https://gist.github.com/dustinlacewell/11bc5985ef34c0f12c510efb3a0f970e
22:48:26ldleworkmakes little sense
22:49:37ldleworkthere are variants of Parameter for each ParameterKind
22:49:40ldleworkI only want Binds to bind to Parameters of the right variation
22:50:25FromGitter<Varriount> first off, all member names have to be unique
22:51:07ldleworkhuh
22:51:52FromGitter<Varriount> And I'm not quite understanding what you need. Why not use a generic (or better yet, a concept)?
22:52:21SusWombat_cheatfate, sry im very tired lets continue tommorow k? thanks so far anyway!
22:52:52FromGitter<Varriount> ldlework: What's your overall goal here?
22:53:10ldleworkVarriount, does marshalling generic types to/from json work?
22:53:27ldleworkVarriount: Trying to define a data model for a music patch graph
22:53:42ldleworklike thing of creating nodes in 2D of various types that define parameters
22:53:57ldleworka binding represents a connection between a module and the parameter of another module
22:54:21ldleworkI want parameters/bindings to define a type/kind and make it so they only work with each other
22:55:01ldleworkAre variants not the right way to go?
22:55:31FromGitter<Varriount> Hm. Good question
22:55:53FromGitter<Varriount> Are you trying to create a series of data structures similar to the ones in the json module?
23:02:55ldleworkVarriount, no literally I'm building a modular synthesizer. Exactly as I described. Modules defined typed inputs and outputs. There are like 5 types of data. I want to model connections between them but ensuring that only connections of the same type are possible
23:03:34*qzo joined #nim
23:04:02FromGitter<Varriount> Ah, I see.
23:04:38FromGitter<Varriount> Well why not have each module contain a sequence/table for each kind of parameter?
23:05:02ldleworkclumsy
23:05:19*nsf quit (Quit: WeeChat 1.7)
23:05:24FromGitter<Varriount> Or you have a single table that stores a sequence of parameters like the one described.
23:05:53FromGitter<Varriount> Then when you want to bind, you just compare the discriminants
23:05:54ldleworkI want the modules to store their parameters as a hashtable mapping the name to the parameter
23:06:23ldleworkHmm
23:08:05FromGitter<Varriount> get the right parameter, get the left output, compare discriminants
23:12:57*chemist69 quit (Ping timeout: 264 seconds)
23:12:58*Sembei quit (Ping timeout: 240 seconds)
23:14:25*sz0 quit (Quit: Connection closed for inactivity)
23:15:24Serenitorany idea how I can check if I file currently being written to? I'd like to wait for an external write to complete.
23:20:48*libman joined #nim
23:22:03*Matthias247 quit (Read error: Connection reset by peer)
23:22:22*Nobabs27 quit (Quit: Leaving)
23:22:37*Nobabs27 joined #nim
23:29:28*zachcarter quit (Ping timeout: 240 seconds)
23:39:38*chemist69 joined #nim