00:11:09 | * | Jjp137 joined #nim |
00:17:43 | FromDiscord | <SeanOMik> This output can't be right, right? |
00:17:43 | FromDiscord | <SeanOMik> https://play.nim-lang.org/#ix=2u6i |
00:18:01 | FromDiscord | <SeanOMik> String is 8 bytes but uint64 is also 8 bytes? |
00:18:08 | disruptek | sure. |
00:18:14 | disruptek | strings are pointers. |
00:18:27 | FromDiscord | <SeanOMik> Oh yeah |
00:18:43 | FromDiscord | <SeanOMik> So the size changes as characters are added right? |
00:18:48 | Yardanico | sizeof - no |
00:18:51 | Yardanico | sizeof is compile-time |
00:18:54 | disruptek | how could it? |
00:18:54 | Yardanico | strings are heap allocated |
00:18:57 | disruptek | it's a pointer. |
00:19:03 | Yardanico | it's length, capacity, and data |
00:19:16 | FromDiscord | <SeanOMik> What I mean, is the amount of memory is "uses" increases |
00:19:21 | Yardanico | of course? |
00:19:24 | FromDiscord | <SeanOMik> What the `string` points to would increase in size |
00:19:32 | Yardanico | nim doesn't have a built-in black hole generator yet |
00:19:41 | FromDiscord | <SeanOMik> Yeah I was clarifying for disruptek |
00:19:43 | Yardanico | https://github.com/nim-lang/Nim/blob/devel/lib/system/strs_v2.nim#L12 that's how strings are defined in new runtime |
00:19:49 | Yardanico | (with arc, orc, etc) |
00:20:09 | Yardanico | object with length and pointer to "payload" which is capacity and the data itself |
00:20:19 | FromDiscord | <SeanOMik> Okay |
00:20:30 | FromDiscord | <SeanOMik> Thanks |
00:20:32 | Yardanico | it's a bit different in old runtime |
00:20:45 | Yardanico | also btw, strings and seqs have the exact same memory layout |
00:21:07 | Yardanico | but that's an implementation detail :D |
00:28:52 | * | D_ quit (Ping timeout: 260 seconds) |
00:30:49 | disruptek | tell me what kinda baby you want and i'll give you pricing. bulk pricing for 3 or more. |
00:32:04 | * | D_ joined #nim |
00:52:40 | * | Pisuke joined #nim |
00:54:02 | * | MyMind quit (Ping timeout: 256 seconds) |
01:03:17 | * | D_ quit (Ping timeout: 260 seconds) |
01:05:59 | * | D_ joined #nim |
01:08:37 | FromDiscord | <drsensor👹> sent a code paste, see https://play.nim-lang.org/#ix=2u6p |
01:12:28 | FromDiscord | <Elegant Beef> use the push/pop pragma |
01:12:50 | FromDiscord | <Elegant Beef> https://nim-lang.org/docs/manual.html#pragmas-push-and-pop-pragmas |
01:13:10 | FromDiscord | <Elegant Beef> Actually on second thought that probably wont work here idk |
01:13:35 | FromDiscord | <Elegant Beef> *It probably will, but im daft so i second guess myself in a manner to make myself appear humble* |
01:17:11 | Yardanico | @drsensor you can always create templates |
01:17:14 | Yardanico | if you borrow the same things |
01:17:18 | Yardanico | for different types |
01:35:01 | * | audiofile quit (Quit: Default Quit Message) |
01:56:07 | * | apahl quit (Ping timeout: 260 seconds) |
01:58:02 | * | apahl joined #nim |
02:03:11 | * | waleee-cl quit (Quit: Connection closed for inactivity) |
02:13:50 | FromDiscord | <Varriount> Helooo |
02:14:11 | FromDiscord | <Varriount> Yardanico: Is 4raq back yet? |
02:14:18 | Yardanico | why do you ask me? |
02:14:21 | Yardanico | and I don't think he's back yet :) |
02:14:26 | Yardanico | you'll clearly see when he will back |
02:14:32 | Yardanico | by increased github activity |
02:18:14 | FromDiscord | <Varriount> Yardanico: How goes CPS? |
02:18:33 | disruptek | it's coming along. |
02:18:35 | Yardanico | i don't know, ask Zevv and disruptek :) they're doing some `typed` changes afaik |
02:19:31 | disruptek | switching to a typed macro will make it easier to use more of the language in cps procs. |
02:37:39 | * | muffindrake quit (Ping timeout: 246 seconds) |
02:40:08 | * | muffindrake joined #nim |
02:53:50 | * | apahl quit (*.net *.split) |
02:53:51 | * | Jjp137 quit (*.net *.split) |
02:53:51 | * | fredrikhr quit (*.net *.split) |
02:53:51 | * | ForumUpdaterBot quit (*.net *.split) |
02:53:51 | * | Cthalupa quit (*.net *.split) |
02:53:52 | * | hyiltiz quit (*.net *.split) |
02:53:52 | * | antranigv quit (*.net *.split) |
02:53:52 | * | GaveUp quit (*.net *.split) |
02:53:52 | * | disbot quit (*.net *.split) |
02:53:52 | * | federico3 quit (*.net *.split) |
02:53:52 | * | shashlick quit (*.net *.split) |
02:55:24 | * | vicfred quit (Quit: Leaving) |
02:59:47 | * | apahl joined #nim |
02:59:47 | * | Jjp137 joined #nim |
02:59:47 | * | fredrikhr joined #nim |
02:59:47 | * | ForumUpdaterBot joined #nim |
02:59:47 | * | Cthalupa joined #nim |
02:59:47 | * | hyiltiz joined #nim |
02:59:47 | * | antranigv joined #nim |
02:59:47 | * | GaveUp joined #nim |
02:59:47 | * | disbot joined #nim |
02:59:47 | * | federico3 joined #nim |
02:59:47 | * | shashlick joined #nim |
03:01:56 | * | endragor joined #nim |
03:03:13 | * | casaca quit (Ping timeout: 264 seconds) |
03:16:31 | disruptek | it smells like someone needs a walk. |
03:25:22 | Zevv | ok ok I'm going |
03:48:06 | * | dulsi quit (Ping timeout: 260 seconds) |
03:55:41 | Zevv | and to be clearn, I'm doing just about nothing, I just listen to disruptek rambling and say "uhu uhu" at the appropriate moments |
03:56:17 | Zevv | and asking tons of stupid questions because I don't understand most of all this |
03:56:35 | Zevv | like how disruptek is going to tell a cps call and inject the continuation |
03:56:41 | Zevv | you hear me, disruptek? |
04:06:02 | * | supakeen quit (Quit: WeeChat 2.8) |
04:10:26 | * | supakeen_ joined #nim |
04:10:26 | * | snowolf quit (Remote host closed the connection) |
04:10:26 | * | snowolf joined #nim |
04:10:26 | * | snowolf quit (Changing host) |
04:10:26 | * | snowolf joined #nim |
04:13:23 | * | vicfred joined #nim |
04:52:12 | * | casaca joined #nim |
04:56:30 | FromDiscord | <Elegant Beef> Where is the documentation of what `do` does 😄 |
04:58:41 | Yardanico | https://nim-lang.org/docs/manual_experimental.html#do-notation |
05:04:52 | * | rockcavera quit (Remote host closed the connection) |
05:05:43 | FromDiscord | <Elegant Beef> Ok im super confused by do, i can see in this case it seems to give the `pollEvents` function, but uncertain how exactly to use it↵https://github.com/liquid600pgm/aglet/blob/master/tests/tcloud.nim#L293 |
05:06:02 | Yardanico | use what? |
05:06:28 | FromDiscord | <Elegant Beef> do |
05:06:33 | Yardanico | well read what I linked? |
05:06:49 | Yardanico | do is just when you need to pass a proc to something |
05:06:53 | Yardanico | or a code block |
05:06:56 | Yardanico | if you do pure "do:" |
05:27:11 | FromDiscord | <Rika> The do notation |
05:27:21 | FromDiscord | <Rika> Oops, was underscrolled |
05:27:27 | FromDiscord | <Rika> Didn't see the extra messages |
05:47:31 | * | Pisuke quit (Read error: Connection reset by peer) |
05:47:50 | * | suchasurge quit (Quit: Ping timeout (120 seconds)) |
05:48:09 | * | suchasurge joined #nim |
05:48:41 | * | Pisuke joined #nim |
05:49:21 | * | lbart quit (Read error: Connection reset by peer) |
05:49:23 | * | CcxWrk quit (Remote host closed the connection) |
05:49:35 | * | lbart joined #nim |
05:49:35 | * | lbart quit (Changing host) |
05:49:36 | * | lbart joined #nim |
05:49:37 | * | CcxWrk joined #nim |
05:50:31 | * | jken quit (Quit: ZNC - https://znc.in) |
05:50:40 | * | jken joined #nim |
05:50:45 | * | Vladar joined #nim |
05:51:05 | * | supakeen_ quit (Ping timeout: 240 seconds) |
05:51:53 | * | supakeen_ joined #nim |
06:05:43 | * | solitudesf joined #nim |
06:35:42 | * | PMunch joined #nim |
07:09:36 | * | s4mu3lbk joined #nim |
07:09:47 | * | s4mu3lbk quit (Remote host closed the connection) |
07:10:56 | * | krux02 joined #nim |
07:26:47 | * | JustASlacker joined #nim |
08:28:31 | FromDiscord | <Varriount> Bah. Darn pragma design. I really wish pragmas could be placed before the thing they modify, rather than somewhere inside |
08:29:12 | FromDiscord | <Rika> i mean technically they can |
08:29:33 | FromDiscord | <Varriount> Right now the syntax just doesn't lend itself to common usage |
08:30:10 | FromDiscord | <Varriount> Rika: not in such a way that they can modify the next statement/expression |
08:31:32 | FromDiscord | <Varriount> I honestly don't understand why Araq is against it so much |
08:31:34 | FromDiscord | <Rika> well i said technically 😛 |
08:31:43 | FromDiscord | <Clyybber> Varriount: WDYM? |
08:31:51 | FromDiscord | <Clyybber> We have pragma blocks |
08:31:52 | FromDiscord | <Rika> you can always ask when he's back |
08:32:07 | FromDiscord | <Varriount> @Clyybber Like Python decorators |
08:32:23 | FromDiscord | <Clyybber> Ah, hmm. I prefer the current syntax |
08:32:31 | FromDiscord | <Clyybber> I think its a matter of acquired taste |
08:33:37 | FromDiscord | <Varriount> Would you prefer it if I designed a CLI library like this? |
08:33:43 | FromDiscord | <Varriount> https://click.palletsprojects.com/en/7.x/ |
08:34:39 | FromDiscord | <Varriount> What if I want to provide a specification for how an object's fields are serialized? |
08:35:40 | FromDiscord | <Varriount> The current syntax works if you use 1 or 2 pragmas, or use a single large user defined pragma |
08:36:05 | FromDiscord | <Varriount> But it breaks down for use cases like that, which is a shame |
08:49:06 | * | Trustable joined #nim |
09:02:00 | FromDiscord | <Clyybber> I don't see the problem using pragma syntax here, the only difference is that the pragma comes after the header |
09:03:39 | * | dddddd_ is now known as dddddd |
09:11:04 | * | waleee-cl joined #nim |
09:15:50 | * | hnOsmium0001 quit (Quit: Connection closed for inactivity) |
09:21:37 | * | NimBot joined #nim |
09:33:36 | * | sschwarzer joined #nim |
09:34:53 | * | xace quit (Ping timeout: 260 seconds) |
09:41:21 | * | xace joined #nim |
09:45:55 | * | liblq-dev joined #nim |
09:46:22 | * | xace quit (Ping timeout: 256 seconds) |
10:05:23 | * | superbia joined #nim |
10:19:57 | * | PMunch quit (Quit: leaving) |
10:25:27 | * | Vladar quit (Remote host closed the connection) |
10:42:08 | * | xace joined #nim |
11:10:56 | * | arecacea1 quit (Remote host closed the connection) |
11:11:29 | * | arecacea1 joined #nim |
11:17:35 | * | awe00 joined #nim |
11:18:24 | * | sschwarzer quit (Quit: leaving) |
11:26:01 | * | letto quit (Quit: Konversation terminated!) |
11:28:03 | * | letto joined #nim |
11:40:20 | FromDiscord | <abisxir> Do we have also type forward declaration like what we have for proc? |
11:40:49 | * | Vladar joined #nim |
11:41:17 | FromDiscord | <lqdev> nope |
11:41:29 | FromDiscord | <lqdev> you have to declare mutually dependent types in one type section |
11:43:04 | FromDiscord | <abisxir> Hummm, then the implementation is going to get complicated :/ |
11:49:05 | * | JustASlacker quit (Ping timeout: 240 seconds) |
12:02:10 | * | abm joined #nim |
12:02:44 | * | JustASlacker joined #nim |
12:06:02 | * | supakeen_ quit (Quit: WeeChat 2.8) |
12:06:43 | * | supakeen joined #nim |
12:16:24 | FromDiscord | <Kiloneie> sent a long message, see http://ix.io/2u8E |
12:16:36 | FromDiscord | <Rika> what? |
12:18:00 | FromDiscord | <Kiloneie> Scrap that, is there any way to iterate without a repr proc ? |
12:18:11 | FromDiscord | <Kiloneie> on ref objects in a sequence |
12:21:00 | FromDiscord | <Rika> wdym? just iterate over it normally? |
12:21:50 | * | rockcavera joined #nim |
12:21:52 | FromDiscord | <Kiloneie> How ? Everything i tried makes an illegal storage access |
12:22:18 | FromDiscord | <Zachary Carter> you need to initialize the members of your sequence if they're ref objects |
12:22:31 | FromDiscord | <Zachary Carter> remember ref objects are allocated on the heap, not the stack |
12:22:50 | FromDiscord | <Kiloneie> init as in make them ? like with new proc ? |
12:22:57 | FromDiscord | <Kiloneie> man let me just copy pasta some code |
12:23:00 | FromDiscord | <Zachary Carter> yes |
12:23:14 | FromDiscord | <Kiloneie> without my comment army for the video xD |
12:28:26 | FromDiscord | <Kiloneie> https://play.nim-lang.org/#ix=2u8J |
12:29:04 | FromDiscord | <Kiloneie> There is something fishy going on... if i remove every part of Person code, it goes whackado oO |
12:30:00 | FromDiscord | <Kiloneie> i might have removed too much |
12:30:17 | FromDiscord | <Kiloneie> https://play.nim-lang.org/#ix=2u8K |
12:30:30 | FromDiscord | <Kiloneie> i tried the last commented out part, and well no idea |
12:34:47 | FromDiscord | <Rika> you're not returning o |
12:34:49 | FromDiscord | <haxscramper> If I generate untyped nim node (expression) using macro, is there any way to check its type immediately or I have to generate `let res = <expr>; static: assert res is <target-type>; res` instead of original expression? |
12:35:24 | FromDiscord | <Zachary Carter> I don't understand what' so difficult here... |
12:35:24 | FromDiscord | <Zachary Carter> https://play.nim-lang.org/#ix=2u8M |
12:35:29 | FromDiscord | <Rika> @Kiloneie you're not returning o in the newPerson proc |
12:35:40 | FromDiscord | <Zachary Carter> use implicit result |
12:36:10 | FromDiscord | <Zachary Carter> some of your comments are misleading too - of course the stack allocated memory will be freed, it will be when the frame is popped off of the stack |
12:36:14 | FromDiscord | <Kiloneie> my bad on the implicit result xD... |
12:36:18 | FromDiscord | <gokr> Am I correct that in "current Nim" I can't pass nil to a string argument - nor return nil I guess? And the "new way" is to use Option if not "" is enough? |
12:36:32 | FromDiscord | <Zachary Carter> yes strings can no longer be nil |
12:36:49 | FromDiscord | <Zachary Carter> and yes you should use the option type if you want to represent the lack of a vlaue |
12:36:52 | FromDiscord | <Zachary Carter> (edit) 'vlaue' => 'value' |
12:36:54 | FromDiscord | <Kiloneie> oh... you can use repr anywhere ,oh xD |
12:37:15 | FromDiscord | <gokr> And are people... now designing APIs using Option instead? or other patterns? |
12:37:37 | FromDiscord | <Zachary Carter> sure - I mean Nim didn't invent the idea of an option type |
12:37:45 | FromDiscord | <Zachary Carter> I use it in m yproject |
12:37:48 | FromDiscord | <Zachary Carter> (edit) 'm yproject' => 'my project' |
12:37:55 | FromDiscord | <gokr> Just curious what the "Nim way" is. |
12:38:01 | FromDiscord | <Zachary Carter> yeah - use Option |
12:38:11 | FromDiscord | <Zachary Carter> of course if you're using pointers and ref objects you can still use nil |
12:38:23 | FromDiscord | <Zachary Carter> but some ref objects like strings and seqs have different semantics now |
12:38:27 | FromDiscord | <Zachary Carter> and can't be assigned nil values |
12:38:33 | FromDiscord | <gokr> Right, strings and seqs. |
12:38:42 | FromDiscord | <Zachary Carter> tables too maybe? |
12:38:51 | FromDiscord | <Zachary Carter> maybe all collections in the stdlib? I'm not sure |
12:39:27 | FromDiscord | <gokr> Is there some writeup about this change somewhere? blog article? |
12:39:39 | FromDiscord | <Zachary Carter> mm I think it's been around since Nim 1.0 actually |
12:40:00 | FromDiscord | <Zachary Carter> I can try to find something but I don't remember specifically if there was an official article about it |
12:40:04 | FromDiscord | <vieru> hi idk how to use macros can someone tell me if something that i want to do is possible using them ? |
12:40:05 | FromDiscord | <Zachary Carter> I think 4raq may have written about it on his blog |
12:40:14 | * | awe00 quit (Quit: WeeChat 2.9) |
12:40:16 | FromDiscord | <gokr> Yeah, I ... have sortof punted using nilseqs:on but... I realized I may have to "get with the program" |
12:40:28 | FromDiscord | <Zachary Carter> vieru: macros allow you to modify the AST of your program at compile time |
12:40:47 | FromDiscord | <Zachary Carter> https://nim-lang.org/araq/ownedrefs.html |
12:40:55 | FromDiscord | <Zachary Carter> @gokr ^ mentions it |
12:41:44 | FromDiscord | <vieru> @Zachary Carter thanks |
12:42:57 | FromDiscord | <Zachary Carter> also here @gokr https://nim-lang.org/araq/destructors.html |
12:43:07 | FromDiscord | <Zachary Carter> sent a code paste, see https://play.nim-lang.org/#ix=2u8Q |
12:43:16 | FromDiscord | <Zachary Carter> so actually I think Nim's containers are now value types and not ref types |
12:43:32 | FromDiscord | <vieru> sent a code paste, see https://play.nim-lang.org/#ix=2u8R |
12:43:53 | FromDiscord | <vieru> basically i just want to do something like this |
12:44:03 | FromDiscord | <Zachary Carter> @gokr - https://play.nim-lang.org/#ix=2u8S |
12:44:14 | FromDiscord | <vieru> ```nim↵let file = someMacro("file.html")↵``` |
12:44:17 | FromDiscord | <Zachary Carter> you don't need a macro for that |
12:44:23 | FromDiscord | <vieru> oh |
12:44:35 | FromDiscord | <vieru> so what should i use |
12:44:38 | FromDiscord | <gokr> @Zachary Carter Yeah, I realize that's the "end goal" for string/seq - to make them "value types", or at least "more value typish". |
12:44:41 | FromDiscord | <Zachary Carter> you can use a template or a compile time proc |
12:45:03 | FromDiscord | <vieru> aah so templates do this sort of stuf ? |
12:45:06 | FromDiscord | <vieru> (edit) 'stuf' => 'stuff' |
12:45:24 | FromDiscord | <Zachary Carter> templates are akin to C's preprocessor macros but more powerful |
12:45:26 | FromDiscord | <alehander42> nil really shouldn't be a valid string value |
12:45:31 | FromDiscord | <alehander42> so it's a good change |
12:45:33 | FromDiscord | <Rika> yeah if the logic is simple you only need templates |
12:45:49 | FromDiscord | <alehander42> usually either the domain logic means that "" can be used instead |
12:46:07 | FromDiscord | <alehander42> or one needs a (bool, string) or Option[string] |
12:46:15 | FromDiscord | <vieru> @Zachary Carter thanks again, ill try it rn |
12:46:26 | FromDiscord | <gokr> @alehander42 Coming from Smalltalk where everything is an object, including strings and numbers - nil is a reasonable value 😉 |
12:46:27 | FromGitter | <jorjun_twitter> not obvious how to put the equivalent of a compiler switch -d SYMBOL:val into a nim.cfg (where it belongs) |
12:46:48 | FromDiscord | <Zachary Carter> https://play.nim-lang.org/#ix=2u8T |
12:46:59 | FromDiscord | <alehander42> gokr smalltalk had good ideas, but everything being nilable .. is not great. |
12:47:10 | FromDiscord | <Zachary Carter> jorjun_twitter: `--define:SYMBOL=val` |
12:47:12 | FromDiscord | <alehander42> especially in a typesafe language |
12:47:51 | FromDiscord | <alehander42> the problem is that `nil` for different types becomes the same imho |
12:48:04 | FromDiscord | <alehander42> so even if you have flow typing i am not sure things are clear enough |
12:48:30 | FromGitter | <jorjun_twitter> Thankz Zachary… but still getting Error: undeclared identifier: ‘ARM_ARCH’ and I put it in nim.cfg exactly as you said: --define:ARM_ARCH=6 |
12:48:32 | FromDiscord | <gokr> @alehander42 Languages are different - I agree that in a language like Nim, eliminating nil is reasonable. However, "nil really shouldn't be a valid string value" - you can replace "string" with "Customer" or "Invoice" or "Sprite", I don't see how strings are that special. |
12:48:55 | FromDiscord | <alehander42> yeah, don't get me wrong: I did use a lot of nilable refs instead of options |
12:49:05 | FromDiscord | <alehander42> when i was writing nim in my last job |
12:49:10 | FromDiscord | <Zachary Carter> jorjun_twitter: how are you accessing it? |
12:49:11 | FromDiscord | <alehander42> i see the appeal |
12:49:26 | FromGitter | <jorjun_twitter> when ARM_ARCH >= 7: ⏎ blah |
12:49:35 | FromDiscord | <Zachary Carter> hmm |
12:49:44 | FromDiscord | <alehander42> but actually i do agree that using nil as "existance" test wasn't cool |
12:49:47 | FromDiscord | <gokr> I worry that... eliminating nil completely can make Nim much less "comfy" to code in. |
12:49:51 | FromDiscord | <alehander42> and maybe i should have had more opts |
12:50:04 | FromDiscord | <alehander42> yeah, theoretically it should be very easy to use options |
12:50:06 | FromDiscord | <Zachary Carter> let me play around with this one sec |
12:50:14 | * | awe00 joined #nim |
12:50:17 | FromDiscord | <alehander42> one possible idea was to auto-fix the type in branches |
12:50:24 | FromDiscord | <Rika> perhaps options module should be assimilated into the system module? |
12:50:34 | FromDiscord | <alehander42> something like `if a.isSome: # here a is the actual type` |
12:50:48 | FromDiscord | <alehander42> or even `if a: # just use a normally` |
12:51:02 | FromGitter | <jorjun_twitter> (will try command line equiv..) |
12:51:06 | FromDiscord | <alehander42> but i guess this has some valid opposition |
12:52:21 | FromDiscord | <alehander42> i think there was something like `match maybeA expr a: # use a ` |
12:52:46 | FromDiscord | <alehander42> but overally it shouldn't be a problem to get a nice way to use options in nim |
12:53:41 | FromDiscord | <alehander42> and maybe just mixing the ref+nil to opts in a hypothetical language |
12:53:44 | FromDiscord | <alehander42> can just work as well |
12:53:51 | FromDiscord | <Zachary Carter> jorjun_twitter - `nim c -d:ARM_ARCH:6 -r test.nim ` doesn't work for me |
12:54:03 | FromDiscord | <Zachary Carter> ohhhh |
12:54:50 | FromDiscord | <Zachary Carter> nevermind that doesn't work either 😛 |
12:59:38 | FromDiscord | <vieru> sent a code paste, see https://play.nim-lang.org/#ix=2u8Y |
12:59:58 | * | liblq-dev quit (Quit: WeeChat 2.9) |
13:00:43 | FromDiscord | <Zachary Carter> templates are not procs they're for code substitution |
13:00:57 | FromDiscord | <Zachary Carter> that's why in my example I used a compile time proc |
13:01:34 | FromGitter | <jorjun_twitter> @Zachary trying on mac… given no joy with --define on the raspberry pi .. |
13:01:38 | FromDiscord | <vieru> oo sry i didn't see that |
13:01:46 | FromDiscord | <Zachary Carter> no worries @vieru |
13:01:59 | FromDiscord | <Zachary Carter> jorjun_twitter: I swear I recently saw someone use defines with values but I'm struggling to find the repo where I saw it |
13:02:34 | FromDiscord | <vieru> sent a code paste, see https://play.nim-lang.org/#ix=2u91 |
13:02:45 | FromDiscord | <Rika> executes the block at compile time |
13:03:11 | FromDiscord | <vieru> thanks |
13:06:01 | * | Vladar quit (Quit: Leaving) |
13:14:25 | * | audiofile joined #nim |
13:14:59 | FromGitter | <jorjun_twitter> @zacharycarter Got it: const ARM_ARCH {.intdefine.}: int = 6 |
13:15:34 | FromGitter | <jorjun_twitter> these get overriden by —define apparently.. but need to go in the source.. thanks for looking into it anyway |
13:21:50 | * | leorize quit (Remote host closed the connection) |
13:22:15 | * | leorize joined #nim |
13:27:35 | * | ehmry_ is now known as ehmry |
13:36:38 | * | ryanhowe quit (Quit: ZNC 1.8.1 - https://znc.in) |
13:37:48 | * | sacredfrog joined #nim |
13:57:06 | * | moerm joined #nim |
13:57:14 | moerm | Hello everyone ;) |
13:57:25 | * | JustASlacker quit (Ping timeout: 240 seconds) |
13:57:27 | FromDiscord | <Rika> hello |
14:05:33 | FromDiscord | <Kiloneie> Values created on the stack are scope based right ? Get freed once the scope finishes, therefore variables made normally(globally ???) will be freed once the program finishes, right ? |
14:06:19 | FromDiscord | <Kiloneie> While on the heap, is when all references to that memory are lost/gone, then GC frees them, right ? |
14:06:40 | FromDiscord | <lqdev> you're mostly right |
14:07:04 | FromDiscord | <lqdev> globals don't need to be freed as they live throughout the whole program so they won't be |
14:07:37 | FromDiscord | <lqdev> ofc it won't cause a memleak because the OS reclaims resources |
14:09:04 | FromDiscord | <Kiloneie> Okay, thanks. |
14:13:00 | * | JustASlacker joined #nim |
14:18:10 | FromDiscord | <Kiloneie> https://play.nim-lang.org/#ix=2u9l↵I don't really understand when to use normal/plain/non-reference objects... |
14:18:26 | FromDiscord | <Kiloneie> Also anything wrong in my comments ? |
14:19:40 | FromDiscord | <lqdev> > scales better↵i wouldn't say so |
14:20:13 | FromDiscord | <lqdev> also when doing inheritance you better make all your objects ref unless you know what you're doing |
14:20:19 | FromDiscord | <lqdev> it can cause weird bugs otherwise |
14:22:22 | FromDiscord | <lqdev> you should always use regular `object`s if you don't need reference semantics |
14:23:03 | FromDiscord | <lqdev> eg. when you want to share a resource between multiple objects, and not make copies of it |
14:23:49 | FromDiscord | <lqdev> it's actually better to use plain objects in lists as it's much faster because it reduces pointer derefs |
14:24:25 | FromDiscord | <lqdev> also `Banana = ref Fruit` doesn't make much sense |
14:24:31 | FromDiscord | <lqdev> more like `FruitRef = ref Fruit` |
14:24:58 | FromDiscord | <Kiloneie> I was just typing a whatever name xD |
14:26:38 | FromDiscord | <Kiloneie> Is it because objects in nim are not like objects are in other languages that normal objects perform just fine for say games of bullet hells? |
14:27:49 | FromDiscord | <Rika> objects in nim are structs in most other languages |
14:28:24 | moerm | Have a nice day everyone |
14:28:29 | * | moerm quit (Quit: Leaving) |
14:28:34 | FromDiscord | <lqdev> ref objects *will* perform just fine in most non-complex games |
14:28:56 | FromDiscord | <lqdev> but regular objects arranged in the right way will always perform better |
14:36:35 | FromDiscord | <Kiloneie> When are normal objects freed? |
14:39:25 | FromDiscord | <lqdev> after they go out of scop |
14:39:26 | FromDiscord | <lqdev> (edit) 'scop' => 'scope' |
14:41:38 | FromDiscord | <Kiloneie> My bad xD, didnt have time to correct |
14:45:54 | FromDiscord | <Kiloneie> Just out of curiosity, how are objects like in cpp, i only did basic stuff there at school, since nim objects are structs, tuples are a bit different structs. In cpp objects have lots of prebuilt methods for them right? If you know this... They are slower and more memory hungry than nim objects right? What do they do differently!? |
14:46:52 | FromDiscord | <lqdev> > In cpp objects have lots of prebuilt methods for them right?↵actually, no |
14:47:00 | FromDiscord | <lqdev> that may be true for java or c# but not c++ |
14:47:22 | FromDiscord | <lqdev> nim objects are like c structs |
14:47:33 | FromDiscord | <lqdev> but with inheritance |
14:50:46 | FromDiscord | <Kiloneie> Hmm okay, thanks |
15:33:19 | FromDiscord | <Kiloneie> So if say my hypothetical game had a "enemy" parent, that then had missiles(also other stuff), those missiles had children of different kinds of missiles. One should use reference objects instead of plain ones ? |
15:45:55 | disruptek | zachary: defines with values --define:name="value" or --define:name:"value" |
15:47:01 | * | rockcavera quit (Ping timeout: 264 seconds) |
15:48:07 | disruptek | Zevv: we tell cps calls by the .cpsCall. pragma. |
15:48:30 | disruptek | we inject that pragma inside .cps. or .cpsMagic. |
15:48:50 | disruptek | this was impl yesterday. |
15:52:04 | * | liblq-dev joined #nim |
15:55:14 | FromDiscord | <Kiloneie> 4 videos to explain objects... how many will it take for macros lol D:... |
16:04:03 | Zevv | oh and the caller can tell? that is pretty cool |
16:04:26 | Zevv | well, i got hit by circumstances a bit though |
16:05:06 | Zevv | things like hammock, beer, beach and sea are complicating factors in efficient software development |
16:05:25 | Zevv | good thing is that over the coming two weeks the weather will gradually get nor |
16:05:30 | Zevv | more normal |
16:05:52 | Zevv | which is cold and wet and windy and sunny, four seasons in one day |
16:09:23 | Zevv | do you know the brand "ticket to the moon"? |
16:09:30 | Zevv | I *so* recommend that |
16:09:41 | * | pbb quit (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.) |
16:10:15 | * | pbb joined #nim |
16:29:06 | * | solitudesf quit (Read error: Connection reset by peer) |
16:29:52 | * | solitudesf joined #nim |
16:31:36 | FromDiscord | <djazz> Trying to use nimqml and it fails to load a dynlib (wrong filename specified inside nimqml module). Is there a way to override dynlib lookups from my main code? |
16:33:14 | FromDiscord | <djazz> filcuc: DOtherside is now newer, so it tries to load wrong filename |
16:33:35 | FromDiscord | <djazz> (assuming 0.7.x is compatible with 0.6.x) |
16:38:37 | disruptek | Zevv: and you ask why so many of us hate you? |
16:41:26 | FromDiscord | <djazz> hmm, looks like nimqml doesnt have webview support, which is what I planned to use. Oh well |
16:41:55 | FromDiscord | <djazz> What's an other way to build a gui app with webview/html rendering support with Nim, that's cross-platform? |
16:48:22 | * | liblq-dev quit (Ping timeout: 260 seconds) |
16:50:18 | * | liblq-dev joined #nim |
16:50:45 | FromDiscord | <djazz> found the webview package, let's try that |
16:51:06 | FromDiscord | <djazz> (i planned to build the ui with html and css anyway) |
16:56:25 | FromDiscord | <djazz> hmm, packaging it up seems like a pain though, it depends on GTK3 on Linux |
16:56:34 | FromDiscord | <djazz> and WebKit2 |
16:57:26 | * | superbia1 joined #nim |
16:58:38 | * | Pisuke quit (Ping timeout: 260 seconds) |
16:59:03 | * | Sembei joined #nim |
17:00:01 | disruptek | ticket to the moon parachute hammocks. this looks like a perfect accessory for my rv. i have a hammock but it's the shitty kind for skinny people, so i never use it. |
17:00:13 | * | superbia quit (Ping timeout: 264 seconds) |
17:00:29 | FromDiscord | <Zachary Carter> I want an RV |
17:00:47 | disruptek | dude. they aren't expensive. |
17:01:01 | disruptek | i mean, when you have gainful employment. |
17:01:12 | * | hnOsmium0001 joined #nim |
17:01:30 | FromDiscord | <Zachary Carter> yeah I need to buy another house first |
17:01:38 | disruptek | just buy a house on wheel. |
17:01:42 | disruptek | wheels, too. |
17:02:23 | FromDiscord | <Zachary Carter> I don't think the fiance wants to raise kids in a mobile home |
17:02:28 | FromDiscord | <Zachary Carter> I'd be down for it but I think she has qualms about it |
17:02:34 | disruptek | https://www.youtube.com/watch?v=jCC8fPQOaxU |
17:02:48 | FromDiscord | <Zachary Carter> well not like a double wide |
17:02:55 | FromDiscord | <Zachary Carter> I meant like a tiny home or pimped out RV or something |
17:03:22 | * | natrys joined #nim |
17:03:24 | FromDiscord | <Zachary Carter> huh so I can't `move` a closure? |
17:03:30 | disruptek | i was planning on building a tiny house but it just doesn't make sense unless you literally just want a /tiny/ house. |
17:03:38 | FromDiscord | <mratsim> @Kiloneie , if plain object are not enough, use an object pool |
17:06:25 | FromDiscord | <Zachary Carter> https://play.nim-lang.org/#ix=2uab |
17:07:10 | FromDiscord | <Zachary Carter> why doesn't thinks work? |
17:07:17 | FromDiscord | <Zachary Carter> (edit) 'thinks' => 'this' |
17:07:57 | disruptek | stopping makes my pants tight. |
17:08:02 | disruptek | stropping, too. |
17:08:08 | disruptek | wtf man. |
17:08:34 | FromDiscord | <Zachary Carter> shouldn't it work? |
17:08:59 | FromDiscord | <Zachary Carter> you can do this with lambdas in C++ |
17:09:12 | disruptek | don't use var, for starters. |
17:09:26 | FromDiscord | <Zachary Carter> well I have to if I want to `move` right? |
17:09:41 | FromDiscord | <Zachary Carter> `move` only accepts `var` parameters right? |
17:10:17 | disruptek | you're talking about a pointer, here. |
17:10:25 | FromDiscord | <Zachary Carter> a function pointer yes |
17:10:29 | disruptek | there's no point to moving it. |
17:10:33 | disruptek | so to speak. |
17:11:00 | FromDiscord | <Zachary Carter> okay yeah that makes sense but then when I see a lambda being moved in C++ - what's actually happening? |
17:11:05 | disruptek | and there's no point to pretending it is or isn't mutable. |
17:11:14 | Zevv | disruptek: these hammocks are really amazin. Make sure not to buy the smallest though, you need to lie diagonally so you need about 2m width |
17:11:17 | disruptek | i don't know anything about c++. |
17:11:35 | FromDiscord | <Zachary Carter> I guess I can google |
17:11:48 | FromDiscord | <Zachary Carter> sent a code paste, see https://play.nim-lang.org/#ix=2uad |
17:11:50 | Zevv | i always thought hammocks were these shitty nets with two wooden ends which on purpose throw you out all the time |
17:11:50 | disruptek | Zevv: no problem, i've worn a 2m for years. |
17:12:14 | * | superbia1 is now known as superbia |
17:12:36 | disruptek | we always used to get the woven mayan hammocks, but they are heavy and don't suffer rain well. |
17:12:45 | FromDiscord | <Zachary Carter> I can recommend a hammock - one sec |
17:12:55 | Zevv | i have one of my ttms hanging outside 5m / year for the last 3 years |
17:13:00 | Zevv | its doing great |
17:13:09 | FromDiscord | <Zachary Carter> https://www.amazon.com/ENO-Outfitters-SingleNest-Hammock-Portable/dp/B003BIY7PM/ref=asc_df_B003BIY7PM/?tag=hyprod-20&linkCode=df0&hvadid=194838933099&hvpos=&hvnetw=g&hvrand=13092387309835488366&hvpone=&hvptwo=&hvqmt=&hvdev=c&hvdvcmdl=&hvlocint=&hvlocphy=9028306&hvtargid=pla-310268154150&psc=1 |
17:13:20 | FromDiscord | <Zachary Carter> and then you get some of these bad boys |
17:13:28 | FromDiscord | <Zachary Carter> https://www.amazon.com/dp/B088T176B3/ref=sspa_dk_detail_6?psc=1&pd_rd_i=B088T176B3&pd_rd_w=RDiMM&pf_rd_p=f0355a48-7e73-489a-9590-564e12837b93&pd_rd_wg=8Yfxx&pf_rd_r=PTCZG5879A55N6APG2JS&pd_rd_r=f701ff00-1148-441c-b47c-c99c35c3d6b3&spLa=ZW5jcnlwdGVkUXVhbGlmaWVyPUExMEhEWlZXOVZMNTdFJmVuY3J5cHRlZElkPUExMDAyOTYyM0hHODJRWENNODBCUiZlbmNyeXB0ZWRBZElkPUEwNTUxNTM3MUswM0RTSEVFUTlaMCZ3aWRnZXROYW1lPXNwX2RldGFpbF90aGVtYXRpYyZhY3Rpb249Y2xpY2tSZWR |
17:13:32 | Zevv | yeah thats similar stuff as TTM |
17:13:49 | disruptek | too pricey for me. |
17:13:56 | disruptek | maybe i can steal one locally. |
17:14:01 | disruptek | i mean, borrow. |
17:14:29 | FromDiscord | <Zachary Carter> I want to get something like this though - https://www.treestuff.com/tentsile-connect-tree-tent/ |
17:14:58 | Zevv | too pricey for me |
17:15:00 | Zevv | cool as hell tho |
17:15:10 | FromDiscord | <Zachary Carter> yeah - but one of the worst parts of camping is drying your shit out |
17:15:19 | FromDiscord | <Zachary Carter> with this you don't really have to worry about it |
17:15:49 | Zevv | for 449 id rather dry my tent ou |
17:15:49 | FromDiscord | <Zachary Carter> and you don't have to worry about rocks / slopes / all the other annoying crap you need to normally worry about when you pitch a tent |
17:16:04 | FromDiscord | <Zachary Carter> meh good tents are already 150+ |
17:16:29 | FromDiscord | <Zachary Carter> and I have a $120 cot from cabellas |
17:16:32 | disruptek | when i pitch a tent, the only thing i worry about is lube. |
17:16:34 | FromDiscord | <Zachary Carter> I should have just bought one of those things |
17:16:45 | FromDiscord | <Zachary Carter> you lube up your boners? |
17:16:52 | disruptek | hell yeah. |
17:16:53 | FromDiscord | <Zachary Carter> like when it's just you alone? |
17:16:55 | FromDiscord | <Zachary Carter> that's weird |
17:17:33 | disruptek | well, otherwise i tend to get blood on the kitchen counter. |
17:17:44 | FromDiscord | <Zachary Carter> yeah but that's the fun part |
17:18:04 | FromDiscord | <Zachary Carter> btw once covid is over, we're doing a Nim meet up in the states |
17:18:18 | FromDiscord | <Zachary Carter> we're going to go camping and abuse substances and not talk about Nim the entire weekend |
17:18:28 | disruptek | i may be down to austin in just a few months. |
17:18:36 | FromDiscord | <Zachary Carter> niceeee |
17:18:48 | FromDiscord | <Zachary Carter> you can live in my backyard if you want |
17:18:54 | FromDiscord | <Zachary Carter> oh btw we're hiring aggresively af |
17:18:58 | disruptek | shitter's full! |
17:18:58 | FromDiscord | <Zachary Carter> (edit) 'aggresively' => 'aggressively' |
17:19:16 | disruptek | are you hiring anti-social assholes? |
17:19:20 | FromDiscord | <Zachary Carter> sure |
17:19:25 | FromDiscord | <Zachary Carter> everyone is 100% remote atm anyway |
17:19:30 | disruptek | nice. it's shipwell or something, right? |
17:19:33 | FromDiscord | <Zachary Carter> and we're "remote forward" now |
17:19:35 | disruptek | shipnice? |
17:19:35 | FromDiscord | <Zachary Carter> yeah shipwell |
17:19:48 | disruptek | okay, lemme see what's up. |
17:20:00 | FromDiscord | <Zachary Carter> they love me - so just tell them I referred you |
17:20:07 | FromDiscord | <Zachary Carter> we can start the nimolution |
17:20:10 | disruptek | omg i cannot even read this web-site. it's off-screen somehow. |
17:20:23 | FromDiscord | <Zachary Carter> I think they're paying some company to redo it |
17:20:46 | disruptek | at 90% zoom the nav gets misplaced. |
17:20:50 | FromDiscord | <Zachary Carter> honestly - as boring as the product we build is |
17:20:55 | disruptek | gah, i hate the web. |
17:20:58 | FromDiscord | <Zachary Carter> it's such a resilient vertical to be in right now |
17:21:04 | disruptek | makes sense. |
17:21:23 | FromDiscord | <Zachary Carter> and not that I put ANY stock in this type of bs - but we've already been singled out as one of the 25 next unicorns by Forbes |
17:21:29 | Zevv | https://www.activevideo.com/our-careers#positions this is the gig i'm currently working in, also hiring a.f. |
17:21:45 | FromDiscord | <Zachary Carter> Zevv: I want to move back to Europe after I get maried |
17:21:49 | FromDiscord | <Zachary Carter> (edit) 'maried' => 'married' |
17:21:53 | FromDiscord | <Zachary Carter> so I might apply again |
17:22:01 | Zevv | nah you blew it dude |
17:22:07 | FromDiscord | <Zachary Carter> haha |
17:22:23 | Zevv | so, when is the party? |
17:22:26 | disruptek | you want to get married /after/ you move to europe. |
17:22:46 | disruptek | surely it's advantageous to your application to have a european spouse. |
17:22:49 | Zevv | you want to do about anything /after/ you want to move to europe |
17:22:57 | Zevv | I dont have one |
17:23:33 | disruptek | you don't have one? |
17:23:48 | Zevv | swiss |
17:23:59 | Zevv | always good to have a backup plan |
17:24:00 | disruptek | fair point. |
17:24:02 | disruptek | lol |
17:24:08 | Zevv | if .eu blows up, i know where to go |
17:24:11 | FromDiscord | <djazz> Hmm, this seems interesting. Doesn't seem to have a Nim module though https://lcui.org/ |
17:25:17 | FromDiscord | <Zachary Carter> well - I think if you're married it's easier to get your significant other overseas with you |
17:25:35 | FromDiscord | <Zachary Carter> if you're just partners and not by legal status - you both need to be sponsored |
17:25:44 | FromDiscord | <Zachary Carter> right to work and all of that is a whole nother deal |
17:26:08 | FromDiscord | <Zachary Carter> but the plan is to get married and then find a company to bring us over |
17:26:26 | FromDiscord | <Zachary Carter> and hopefully it's a gaming company that will bring us both over |
17:26:50 | FromDiscord | <djazz> Hmm, no macos support though... _keeps looking_ |
17:27:38 | disruptek | how come all the people on the shipwell web-site have fat faces? |
17:27:56 | disruptek | do you only hire fat heads? |
17:28:06 | FromDiscord | <Zachary Carter> no pics of me |
17:28:18 | FromDiscord | <Zachary Carter> I do NOT have a fat head |
17:28:37 | disruptek | hmm. i'm going to have to reserve judgement on that. |
17:29:06 | disruptek | !last clyybber |
17:29:07 | disbot | clyybber spoke in 12#nim 8 hours ago 12https://irclogs.nim-lang.org/14-08-2020.html#09:02:00 |
17:29:12 | disruptek | lazy. |
17:34:28 | * | liblq-dev quit (Ping timeout: 265 seconds) |
17:35:01 | * | endragor quit (Remote host closed the connection) |
17:35:13 | * | lritter joined #nim |
17:35:28 | * | endragor joined #nim |
17:35:56 | * | liblq-dev joined #nim |
17:36:32 | FromDiscord | <Varriount> @Zachary Carter Do you speak a second language? |
17:36:50 | FromDiscord | <Zachary Carter> Nope :/ |
17:36:56 | FromDiscord | <Zachary Carter> I wouldn't mind learning one though |
17:37:15 | FromDiscord | <Varriount> German isn't too hard, relatively speaking |
17:38:07 | FromDiscord | <Varriount> If I had to pick a country to live in where I would have to learn another language, it would be Germany |
17:38:07 | * | kungtotte quit (Read error: Connection reset by peer) |
17:39:01 | FromDiscord | <Zachary Carter> yeah - I had an offer from Wargaming Berlin but turned it down to stay in Finland |
17:39:12 | FromDiscord | <Zachary Carter> I think if I had moved to Berlin I would have learned German or at least tried to |
17:39:34 | FromDiscord | <Zachary Carter> Finland's language reqs for citizenship were pretty lax though - you could learn Swedish instead of Finnish, which is way easier |
17:41:12 | * | kungtotte joined #nim |
17:42:09 | FromDiscord | <Zachary Carter> it's so much easier to get a gaming gig in Europe vs the US for some reason |
17:42:12 | * | endragor quit (Ping timeout: 265 seconds) |
17:42:26 | FromDiscord | <Zachary Carter> maybe we'll just go back to Finland |
17:43:11 | * | liblq-dev quit (Ping timeout: 246 seconds) |
17:45:08 | * | liblq-dev joined #nim |
17:46:19 | * | Jesin joined #nim |
17:47:17 | disruptek | not with that attitude. |
17:51:13 | FromDiscord | <Clyybber> ay |
17:51:25 | disruptek | i'm hitting an assertion error in ccgexprs. |
17:51:39 | disruptek | binary arithmetic, if you can believe it. |
17:51:56 | FromDiscord | <Clyybber> shpw me |
17:52:06 | disruptek | it's in the typed branch on cps. |
17:52:53 | FromDiscord | <Clyybber> ok i'll look at it once i'm home |
17:53:44 | disruptek | i developed the bug by taking typed input and changing all of a symbol, eg. `i`, into, eg. `continuation.i`. |
17:54:21 | disruptek | unhandled exception: ccgexprs.nim(576, 9) `e[1].typ != nil` [AssertionDefect] -- it's probably `==`() |
18:09:10 | FromDiscord | <haxscramper> What does `expression cannot be called` compilation error means in general? It was mentioned like two times in this channel and searching it verbatim on google gives 13 results, most of which are error output copy-pasted somewhere. And there is a message from 2016 about "The error message "expression '.' cannot be called" really should be improved" |
18:09:51 | FromDiscord | <haxscramper> Most of the time it occurs in generic code, but I fail to understand what *exactly* can lead to this error |
18:09:54 | Zevv | so, shall I hook up my laptop on the wifi |
18:10:00 | Zevv | or shall I linger in my hammock |
18:10:09 | disruptek | are you nuts? |
18:10:19 | * | vicfred quit (Quit: Leaving) |
18:10:46 | * | arecacea1 quit (Read error: Connection reset by peer) |
18:11:11 | * | arecacea1 joined #nim |
18:11:15 | FromDiscord | <haxscramper> Maybe someone can enlighten me on this one? |
18:11:19 | FromDiscord | <Kiloneie> @mratsim object pool? Wdym? |
18:11:36 | FromDiscord | <Recruit_main707> @haxscramper running nim check outputs any other errors? |
18:12:46 | FromDiscord | <haxscramper> There is a type mismatch error in call |
18:13:09 | FromDiscord | <haxscramper> Didn't know about `nim check` |
18:13:55 | FromDiscord | <Recruit_main707> can you show me the code? |
18:14:16 | FromDiscord | <Recruit_main707> (the call and the function definition) |
18:14:26 | * | endragor joined #nim |
18:16:52 | Zevv | /home/ico/sandbox/prjs/cps/cps.nim(508, 23) Error: internal error: expr(nkIdent); unknown node kind |
18:16:55 | FromDiscord | <haxscramper> That |
18:16:56 | FromDiscord | <haxscramper> sent a code paste, see https://play.nim-lang.org/#ix=2ual |
18:17:08 | * | Vladar joined #nim |
18:17:21 | FromDiscord | <haxscramper> That's just top parts - I wasn't able to get minimal code that produces error |
18:18:01 | superbia | how to write if !variable: ? |
18:18:04 | FromDiscord | <haxscramper> Oh, `makeFunctors` is `func makeFunctor*[V, F](sym: F, subt: varargs[Term[V, F]]): Term[V, F] =` |
18:19:30 | * | torbencarstens[m joined #nim |
18:20:34 | disruptek | Zevv: go back to the hammock. |
18:20:40 | Zevv | nope |
18:20:47 | Zevv | sun's behind the woods |
18:20:52 | FromGitter | <RecruitMain707> discord server died? |
18:20:57 | Zevv | mosquitos out |
18:21:05 | disruptek | oh shoot |
18:21:46 | FromGitter | <RecruitMain707> @Yardanico ? |
18:22:02 | * | endragor quit (Ping timeout: 256 seconds) |
18:22:06 | FromDiscord | <Recruit_main707> hmmm, i dont remember very well, what happens if you separate the generic arguments with `;` instead of `,`? |
18:22:08 | Zevv | the netherlands is packed with people, really packed. So we have this little island with one single village, and that's pretty packed downtown. From there you bike 8 minutes to the widest beach in europe, in the middle of the holiday season |
18:22:17 | FromGitter | <RecruitMain707> ok its back :) |
18:22:29 | Zevv | and I have a 180deg view over the beach and I see 1 people |
18:22:49 | FromDiscord | <Recruit_main707> @haxscramper my last msg ^ |
18:23:14 | disruptek | that's nuts. |
18:23:15 | FromDiscord | <haxscramper> Just lots of syntax errors. |
18:23:21 | disruptek | what the hell is wrong with people? |
18:23:35 | disruptek | how are you supposed to get infected with so few spreaders? |
18:23:37 | Zevv | i don't know. but they're all not here, so that's perfectly fine with me |
18:23:51 | FromDiscord | <Recruit_main707> hmmm, im gonna check some code that might be related, but if its not im out of ideas |
18:23:58 | disruptek | send us a photo, Zevv. |
18:24:00 | Zevv | oh we did that on the ferry this afternoon |
18:25:21 | * | aenesidemus joined #nim |
18:26:31 | FromDiscord | <Recruit_main707> @haxscramper yeah, my error was related to something else, idk man |
18:27:16 | Zevv | disruptek: this is a few years back, same place http://zevv.nl/div/CIMG00701.JPG. nothing to see, because it's an empty beach, right |
18:27:39 | disruptek | how wide is that beach? |
18:27:45 | Zevv | 2 km or so |
18:27:47 | Zevv | let me check |
18:28:14 | * | Kaivo quit (Ping timeout: 260 seconds) |
18:28:16 | disruptek | that's crazy. |
18:28:28 | disruptek | how does that even work? |
18:28:41 | Zevv | it's amazingly flat |
18:28:59 | Zevv | because at high tide it's only 200m or so |
18:28:59 | disruptek | so it's dry half the time or what? |
18:29:31 | Zevv | about 12 hours per day, yes |
18:30:07 | FromDiscord | <haxscramper> > There is a type mismatch error in call↵I fixed type mismatch error and `cannot be called` also disappeared. Maybe there nothing that actually causes **this exact** error - just it gets displayed first. |
18:30:08 | disruptek | and those little people come up for air when it gets wet? |
18:30:40 | * | Kaivo joined #nim |
18:30:48 | FromDiscord | <Recruit_main707> yeah, generic errors usually means there is something else wrong, thats why i told you to run nim check |
18:31:59 | FromDiscord | <wiremoons> Found a bug (or weird feature...) in document comments where if the first document comment is blank the HTML output is and the resulting documentation is treated as if it was quoted. Couple of examples here: https://play.nim-lang.org/#ix=2uan |
18:32:38 | FromDiscord | <wiremoons> Is it worth opening a bug report - is it that an Nim doc 'feature' ? 🙂 |
18:34:17 | disruptek | it's worth a bug report. |
18:34:35 | FromDiscord | <wiremoons> OK - will do. Thanks @disruptek |
18:34:57 | disruptek | just remember that doc comments are supposed to be valid RST. |
18:35:08 | disruptek | so, that'll be a criticism some may levy... |
18:36:38 | FromDiscord | <wiremoons> Fair enough - had me confussed for a while until I figured it out, but I dont use RST much, so maybe others would have known what was causing it... |
18:56:35 | * | vicfred joined #nim |
18:58:05 | * | Jjp137 quit (Read error: Connection reset by peer) |
19:02:02 | * | sschwarzer joined #nim |
19:02:14 | sschwarzer | Hi :) |
19:04:07 | sschwarzer | I have a problem with `spawn` and a `FlowVar`: https://play.nim-lang.org/#ix=2uaB . The program doesn't run in the playground because it needs `--threads:on`. If I try to compile the program I get an error (see the comment in the code). Why do I get the error and how can I possibly fix it (or work around)? |
19:07:13 | sschwarzer | (The problem isn't the playground limitation. I get the error message in the code when trying to compile the program on my machine. :-) ) |
19:08:56 | disruptek | i dunno anything about flowvars. |
19:10:47 | sschwarzer | disruptek: They have a lot of limitations it seems. I also ran into https://github.com/nim-lang/Nim/issues/15167 . |
19:10:50 | disbot | ➥ (Re-)raise exceptions from the spawned proc when a `flowVar` is queried with `^flowVar` ; snippet at 12https://play.nim-lang.org/#ix=2uaF |
19:11:33 | sschwarzer | Maybe I should try channels? |
19:12:05 | disruptek | what are you trying to do? |
19:12:06 | sschwarzer | I also looked at Weave, but I didn't find information about handling exceptions in spawned tasks. |
19:12:48 | * | JustASlacker quit (Ping timeout: 256 seconds) |
19:12:50 | FromDiscord | <Recruit_main707> is stever in this server?↵https://github.com/stever |
19:13:07 | sschwarzer | disruptek: I want to run two programs in the background (same program, with different inputs). |
19:13:29 | disruptek | use asynctools |
19:13:33 | sschwarzer | The program is very slow and it helps when the two invocations run in parallel. |
19:14:51 | sschwarzer | disruptek: This one? https://github.com/cheatfate/asynctools |
19:14:58 | disruptek | yeah. |
19:15:22 | sschwarzer | disruptek: Thanks, I'll have a look. |
19:16:33 | stever | @Recruit_main707 yes that's me |
19:18:04 | FromDiscord | <Recruit_main707> cool, would you rather me opening an issue for everything or just pinging you in here for quickfixes like the one i have just mentioned about apostrophes? |
19:18:05 | sschwarzer | Hehe, my code example on the playground does compile with `--gc:arc` XD |
19:18:22 | FromDiscord | <Recruit_main707> arc leaks with async |
19:18:35 | stever | @Recruit_main707 open issues in github please |
19:18:45 | FromDiscord | <Recruit_main707> ok |
19:19:02 | sschwarzer | Recruit: also with "async" from the threadpool? |
19:19:03 | Zevv | disruptek: so, where do I see an example of this new cps call mechanism |
19:19:18 | stever | @Recruit_main707 thanks |
19:19:23 | disruptek | Zevv: typed branch? |
19:19:27 | FromDiscord | <Recruit_main707> np |
19:19:32 | Zevv | and then run waht? |
19:19:48 | FromDiscord | <Recruit_main707> sschwarzer: not sure, probably |
19:19:53 | sschwarzer | Anyway, I'll check asynctools |
19:19:57 | * | krux02_ joined #nim |
19:20:10 | FromDiscord | <Recruit_main707> try orc, although i have heard it might also leak still |
19:20:26 | sschwarzer | Recruit: yes, that's what I heard, too :) |
19:20:50 | disruptek | Zevv: i use the taste test. |
19:22:18 | * | krux02 quit (Ping timeout: 260 seconds) |
19:22:26 | FromDiscord | <Clyybber> afaik it doesn't leak anymore |
19:22:33 | Zevv | uhm now this one again, error: ‘RootObj’ has no member named ‘Sup’ |
19:22:38 | FromDiscord | <Clyybber> @Yardanico knows for sure |
19:22:43 | Zevv | i'm on a different machine, my bash history is gone |
19:22:52 | disruptek | use refc not arc. |
19:22:53 | FromDiscord | <Recruit_main707> orc or arc? clyybber |
19:22:57 | FromDiscord | <Clyybber> orc |
19:23:19 | disruptek | orc is not fully leak-free under async. |
19:23:25 | FromDiscord | <Clyybber> ah ok |
19:23:59 | disruptek | Zevv: i have a `when false:` just before the sleep_magic block. |
19:24:12 | disruptek | noop is effectively the current test. |
19:24:32 | disruptek | also you need --define:release and to run it with cpp. |
19:24:41 | disruptek | whatfer nim bug reasons. |
19:25:08 | Zevv | ah the cpp |
19:25:28 | Zevv | /home/ico/sandbox/prjs/cps/cps.nim(508, 23) Error: internal error: expr(nkIdent); unknown node kind |
19:25:31 | Zevv | never a dull moment |
19:26:00 | disruptek | i'm on the 2020-08-13 build. |
19:26:22 | Zevv | not on head typed? |
19:26:42 | Zevv | 'swapping symbols and crashing compilers' |
19:26:43 | disruptek | that's my nim build version. |
19:26:48 | Zevv | oh |
19:26:50 | disruptek | yeah, on typed. |
19:26:55 | Zevv | are we *that* bleeding edge |
19:27:16 | disruptek | i dunno; i don't get that error. |
19:27:54 | Zevv | nim cpp -r --path=testes --path=cutelog -d:cpsDebug -d:release tests/taste.nim |
19:28:04 | disruptek | yeah. |
19:28:11 | disruptek | --gc:refc |
19:28:21 | Zevv | isnt that implicit? |
19:28:24 | disruptek | sure. |
19:29:07 | disruptek | did you when false out the rest of the test? |
19:29:20 | Zevv | sure, only up to line 34 |
19:29:34 | disruptek | hmm. |
19:30:16 | disruptek | testes 0.1.7? |
19:30:31 | disruptek | some say those are my finest testes. |
19:30:44 | Zevv | right on spot, 0.1.7 |
19:31:00 | Zevv | nim 2020-08-13 957bf15a08d5443a50452909743747d19b5f29f8 |
19:31:11 | disruptek | mine too. |
19:32:48 | disruptek | strange. |
19:33:07 | * | sschwarzer quit (Quit: leaving) |
19:35:19 | * | awe001 joined #nim |
19:36:40 | * | awe00 quit (Ping timeout: 256 seconds) |
19:39:21 | FromDiscord | <Doof Doof> Does Nim have the ability to add meta-data to procs/types? Or what is the current way of doing this I suppose? |
19:39:45 | disruptek | what? |
19:40:29 | Zevv | I don't think there is a way to do that, but you should be able to store your data yourself and index it by proc? |
19:41:28 | FromDiscord | <Doof Doof> sent a code paste, see https://play.nim-lang.org/#ix=2uaM |
19:42:09 | * | JustASlacker joined #nim |
19:43:19 | FromDiscord | <Doof Doof> Right, I was thinking something similar Zevv - so you could just make a "meta" macro function that does a similar thing . . . It just won't know what it belongs to unless you pass it the target item I suppose |
19:48:42 | disruptek | Zevv: see what tock does after pulling. |
19:49:47 | Zevv | === .cps. on tock(original) === /home/ico/sandbox/prjs/cps/tests/tock.nim(4, 0) |
19:49:47 | Zevv | 4 proc tock(name: string; ms: int) = |
19:49:48 | Zevv | 5 var count: int = 10 |
19:49:48 | Zevv | 6 while ( |
19:49:48 | Zevv | 7 0 < count): |
19:49:50 | Zevv | 8 dec count, 1 |
19:49:52 | Zevv | 9 sleep(ms) |
19:49:55 | Zevv | 10 echo [name, " ", count] |
19:49:57 | Zevv | 11 |
19:50:00 | Zevv | local section nnkIdentDefs |
19:50:02 | Zevv | name: string |
19:50:05 | Zevv | local section nnkIdentDefs |
19:50:07 | Zevv | ms: int |
19:50:10 | Zevv | local section nnkVarSection |
19:50:12 | Zevv | var count: int = 10 |
19:50:15 | Zevv | stack trace: (most recent call last) |
19:50:17 | Zevv | cps.nim(626, 19) cps |
19:50:20 | Zevv | cps.nim(616, 25) cpsXfrm |
19:50:22 | Zevv | cps.nim(586, 15) cpsXfrmProc |
19:50:25 | Zevv | cps.nim(399, 23) saften |
19:50:27 | Zevv | cps.nim(191, 19) makeTail |
19:50:30 | Zevv | environment.nim(657, 22) wrapProcBody |
19:50:32 | Zevv | spec.nim(58, 26) resym |
19:50:35 | Zevv | /home/ico/sandbox/prjs/cps/tests/tock.nim(4, 36) template/generic instantiation of `cps` from here |
19:50:38 | Zevv | /home/ico/sandbox/prjs/cps/cps/spec.nim(58, 26) Error: node is not a symbol |
19:50:40 | Zevv | ico@mdoos:~/sandbox/prjs/cps(typed)$ |
19:50:43 | Zevv | dang |
19:50:45 | Zevv | sorry |
19:50:48 | disruptek | so what you're saying is... |
19:50:48 | Zevv | http://ix.io/2uaQ |
19:50:50 | Zevv | mispaste |
19:50:53 | Zevv | flame me |
19:51:06 | Zevv | things break in mysterious ways |
19:51:38 | disruptek | okay, i get the same error. |
19:53:34 | FromDiscord | <djazz> If I want to package my app for windows and ssl support, I need to bundle the openssl dlls next to it right? (I have only tested it in Wine so far) |
19:54:07 | FromDiscord | <djazz> there is no alternative to openssl for windows? |
19:58:18 | disruptek | is that important? |
20:00:35 | FromDiscord | <djazz> surely windows api has some crypto equivalent? |
20:00:51 | disruptek | probably. |
20:00:56 | disruptek | and, don't call me shirley. |
20:01:04 | FromDiscord | <djazz> 😄 |
20:01:20 | FromDiscord | <djazz> i dont want to bundle openssl libs that go out of date eventually.. |
20:01:27 | disruptek | lunatic. |
20:01:34 | Zevv | say disruptek |
20:01:48 | Zevv | your noop() non-cps warning proc gets xfrmd without the 'result = c' body |
20:02:00 | Zevv | but my iterator still gets the body put in |
20:02:02 | Zevv | how come |
20:03:24 | disruptek | got an ix? |
20:03:37 | disruptek | i just pushed a fix for tock. a fix-ish. |
20:03:41 | * | altarrel joined #nim |
20:04:11 | disruptek | maybe there's some backwards logic? |
20:04:35 | Zevv | http://ix.io/2uaY |
20:05:15 | Zevv | same signature, mine is proc jield(c: Iterator): Iterator {.cpsMagic.} = |
20:05:29 | Zevv | same body: `result = c` |
20:05:58 | disruptek | what's your source look like? |
20:06:27 | Zevv | http://ix.io/2ub0 |
20:06:56 | Zevv | trying to get stash/iterator working |
20:08:46 | disruptek | that looks troubling. |
20:10:00 | Zevv | what |
20:11:05 | * | altarrel quit (Quit: Konversation terminated!) |
20:14:22 | disruptek | i'm troubled. i admit it. |
20:14:26 | disruptek | deeply troubled. |
20:15:01 | * | liblq-dev quit (Quit: WeeChat 2.9) |
20:16:30 | Zevv | good. |
20:16:32 | Zevv | you should be |
20:16:51 | disruptek | why don't you push that shit so i can enjoy it myself? |
20:17:06 | disruptek | it's not fair that you get to have all the bugs. |
20:18:27 | Zevv | pushed |
20:26:20 | federico3 | and here I am using Python and yad instead of Nim and gtk |
20:31:26 | * | Vladar quit (Quit: Leaving) |
20:40:52 | * | audiofile quit (Quit: Default Quit Message) |
20:41:38 | * | awe002 joined #nim |
20:42:58 | disruptek | Zevv: pushed |
20:43:42 | * | awe001 quit (Ping timeout: 256 seconds) |
20:45:32 | * | endragor joined #nim |
20:46:00 | disruptek | these new loops we've created are ridiculously fast. |
20:46:31 | disruptek | i think we should call them /none more fast/ loops. |
20:50:16 | FromDiscord | <tomck> sent a code paste, see https://play.nim-lang.org/#ix=2ub5 |
20:50:34 | FromDiscord | <tomck> I've tried assigning x to a local var with `{.inject.}`, but that just copies the var, which isn't what i want |
20:50:42 | FromDiscord | <tomck> i guess i could copy it back after? |
20:51:51 | disruptek | where does the x come from? |
20:51:59 | FromDiscord | <tomck> the proc param |
20:52:09 | FromDiscord | <tomck> `proc(x...` |
20:52:28 | disruptek | you tried proc(x {.inject.}: var int) ? |
20:52:34 | FromDiscord | <tomck> Yeah it's a parse error |
20:52:38 | disruptek | i think this was fixed in the last day or two. |
20:52:54 | FromDiscord | <tomck> oh really> |
20:53:09 | disruptek | look for a pr from clyybber. |
20:53:12 | FromDiscord | <tomck> is a build for that out? |
20:53:24 | disruptek | there's one from last night in gitnim. |
20:53:24 | FromDiscord | <tomck> or hsould i build myself? |
20:53:26 | disruptek | ~gitnim |
20:53:27 | disbot | gitnim: 11https://gitnim.com/ -- choosenim for choosey nimions -- disruptek |
20:53:52 | disruptek | !pull inject author:clyybber |
20:53:53 | disbot | https://github.com/nim-lang/Nim/pull/15178 -- 6Allow pragmas on parameters 7& 1 more... |
20:53:55 | FromDiscord | <tomck> is gitnim a nim cmopiler manager, like rustup for rust, or stack for haskell? |
20:54:08 | FromDiscord | <tomck> so i just install this & it'll manage the nim compiler build for me? |
20:54:36 | disruptek | it's a bit tough to explain because it's so simple it boggles the mind. |
20:54:59 | disruptek | it's a git repo that i update frequently. and it includes a simple app so you can run `git nim` and see which available versions exist. |
20:55:27 | disruptek | the nims provided are statically-linked and generated by github actions nightly. |
20:55:55 | FromDiscord | <tomck> Ahhh wondered why it was taking so long to clone lol |
20:55:58 | disruptek | if you want to run your own distribution for your own platform or whatever, you just clone it. |
20:56:38 | disruptek | the whole thing is 101 lines of code. |
20:56:42 | FromDiscord | <tomck> so is the latest build in master of gitnim? |
20:57:18 | disruptek | master holds docs. the different branches hold different versions. there are also tags. |
20:57:38 | disruptek | the web-site should explain it, but essentially, it's just git. |
20:58:03 | * | Jjp137 joined #nim |
21:01:19 | disruptek | the nightly from the 13th is in branch 1.3.5. |
21:06:52 | FromDiscord | <tomck> so i ran `git nim latest` and i now have 1.3.5, but it's still a parse error unfortunately |
21:06:58 | FromDiscord | <tomck> identifier expected, but found 'eParam {.inject.}' |
21:07:19 | FromDiscord | <tomck> for ↵ proc(eParam {.inject.}: var MyType) = |
21:07:52 | disruptek | hmm. |
21:08:46 | disruptek | does the test look like what you want? |
21:08:50 | FromDiscord | <benash> Does nim allow a type to share its name with the module it exists in (and is exported from)? |
21:08:52 | disruptek | because it looks like what i expect... |
21:09:09 | disruptek | https://github.com/nim-lang/Nim/pull/15178/commits/e73daf617fa709ff5f556923e7ff2b34194bbb48 |
21:09:10 | disbot | ➥ Allow pragmas on parameters |
21:09:17 | disruptek | yes, thank you, disbot. |
21:09:46 | disruptek | benash: yes, and also, that's a dumb idea. |
21:11:04 | FromDiscord | <tomck> errrr it's an anonymous proc maybe? |
21:11:15 | FromDiscord | <tomck> My param has no default value either |
21:12:53 | disruptek | that shouldn't matter. |
21:13:36 | FromDiscord | <benash> @disruptek Excuse me, if you'd like to help, do so without an insult. |
21:19:31 | * | Trustable quit (Remote host closed the connection) |
21:19:40 | FromDiscord | <tomck> disruptek: Ahhh actually that works! I was on the wrong nim version, thanks for the help! |
21:22:02 | disruptek | nice. |
21:22:08 | disruptek | benash: it's not an insult. |
21:22:13 | * | vicfred quit (Quit: Leaving) |
21:22:34 | * | vicfred joined #nim |
21:24:05 | disruptek | look, i have plenty of stupid ideas. ask anyone here. |
21:24:13 | disruptek | problem is, so few people let me know ahead of time. |
21:24:29 | disruptek | just doing my part to help you avoid future regrets. |
21:34:25 | FromDiscord | <benash> @disruptek If your motivation is to help me avoid future regrets, my request would be that you do that in a more dignifying way. |
21:34:48 | disruptek | welcome to teh interwebs, buddy. |
21:48:53 | * | endragor quit (Ping timeout: 246 seconds) |
21:53:53 | leorize | @benash make sure that your type name is not exactly same as the module name (as in "type foo" in module "foo") |
21:54:48 | leorize | there are(were?) bugs in the compiler that would spew out hard to decipher errors when the two names collides |
22:08:58 | FromDiscord | <Recruit_main707> The fact that the compiler optimizes the code by passing objects bigger than 3 * float as a pointer can be avoided? |
22:12:10 | * | lritter quit (Quit: Leaving) |
22:12:18 | solitudesf | https://nim-lang.github.io/Nim/manual.html#foreign-function-interface-bycopy-pragma |
22:12:53 | FromDiscord | <Recruit_main707> Well, yes I know about bycopy, but I mean disable it directly |
22:12:58 | * | vicfred quit (Quit: Leaving) |
22:14:39 | FromDiscord | <Clyybber> why would you |
22:14:46 | FromDiscord | <Clyybber> and what do you mean with directly.. |
22:14:54 | FromDiscord | <Clyybber> with a cli flag? |
22:15:02 | FromDiscord | <Recruit_main707> Something like that yes |
22:15:03 | * | leorize quit (Ping timeout: 240 seconds) |
22:15:09 | FromDiscord | <Clyybber> that would be stupid |
22:15:26 | FromDiscord | <Clyybber> because then you couldn't interface with other code |
22:15:36 | FromDiscord | <Clyybber> because one is compiled with --bycopy:off and one not |
22:15:47 | FromDiscord | <Clyybber> what are you trying to do? |
22:15:57 | FromDiscord | <Recruit_main707> Just thinking |
22:16:04 | * | natrys quit (Quit: natrys) |
22:16:16 | FromDiscord | <Recruit_main707> Essentially, trying to avoid writing bycopy :p |
22:16:22 | FromDiscord | <Clyybber> but why |
22:16:30 | FromDiscord | <Recruit_main707> Laziness |
22:16:32 | FromDiscord | <Clyybber> why do you think you need bycopy in the first place |
22:16:50 | FromDiscord | <Clyybber> try push: bycop |
22:19:12 | FromDiscord | <Recruit_main707> I am just trying to use Nim at a lower level, (essentially as a better c)↵Because I feel I am not used to enough to lower level concepts |
22:19:40 | FromDiscord | <Recruit_main707> And really want to know what my code is doing exactly |
22:22:32 | * | endragor joined #nim |
22:26:23 | leorize[m] | the only way to know is to read the resulting C/ASM :P |
22:26:50 | * | endragor quit (Ping timeout: 256 seconds) |
22:31:29 | leorize[m] | it's better to use `bycopy` to ensure C-compatible semantics. We might perform optimizations that automatically reorder object fields to ensure the best performance |
22:31:31 | leorize[m] | in the future |
22:34:54 | FromDiscord | <Recruit_main707> Then you will need a new pragma :P |
22:34:56 | * | arecacea1 quit (Remote host closed the connection) |
22:35:29 | FromDiscord | <Recruit_main707> Or just add a `raw` pragma or something like that |
22:35:46 | * | arecacea1 joined #nim |
22:38:23 | leorize[m] | @Clyybber can you review #14484M |
22:38:24 | leorize[m] | * @Clyybber can you review #14484? |
22:38:25 | disbot | https://github.com/nim-lang/Nim/pull/14484 -- 3std/with support field assign |
22:45:33 | disruptek | clyybber: shhh there are no stupid ideas. |
22:45:59 | disruptek | use more dignifying language, please. |
22:46:46 | FromDiscord | <Recruit_main707> This guy XD |
22:49:14 | disruptek | i agree. |
22:50:30 | * | solitudesf quit (Ping timeout: 260 seconds) |
22:51:19 | FromDiscord | <Clyybber> leorize: Will do |
22:51:44 | FromDiscord | <Clyybber> disruptek: Sorry, the idea is mentally challenged |
22:51:52 | disruptek | i'm sorry, too. |
22:51:56 | disruptek | let's kiss. |
22:53:07 | FromDiscord | <Clyybber> smooch |
22:53:18 | disruptek | 😘 |
22:55:55 | * | endragor joined #nim |
22:58:17 | FromDiscord | <Clyybber> leorize: I don't think we should support this colon syntax |
22:58:19 | FromDiscord | <Clyybber> wdyt? |
23:00:06 | leorize[m] | what colon syntax? |
23:00:16 | * | endragor quit (Ping timeout: 246 seconds) |
23:00:36 | FromDiscord | <Clyybber> https://github.com/nim-lang/Nim/pull/14484/files#diff-7a3cb610cec719a402a45ec87c11a3e6R357 |
23:00:37 | disbot | ➥ std/with support field assign |
23:01:02 | FromDiscord | <Clyybber> (edit) 'https://github.com/nim-lang/Nim/pull/14484/files#diff-7a3cb610cec719a402a45ec87c11a3e6R357' => 'https://github.com/nim-lang/Nim/pull/14484/files#diff-7a3cb610cec719a402a45ec87c11a3e6360' |
23:01:03 | disbot | ➥ std/with support field assign |
23:01:18 | FromDiscord | <Clyybber> (edit) 'https://github.com/nim-lang/Nim/pull/14484/files#diff-7a3cb610cec719a402a45ec87c11a3e6360' => 'https://github.com/nim-lang/Nim/pull/14484/files#diff-7a3cb610cec719a402a45ec87c11a3e6R360' |
23:01:19 | disbot | ➥ std/with support field assign |
23:02:14 | FromDiscord | <Clyybber> , oh sorry for the spam |
23:02:20 | FromDiscord | <Clyybber> the last link should point to the right line |
23:02:25 | leorize[m] | oh, didn't spot that one |
23:02:41 | leorize[m] | yea it's better to be done outside of that PR |
23:02:48 | FromDiscord | <Clyybber> or not at all :P |
23:02:58 | leorize[m] | and the syntax is definitely not something we should support |
23:03:02 | FromDiscord | <Clyybber> yeah |
23:06:33 | leorize[m] | you're gonna wrap it up? |
23:06:58 | leorize[m] | if you got rid of that colon syntax then it's an approval from me |
23:08:41 | * | awe003 joined #nim |
23:08:53 | FromDiscord | <Clyybber> Yeah, I rebased and got rid of it |
23:09:02 | FromDiscord | <Clyybber> if its green then its good to go IMO |
23:10:25 | * | awe002 quit (Ping timeout: 240 seconds) |
23:35:59 | FromDiscord | <djazz> managed to recreate the stuff I made in electron into nim module webview ^^ uses IE's renderer on windows and WebKit on Linux and macOS https://media.discordapp.net/attachments/371759389889003532/743976223440502814/loe-launcher-nim-win.png |
23:36:15 | FromDiscord | <djazz> now with nim module webview* |
23:37:05 | FromDiscord | <Clyybber> nice! |
23:37:22 | FromDiscord | <Rika> ~~wonder if it can be made to use gecko |
23:37:24 | FromDiscord | <Rika> (edit) 'gecko' => 'gecko~~' |
23:37:58 | FromDiscord | <Clyybber> servo would be more interesting |
23:38:07 | Yardanico | but servo is going away really |
23:38:10 | FromDiscord | <Clyybber> though it might die now |
23:38:13 | Yardanico | yeah |
23:38:47 | * | vicfred joined #nim |
23:40:33 | FromDiscord | <Varriount> Servo is going away? |
23:40:42 | Yardanico | after layoffs - very probably yes |
23:40:57 | disruptek | they wither and drop off after a couple weeks. |
23:41:04 | Yardanico | most of the servo team was laid off |
23:41:27 | Yardanico | https://twitter.com/SimonSapin/status/1293231187167784960 |
23:41:31 | FromDiscord | <Rika> think servo was dying before the team was laid off eve |
23:41:32 | FromDiscord | <Rika> (edit) 'eve' => 'even' |
23:41:41 | FromDiscord | <Rika> the layoff is probably the final blow |
23:41:47 | Yardanico | not really, it's a cool project |
23:42:41 | FromDiscord | <Rika> nim web renderer when 😛 |
23:43:03 | Yardanico | I just need to finish sciter bindings :P |
23:43:04 | FromDiscord | <djazz> If Mozilla made an alternative to Electron... |
23:43:13 | Yardanico | how would it be better? |
23:43:21 | Yardanico | if you still use the same browser tech, it won't get any better |
23:46:41 | shashlick | How's sciter |
23:47:25 | Yardanico | shashlick: I didn't have much progress, I was hitting some strange bug with getting utf16 strings from sciter |
23:47:28 | Yardanico | it works with refc but doesn't with arc |
23:49:33 | * | krux02__ joined #nim |
23:52:45 | * | krux02_ quit (Ping timeout: 240 seconds) |
23:53:22 | * | awe004 joined #nim |
23:55:13 | * | awe003 quit (Ping timeout: 246 seconds) |