00:00:56 | Araq | but I have to praise myself since nobody else does it, that search feature really is nice |
00:01:11 | Araq | could be better of course, but what couldn't. |
00:02:15 | Araq | maybe we should add that seach also to https://nim-lang.org/documentation.html |
00:02:27 | Araq | or to the index.html |
00:02:37 | krux02 | are there examples for config.nims files? |
00:05:34 | Araq | in the tests/ |
00:05:42 | Araq | tests/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:40 | krux02 | well that's two lines |
00:13:52 | krux02 | it probably can't do what I am trying to solve |
00:14:09 | krux02 | I already asked that question, but I couldn't get a solution |
00:14:37 | krux02 | how do I get the right error messages in my editor (emacs) when the file I am editing is included in another file |
00:14:51 | krux02 | you said you had some comment that was parsed for vim imho |
00:15:16 | krux02 | but I don't know how true that still is, and if there is by now something that works across editors |
00:22:27 | Araq | you pass the include file to nimsuggest |
00:22:44 | Araq | nimsuggest recompiles the module that includes this file instead of the include file. |
00:22:53 | Araq | no special logic from the editor required. |
00:23:38 | Araq | note that 'nim check' is not 'nimsuggest' |
00:23:50 | Araq | and in the past 'nimsuggest' did not support checking at all. |
00:24:19 | Araq | so emacs most likely still calls 'nim check' |
00:24:29 | krux02 | ok |
00:25:00 | Araq | but I'm working on nimsuggest chk as we speak and it will covered by a test :P |
00:25:15 | Araq | in fact, that the only thing that's missing. |
00:25:33 | Araq | new nimsuggest also finally supports prefix matches |
00:25:44 | Araq | and soon has some context sensitivity |
00:25:57 | Araq | like "if in a type context, suggest type names" |
00:30:17 | zachcarter | hrm… I’m facing a design issue maybe someone can help me with |
00:30:38 | zachcarter | I’m trying to avoid resorting to inheritance, but I’m not sure of another way to accomplish what I need to do |
00:32:02 | zachcarter | I’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:07 | zachcarter | I’d like to write some generic load / unload functions that can operate on assets of any type |
00:33:45 | zachcarter | I’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:54 | zachcarter | I’m not good with generics :/ |
00:34:08 | zachcarter | Is there a way to accomplish what i’m trying to do without resorting to inheritance? |
00:35:08 | zachcarter | idelaly for each asset type I’m defining |
00:35:20 | zachcarter | TAsset* = object |
00:35:27 | zachcarter | Asset* = ref TAsset |
00:35:31 | zachcarter | so example : |
00:35:45 | zachcarter | Texture* = object |
00:35:51 | zachcarter | err sorry |
00:36:02 | zachcarter | TTexture* = object; Texture* = ref TTexture; |
00:36:16 | krux02 | I got this in my emacs: Warning (flycheck): Syntax checker nim-nimsuggest reported too many errors (431) and is disabled. |
00:38:59 | krux02 | zachcarter: what do you want to do? |
00:39:19 | krux02 | do you want to have a polymorphic Asset Type? |
00:40:09 | krux02 | when you want to have different Asset types, you need to store some kind of tag to distinguish the assats |
00:40:17 | krux02 | I don't know exactly what you are doing |
00:40:27 | zachcarter | hrm let me try to come up with an example of what I want to do |
00:40:33 | zachcarter | and then maybe you can tell me how to do it |
00:40:35 | krux02 | but generally the polymorphis thing can be addressed with a tagged enum |
00:40:36 | * | vendethiel quit (Ping timeout: 240 seconds) |
00:40:59 | krux02 | that has a special case in Nim, but it has some weird syntax |
00:41:25 | * | vendethiel joined #nim |
00:42:12 | krux02 | tagged enums are not extendable like type hirachies |
00:42:23 | zachcarter | okay I think I get what you’re saying |
00:42:37 | krux02 | when you define asset types, a user of your library can not extend to his own asset type |
00:42:42 | zachcarter | right |
00:42:47 | krux02 | but when it is just for your program, then you are fine |
00:43:16 | zachcarter | ideally this solution is extendable |
00:43:34 | zachcarter | I’ll try to come up withs omething and share where I’m falling short |
00:43:35 | krux02 | https://nim-lang.org/docs/manual.html#types-object-variants |
00:44:02 | krux02 | that compiles basically to a tagged union |
00:44:29 | zachcarter | thank you |
00:44:33 | krux02 | a good example for a tagged union is the SDL event |
00:44:46 | krux02 | it's a very good example of what you can do with it |
00:44:55 | zachcarter | I’ll check that out |
00:45:13 | krux02 | the big advantage to polymorphism is, that it is just a value type |
00:45:36 | krux02 | therefore you can put it in an heterogen array |
00:45:52 | krux02 | but each element is as big as the biggest element |
00:46:41 | zachcarter | right |
00:46:46 | zachcarter | that makes sense |
00:50:04 | krux02 | Araq: I now made sure emacs uses nimsuggest, but it is still the same problem |
00:50:21 | krux02 | how does nimsuggest find out, what the root of the files is? |
00:51:08 | Araq | you pass it the project.nim file, it remembers its dependencies and include files of the project |
00:53:20 | krux02 | Araq: maybe the nim-mode is not written correctly, but it doesn't work for me |
00:53:43 | Araq | yeah you should nim-mode anyway becuase new nimsuggest is coming |
00:53:50 | Araq | with better 'chk' feature |
00:54:13 | Araq | no more parsing of error messages, structured error messages ftw |
00:54:22 | krux02 | I have no idea what you are talking about |
00:54:45 | Araq | (chk Error line file column) |
00:55:18 | Araq | will help you to update it tomorrow |
00:55:28 | krux02 | ok, that sounds fair |
00:55:40 | krux02 | but I would still like to know what I am doing wrongly |
00:56:25 | krux02 | ah I think I got it |
00:57:53 | krux02 | nim-mode needs to detect the root of the project properly |
01:01:56 | krux02 | Araq: 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:42 | SusWombat | Ok 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:06 | zachcarter | the SDL2 tutorial SusWombat? |
03:01:19 | SusWombat | zachcarter, nah the nim tutorial |
03:01:26 | zachcarter | ah okay |
03:01:39 | zachcarter | you were saying earlier you want to write a game with Nim correct? |
03:01:43 | SusWombat | yes |
03:01:53 | zachcarter | can I ask why SDL2? |
03:02:06 | zachcarter | do you plan on using SDL2 for rendering? what kind of game do you want to build? |
03:02:35 | SusWombat | tilebased games. Yeah i plan to use the sdl2 2d rendering api for now |
03:03:04 | zachcarter | hrm :/ the SDL2 rendering API is problematic |
03:03:09 | SusWombat | why? |
03:03:13 | zachcarter | no draw batching |
03:04:18 | zachcarter | among other things |
03:04:35 | SusWombat | is there a way that gdb shows me the nim code instead of the generated c code with its boilerplate? |
03:04:50 | zachcarter | yes one sec |
03:05:13 | zachcarter | something like : nim c --lineDir:on --debuginfo src/tools/texture_packer/texture_packer |
03:05:23 | SusWombat | oh tnaks |
03:05:28 | zachcarter | no problem |
03:05:48 | zachcarter | so anyway, SDL2 = not so great for tile based games, or anything that needs things like particle effects, etc... |
03:06:13 | SusWombat | yeah but what are the alternatives |
03:06:27 | SusWombat | besides doing your own opengl renderer |
03:06:47 | zachcarter | well… there are a few on the horizon |
03:06:47 | SusWombat | also id like it to use for input and audio |
03:07:16 | SusWombat | zachcarter, yeah but id also need sdls extensive crossplatform abilities |
03:07:24 | zachcarter | I’m working on a cross-platform game library at the moment |
03:07:29 | zachcarter | which is almost ready for 2d games |
03:07:43 | zachcarter | I’d say in a month or two it will be ready |
03:07:59 | zachcarter | but right now your best option is probably sdl2 |
03:08:34 | zachcarter | unless 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:52 | SusWombat | okay |
03:09:19 | zachcarter | also… |
03:10:22 | zachcarter | I’m working on this guide - https://gist.github.com/zacharycarter/846869eb3423e20af04dea226b65c18f |
03:10:25 | zachcarter | sorry took me a sec to find it |
03:10:50 | zachcarter | https://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:11 | zachcarter | https://github.com/grimfang4/sdl-gpu |
03:11:18 | zachcarter | so that may be an option for you once the bindings are ready |
03:11:48 | SusWombat | oh yeah i did read about that one |
03:11:56 | SusWombat | does it run on all the platform sdl2 does? |
03:12:04 | zachcarter | I assume so |
03:12:11 | zachcarter | it’s just a higher level wrapper for libgdx |
03:12:16 | zachcarter | err sorry |
03:12:18 | zachcarter | sdl2 |
03:12:27 | zachcarter | I have libgdx on my brain :P |
03:13:06 | SusWombat | :D |
03:13:25 | zachcarter | if you give me a moment |
03:13:38 | zachcarter | I’ll get the latest version of my library on github and you can take a peek if you’re interested |
03:13:42 | zachcarter | I’ll link you to some code |
03:15:59 | SusWombat | do i need to give gdb a special parameter or something? cause when i enter l it still prints the generated c code |
03:18:26 | zachcarter | hmm |
03:18:38 | zachcarter | I use lldb :/ but not to my knowledge |
03:18:45 | zachcarter | this is the guide I used one sec |
03:18:50 | SusWombat | nim c --debugger:native --debuginfo --lineDir:on main.nim |
03:18:56 | SusWombat | this is my compile command |
03:19:25 | zachcarter | https://hookrace.net/blog/what-makes-nim-practical/#debugging-nim |
03:20:14 | zachcarter | SusWombat: when you have time : https://github.com/zacharycarter/dEngine |
03:20:21 | SusWombat | ah ok thanks |
03:20:36 | * | vendethiel quit (Ping timeout: 240 seconds) |
03:20:51 | zachcarter | np |
03:20:54 | zachcarter | https://github.com/zacharycarter/dEngine/blob/master/tools/texture_packer/src/texture_packer.nim |
03:21:00 | zachcarter | This is an example of the library being used |
03:21:27 | zachcarter | I 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:42 | zachcarter | I’m using - https://github.com/bkaradzic/bgfx for rendering |
03:21:49 | zachcarter | https://github.com/jarikomppa/soloud for audio |
03:21:53 | * | Kingsquee joined #nim |
03:22:07 | zachcarter | https://github.com/vurtun/nuklear for IMGUI |
03:22:18 | zachcarter | https://github.com/memononen/nanovg for HUD |
03:22:35 | zachcarter | all these will be at your disposal |
03:23:09 | zachcarter | I’ve already wrapped alll of them / implemented them parially into prototypes |
03:23:20 | zachcarter | just need to coalesce everything at this point - which is what’s going on now |
03:23:38 | zachcarter | chimpunk for 2d physics |
03:23:41 | zachcarter | forgot that too |
03:23:49 | SusWombat | cool |
03:24:10 | SusWombat | dont know if i want to use a engine tho. |
03:24:29 | SusWombat | but i keep an eye on it |
03:24:37 | SusWombat | sounds really cool |
03:25:05 | zachcarter | wont’ be an engine |
03:25:12 | zachcarter | more of a library like libgdx, the name is misleading |
03:26:53 | zachcarter | need a better name... |
03:27:28 | * | brson quit (Ping timeout: 240 seconds) |
03:33:31 | SusWombat | zachcarter, so when you debug it shows the nim code instead of the c code in the debugger right? |
03:33:39 | zachcarter | correct |
03:33:45 | SusWombat | maybe we had a missunderstanding and i want something that isnt possible |
03:33:47 | SusWombat | ah ok |
03:36:44 | zachcarter | SusWombat: http://imgur.com/a/Ewu3V |
03:37:22 | SusWombat | zachcarter, but doesnt nim only support gdb and endb? |
03:37:36 | zachcarter | nope |
03:37:50 | zachcarter | lldb works fine as well |
03:41:08 | SusWombat | zachcarter, http://i.imgur.com/8D6cJdN.png |
03:41:11 | SusWombat | hm :/ |
03:41:42 | zachcarter | not sure why gdb isn’t working for you :/ |
03:41:51 | SusWombat | zachcarter, the screen is lldb |
03:41:55 | zachcarter | I don’t have gdb as I’m on osx and don’t feel like dealing with the signing crap |
03:41:56 | zachcarter | yeah i saw |
03:42:05 | zachcarter | lldb appears to be working for you no? |
03:42:14 | zachcarter | that looks like nim to me |
03:42:23 | SusWombat | uhm wait |
03:42:42 | zachcarter | it’s most definitely nim :D |
03:42:51 | SusWombat | zachcarter, the content of the main.nim is only "echo "test"" tho |
03:43:28 | zachcarter | I’m not sure what the —debugger:native flag does |
03:43:38 | SusWombat | uhm you are right gcc outputs nim then too havent seen that ... |
03:43:44 | SusWombat | but yeah its not my nim code |
03:44:05 | zachcarter | try getting rid of that debugger native flag |
03:44:07 | zachcarter | see what happens |
03:44:27 | SusWombat | same |
03:45:05 | zachcarter | hrm |
03:45:08 | zachcarter | strange |
03:46:11 | zachcarter | not sure :/ |
03:46:27 | zachcarter | looks like you’re popping up somewhere else in the stack, not sure why |
03:49:47 | SusWombat | yeah |
03:51:56 | SusWombat | zachcarter, do you use nim 0.16.1? |
03:52:00 | zachcarter | I do |
03:52:03 | SusWombat | ok |
03:52:10 | zachcarter | probably a bit stale from devel |
03:52:46 | SusWombat | what? |
03:55:07 | zachcarter | it’s not the latest development version |
03:55:16 | zachcarter | so not up to date with the github repo |
03:55:26 | SusWombat | oh i thought it is |
03:55:34 | zachcarter | no I’m saying my version is not |
03:55:36 | zachcarter | not sure about yours |
03:55:54 | SusWombat | im using 0.16.1 aswell and i thought it is the current one thats what i meant |
03:56:05 | zachcarter | did you install nim from source? |
03:56:12 | zachcarter | build it from source rather* |
03:56:31 | SusWombat | i installed the nim-git package on arch so kind |
03:56:33 | SusWombat | kinda* |
03:56:58 | zachcarter | hrm I dunno then |
03:57:21 | zachcarter | can’t guarantee we have the same verison |
03:57:22 | zachcarter | mine is |
03:57:34 | zachcarter | Nim Compiler Version 0.16.1 (2017-01-31) [MacOSX: amd64] |
03:57:35 | zachcarter | Copyright (c) 2006-2017 by Andreas Rumpf |
03:57:36 | zachcarter | git hash: 8071648129909d47ff7d8d071938ba4c078fc7e4 |
03:57:37 | zachcarter | active boot switches: -d:release |
03:57:38 | zachcarter | ➜ ~ |
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:12 | FromGitter | <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:53 | SusWombat | Can i compile from linux for windows and vice versa? cuase im currently failing at it |
07:36:05 | def- | SusWombat: yes, but crosscompiling is not so easy |
07:36:21 | SusWombat | i see |
07:37:43 | def- | 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:07 | SusWombat | def-, Thats what im trying since a while ^^ |
07:42:27 | def- | I do it with C/C++, let me check if I can reproduce it with Nim |
07:42:59 | def- | 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:02 | def- | works for me |
07:43:41 | SusWombat | def-, wow ... thanks a lot it works |
07:45:00 | def- | and you can of course save that long line in a nim.cfg profile |
07:45:54 | SusWombat | :D |
07:46:02 | SusWombat | def-, what compiler would i use on windows? |
07:46:48 | def- | I've never done it in that direction, but cygwin should work |
07:46:54 | SusWombat | ok 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:19 | demi- | is there a proper way to use query parameters using the httpclient module? |
14:04:40 | Calinou | def-: 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:40 | stisa | Isn't ``--os:windows`` enough to cross compile ( if target cpu is the same )? |
14:12:07 | cheatfate | stisa, windows headers is also needed |
14:12:22 | cheatfate | i mean windows c headers |
14:13:10 | GaveUp | cross 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:58 | enthus1a1t | what do you mean demi- ? |
14:38:58 | * | enthus1a1t is now known as enthus1ast |
14:39:55 | enthus1ast | append it to your uri str or use the uri module |
14:40:43 | flyx | the uri module does separate the query from the other parts, but it does not parse it |
14:41:13 | flyx | I think this is something which is missing, since proper escaping is necessary for query params |
14:41:41 | demi- | I want to encode multiple query strings onto a URL |
14:41:43 | * | ofelas_ joined #nim |
14:41:48 | flyx | so query should rather be a Table[string,string] |
14:43:34 | Araq | flyx: the cgi module can do that iirc |
14:44:15 | * | ofelas quit (Ping timeout: 256 seconds) |
14:50:52 | enthus1ast | flyx: do you open an issue or should i? |
14:53:10 | FromGitter | <andreaferretti> in fact, query parameter can be repeated |
14:53:22 | FromGitter | <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:27 | FromGitter | <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:35 | zachcarter | So I’m considering swapping out glfw 3 for sdl2 as sdl2 has support for mobile platforms while glfw3 is lacking... |
15:28:42 | zachcarter | I feel the sdl2 bindings are too fragmented at this point |
15:28:55 | zachcarter | dom96 / vladar / krux02 ^ |
15:29:10 | zachcarter | Octopoda7 : dom96 can probably speak best to that but from my understanding that is the case |
15:29:20 | zachcarter | I have no idea what soon is though - I guess it’s relative |
15:29:53 | FromGitter | <Octopoda7> dom96, hi, may I ask you. |
15:31:09 | kulelu88 | Octopoda7 the IRC and gitter channels are linked |
15:32:04 | zachcarter | I’d mostly like to understand the differences in the bindings at this point… |
15:32:52 | zachcarter | I’m not so concerned with drawing / sound I’m mostly concerned with windowing / input / platform data being available |
15:33:10 | zachcarter | for now I think I will get going with Vladar’s bindings |
15:34:34 | zachcarter | Araq: 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:47 | FromGitter | <Octopoda7> kulelu88, not the IRC web, but IRC client. |
15:39:39 | euantor | It's getting a new website, the forum is simply getting a redesign to go with the website |
15:40:14 | FromGitter | <Octopoda7> euantor, when? |
15:40:23 | euantor | when it's finished |
15:40:55 | euantor | It'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:34 | FromGitter | <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:02 | zachcarter | Octopoda7 : a lot of Nim is built with the eat your own dog food philosophy |
15:42:07 | euantor | The idea is that the nim forum is a showcase for what Nim can do |
15:42:31 | euantor | I'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:38 | zachcarter | If you find it lacking features, you’re perfectly welcome to add features to it |
15:42:54 | * | libman joined #nim |
15:42:54 | zachcarter | I’m sure they’d be welcomed by the community if they were well thought-out and implemented |
15:43:10 | FromGitter | <Octopoda7> I don't like working with Araq. |
15:43:28 | zachcarter | Well… that’s a personal thing none of us can address besides you and Araq. |
15:43:41 | FromGitter | <Octopoda7> In fact, I am thinking about forking Nim and start up a new community, because of some reasons. |
15:43:53 | zachcarter | I think that would be a horrible idea… |
15:44:14 | * | rauss joined #nim |
15:44:29 | FromGitter | <Octopoda7> zachcarter, until we have a usable forum in Nim, why not using another forum regardless in what language it is written? |
15:45:25 | zachcarter | Octopoda7: again it’s a philosophy surrounding the language : build what you need for the Nim programming language with Nim and showcase it |
15:45:56 | zachcarter | if you think about the kind of ground Nim has covered in the ~8 years of its existance it is quite amazing |
15:46:13 | zachcarter | and what the language is capable of |
15:46:39 | zachcarter | you sacrafice a certain amount of time setting up and maintaining a forum, configuring it, administering it, etc… |
15:47:29 | FromGitter | <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:51 | zachcarter | I’m not a language contributor / core dev |
15:48:13 | zachcarter | Hundreds of people are contributing to the language, through PR’s, issues, donations, etc... |
15:48:16 | euantor | If you look on the repositories, it's not only Araq, Dom and Zach |
15:48:32 | zachcarter | I think you have some misconceptions about what is going on with Nim Octopoda7 |
15:48:39 | cheatfate | common guys do not feed the troll |
15:49:10 | FromGitter | <Octopoda7> cheatfate, what did you say to me? |
15:49:21 | zachcarter | mod time... |
15:49:34 | FromGitter | <Octopoda7> zachcarter, I am getting bugs everyday. |
15:50:31 | cheatfate | just check his profile https://github.com/Octopoda7 and you understand that you are speaking with stupid troll |
15:51:18 | FromGitter | <Octopoda7> I am not a troll, cheatfate is |
15:51:21 | FromGitter | <Octopoda7> cheatfate, fuck off. |
15:51:33 | cheatfate | now he is revealed himself... |
15:51:58 | * | kulelu88 joined #nim |
15:52:10 | FromGitter | <Octopoda7> cheatfate, you r making me angry, u will regret it |
15:52:19 | FromGitter | <Octopoda7> cheatfate, stop talking about me, bitch ass nigger, |
15:52:49 | FromGitter | <dom96> Banned. |
15:53:06 | zachcarter | thank you |
15:54:19 | * | couven92 quit (Quit: Client Disconnecting) |
15:54:26 | kulelu88 | was that a troll? |
15:54:30 | zachcarter | yes |
15:54:41 | kulelu88 | I got dc in between. what triggered it? |
15:55:01 | Xe | bad luck on the interwebs |
15:55:05 | FromGitter | <dom96> https://irclogs.nim-lang.org/ |
15:55:07 | cheatfate | kulelu88, if you missed something you can check IRC logs on Nim website |
15:57:01 | subsetpark | That's the same guy who said he was gonna write a book, right? |
15:57:54 | kulelu88 | poor cheatfate . always helpful here and you got targeted |
15:58:52 | zachcarter | subsetpark: no idea, first time encountering him, if that’s the case then it’s going to be a shit book :P |
15:59:16 | subsetpark | https://forum.nim-lang.org/t/2773#17251 |
15:59:21 | zachcarter | thank you cheatfate for pointing out him out as a troll |
15:59:34 | zachcarter | I guess one benefit of gitter is you can check out someone’s github profile |
16:00:00 | kulelu88 | not a very clever troll to login with their github account |
16:00:18 | kulelu88 | Xe: how are you feeling? have you recovered from your previous situation(s)? |
16:00:41 | Xe | i'm fine |
16:02:55 | kulelu88 | good to hear |
16:04:47 | FromGitter | <dom96> I suspected he was a troll but I prefer to have concrete evidence before banning. |
16:05:07 | FromGitter | <dom96> Although calling the person out seems like a good way to get confirmation :) |
16:06:18 | zachcarter | his forum thread seemed non-troll like |
16:06:53 | zachcarter | whatever, obviously if just calling him a troll was enough to enrage him like that, he must be one. |
16:07:00 | cheatfate | dom96: `<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:19 | cheatfate | dom96, `<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:46 | Araq | zachcarter: hmm? what's wrong with the official sdl 2 wrapper? |
16:17:12 | kulelu88 | wait, 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:13 | zachcarter | Araq: I’m not sure if anything. I just don’t understand why the community needs two of them. |
16:17:39 | zachcarter | I would think we should focus our attention on one set of bindings |
16:17:48 | Araq | kulelu88: Nim's trolls are better than the average too... |
16:18:10 | zachcarter | Yeah they spend weeks building up backstory about writing books about Nim and computer science |
16:18:27 | zachcarter | apparently anyway… |
16:18:43 | * | BitPuffin|osx quit (Ping timeout: 260 seconds) |
16:18:53 | kulelu88 | "I will fork Nim" and somehow maintain and improve a compiler which is what, 100K LoC? |
16:19:07 | zachcarter | Araq, the multiple bindings is causing things like this to happen |
16:19:40 | zachcarter | https://github.com/Halsys/nim-bgfx/blob/master/README.md |
16:19:50 | zachcarter | “Currently two window managing libraries work with this package; nimrod-glfw and sdl2_nim (with varying results).” |
16:20:10 | zachcarter | which may not even be accurate. the official nim sdl2 bindings may wery well work with this library. |
16:20:13 | rauss | zachcarter: The creator of nim-bgfx gave some insight on the two SDL projects here: https://github.com/Halsys/nim-bgfx/issues/3 |
16:20:14 | zachcarter | I’m testing that out now. |
16:20:56 | Araq | zachcarter: I'm not responsible for duplication of effort |
16:21:06 | rauss | zachcarter: Also https://github.com/Vladar4/sdl2_nim/issues/1 |
16:21:46 | zachcarter | okay I’ll use the official wrapper then thank you |
16:21:58 | zachcarter | and make a PR for this stuff the author of nim-bgfx is talking about |
16:22:19 | rauss | I think the examples in Vladar's are better, but don't see why the efforts couldn't be combined. |
16:22:20 | zachcarter | or talk to him about doing so if he’s not already doing it |
16:22:39 | zachcarter | Araq: understood |
16:23:21 | Araq | I like the naming scheme of our sdl 2 wrapper, though I suppose it's weird at first sight |
16:23:55 | Araq | docs + examples could be ported over from his wrapper |
16:24:25 | Araq | kulelu88: yeah, forking Nim is just crazy talk :-) |
16:24:41 | zachcarter | alright 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:51 | Araq | the troll wants us to spend time arguing with him |
16:24:52 | rauss | :+1: |
16:25:06 | * | arnetheduck quit (Ping timeout: 240 seconds) |
16:26:02 | Araq | that's why he doesn't start with the offenses right away, he always tries to bind resources |
16:26:12 | Araq | in pointless bullshit fights. |
16:26:59 | FromGitter | <dom96> zachcarter: are you going to try to merge both sdl wrappers or just make improvement to the official one? |
16:27:20 | FromGitter | <dom96> I strongly support both plans :) |
16:29:40 | kulelu88 | Araq: I am going to fork C :P |
16:29:48 | cheatfate | also it looks like gitter channel needs more moderators |
16:30:00 | Vladar | honestly, 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:37 | Araq | Vladar: that's how most wrappers are done, makes for more convenient imports |
16:30:46 | cheatfate | at least to cover 06:00-14:00 GMT time |
16:31:32 | Araq | kulelu88: lol, feel free. |
16:32:23 | Vladar | I prefer "include-aggregator" approach, greatly improves code readability |
16:32:27 | Araq | Vladar: iirc the events implementation adds some important runtime checks that a .union wrapper would miss |
16:34:14 | Vladar | Araq: you mean accessing uninitialized fields? |
16:34:42 | Araq | or fields which don't exist for the given event type/kind |
16:39:30 | Vladar | isn't union approach potentially faster then? Plus asserts don't work in -d:release anyway |
16:40:29 | zachcarter | rauss: 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:44 | zachcarter | it will be up on my projects github repo once I’m done |
16:41:23 | * | yglukhov_ quit (Remote host closed the connection) |
16:41:30 | rauss | zachcarter: Sounds great |
16:41:38 | zachcarter | cool :) |
16:42:02 | * | Snircle quit (Ping timeout: 246 seconds) |
16:42:22 | rauss | zachcarter: 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:36 | rauss | So I'm definitely interested and even invested in this |
16:42:42 | zachcarter | these are things I will have to get ironed out |
16:42:55 | zachcarter | for my framework |
16:43:23 | zachcarter | so we can combine our heads on them if they prove to be difficult obstacles to work through |
16:44:04 | Arrrr | So, bgfx is a wrapper around sdl/glfw? why? |
16:44:13 | * | yglukhov joined #nim |
16:44:16 | zachcarter | bgfx is not |
16:44:32 | zachcarter | bgfx is a drawing API wraps OpenGL, DirectX, Metal, Vulkan, etc... |
16:44:47 | Arrrr | Well, it says 'Api agnostic' |
16:45:13 | rauss | Api meaning OpenGL, DirectX, etc, not sdl/glfw |
16:45:26 | zachcarter | right |
16:45:34 | rauss | Basically instead of using SDL or GLFW for windows, drawing, input, and more, |
16:45:53 | rauss | you can use bgfx for the rendering. But still SDL for the window creation, input, and whatever else. |
16:45:54 | Araq | Vladar: assert are disabled in -d:release, but not "anyway", you use -d:release after extensive testing |
16:46:14 | Arrrr | Ah, i see |
16:46:22 | rauss | Araq: 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:36 | zachcarter | well GLFW doesn’t have a rendering API |
16:46:44 | zachcarter | it’s simply desktop windowing / input |
16:47:02 | rauss | Oh, my bad |
16:47:07 | zachcarter | SDL2 provides - texture loading, input management, window management, audio, amongst other things |
16:47:36 | Arrrr | Does BearLibTerminal also support audio? |
16:48:07 | zachcarter | I don’t think so Arrrr but let me check |
16:48:49 | * | yglukhov quit (Ping timeout: 260 seconds) |
16:48:55 | zachcarter | it doesn’t look like it Arrrr |
16:49:10 | zachcarter | but I have created this project : https://github.com/zacharycarter/soloud-nim |
16:51:23 | * | yglukhov_ quit (Ping timeout: 264 seconds) |
16:51:26 | Arrrr | I 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:38 | dom96 | hi |
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:04 | zachcarter | hi 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:10 | zachcarter | Vladar: 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:08 | zachcarter | I don’t see it defined anywhere |
18:07:16 | Vladar | let me check… |
18:07:36 | zachcarter | thank you |
18:09:42 | demi- | it is part of AppKit |
18:10:17 | Vladar | OK, 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:09 | zachcarter | thank you |
18:15:21 | Vladar | np |
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:34 | zachcarter | Does anyone have an example of how this cast might work - https://github.com/nim-lang/sdl2/blob/master/src/sdl2.nim#L308 ? |
18:26:38 | zachcarter | I’m trying to do - |
18:26:59 | zachcarter | cast[MyCustomTypeHere](info.padding) and it is not working |
18:28:37 | * | kier_ quit (Remote host closed the connection) |
18:29:18 | zachcarter | nevermind I got it working |
18:29:33 | PMunch | How? |
18:30:55 | zachcarter | cast[SysWMinfoKindObj](addr info.padding[0]) |
18:31:20 | zachcarter | MyCustomTypeHere = SysWMinfoKindObj |
18:31:29 | * | elrood quit (Quit: Leaving) |
18:31:50 | PMunch | You sure addr [0] is required? |
18:32:09 | zachcarter | doesn’t work without it |
18:32:27 | * | kier joined #nim |
18:32:44 | zachcarter | gives me the error : expression cannot be cast to SysWMinfoKindObj |
18:42:04 | PMunch | Ah, I guess you can drop [0] thought |
18:42:48 | PMunch | The first element in an array is placed on the start of the array |
18:43:07 | PMunch | So the address of the array should be the same as the address to it's first element |
18:43:31 | zachcarter | I’ll give that a try :) thank you PMunch |
18:44:05 | PMunch | No 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:22 | enthus1ast | demi- flyx andreaferretti is this the desired functionallity? https://gist.github.com/enthus1ast/6075236f35ae45851e79ac98f4548b50 |
20:20:57 | demi- | enthus1ast: i want the inverse of that |
20:21:37 | enthus1ast | yep i know : ) |
20:22:56 | demi- | so, no? that isn't the desired functionality |
20:23:10 | enthus1ast | but would it be correct if it would be reversed? ;) |
20:24:07 | demi- | also no, because the values of the queries would have to be properly url encoded using cgi.encodeUrl |
20:25:00 | Vladar | Did 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:39 | PMunch | Hmm, 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:28 | dom96 | How are you running the task in the background? |
21:35:56 | PMunch | Well, 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:32 | PMunch | So 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:19 | cheatfate | PMunch, 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:48 | dom96 | PMunch: async only handles IO concurrently |
21:44:53 | PMunch | Aaah |
21:44:57 | PMunch | My bad |
21:48:46 | * | yglukhov joined #nim |
21:50:11 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
21:51:00 | enthus1ast | demi-: https://gist.github.com/enthus1ast/6075236f35ae45851e79ac98f4548b50 |
21:52:40 | PMunch | Hmm, now I've got it running on it's own thread. But half of the time it SIGSEGVs |
21:53:18 | PMunch | The 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:28 | PMunch | Ah, variable scoping error. Had my var thread:Thread[void] in the callback that created it |
21:54:30 | demi- | 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:52 | federico3 | zlib1.dll is not in MINGW. How can I install it? |
22:37:11 | enthus1ast | aporia has it in its bin folder |
22:38:57 | federico3 | enthus1ast: thanks but it's for appveyor |
22:43:45 | PMunch | Hmm, anyone know if wxDefineEvent exists in the port? |
22:43:46 | cheatfate | federico3, try to search in nuget packages |
22:43:57 | federico3 | nuget? |
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:44 | federico3 | actually, 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:14 | enthus1ast | funny 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:34 | enthus1ast | have i broken it? :) |
22:52:21 | federico3 | look at the history |
22:53:16 | federico3 | enthus1ast: 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:38 | PMunch | Hmm, I think mixing Nim threads with WxWidgets might've been a bad idea.. |
23:25:36 | * | zachcarter quit (Quit: zachcarter) |
23:26:29 | PMunch | Passing events back is proving to be a PITA |
23:27:12 | * | nsf quit (Quit: WeeChat 1.7) |
23:33:43 | PMunch | Okay, 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 |