02:00:59 | * | chemist69 quit (Disconnected by services) |
02:01:04 | * | chemist69_ joined #nim |
02:12:36 | * | rauss quit (Quit: WeeChat 1.8) |
02:58:28 | * | libman quit (Quit: Connection closed for inactivity) |
03:00:59 | * | yglukhov joined #nim |
03:05:40 | * | yglukhov quit (Ping timeout: 260 seconds) |
04:40:33 | * | pilne quit (Quit: Quitting!) |
05:01:32 | * | Snircle quit (Quit: Textual IRC Client: www.textualapp.com) |
05:04:11 | * | yglukhov joined #nim |
05:08:46 | * | yglukhov quit (Ping timeout: 268 seconds) |
05:19:22 | * | shashlick quit (Ping timeout: 260 seconds) |
06:02:17 | * | couven92 joined #nim |
06:06:41 | * | nsf joined #nim |
06:48:57 | * | Vladar joined #nim |
07:04:34 | FromGitter | <gokr> @zacharycarter Regarding 3D engine, I know you want to build your own and understand the motivations (hell I am making Spry) but I still think making a good Urho3D wrapper (or AtomicGameEngine which is a derivative with more action) would be wonderful. |
07:05:44 | FromGitter | <gokr> Atomic has a gitter channel btw, 320 people. |
07:06:28 | * | FromGitter * gokr stops nagging |
07:10:19 | FromGitter | <gokr> @zacharycarter IMHO also Urho/Atomic is much more interesting than Godot. |
07:14:54 | * | tankfeeder joined #nim |
07:15:17 | FromGitter | <gokr> And the Urhonimo wrapper already shown it can fairly easily be wrapped. The C++ is also "fairly straight" (Araq can give his opinion, he knows better) in Urho3D, and Urho3D also offers "scripting" in a whole bunch of languages (Atomic adds more). |
07:15:41 | * | yglukhov joined #nim |
07:17:31 | * | fredrik92 joined #nim |
07:18:02 | FromGitter | <gokr> @zacharycarter Read a bit here: https://discourse.urho3d.io/search?q=Godot |
07:18:12 | * | fredrik92 quit (Disconnected by services) |
07:23:13 | * | eizua joined #nim |
08:08:09 | * | skrylar joined #nim |
08:15:31 | * | Arrrr joined #nim |
08:21:57 | * | krux02 joined #nim |
08:25:51 | * | xet7 quit (Quit: Leaving) |
08:37:22 | * | bjz joined #nim |
09:00:28 | FromGitter | <TiberiumN> @gokr for me godot would be better |
09:00:38 | FromGitter | <TiberiumN> because it has new gdnative feature |
09:00:47 | FromGitter | <TiberiumN> for 2d games godot is better IMO :) |
09:14:12 | Arrrr | What is gdnative? |
09:16:40 | * | aerx quit (Quit: WeeChat 1.9) |
09:24:54 | FromGitter | <gokr> @TiberiumN Have you used both? |
09:27:15 | FromGitter | <gokr> And GDNative... not sure I grasp what's so cool about it. |
09:28:10 | FromGitter | <gokr> AFAICT it's just a way to make native code callable from GDScript? |
09:30:04 | FromGitter | <gokr> From what I gather Urho3D is a "cleaner fit" to Nim - since Urho3D is designed as a C++ library and designed to be coded in C++ - or in any of the included scripting languages that have the automated wrappers for the C++ APIs. |
09:30:40 | FromGitter | <gokr> You have a large choice there of standard languages, Lua and AngelScript has been there from the start. Atomic added js, typescript and C# IIRC. |
09:34:25 | * | bjz quit (Ping timeout: 276 seconds) |
09:40:11 | * | arnetheduck joined #nim |
09:40:16 | * | bjz joined #nim |
09:40:32 | * | eizua quit (Quit: Leaving) |
09:50:26 | skrylar | oh fun. if you have an object, containing a proc, which return sthe object, the compiler does not realize this is impossible. it instead just crashes. |
09:50:32 | skrylar | then tells me to run koch (which doesn't work) |
09:53:16 | skrylar | Araq you are right, libui is neat. no idea how it fares when doing platform integration stuff, but it seems to be a decent way to go |
10:11:05 | FromGitter | <zacharycarter> @gokr I'm down for working on an Urho3d wrapper I just have no idea where to even begin, much less how to go about it |
10:14:52 | FromGitter | <zacharycarter> or Atomic if that's what the community desires |
10:15:04 | FromGitter | <zacharycarter> seems like Urho3d is questioning some design decisions now |
10:15:10 | FromGitter | <zacharycarter> https://discourse.urho3d.io/t/modernising-urho3d/2489/4 |
10:18:24 | couven92 | euantor, I have moved the alignLeft proc we talked about a few days ago... that way we can deal with `cut` (if at all) on its own, while we can just merge alignLeft regardless |
10:19:13 | FromGitter | <zacharycarter> looks like atomic is just a fork of urho3d |
10:19:18 | FromGitter | <zacharycarter> with some added scripting languages |
10:19:30 | FromGitter | <zacharycarter> and an editor etc |
10:22:09 | FromGitter | <zacharycarter> If we want to wrap a C++ engine with Nim there are some newer / emerging ones that might be of interest too |
10:22:21 | * | bjz_ joined #nim |
10:22:37 | FromGitter | <zacharycarter> https://github.com/nem0/LumixEngine ⏎ https://github.com/BearishSun/BansheeEngine |
10:22:57 | * | bjz quit (Ping timeout: 240 seconds) |
10:23:35 | FromGitter | <zacharycarter> https://github.com/mosra/magnum.git |
10:31:19 | euantor | nice one couven92 |
10:33:16 | FromGitter | <zacharycarter> @gokr also I think your understanding of GDNative is incorrect (if mine is correct) - I don't think it allows you to call GDScript from native code, I believe it serves as an alternative to GDScript |
10:33:31 | FromGitter | <zacharycarter> so you can write your game code in a native language |
10:33:35 | FromGitter | <zacharycarter> and not use GDScript |
10:33:55 | FromGitter | <zacharycarter> but I could very much be wrong about that |
10:39:30 | skrylar | whee, dangerous things with rawEnv and callbacks. |
10:52:09 | * | ShalokShalom quit (Remote host closed the connection) |
10:54:28 | * | skrylar quit (Quit: My iMac has gone to sleep. ZZZzzz…) |
10:59:27 | * | arnetheduck quit (Ping timeout: 260 seconds) |
11:04:05 | * | skrylar joined #nim |
11:05:15 | * | skrylar quit (Client Quit) |
11:08:10 | FromGitter | <gokr> @zacharycarter Urhonimo was already started (wrapper of Urho3D) - I suspect it can be updated and moved further. |
11:08:23 | FromGitter | <gokr> @zacharycarter Araq knows more about how he generated the wrapper. |
11:08:57 | FromGitter | <gokr> @zacharycarter What I meant was not "calling GDScript from native" - but rather "calling your own native from GDScript". |
11:09:53 | FromGitter | <gokr> @zacharycarter Either way, I don't see what GDNative does that ... beats a c2nim generated wrapper of Urho3D? Did you ever see the Nim examples we made with Urho3D? |
11:10:36 | * | bjz_ quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
11:11:18 | FromGitter | <gokr> @zacharycarter Atomic is indeed Urho3D with extras. But quite a lot of extras. |
11:12:30 | FromGitter | <gokr> skrylar: libui is nice BUT.... it seems very stalled. |
11:12:57 | FromGitter | <gokr> Or can I write @skrylar ... hmm. |
11:13:56 | FromGitter | <zacharycarter> @gokr Yeah basically they're trying to add extra options to GoDot besides C++ with GDNative |
11:14:14 | FromGitter | <zacharycarter> so you could write your gameplay code in Nim / Rust / D whatever / also use third party libs written in those languages |
11:14:31 | FromGitter | <gokr> @zacharycarter IMHO the nice part with Urho3D is that its quite mature, stable, works on many platforms and so on. The design comes from Lasse (cadaver) that was very much into Ogre3D and made Urho3D as a "better Ogre". |
11:15:19 | * | bjz joined #nim |
11:15:20 | FromGitter | <zacharycarter> I agree it'd be nice to bring it up to date, but I have no idea where I'd even start |
11:15:28 | FromGitter | <zacharycarter> maybe when @Araq is around he can offer some guidance |
11:15:36 | FromGitter | <gokr> @zacharycarter Did you look at these? https://github.com/3dicc/Urhonimo/tree/master/examples |
11:15:57 | FromGitter | <gokr> From what I recall Araq made the wrapper basically using c2nim. |
11:16:47 | FromGitter | <zacharycarter> I have seen those but I've never run them |
11:16:50 | FromGitter | <zacharycarter> just seen the youtube video |
11:17:26 | FromGitter | <zacharycarter> yeah I imagine c2nim would be invaluable in the wrapping process but I have a feeling it's quite a bit more involved than just running c2nim on a single header file |
11:18:08 | FromGitter | <zacharycarter> Why doesn't Nim interpret '┌' as a character literal? |
11:20:44 | FromGitter | <ephja> it's two bytes wide, isn't it? |
11:21:01 | FromGitter | <zacharycarter> ah maybe |
11:21:17 | FromGitter | <ephja> there's the unicode module for these cases |
11:21:17 | FromGitter | <gokr> @zacharycarter IIRC in fact, most of the wrapper was just run using c2nim. He also improved c2nim in the process. |
11:21:35 | FromGitter | <gokr> One nice bit is... let me show... |
11:21:36 | FromGitter | <zacharycarter> @ephja gotcha thank you |
11:21:46 | FromGitter | <zacharycarter> @goker hrm maybe @araq can shine some light as to where he started the process |
11:22:00 | FromGitter | <zacharycarter> it'd be nice to be able to get the engine initialized and then go from there |
11:22:37 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
11:22:59 | FromGitter | <gokr> https://github.com/3dicc/Urhonimo/blob/master/examples/huge.nim#L175-L176 |
11:23:25 | FromGitter | <gokr> Was made possible by this further up that file: https://github.com/3dicc/Urhonimo/blob/master/examples/huge.nim#L30-L35 |
11:23:45 | FromGitter | <ephja> but I don't think there's a shortcut for turning a string with a single rune into a Rune (integer) |
11:23:47 | FromGitter | <zacharycarter> ah nice :D |
11:24:05 | FromGitter | <zacharycarter> @ephja how would I convert it to a cint using the unicode module? I'm not seeing anything |
11:24:09 | FromGitter | <gokr> Urho3D has lots of very nice examples - and Atomic has added even more. |
11:24:27 | FromGitter | <gokr> And examples are usually both in C++ and in js or AngelScript etc. |
11:24:52 | FromGitter | <gokr> Atomic added also the Turbobadger UI IIRC |
11:25:06 | FromGitter | <gokr> Urho3D has its own builtin UI which is a bit anemic, although it works. |
11:25:29 | FromGitter | <gokr> Also, IIRC all examples run fine on Android and iOS also. |
11:26:13 | FromGitter | <ephja> @zacharycarter unicode.runeAt(s, 0) I think |
11:26:20 | FromGitter | <zacharycarter> thank you @pj |
11:26:27 | FromGitter | <zacharycarter> @ephja * |
11:26:39 | FromGitter | <zacharycarter> hrm Atomic might be the way to go then |
11:28:45 | FromGitter | <gokr> I suspect one can build Urhonimo "on Atomic" as well as Urho3D. They do have mods but try to fork as little as possible. |
11:28:52 | FromGitter | <gokr> Both are MIT also. |
11:31:25 | FromGitter | <zacharycarter> once @Araq is around I'll ask for some guidance as far as where to begin |
11:32:16 | FromGitter | <gokr> @zacharycarter Awesome! I will try to help as much as I can too. |
11:33:14 | FromGitter | <zacharycarter> sweet! :smile: |
11:33:18 | FromGitter | <gokr> Because I really do think it's a very good engine (we came a long way with it at 3DICC before we had to put it on hold) and cool stuff is happening there |
11:33:36 | FromGitter | <zacharycarter> I need a new job where I can work on games :P |
11:33:38 | FromGitter | <gokr> Especially Atomic is vibrant as hell. |
11:34:18 | FromGitter | <gokr> I would love to work more with 3DICC but at the moment I am IoT focused. |
11:34:34 | FromGitter | <zacharycarter> gotcha |
11:34:50 | FromGitter | <zacharycarter> IoT sounds cool though too |
11:34:53 | FromGitter | <gokr> But... some of the screenshots at 3dicc.com are actually from the new version we worked at using Urho3D. |
11:35:44 | FromGitter | <zacharycarter> ah awesome |
11:36:12 | FromGitter | <gokr> The background pic here is actually in Urho3D: http://www.3dicc.com/about/ |
11:36:27 | FromGitter | <gokr> You can tell the graphics look different from the other screenshots. |
11:36:31 | FromGitter | <zacharycarter> yeah |
11:36:34 | FromGitter | <zacharycarter> looks a lot nicer |
11:36:36 | FromGitter | <zacharycarter> SSAO and such |
11:36:45 | FromGitter | <gokr> Those bodies were made with Mixamo Fuse |
11:37:00 | FromGitter | <zacharycarter> ah yeah I had a license to fuse back when I was doing a lot of 3d stuff |
11:37:10 | FromGitter | <zacharycarter> adobe really pissed me off with that one :P but it's a cool product |
11:37:15 | FromGitter | <gokr> Using the fbx importer path it worked great |
11:58:20 | * | sz0 joined #nim |
11:59:04 | Sentreen | Question: How do concepts and overloading work together? Concretely, is there any reason why the following code does not compile? https://pastebin.com/rwniXrUG |
11:59:51 | Sentreen | I get that concepts are not interfaces, but I feel like this is the kind of use case concepts were made for, i.e. impose some constraints on a generic. |
12:00:04 | Sentreen | I considered submitting an issue, but I wanted to be sure I wasn't just using concepts the wrong way first |
12:03:10 | FromGitter | <andreaferretti> I think you are using them wrong |
12:03:41 | FromGitter | <andreaferretti> You are declaring that a type `T` belongs to `SomeConcept` if you can call `myProc` on it |
12:04:03 | FromGitter | <andreaferretti> You can use that constraint in generic functions |
12:04:35 | FromGitter | <andreaferretti> But then you wrap your `int` into `SomeType` |
12:05:20 | * | Snircle joined #nim |
12:05:22 | FromGitter | <andreaferretti> Oh sorry I had misread the example |
12:05:32 | FromGitter | <andreaferretti> `myProc` is defined on `SomeType` as well |
12:05:57 | FromGitter | <Araq> what's up? |
12:06:10 | FromGitter | <andreaferretti> I must be tired today |
12:06:21 | FromGitter | <andreaferretti> It's the second time I read things wrong :-D |
12:06:24 | FromGitter | <zacharycarter> o/ @Araq @gokr and I were discussing urhonimo |
12:06:56 | FromGitter | <zacharycarter> and maybe trying to try to do something similar with the Atomic game engine which is an updated fork of Urho3d |
12:07:53 | FromGitter | <zacharycarter> was wondering if you had any guidance on how you tackled / started with your wrapper around Urho |
12:08:49 | FromGitter | <Araq> I kissed my kids goodbye for a month, didn't sleep, didn't eat and then it was done |
12:08:55 | FromGitter | <Araq> :P |
12:09:10 | FromGitter | <zacharycarter> lmao |
12:09:12 | Sentreen | Yeah, I think it works when `myProc` is not overloaded. Not 100% sure though |
12:10:45 | FromGitter | <Araq> https://youtu.be/DgzssDOTMXs?t=49 |
12:11:03 | Sentreen | This got me thinking though, are generics instantiated in the module where the abstract type is defined? Or in the module where you make a concrete instance? |
12:11:39 | * | yglukhov quit (Remote host closed the connection) |
12:11:49 | FromGitter | <Araq> the latter |
12:13:00 | Sentreen | What's the reason for this? It seems to be the cause for most of the issues I'm running into at the moment |
12:14:22 | FromGitter | <Araq> concepts now have symbol lookup prepass like templates to prevent typos |
12:14:39 | FromGitter | <Araq> I need to take a deeper look but this could be your problem. |
12:15:21 | FromGitter | <Araq> but your code is strange |
12:15:59 | FromGitter | <Araq> proc otherProc(t: SomeConcept) = ⏎ t.field.myProc() ⏎ echo "outer" |
12:16:29 | FromGitter | <Araq> is easier to understand unless you want the other myProc to implement the concept as well |
12:16:43 | FromGitter | <Araq> in which case my head is starting to explode :P |
12:18:20 | Sentreen | It's the other way around, the proc that echoes "inner" implements the concept, the other one just happens to have the same name. |
12:18:24 | Sentreen | Which might still make your head explode :p |
12:19:54 | Sentreen | I'm creating a framework, the idea is that people can add most of their code by creating their own type and the procs that belong to it. I just use the concepts to ensure that some key procs are present |
12:21:26 | Sentreen | But is there any reasons generics are not instantiated in the module where they are defined? I don't know enough about the compiler to properly reason about this, but if this were the case I believe it would solve issues like this too: https://github.com/nim-lang/Nim/issues/6049 |
12:21:52 | Sentreen | I guess it would make other things explode, but as I said, I don't know enough about the implementation to reason about this :p |
12:28:41 | * | yglukhov joined #nim |
12:29:30 | FromGitter | <Araq> yeah well, with concepts we can definitely check generics at definition time, not instantiation time |
12:30:08 | FromGitter | <Araq> but I doubt we'll get there for Nim v1 |
12:30:29 | FromGitter | <Araq> it's on my radar though |
12:30:37 | * | nsf quit (Quit: WeeChat 1.7.1) |
12:32:31 | Sentreen | Okay, I'm mainly just wondering what the implications would be when generics are instantiated in the module where they are defined. Since the way I see it, they kind of break the module system right now. |
12:32:55 | FromGitter | <Araq> well do you know about 'bind'? |
12:32:55 | Sentreen | Though I agree concepts are a pretty nice workaround :) |
12:33:05 | * | yglukhov quit (Ping timeout: 248 seconds) |
12:33:28 | Sentreen | I do not. Let me look into it |
12:35:05 | Sentreen | Oh, I only used it in templates so far, I'll see if I can use it to solve my problem. Thanks for the pointer! |
12:39:29 | * | yglukhov joined #nim |
12:44:34 | * | yglukhov quit (Remote host closed the connection) |
12:50:23 | * | bjz joined #nim |
12:52:01 | * | yglukhov joined #nim |
12:57:25 | * | pilne joined #nim |
13:11:57 | * | Sembei quit (Ping timeout: 240 seconds) |
13:12:46 | * | couven92 quit (Quit: Client disconnecting) |
13:20:29 | * | dyce[m] quit (Ping timeout: 246 seconds) |
13:20:32 | * | stisa quit (Ping timeout: 258 seconds) |
13:20:55 | * | hohlerde quit (Ping timeout: 258 seconds) |
13:21:04 | * | ehmry quit (Ping timeout: 246 seconds) |
13:21:08 | * | Jipok[m] quit (Ping timeout: 240 seconds) |
13:21:16 | * | MrAxilus[m] quit (Ping timeout: 276 seconds) |
13:21:35 | * | mindB quit (Ping timeout: 255 seconds) |
13:21:35 | * | TheManiac quit (Ping timeout: 255 seconds) |
13:21:35 | * | federico3p quit (Ping timeout: 255 seconds) |
13:21:42 | * | jivank[m] quit (Ping timeout: 255 seconds) |
13:27:48 | FromGitter | <gokr> @Araq For updating the Urhonimo wrapper - did you push all into that repo? Or was there some scripts involved too? |
13:28:21 | FromGitter | <gokr> I never ran the actual generation, and I am not sure if you got it fully automated or not. |
13:29:25 | FromGitter | <zacharycarter> @gokr I just tried building atomic for osx, no dice, will try to get help when the creators / maintainers are round |
13:32:16 | FromGitter | <gokr> Hmmm, otherwise Urho3D usually builds very nicely. |
13:32:34 | FromGitter | <gokr> Was a while since I tried building Atomic |
13:33:26 | * | Sembei joined #nim |
13:41:05 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
13:42:33 | * | bjz joined #nim |
13:43:43 | * | Arrrr quit (Quit: Leaving.) |
13:50:26 | * | tankfeeder quit (Quit: Leaving) |
13:50:49 | * | stisa joined #nim |
13:53:52 | * | couven92 joined #nim |
13:57:17 | * | dyce[m] joined #nim |
13:57:17 | * | MrAxilus[m] joined #nim |
13:57:17 | * | ehmry joined #nim |
13:57:24 | * | TheManiac joined #nim |
13:57:24 | * | jivank[m] joined #nim |
13:57:24 | * | Jipok[m] joined #nim |
13:57:24 | * | federico3p joined #nim |
13:57:25 | * | mindB joined #nim |
13:57:25 | * | hohlerde joined #nim |
14:00:35 | * | ehmry quit (Remote host closed the connection) |
14:00:36 | * | jivank[m] quit (Read error: Connection reset by peer) |
14:00:36 | * | Jipok[m] quit (Read error: Connection reset by peer) |
14:00:36 | * | MrAxilus[m] quit (Remote host closed the connection) |
14:00:36 | * | federico3p quit (Read error: Connection reset by peer) |
14:00:36 | * | stisa quit (Read error: Connection reset by peer) |
14:00:36 | * | mindB quit (Read error: Connection reset by peer) |
14:00:36 | * | hohlerde quit (Read error: Connection reset by peer) |
14:00:36 | * | dyce[m] quit (Remote host closed the connection) |
14:00:36 | * | TheManiac quit (Read error: Connection reset by peer) |
14:04:56 | * | krux02 quit (Remote host closed the connection) |
14:05:44 | * | stisa joined #nim |
14:09:04 | FromGitter | <zacharycarter> @gokr figured out my issues with atomic, going to set up a dev env for it |
14:12:07 | * | ehmry joined #nim |
14:12:07 | * | dyce[m] joined #nim |
14:12:14 | * | jivank[m] joined #nim |
14:12:14 | * | Jipok[m] joined #nim |
14:12:14 | * | TheManiac joined #nim |
14:12:14 | * | MrAxilus[m] joined #nim |
14:12:14 | * | hohlerde joined #nim |
14:12:14 | * | federico3p joined #nim |
14:12:15 | * | mindB joined #nim |
14:32:58 | * | v17d joined #nim |
14:44:44 | FromGitter | <ephja> can concepts match procs with an arbitrary amount of arguments? |
14:46:08 | * | Sembei quit (Ping timeout: 240 seconds) |
14:46:51 | * | nsf joined #nim |
14:49:28 | FromGitter | <zacharycarter> @gokr nm atomic is still being a pita |
15:04:06 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
15:16:16 | * | Trustable joined #nim |
15:19:02 | * | Sembei joined #nim |
15:20:40 | FromGitter | <Araq> @gokr it's complete and up to date to the best of my knowledge |
15:29:01 | * | Arrrr joined #nim |
15:30:42 | * | rauss joined #nim |
15:31:16 | * | couven92 quit (Ping timeout: 255 seconds) |
15:41:51 | * | aerx joined #nim |
15:46:41 | FromGitter | <ephja> Markus Oberhumer is contributing to nimqml and DOtherSide? |
15:51:31 | FromGitter | <ephja> is that the fire alarm? did someone start cooking something and then go to bed again? lol |
16:05:50 | * | kunev quit (Ping timeout: 255 seconds) |
16:07:12 | * | kunev joined #nim |
16:08:04 | FromGitter | <zacharycarter> how i can replace all characters in a string with an asterisk? |
16:10:47 | FromGitter | <Varriount> @zacharycarter Create a new string? Or just loop through the one you want to mutate. |
16:11:21 | FromGitter | <zacharycarter> just looking for some shorthand way to do it |
16:11:44 | FromGitter | <Varriount> for index, character in stringValue: stringValue[index] = '*' |
16:11:53 | FromGitter | <zacharycarter> thanks |
16:14:58 | FromGitter | <gokr> @Araq You mean Urhonimo? Did we update it for latest Urho? |
16:15:31 | FromGitter | <Araq> probably not, I don't know what the latest Urho is, but I did update it a couple of times |
16:19:10 | * | xet7 joined #nim |
16:20:53 | FromGitter | <gokr> Hmmm, I will take a look - aha - you did port it to 1.5 I see. |
16:21:03 | FromGitter | <ephja> is the presence of sfUsed the only information currently stored regarding the usage? |
16:21:03 | FromGitter | <gokr> It's at 1.6 now though. |
16:22:46 | FromGitter | <ephja> probably |
16:22:57 | FromGitter | <Araq> @ephja yes |
16:40:11 | FromGitter | <ephja> optimizing away compile time variables at least might not be too difficult |
16:42:56 | * | v17d quit (Ping timeout: 258 seconds) |
16:45:47 | FromGitter | <Araq> don't use sfUsed for optimization, the codegen uses its own optimizing pass, well actually |
16:46:05 | FromGitter | <Araq> it just emits stuff lazily, on demand |
16:48:54 | FromGitter | <ephja> ok |
17:02:05 | FromGitter | <ephja> I have no idea which line includes sfUsed for vars that are used |
17:03:09 | FromGitter | <Araq> sfUsed is not used by the backend |
17:05:32 | * | yglukhov quit (Remote host closed the connection) |
17:07:22 | * | shashlick joined #nim |
17:08:44 | FromGitter | <ephja> no but I wanted to find the location anyway and none of the contexts where sfUsed appears that I haven't already debug printed in seem relevant |
17:13:53 | * | yglukhov joined #nim |
17:18:01 | * | yglukhov quit (Ping timeout: 246 seconds) |
17:20:07 | FromGitter | <ephja> "var x = y" 路 |
17:25:52 | FromGitter | <ephja> wait |
17:30:47 | FromGitter | <ephja> it did not occur to me to look in suggest.nim |
17:51:39 | * | AckZ left #nim (#nim) |
18:03:35 | * | yglukhov joined #nim |
18:04:02 | * | Tano_ joined #nim |
18:06:45 | * | yglukhov quit (Read error: Connection reset by peer) |
18:07:20 | * | yglukhov joined #nim |
18:10:30 | * | Matthias247 joined #nim |
18:13:50 | * | Matthias247 quit (Read error: Connection reset by peer) |
18:15:07 | * | Matthias247 joined #nim |
18:20:30 | * | yglukhov quit (Remote host closed the connection) |
18:21:05 | * | yglukhov joined #nim |
18:25:16 | * | yglukhov quit (Ping timeout: 240 seconds) |
18:38:15 | FromGitter | <aboisvert> I would like to provide a custom deep copy proc |
18:38:26 | FromGitter | <aboisvert> the manual states that I should implement: proc `=deepCopy`(x: T): T |
18:38:45 | * | Tano_ left #nim ("WeeChat 1.9") |
18:38:49 | FromGitter | <aboisvert> but I get failures because my type is parametrized |
18:39:12 | * | salewski joined #nim |
18:39:20 | FromGitter | <aboisvert> I'd like to provide: proc `=deepCopyT (x: MyType[T]): MyType[T]` |
18:40:06 | FromGitter | <aboisvert> but compiler complains: `Error: signature for 'deepCopy' must be procT: ptr|ref (x: T): T` |
18:40:24 | FromGitter | <aboisvert> Any thoughts? |
18:45:41 | salewski | Is your MyType a ptr or ref as desired by the compiler? |
18:49:25 | salewski | I have just uploaded the latest generator script and a first example: |
18:49:28 | salewski | https://github.com/StefanSalewski/nim-gi |
18:50:19 | salewski | But I assume that for most of you it will not work yet, and I have still no idea how I can do nimble install for that. |
18:50:24 | salewski | Bye. |
18:51:41 | * | salewski quit (Quit: WeeChat 1.4) |
18:55:04 | * | arnetheduck joined #nim |
19:02:25 | * | shashlick quit (Ping timeout: 248 seconds) |
19:24:32 | * | Arrrr quit (Quit: Leaving.) |
19:32:58 | * | Nobabs27 joined #nim |
19:36:17 | * | ipjk joined #nim |
19:55:37 | * | Trustable quit (Remote host closed the connection) |
20:02:36 | * | Vladar quit (Remote host closed the connection) |
20:05:32 | * | yglukhov joined #nim |
20:08:25 | * | couven92 joined #nim |
20:22:27 | * | chemist69_ quit (Ping timeout: 255 seconds) |
20:26:00 | FromGitter | <Varriount> @aboisvert This seems like a compiler limitation... Perhaps have the deepcopy proc delegate? |
20:40:36 | * | chemist69 joined #nim |
20:43:02 | * | couven92 quit (Ping timeout: 255 seconds) |
20:45:16 | * | shashlick joined #nim |
20:52:16 | * | arnetheduck quit (Ping timeout: 268 seconds) |
20:55:12 | * | bjz joined #nim |
21:04:20 | * | notbarton joined #nim |
21:04:44 | * | notbarton quit (Remote host closed the connection) |
21:05:40 | FromGitter | <aboisvert> Yes MyType[To] is a ref |
21:06:06 | FromGitter | <aboisvert> Sorry MyType[T] |
21:07:08 | FromGitter | <aboisvert> @Varriount not sure what you mean by delegate in this case |
21:08:48 | FromGitter | <Varriount> Hm. Well, there's ways to get stains the compiler limitation |
21:08:55 | FromGitter | <Varriount> *get around |
21:24:40 | * | nsf quit (Quit: WeeChat 1.7.1) |
21:34:41 | FromGitter | <panelhazakat_twitter> Noob here, is there an easy way to get the number of possible values of an enum? |
21:46:47 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
21:51:47 | * | Matthias247 quit (Read error: Connection reset by peer) |
21:58:16 | * | Jesin quit (Quit: Leaving) |
22:13:16 | * | couven92 joined #nim |
22:14:16 | * | jsgrant joined #nim |
22:14:36 | * | shashlick quit (Ping timeout: 260 seconds) |
22:18:46 | FromGitter | <indy9000_twitter> In the following how to prevent `Error: cannot prove: i <= len(result) + -1 (bounds check)` ⏎ ⏎ ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=595c1446ad9c781843cf755e] |
22:22:01 | FromGitter | <indy9000_twitter> I could `var r=newSeqfloat (len(src))` and assign the result of big_computation and then copy the values to `result` but that doesn't look elegant and 'unnecessarily' create an array. |
22:23:32 | FromGitter | <ephja> `assert i <= result.high`? |
22:25:49 | FromGitter | <ephja> or maybe a check before the loop that compares the lengths, but I've never used these features |
22:31:41 | * | bjz joined #nim |
22:32:30 | FromGitter | <ephja> @indy9000_twitter "if i <= result.high: ..." seems to work, but not assert |
22:34:49 | FromGitter | <indy9000_twitter> before the loop or inside? |
22:36:25 | FromGitter | <indy9000_twitter> Thanks but, there has to be an elegant solution... |
22:38:34 | FromGitter | <ephja> well it is experimental |
22:40:34 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
22:48:28 | * | chemist69 quit (Ping timeout: 240 seconds) |
22:48:51 | * | chemist69 joined #nim |
23:00:05 | * | jsgrant quit (Ping timeout: 246 seconds) |
23:11:06 | * | bjz joined #nim |
23:19:31 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
23:26:53 | * | yglukhov quit (Remote host closed the connection) |
23:53:13 | FromGitter | <zacharycarter> @panelhazakat_twitter without iterating over them? |