<< 03-03-2017 >>

00:00:56Araqbut I have to praise myself since nobody else does it, that search feature really is nice
00:01:11Araqcould be better of course, but what couldn't.
00:02:15Araqmaybe we should add that seach also to https://nim-lang.org/documentation.html
00:02:27Araqor to the index.html
00:02:37krux02are there examples for config.nims files?
00:05:34Araqin the tests/
00:05:42Araqtests/async comes to mind
00:05:51*Matthias247 quit (Read error: Connection reset by peer)
00:08:06*nsf quit (Quit: WeeChat 1.7)
00:11:57*hjsagg joined #nim
00:13:40krux02well that's two lines
00:13:52krux02it probably can't do what I am trying to solve
00:14:09krux02I already asked that question, but I couldn't get a solution
00:14:37krux02how do I get the right error messages in my editor (emacs) when the file I am editing is included in another file
00:14:51krux02you said you had some comment that was parsed for vim imho
00:15:16krux02but I don't know how true that still is, and if there is by now something that works across editors
00:22:27Araqyou pass the include file to nimsuggest
00:22:44Araqnimsuggest recompiles the module that includes this file instead of the include file.
00:22:53Araqno special logic from the editor required.
00:23:38Araqnote that 'nim check' is not 'nimsuggest'
00:23:50Araqand in the past 'nimsuggest' did not support checking at all.
00:24:19Araqso emacs most likely still calls 'nim check'
00:24:29krux02ok
00:25:00Araqbut I'm working on nimsuggest chk as we speak and it will covered by a test :P
00:25:15Araqin fact, that the only thing that's missing.
00:25:33Araqnew nimsuggest also finally supports prefix matches
00:25:44Araqand soon has some context sensitivity
00:25:57Araqlike "if in a type context, suggest type names"
00:30:17zachcarterhrm… I’m facing a design issue maybe someone can help me with
00:30:38zachcarterI’m trying to avoid resorting to inheritance, but I’m not sure of another way to accomplish what I need to do
00:32:02zachcarterI’m writing an asset management subsystem for my game library and I am going to be storing references to a bunch of assets that users with load
00:33:07zachcarterI’d like to write some generic load / unload functions that can operate on assets of any type
00:33:45zachcarterI’d also like a way to generically store assets of various types in some sort of collection datastructure with efficient lookup, like a table
00:33:54zachcarterI’m not good with generics :/
00:34:08zachcarterIs there a way to accomplish what i’m trying to do without resorting to inheritance?
00:35:08zachcarteridelaly for each asset type I’m defining
00:35:20zachcarterTAsset* = object
00:35:27zachcarterAsset* = ref TAsset
00:35:31zachcarterso example :
00:35:45zachcarterTexture* = object
00:35:51zachcartererr sorry
00:36:02zachcarterTTexture* = object; Texture* = ref TTexture;
00:36:16krux02I got this in my emacs: Warning (flycheck): Syntax checker nim-nimsuggest reported too many errors (431) and is disabled.
00:38:59krux02zachcarter: what do you want to do?
00:39:19krux02do you want to have a polymorphic Asset Type?
00:40:09krux02when you want to have different Asset types, you need to store some kind of tag to distinguish the assats
00:40:17krux02I don't know exactly what you are doing
00:40:27zachcarterhrm let me try to come up with an example of what I want to do
00:40:33zachcarterand then maybe you can tell me how to do it
00:40:35krux02but generally the polymorphis thing can be addressed with a tagged enum
00:40:36*vendethiel quit (Ping timeout: 240 seconds)
00:40:59krux02that has a special case in Nim, but it has some weird syntax
00:41:25*vendethiel joined #nim
00:42:12krux02tagged enums are not extendable like type hirachies
00:42:23zachcarterokay I think I get what you’re saying
00:42:37krux02when you define asset types, a user of your library can not extend to his own asset type
00:42:42zachcarterright
00:42:47krux02but when it is just for your program, then you are fine
00:43:16zachcarterideally this solution is extendable
00:43:34zachcarterI’ll try to come up withs omething and share where I’m falling short
00:43:35krux02https://nim-lang.org/docs/manual.html#types-object-variants
00:44:02krux02that compiles basically to a tagged union
00:44:29zachcarterthank you
00:44:33krux02a good example for a tagged union is the SDL event
00:44:46krux02it's a very good example of what you can do with it
00:44:55zachcarterI’ll check that out
00:45:13krux02the big advantage to polymorphism is, that it is just a value type
00:45:36krux02therefore you can put it in an heterogen array
00:45:52krux02but each element is as big as the biggest element
00:46:41zachcarterright
00:46:46zachcarterthat makes sense
00:50:04krux02Araq: I now made sure emacs uses nimsuggest, but it is still the same problem
00:50:21krux02how does nimsuggest find out, what the root of the files is?
00:51:08Araqyou pass it the project.nim file, it remembers its dependencies and include files of the project
00:53:20krux02Araq: maybe the nim-mode is not written correctly, but it doesn't work for me
00:53:43Araqyeah you should nim-mode anyway becuase new nimsuggest is coming
00:53:50Araqwith better 'chk' feature
00:54:13Araqno more parsing of error messages, structured error messages ftw
00:54:22krux02I have no idea what you are talking about
00:54:45Araq(chk Error line file column)
00:55:18Araqwill help you to update it tomorrow
00:55:28krux02ok, that sounds fair
00:55:40krux02but I would still like to know what I am doing wrongly
00:56:25krux02ah I think I got it
00:57:53krux02nim-mode needs to detect the root of the project properly
01:01:56krux02Araq: can you accept my pull request for SDL2? https://github.com/nim-lang/sdl2/pull/81
01:02:09*stisa quit (Ping timeout: 240 seconds)
01:02:27*dyce[m] quit (Ping timeout: 240 seconds)
01:02:31*M-Quora quit (Ping timeout: 245 seconds)
01:02:49*ehmry[m] quit (Ping timeout: 240 seconds)
01:03:07*jivank[m] quit (Ping timeout: 252 seconds)
01:03:09*TheManiac quit (Ping timeout: 240 seconds)
01:03:20*hohlerde quit (Ping timeout: 246 seconds)
01:03:26*Jipok[m] quit (Ping timeout: 258 seconds)
01:03:26*MrAxilus[m] quit (Ping timeout: 258 seconds)
01:03:28*Guest73656[m] quit (Ping timeout: 252 seconds)
01:03:41*erwana[m] quit (Ping timeout: 255 seconds)
01:07:10*Jipok[m] joined #nim
01:07:10*TheManiac joined #nim
01:07:12*hohlerde joined #nim
01:07:12*M-Quora joined #nim
01:07:14*Guest73656[m] joined #nim
01:07:14*erwana[m] joined #nim
01:07:51*MrAxilus[m] joined #nim
01:10:40*dyce[m] joined #nim
01:10:53*jivank[m] joined #nim
01:11:02*ehmry[m] joined #nim
01:16:47*stisa joined #nim
01:24:08*def-pri-pub joined #nim
01:33:43*client_ quit (Quit: Leaving)
01:40:56*libman quit (Quit: Connection closed for inactivity)
01:48:08*rauss joined #nim
01:54:10*libman joined #nim
01:56:11*brson quit (Ping timeout: 264 seconds)
02:13:47*krux02 quit (Remote host closed the connection)
02:27:59*chemist69_ quit (Ping timeout: 264 seconds)
02:31:33*BitPuffin|osx quit (Ping timeout: 260 seconds)
02:33:42SusWombatOk i finished the tutorial now, and i have to say its really nicely written
02:36:21*Jesin quit (Quit: Leaving)
02:39:33*Jesin joined #nim
02:39:44*Kingsquee quit (Ping timeout: 260 seconds)
02:41:38*chemist69 joined #nim
02:52:36*def-pri-pub quit (Ping timeout: 240 seconds)
03:01:06zachcarterthe SDL2 tutorial SusWombat?
03:01:19SusWombatzachcarter, nah the nim tutorial
03:01:26zachcarterah okay
03:01:39zachcarteryou were saying earlier you want to write a game with Nim correct?
03:01:43SusWombatyes
03:01:53zachcartercan I ask why SDL2?
03:02:06zachcarterdo you plan on using SDL2 for rendering? what kind of game do you want to build?
03:02:35SusWombattilebased games. Yeah i plan to use the sdl2 2d rendering api for now
03:03:04zachcarterhrm :/ the SDL2 rendering API is problematic
03:03:09SusWombatwhy?
03:03:13zachcarterno draw batching
03:04:18zachcarteramong other things
03:04:35SusWombatis there a way that gdb shows me the nim code instead of the generated c code with its boilerplate?
03:04:50zachcarteryes one sec
03:05:13zachcartersomething like : nim c --lineDir:on --debuginfo src/tools/texture_packer/texture_packer
03:05:23SusWombatoh tnaks
03:05:28zachcarterno problem
03:05:48zachcarterso anyway, SDL2 = not so great for tile based games, or anything that needs things like particle effects, etc...
03:06:13SusWombatyeah but what are the alternatives
03:06:27SusWombatbesides doing your own opengl renderer
03:06:47zachcarterwell… there are a few on the horizon
03:06:47SusWombatalso id like it to use for input and audio
03:07:16SusWombatzachcarter, yeah but id also need sdls extensive crossplatform abilities
03:07:24zachcarterI’m working on a cross-platform game library at the moment
03:07:29zachcarterwhich is almost ready for 2d games
03:07:43zachcarterI’d say in a month or two it will be ready
03:07:59zachcarterbut right now your best option is probably sdl2
03:08:34zachcarterunless you want to try to figure out rod - which isn’t THAT complex, but is also not ready for prime time unless you know what your’e doing
03:08:52SusWombatokay
03:09:19zachcarteralso…
03:10:22zachcarterI’m working on this guide - https://gist.github.com/zacharycarter/846869eb3423e20af04dea226b65c18f
03:10:25zachcartersorry took me a sec to find it
03:10:50zachcarterhttps://gist.github.com/zacharycarter/846869eb3423e20af04dea226b65c18f#sdl-gpu is one of the libraries I’ll be generating bindings for, when I try to complete the guide this wekend
03:10:58*brson joined #nim
03:11:11zachcarterhttps://github.com/grimfang4/sdl-gpu
03:11:18zachcarterso that may be an option for you once the bindings are ready
03:11:48SusWombatoh yeah i did read about that one
03:11:56SusWombatdoes it run on all the platform sdl2 does?
03:12:04zachcarterI assume so
03:12:11zachcarterit’s just a higher level wrapper for libgdx
03:12:16zachcartererr sorry
03:12:18zachcartersdl2
03:12:27zachcarterI have libgdx on my brain :P
03:13:06SusWombat:D
03:13:25zachcarterif you give me a moment
03:13:38zachcarterI’ll get the latest version of my library on github and you can take a peek if you’re interested
03:13:42zachcarterI’ll link you to some code
03:15:59SusWombatdo i need to give gdb a special parameter or something? cause when i enter l it still prints the generated c code
03:18:26zachcarterhmm
03:18:38zachcarterI use lldb :/ but not to my knowledge
03:18:45zachcarterthis is the guide I used one sec
03:18:50SusWombatnim c --debugger:native --debuginfo --lineDir:on main.nim
03:18:56SusWombatthis is my compile command
03:19:25zachcarterhttps://hookrace.net/blog/what-makes-nim-practical/#debugging-nim
03:20:14zachcarterSusWombat: when you have time : https://github.com/zacharycarter/dEngine
03:20:21SusWombatah ok thanks
03:20:36*vendethiel quit (Ping timeout: 240 seconds)
03:20:51zachcarternp
03:20:54zachcarterhttps://github.com/zacharycarter/dEngine/blob/master/tools/texture_packer/src/texture_packer.nim
03:21:00zachcarterThis is an example of the library being used
03:21:27zachcarterI had things like a sprite batch, etc… implemented in previous versions I just have not moved them over to this new version yet
03:21:33*vendethiel joined #nim
03:21:42zachcarterI’m using - https://github.com/bkaradzic/bgfx for rendering
03:21:49zachcarterhttps://github.com/jarikomppa/soloud for audio
03:21:53*Kingsquee joined #nim
03:22:07zachcarterhttps://github.com/vurtun/nuklear for IMGUI
03:22:18zachcarterhttps://github.com/memononen/nanovg for HUD
03:22:35zachcarterall these will be at your disposal
03:23:09zachcarterI’ve already wrapped alll of them / implemented them parially into prototypes
03:23:20zachcarterjust need to coalesce everything at this point - which is what’s going on now
03:23:38zachcarterchimpunk for 2d physics
03:23:41zachcarterforgot that too
03:23:49SusWombatcool
03:24:10SusWombatdont know if i want to use a engine tho.
03:24:29SusWombatbut i keep an eye on it
03:24:37SusWombatsounds really cool
03:25:05zachcarterwont’ be an engine
03:25:12zachcartermore of a library like libgdx, the name is misleading
03:26:53zachcarterneed a better name...
03:27:28*brson quit (Ping timeout: 240 seconds)
03:33:31SusWombatzachcarter, so when you debug it shows the nim code instead of the c code in the debugger right?
03:33:39zachcartercorrect
03:33:45SusWombatmaybe we had a missunderstanding and i want something that isnt possible
03:33:47SusWombatah ok
03:36:44zachcarterSusWombat: http://imgur.com/a/Ewu3V
03:37:22SusWombatzachcarter, but doesnt nim only support gdb and endb?
03:37:36zachcarternope
03:37:50zachcarterlldb works fine as well
03:41:08SusWombatzachcarter, http://i.imgur.com/8D6cJdN.png
03:41:11SusWombathm :/
03:41:42zachcarternot sure why gdb isn’t working for you :/
03:41:51SusWombatzachcarter, the screen is lldb
03:41:55zachcarterI don’t have gdb as I’m on osx and don’t feel like dealing with the signing crap
03:41:56zachcarteryeah i saw
03:42:05zachcarterlldb appears to be working for you no?
03:42:14zachcarterthat looks like nim to me
03:42:23SusWombatuhm wait
03:42:42zachcarterit’s most definitely nim :D
03:42:51SusWombatzachcarter, the content of the main.nim is only "echo "test"" tho
03:43:28zachcarterI’m not sure what the —debugger:native flag does
03:43:38SusWombatuhm you are right gcc outputs nim then too havent seen that ...
03:43:44SusWombatbut yeah its not my nim code
03:44:05zachcartertry getting rid of that debugger native flag
03:44:07zachcartersee what happens
03:44:27SusWombatsame
03:45:05zachcarterhrm
03:45:08zachcarterstrange
03:46:11zachcarternot sure :/
03:46:27zachcarterlooks like you’re popping up somewhere else in the stack, not sure why
03:49:47SusWombatyeah
03:51:56SusWombatzachcarter, do you use nim 0.16.1?
03:52:00zachcarterI do
03:52:03SusWombatok
03:52:10zachcarterprobably a bit stale from devel
03:52:46SusWombatwhat?
03:55:07zachcarterit’s not the latest development version
03:55:16zachcarterso not up to date with the github repo
03:55:26SusWombatoh i thought it is
03:55:34zachcarterno I’m saying my version is not
03:55:36zachcarternot sure about yours
03:55:54SusWombatim using 0.16.1 aswell and i thought it is the current one thats what i meant
03:56:05zachcarterdid you install nim from source?
03:56:12zachcarterbuild it from source rather*
03:56:31SusWombati installed the nim-git package on arch so kind
03:56:33SusWombatkinda*
03:56:58zachcarterhrm I dunno then
03:57:21zachcartercan’t guarantee we have the same verison
03:57:22zachcartermine is
03:57:34zachcarterNim Compiler Version 0.16.1 (2017-01-31) [MacOSX: amd64]
03:57:35zachcarterCopyright (c) 2006-2017 by Andreas Rumpf
03:57:36zachcartergit hash: 8071648129909d47ff7d8d071938ba4c078fc7e4
03:57:37zachcarteractive boot switches: -d:release
03:57:38zachcarter➜ ~
04:12:29*babs__ quit (Quit: Leaving)
04:12:48*jabb quit (Read error: Connection reset by peer)
04:18:31*jabb joined #nim
05:27:04*singing_kettle joined #nim
05:33:47*enthus1a1t joined #nim
05:36:18*enthus1ast quit (Ping timeout: 268 seconds)
05:39:23*Snircle quit (Quit: Textual IRC Client: www.textualapp.com)
05:50:56*libman quit (Quit: Connection closed for inactivity)
05:53:01*rauss quit (Quit: WeeChat 1.7)
05:54:48*hjsagg quit (Ping timeout: 268 seconds)
06:00:12FromGitter<Varriount> ?
06:12:15*j75 is now known as j75__
06:14:05*hjsagg joined #nim
06:18:59*hjsagg quit (Ping timeout: 264 seconds)
06:26:54*singing_kettle quit (Quit: Lost terminal)
06:27:30*hjsagg joined #nim
06:47:26*nsf joined #nim
06:48:27*zachcarter quit (Quit: zachcarter)
06:53:46*yglukhov joined #nim
06:53:48*yglukhov quit (Remote host closed the connection)
06:54:01*yglukhov joined #nim
06:55:25*yglukhov quit (Remote host closed the connection)
06:55:51*yglukhov joined #nim
06:56:19*yglukhov quit (Remote host closed the connection)
06:57:13*yglukhov joined #nim
06:58:03*yglukhov quit (Remote host closed the connection)
07:28:01*arnetheduck joined #nim
07:33:53SusWombatCan i compile from linux for windows and vice versa? cuase im currently failing at it
07:36:05def-SusWombat: yes, but crosscompiling is not so easy
07:36:21SusWombati see
07:37:43def-for example if you're on archlinux you can install mingw-w64-gcc and related packages and then you have to tell nim to compile with the mingw-gcc compiler, for windows platform
07:38:48*_alexr_ joined #nim
07:40:14*zachcarter joined #nim
07:42:07SusWombatdef-, Thats what im trying since a while ^^
07:42:27def-I do it with C/C++, let me check if I can reproduce it with Nim
07:42:59def-nim --cc:gcc --gcc.exe:x86_64-w64-mingw32-gcc --gcc.linkerexe:x86_64-w64-mingw32-gcc --os:windows --cpu:amd64 c hello.nim
07:43:02def-works for me
07:43:41SusWombatdef-, wow ... thanks a lot it works
07:45:00def-and you can of course save that long line in a nim.cfg profile
07:45:54SusWombat:D
07:46:02SusWombatdef-, what compiler would i use on windows?
07:46:48def-I've never done it in that direction, but cygwin should work
07:46:54SusWombatok ty
07:51:28*rokups joined #nim
07:52:31*bjz joined #nim
07:54:01*tankfeeder joined #nim
07:55:32*Andris_zbx joined #nim
08:14:26*TheManiac quit (Remote host closed the connection)
08:14:26*M-Quora quit (Remote host closed the connection)
08:14:27*Guest73656[m] quit (Read error: Connection reset by peer)
08:14:28*jivank[m] quit (Read error: Connection reset by peer)
08:14:28*dyce[m] quit (Write error: Connection reset by peer)
08:14:28*stisa quit (Remote host closed the connection)
08:14:28*MrAxilus[m] quit (Write error: Connection reset by peer)
08:14:28*erwana[m] quit (Read error: Connection reset by peer)
08:14:29*Jipok[m] quit (Read error: Connection reset by peer)
08:14:29*hohlerde quit (Remote host closed the connection)
08:14:29*ehmry[m] quit (Read error: Connection reset by peer)
08:21:12*yglukhov joined #nim
08:22:41*yglukhov quit (Read error: Connection reset by peer)
08:22:45*yglukhov_ joined #nim
08:25:06*yglukhov_ quit (Remote host closed the connection)
08:25:20*yglukhov joined #nim
08:27:20*dyce[m] joined #nim
08:40:14*xet7 joined #nim
08:41:02*_alexr_ quit (Remote host closed the connection)
08:42:10*dexterk quit (Remote host closed the connection)
08:42:44*dexterk joined #nim
09:08:40*ehmry[m] joined #nim
09:08:40*hohlerde joined #nim
09:08:40*MrAxilus[m] joined #nim
09:08:40*jivank[m] joined #nim
09:08:40*M-Quora joined #nim
09:08:46*erwana[m] joined #nim
09:08:47*TheManiac joined #nim
09:08:47*Guest73656[m] joined #nim
09:08:48*stisa joined #nim
09:08:48*Jipok[m] joined #nim
09:13:40*SusWombat quit (Remote host closed the connection)
09:15:14*xet7 quit (Quit: Leaving)
09:15:22*SusWombat joined #nim
09:15:51*SusWombat quit (Client Quit)
09:15:54*Kingsquee quit (Remote host closed the connection)
09:16:12*SusWombat joined #nim
09:34:55*zachcarter quit (Quit: zachcarter)
09:59:52*vlad1777d joined #nim
10:05:50*chemist69 quit (Ping timeout: 246 seconds)
10:09:15*chemist69 joined #nim
10:24:53*abeaumont joined #nim
10:28:13*couven92 joined #nim
10:30:07*zachcarter joined #nim
10:36:29*zachcarter quit (Ping timeout: 240 seconds)
10:52:40*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
10:56:25*bjz joined #nim
11:34:36*abeaumont quit (Ping timeout: 240 seconds)
11:46:28*shashlick quit (Ping timeout: 240 seconds)
11:46:53*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
11:48:51*shashlick joined #nim
12:00:32*elrood joined #nim
12:02:08*Snircle joined #nim
12:09:08*stephenw` joined #nim
12:09:34*stephenw` left #nim ("ERC (IRC client for Emacs 24.5.1)")
12:09:57*stephenwithav joined #nim
12:13:31*chemist69 quit (Ping timeout: 256 seconds)
12:14:43*Vladar joined #nim
12:16:53*chemist69 joined #nim
12:34:07*tankfeeder quit (Quit: Leaving)
12:49:32*couven92 quit (Ping timeout: 258 seconds)
13:42:38*yglukhov quit (Remote host closed the connection)
13:43:16*yglukhov joined #nim
13:46:46*yglukhov_ joined #nim
13:49:51*yglukhov quit (Ping timeout: 256 seconds)
13:56:20*zachcarter joined #nim
14:02:19demi-is there a proper way to use query parameters using the httpclient module?
14:04:40Calinoudef-: it'd be nice if we had cross-compile helpers, so you could supply a single switch to cross-compile to Windows :)
14:09:34*BitPuffin|osx joined #nim
14:09:40stisaIsn't ``--os:windows`` enough to cross compile ( if target cpu is the same )?
14:12:07cheatfatestisa, windows headers is also needed
14:12:22cheatfatei mean windows c headers
14:13:10GaveUpcross compiling for nim is a cinch compared to some other languages, though it is a bit annoying if you have the need for multiple toolchains targeting the same arch
14:20:11*chemist69 quit (Ping timeout: 264 seconds)
14:20:55*AckZ joined #nim
14:22:43*chemist69 joined #nim
14:33:06*vendethiel quit (Ping timeout: 240 seconds)
14:33:18*Matthias247 joined #nim
14:37:58enthus1a1twhat do you mean demi- ?
14:38:58*enthus1a1t is now known as enthus1ast
14:39:55enthus1astappend it to your uri str or use the uri module
14:40:43flyxthe uri module does separate the query from the other parts, but it does not parse it
14:41:13flyxI think this is something which is missing, since proper escaping is necessary for query params
14:41:41demi-I want to encode multiple query strings onto a URL
14:41:43*ofelas_ joined #nim
14:41:48flyxso query should rather be a Table[string,string]
14:43:34Araqflyx: the cgi module can do that iirc
14:44:15*ofelas quit (Ping timeout: 256 seconds)
14:50:52enthus1astflyx: do you open an issue or should i?
14:53:10FromGitter<andreaferretti> in fact, query parameter can be repeated
14:53:22FromGitter<andreaferretti> it should be Table[string, seq[string]]
14:58:26*kulelu88 joined #nim
15:00:43*Arrrr joined #nim
15:00:43*Arrrr quit (Changing host)
15:00:43*Arrrr joined #nim
15:01:29*hjsagg quit (Ping timeout: 240 seconds)
15:28:27FromGitter<Octopoda7> Hello guys. I asked something in IRC, but I guess I should I ask here. So, I have heard that Nim will get a new website and forum soon! is that true?
15:28:35zachcarterSo I’m considering swapping out glfw 3 for sdl2 as sdl2 has support for mobile platforms while glfw3 is lacking...
15:28:42zachcarterI feel the sdl2 bindings are too fragmented at this point
15:28:55zachcarterdom96 / vladar / krux02 ^
15:29:10zachcarterOctopoda7 : dom96 can probably speak best to that but from my understanding that is the case
15:29:20zachcarterI have no idea what soon is though - I guess it’s relative
15:29:53FromGitter<Octopoda7> dom96, hi, may I ask you.
15:31:09kulelu88Octopoda7 the IRC and gitter channels are linked
15:32:04zachcarterI’d mostly like to understand the differences in the bindings at this point…
15:32:52zachcarterI’m not so concerned with drawing / sound I’m mostly concerned with windowing / input / platform data being available
15:33:10zachcarterfor now I think I will get going with Vladar’s bindings
15:34:34zachcarterAraq: I see you’ve been involved witht the bindings as well… Any thoughts here?
15:38:28*kulelu88 quit (Ping timeout: 260 seconds)
15:38:47FromGitter<Octopoda7> kulelu88, not the IRC web, but IRC client.
15:39:39euantorIt's getting a new website, the forum is simply getting a redesign to go with the website
15:40:14FromGitter<Octopoda7> euantor, when?
15:40:23euantorwhen it's finished
15:40:55euantorIt's still being worked on whenever people have the time to work on it. The redesign of the forum hasn't even started yet as far as I'm aware, but the website isn't far off
15:40:57*couven92 joined #nim
15:41:10*PMunch joined #nim
15:41:34FromGitter<Octopoda7> No :( The nim forum is, with all due respect, very awkward. It is very basic with no useful features, why not integrate a full blown forum to Nim website?
15:42:02zachcarterOctopoda7 : a lot of Nim is built with the eat your own dog food philosophy
15:42:07euantorThe idea is that the nim forum is a showcase for what Nim can do
15:42:31euantorI'm working on adding stuff to the nim forum and cleaning up things, I just need to find time to work on it, and my current focus is on the security aspect
15:42:38zachcarterIf you find it lacking features, you’re perfectly welcome to add features to it
15:42:54*libman joined #nim
15:42:54zachcarterI’m sure they’d be welcomed by the community if they were well thought-out and implemented
15:43:10FromGitter<Octopoda7> I don't like working with Araq.
15:43:28zachcarterWell… that’s a personal thing none of us can address besides you and Araq.
15:43:41FromGitter<Octopoda7> In fact, I am thinking about forking Nim and start up a new community, because of some reasons.
15:43:53zachcarterI think that would be a horrible idea…
15:44:14*rauss joined #nim
15:44:29FromGitter<Octopoda7> zachcarter, until we have a usable forum in Nim, why not using another forum regardless in what language it is written?
15:45:25zachcarterOctopoda7: again it’s a philosophy surrounding the language : build what you need for the Nim programming language with Nim and showcase it
15:45:56zachcarterif you think about the kind of ground Nim has covered in the ~8 years of its existance it is quite amazing
15:46:13zachcarterand what the language is capable of
15:46:39zachcarteryou sacrafice a certain amount of time setting up and maintaining a forum, configuring it, administering it, etc…
15:47:29FromGitter<Octopoda7> zachcarter, why none of you are doing anything? Why only Araq, dom, and zach should do everything? What about hundred of other ppl?
15:47:51zachcarterI’m not a language contributor / core dev
15:48:13zachcarterHundreds of people are contributing to the language, through PR’s, issues, donations, etc...
15:48:16euantorIf you look on the repositories, it's not only Araq, Dom and Zach
15:48:32zachcarterI think you have some misconceptions about what is going on with Nim Octopoda7
15:48:39cheatfatecommon guys do not feed the troll
15:49:10FromGitter<Octopoda7> cheatfate, what did you say to me?
15:49:21zachcartermod time...
15:49:34FromGitter<Octopoda7> zachcarter, I am getting bugs everyday.
15:50:31cheatfatejust check his profile https://github.com/Octopoda7 and you understand that you are speaking with stupid troll
15:51:18FromGitter<Octopoda7> I am not a troll, cheatfate is
15:51:21FromGitter<Octopoda7> cheatfate, fuck off.
15:51:33cheatfatenow he is revealed himself...
15:51:58*kulelu88 joined #nim
15:52:10FromGitter<Octopoda7> cheatfate, you r making me angry, u will regret it
15:52:19FromGitter<Octopoda7> cheatfate, stop talking about me, bitch ass nigger,
15:52:49FromGitter<dom96> Banned.
15:53:06zachcarterthank you
15:54:19*couven92 quit (Quit: Client Disconnecting)
15:54:26kulelu88was that a troll?
15:54:30zachcarteryes
15:54:41kulelu88I got dc in between. what triggered it?
15:55:01Xebad luck on the interwebs
15:55:05FromGitter<dom96> https://irclogs.nim-lang.org/
15:55:07cheatfatekulelu88, if you missed something you can check IRC logs on Nim website
15:57:01subsetparkThat's the same guy who said he was gonna write a book, right?
15:57:54kulelu88poor cheatfate . always helpful here and you got targeted
15:58:52zachcartersubsetpark: no idea, first time encountering him, if that’s the case then it’s going to be a shit book :P
15:59:16subsetparkhttps://forum.nim-lang.org/t/2773#17251
15:59:21zachcarterthank you cheatfate for pointing out him out as a troll
15:59:34zachcarterI guess one benefit of gitter is you can check out someone’s github profile
16:00:00kulelu88not a very clever troll to login with their github account
16:00:18kulelu88Xe: how are you feeling? have you recovered from your previous situation(s)?
16:00:41Xei'm fine
16:02:55kulelu88good to hear
16:04:47FromGitter<dom96> I suspected he was a troll but I prefer to have concrete evidence before banning.
16:05:07FromGitter<dom96> Although calling the person out seems like a good way to get confirmation :)
16:06:18zachcarterhis forum thread seemed non-troll like
16:06:53zachcarterwhatever, obviously if just calling him a troll was enough to enrage him like that, he must be one.
16:07:00cheatfatedom96: `<Octopoda7> I don't like working with Araq.` this was enough for me to check his profile and find 0 created issues and 0 created PRs
16:07:19cheatfatedom96, `<Octopoda7> In fact, I am thinking about forking Nim and start up a new community, because of some reasons.` and this was second reason.
16:16:46Araqzachcarter: hmm? what's wrong with the official sdl 2 wrapper?
16:17:12kulelu88wait, somebody actually went to the effort of making a github account just to troll on IRC and gitter? that is motivation 0.o
16:17:13zachcarterAraq: I’m not sure if anything. I just don’t understand why the community needs two of them.
16:17:39zachcarterI would think we should focus our attention on one set of bindings
16:17:48Araqkulelu88: Nim's trolls are better than the average too...
16:18:10zachcarterYeah they spend weeks building up backstory about writing books about Nim and computer science
16:18:27zachcarterapparently anyway…
16:18:43*BitPuffin|osx quit (Ping timeout: 260 seconds)
16:18:53kulelu88"I will fork Nim" and somehow maintain and improve a compiler which is what, 100K LoC?
16:19:07zachcarterAraq, the multiple bindings is causing things like this to happen
16:19:40zachcarterhttps://github.com/Halsys/nim-bgfx/blob/master/README.md
16:19:50zachcarter“Currently two window managing libraries work with this package; nimrod-glfw and sdl2_nim (with varying results).”
16:20:10zachcarterwhich may not even be accurate. the official nim sdl2 bindings may wery well work with this library.
16:20:13rausszachcarter: The creator of nim-bgfx gave some insight on the two SDL projects here: https://github.com/Halsys/nim-bgfx/issues/3
16:20:14zachcarterI’m testing that out now.
16:20:56Araqzachcarter: I'm not responsible for duplication of effort
16:21:06rausszachcarter: Also https://github.com/Vladar4/sdl2_nim/issues/1
16:21:46zachcarterokay I’ll use the official wrapper then thank you
16:21:58zachcarterand make a PR for this stuff the author of nim-bgfx is talking about
16:22:19raussI think the examples in Vladar's are better, but don't see why the efforts couldn't be combined.
16:22:20zachcarteror talk to him about doing so if he’s not already doing it
16:22:39zachcarterAraq: understood
16:23:21AraqI like the naming scheme of our sdl 2 wrapper, though I suppose it's weird at first sight
16:23:55Araqdocs + examples could be ported over from his wrapper
16:24:25Araqkulelu88: yeah, forking Nim is just crazy talk :-)
16:24:41zachcarteralright I’ll try to work on this stuff since it looks like I’m going to be using sdl2 and I’d like to use the official wrapper
16:24:51Araqthe troll wants us to spend time arguing with him
16:24:52rauss:+1:
16:25:06*arnetheduck quit (Ping timeout: 240 seconds)
16:26:02Araqthat's why he doesn't start with the offenses right away, he always tries to bind resources
16:26:12Araqin pointless bullshit fights.
16:26:59FromGitter<dom96> zachcarter: are you going to try to merge both sdl wrappers or just make improvement to the official one?
16:27:20FromGitter<dom96> I strongly support both plans :)
16:29:40kulelu88Araq: I am going to fork C :P
16:29:48cheatfatealso it looks like gitter channel needs more moderators
16:30:00Vladarhonestly, what I'm _really_ don't like in the official sdl2 wrapper (aside from events implementation), is that all the staff is crammed into one file (apparently by c2nim)
16:30:37AraqVladar: that's how most wrappers are done, makes for more convenient imports
16:30:46cheatfateat least to cover 06:00-14:00 GMT time
16:31:32Araqkulelu88: lol, feel free.
16:32:23VladarI prefer "include-aggregator" approach, greatly improves code readability
16:32:27AraqVladar: iirc the events implementation adds some important runtime checks that a .union wrapper would miss
16:34:14VladarAraq: you mean accessing uninitialized fields?
16:34:42Araqor fields which don't exist for the given event type/kind
16:39:30Vladarisn't union approach potentially faster then? Plus asserts don't work in -d:release anyway
16:40:29zachcarterrauss: I’m working on an example using the official sdl2 wrapper and bgfx once I’m done I’ll share with you if that sounds amiable
16:40:44zachcarterit will be up on my projects github repo once I’m done
16:41:23*yglukhov_ quit (Remote host closed the connection)
16:41:30rausszachcarter: Sounds great
16:41:38zachcartercool :)
16:42:02*Snircle quit (Ping timeout: 246 seconds)
16:42:22rausszachcarter: Regarding our conversation the other day, the reason I hadn't started with bgfx yet was because of this very thing. It supported SDL but apparently not the main wrapper (and apparently not on linux)
16:42:36raussSo I'm definitely interested and even invested in this
16:42:42zachcarterthese are things I will have to get ironed out
16:42:55zachcarterfor my framework
16:43:23zachcarterso we can combine our heads on them if they prove to be difficult obstacles to work through
16:44:04ArrrrSo, bgfx is a wrapper around sdl/glfw? why?
16:44:13*yglukhov joined #nim
16:44:16zachcarterbgfx is not
16:44:32zachcarterbgfx is a drawing API wraps OpenGL, DirectX, Metal, Vulkan, etc...
16:44:47ArrrrWell, it says 'Api agnostic'
16:45:13raussApi meaning OpenGL, DirectX, etc, not sdl/glfw
16:45:26zachcarterright
16:45:34raussBasically instead of using SDL or GLFW for windows, drawing, input, and more,
16:45:53raussyou can use bgfx for the rendering. But still SDL for the window creation, input, and whatever else.
16:45:54AraqVladar: assert are disabled in -d:release, but not "anyway", you use -d:release after extensive testing
16:46:14ArrrrAh, i see
16:46:22raussAraq: Also bgfx is much lower-level than SDL and GLFW's rendering apis.
16:46:28*Snircle joined #nim
16:46:31*yglukhov_ joined #nim
16:46:36zachcarterwell GLFW doesn’t have a rendering API
16:46:44zachcarterit’s simply desktop windowing / input
16:47:02raussOh, my bad
16:47:07zachcarterSDL2 provides - texture loading, input management, window management, audio, amongst other things
16:47:36ArrrrDoes BearLibTerminal also support audio?
16:48:07zachcarterI don’t think so Arrrr but let me check
16:48:49*yglukhov quit (Ping timeout: 260 seconds)
16:48:55zachcarterit doesn’t look like it Arrrr
16:49:10zachcarterbut I have created this project : https://github.com/zacharycarter/soloud-nim
16:51:23*yglukhov_ quit (Ping timeout: 264 seconds)
16:51:26ArrrrI didn't know the existance of this engine. Let's see how many platforms is able to support
16:52:53*PMunch quit (Ping timeout: 246 seconds)
16:54:26*vlad1777d quit (Remote host closed the connection)
16:54:32*Snircle quit (Max SendQ exceeded)
16:55:57*vlad1777d joined #nim
16:59:59*Snircle joined #nim
17:01:38dom96hi
17:05:58*Snircle quit (Max SendQ exceeded)
17:07:14*Snircle joined #nim
17:08:30*yaiyan is now known as Yaiyan
17:10:17*gangstacat quit (Ping timeout: 255 seconds)
17:11:04zachcarterhi dom96
17:15:17*kulelu88 quit (Ping timeout: 246 seconds)
17:15:43*Snircle_ joined #nim
17:17:42*BitPuffin|osx joined #nim
17:18:05*Snircle quit (Ping timeout: 246 seconds)
17:22:12*rokups quit (Quit: Connection closed for inactivity)
17:23:31*gangstacat joined #nim
17:33:14*krux02 joined #nim
17:38:49*LeNsTR|away joined #nim
17:39:34*kafke joined #nim
17:39:52*sdw_ joined #nim
17:40:13*kafke quit (Read error: Connection reset by peer)
17:40:13*Calinou_ joined #nim
17:40:41*kafke joined #nim
17:42:01*kafke quit (Read error: Connection reset by peer)
17:42:16*kunev_ joined #nim
17:42:23*kafke joined #nim
17:42:28*gmpreussner_ joined #nim
17:42:40*abruanese_ joined #nim
17:42:52*EastByte_ joined #nim
17:43:03*SirCmpwn_ joined #nim
17:43:13*Calinou quit (*.net *.split)
17:43:13*EastByte quit (*.net *.split)
17:43:13*kunev quit (*.net *.split)
17:43:15*sdw quit (*.net *.split)
17:43:16*gmpreussner quit (*.net *.split)
17:43:17*SirCmpwn quit (*.net *.split)
17:43:18*lenstr quit (*.net *.split)
17:43:18*abruanese quit (*.net *.split)
17:44:03*abruanese_ is now known as abruanese
17:45:35*hjsagg joined #nim
17:45:57*SirCmpwn_ is now known as SirCmpwn
17:47:24*Andris_zbx quit (Remote host closed the connection)
17:47:41*yglukhov joined #nim
17:47:58*zama quit (Ping timeout: 260 seconds)
17:49:35*zama joined #nim
17:55:35*brson joined #nim
18:03:45*Matthias247 quit (Read error: Connection reset by peer)
18:06:10zachcarterVladar: Can I ask you a question about your bindings? Where is NSWindow coming from in : https://github.com/Vladar4/sdl2_nim/blob/952d0fe5afb62236cf4ccad4bba7b52193e85bfd/sdl2/sdl_syswm.nim#L214
18:07:08zachcarterI don’t see it defined anywhere
18:07:16Vladarlet me check…
18:07:36zachcarterthank you
18:09:42demi-it is part of AppKit
18:10:17VladarOK, remembered. It should be provided by the driver API, see x.TWindow or HWND
18:11:10*yglukhov quit (Remote host closed the connection)
18:11:53*chemist69 quit (Ping timeout: 260 seconds)
18:13:36*Sentreen quit (Read error: Connection reset by peer)
18:14:18*Sentreen joined #nim
18:15:09zachcarterthank you
18:15:21Vladarnp
18:16:03*PMunch joined #nim
18:18:28*chemist69 joined #nim
18:19:49*yglukhov joined #nim
18:20:43*PMunch quit (Ping timeout: 256 seconds)
18:23:00*PMunch joined #nim
18:26:34zachcarterDoes anyone have an example of how this cast might work - https://github.com/nim-lang/sdl2/blob/master/src/sdl2.nim#L308 ?
18:26:38zachcarterI’m trying to do -
18:26:59zachcartercast[MyCustomTypeHere](info.padding) and it is not working
18:28:37*kier_ quit (Remote host closed the connection)
18:29:18zachcarternevermind I got it working
18:29:33PMunchHow?
18:30:55zachcartercast[SysWMinfoKindObj](addr info.padding[0])
18:31:20zachcarterMyCustomTypeHere = SysWMinfoKindObj
18:31:29*elrood quit (Quit: Leaving)
18:31:50PMunchYou sure addr [0] is required?
18:32:09zachcarterdoesn’t work without it
18:32:27*kier joined #nim
18:32:44zachcartergives me the error : expression cannot be cast to SysWMinfoKindObj
18:42:04PMunchAh, I guess you can drop [0] thought
18:42:48PMunchThe first element in an array is placed on the start of the array
18:43:07PMunchSo the address of the array should be the same as the address to it's first element
18:43:31zachcarterI’ll give that a try :) thank you PMunch
18:44:05PMunchNo problem. Not 100% sure if it works in Nim though since I believe the length is stored as well
19:00:23*gangstacat quit (Ping timeout: 264 seconds)
19:10:47*LeNsTR|away is now known as lenstr
19:10:56*libman quit (Quit: Connection closed for inactivity)
19:22:31*libman joined #nim
19:33:33*yglukhov quit (Remote host closed the connection)
19:36:49*brson quit (Ping timeout: 260 seconds)
19:38:00*AckZ quit ()
19:38:49*brson joined #nim
19:48:58*Trustable joined #nim
19:51:10*gangstacat joined #nim
19:59:00*vlad1777d quit (Quit: Leaving)
19:59:30*yglukhov joined #nim
20:00:10*acidx quit (Quit: Lost terminal)
20:07:11*Snircle_ quit (Quit: Textual IRC Client: www.textualapp.com)
20:08:29*brson quit (Ping timeout: 240 seconds)
20:10:03*brson joined #nim
20:10:17*bjz joined #nim
20:18:22enthus1astdemi- flyx andreaferretti is this the desired functionallity? https://gist.github.com/enthus1ast/6075236f35ae45851e79ac98f4548b50
20:20:57demi-enthus1ast: i want the inverse of that
20:21:37enthus1astyep i know : )
20:22:56demi-so, no? that isn't the desired functionality
20:23:10enthus1astbut would it be correct if it would be reversed? ;)
20:24:07demi-also no, because the values of the queries would have to be properly url encoded using cgi.encodeUrl
20:25:00VladarDid anyone face random segfaults in debug mode, similar to this? https://github.com/Vladar4/nimgame2/issues/4#issuecomment-284057702
20:33:15*bjz_ joined #nim
20:34:14*Arrrr quit (Read error: Connection reset by peer)
20:35:07*yglukhov quit (Remote host closed the connection)
20:35:37*bjz quit (Ping timeout: 260 seconds)
20:36:23*byte512 quit (Ping timeout: 264 seconds)
20:36:59*rauss quit (Ping timeout: 264 seconds)
20:38:33*rauss joined #nim
20:41:25*Nobabs27 joined #nim
20:50:33*brson quit (Ping timeout: 260 seconds)
20:53:40*nsf quit (Quit: WeeChat 1.7)
20:57:41*Trustable quit (Remote host closed the connection)
20:58:43*brson joined #nim
21:08:14*Calinou_ is now known as Calinou
21:15:45*rauss quit (Quit: WeeChat 1.7)
21:22:36*byte512 joined #nim
21:24:39PMunchHmm, I have to run a long task in the background to not freeze up my UI. I've created a function that adds a bunch of numbers (taking a couple seconds), and then a callback that echos out a "Hello world" statement. But it both freezes up my UI and the callback is never run..
21:29:03*BitPuffin|osx quit (Ping timeout: 260 seconds)
21:31:28dom96How are you running the task in the background?
21:35:56PMunchWell, in lieu of better examples I'm running it like it appears to be done in the snippets here: https://nim-lang.org/docs/asyncdispatch.html
21:36:32PMunchSo basically denote a proc with {.async.} then assign the call to a variable and add a callback to that
21:37:10*bjz joined #nim
21:37:13*bjz_ quit (Ping timeout: 260 seconds)
21:38:51*Kingsquee joined #nim
21:40:25*acidx joined #nim
21:43:19cheatfatePMunch, to not freeze your UI try to run long task in thread, or processes UI events in long task
21:44:11*Vladar quit (Quit: Leaving)
21:44:48dom96PMunch: async only handles IO concurrently
21:44:53PMunchAaah
21:44:57PMunchMy bad
21:48:46*yglukhov joined #nim
21:50:11*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
21:51:00enthus1astdemi-: https://gist.github.com/enthus1ast/6075236f35ae45851e79ac98f4548b50
21:52:40PMunchHmm, now I've got it running on it's own thread. But half of the time it SIGSEGVs
21:53:18PMunchThe only thing the thread does is add numbers so it shouldn't be a lock issue
21:53:32*yglukhov quit (Remote host closed the connection)
21:54:28PMunchAh, variable scoping error. Had my var thread:Thread[void] in the callback that created it
21:54:30demi-enthus1ast: yeah that is basically what i ended up writing: https://github.com/samdmarshall/influx.nim/blob/master/src/influx.nim#L68-L71
22:03:28*yglukhov joined #nim
22:07:57*yglukhov quit (Ping timeout: 256 seconds)
22:16:18*rauss joined #nim
22:18:20*rauss quit (Client Quit)
22:18:48*yglukhov joined #nim
22:19:10*rauss joined #nim
22:31:47*BitPuffin|osx joined #nim
22:33:52federico3zlib1.dll is not in MINGW. How can I install it?
22:37:11enthus1astaporia has it in its bin folder
22:38:57federico3enthus1ast: thanks but it's for appveyor
22:43:45PMunchHmm, anyone know if wxDefineEvent exists in the port?
22:43:46cheatfatefederico3, try to search in nuget packages
22:43:57federico3nuget?
22:44:44*yglukhov quit (Remote host closed the connection)
22:45:18*yglukhov joined #nim
22:46:45*BitPuffin|osx quit (Ping timeout: 260 seconds)
22:47:44federico3actually, a lot of stuff is already installed: https://www.appveyor.com/docs/installed-software/
22:49:53*yglukhov quit (Ping timeout: 256 seconds)
22:51:14enthus1astfunny that you've mention appveyor (never heard before), don't know why it complains, https://ci.appveyor.com/project/Araq/nim/build/346
22:51:34enthus1asthave i broken it? :)
22:52:21federico3look at the history
22:53:16federico3enthus1ast: IIRC, I've seen that happening with import tables
22:54:08*nsf joined #nim
22:59:56*rauss quit (Quit: WeeChat 1.7)
23:04:54*def-pri-pub joined #nim
23:08:06*hjsagg quit (Ping timeout: 240 seconds)
23:11:21*hjsagg joined #nim
23:20:38PMunchHmm, I think mixing Nim threads with WxWidgets might've been a bad idea..
23:25:36*zachcarter quit (Quit: zachcarter)
23:26:29PMunchPassing events back is proving to be a PITA
23:27:12*nsf quit (Quit: WeeChat 1.7)
23:33:43PMunchOkay, think I've figured it out now
23:38:15*BitPuffin|osx joined #nim
23:39:06*BitPuffin|osx quit (Remote host closed the connection)
23:39:25*BitPuffin|osx joined #nim