00:07:20 | * | CyberTailor quit (Remote host closed the connection) |
00:08:39 | * | CyberTailor joined #nim |
00:14:10 | * | noeontheend quit (Ping timeout: 240 seconds) |
00:16:34 | FromDiscord | <morgan> so it’s symlinked from the normal path to where it is, yes? if it’s not finding it would that mean that nim isn’t following symlinks? |
00:38:22 | FromDiscord | <luteva> In reply to @NotFlawffles "the problem tho that": just use an alias. if you use ni for nim then you maybe won't get into trouble. 🙂↵Or use "not_nim_use_neovim_now" as an alias for neovim 😉 |
00:46:48 | FromDiscord | <tangonov> In reply to @MorganAlyssa "so it’s symlinked from": Maybe, haven't had a chance to make sure I've covered every build substitution. Failing that I will need to think of my next move |
01:32:04 | * | bigbyt joined #nim |
01:32:14 | bigbyt | hello all |
01:34:06 | bigbyt | trying to install nimble on ubuntu from prebuilt binaries on the website, the nimble binary is throwing an error: 'could not import: SSL_get_peer_certificate' |
01:34:42 | bigbyt | any advice? |
01:54:46 | FromDiscord | <zhmtzhmt> sent a code paste, see https://play.nim-lang.org/#ix=41IZ |
01:55:00 | FromDiscord | <zhmtzhmt> languge server failed to start |
02:00:52 | FromDiscord | <xflywind> In reply to @bigbyt "trying to install nimble": What's your ubuntu version? Nim doesn't have SSL 3 support => https://github.com/nim-lang/Nim/pull/19814 |
02:05:26 | FromDiscord | <deadmeme77> In reply to @deadmeme77 "if anyone is interested,": I was able to solve that issue by doing this |
02:05:50 | FromDiscord | <deadmeme77> in Pop_OS! 22_04 |
02:08:27 | bigbyt | @xflywind I'm using Ubuntu 22.04 LTS |
02:10:33 | bigbyt | also is there a way to compartmentalize package installations a la python's virtual environments? |
02:10:45 | bigbyt | or ocaml's notion of compiler switches? |
02:13:41 | FromDiscord | <Elegantbeef> The latest nimble has lock files |
02:17:12 | FromDiscord | <xflywind> In reply to @bigbyt "<@658563905425244160> I'm using Ubuntu": There some instructions to install openssl 1.1 in ubuntu 22.04 => https://github.com/dom96/choosenim/issues/297#issuecomment-1125707998 |
02:36:33 | FromDiscord | <b1rdf00d> my PR got merged 🙂 first time contributing to OSS! Thanks for the help Elegantbeef |
02:36:46 | FromDiscord | <Elegantbeef> Congrats |
02:37:08 | FromDiscord | <b1rdf00d> and thanks xflywind too 🙂 |
02:55:47 | FromDiscord | <xflywind> In reply to @b1rdf00d "my PR got merged": Nice work! |
02:56:21 | * | ehmry quit (Ping timeout: 246 seconds) |
03:20:35 | * | arkurious quit (Quit: Leaving) |
03:27:01 | * | CyberTailor quit (Remote host closed the connection) |
03:28:08 | * | CyberTailor joined #nim |
03:41:02 | * | xet7 quit (Remote host closed the connection) |
04:12:20 | FromDiscord | <tangonov> In reply to @MorganAlyssa "so it’s symlinked from": I have substituted all of the hard-code paths that I could, wherever I believe they make sense. I would think this weren't following symlinks except that I can still run `nim c koch` outside of the guix build environment |
05:08:24 | * | toluene quit (Ping timeout: 244 seconds) |
05:09:27 | * | toluene joined #nim |
05:47:05 | * | toluene quit (Quit: Ping timeout (120 seconds)) |
05:49:04 | * | toluene joined #nim |
05:50:20 | FromDiscord | <ripluke> Does Nim have something like a map |
05:50:49 | FromDiscord | <ripluke> Nvm they're called tables |
06:09:34 | * | noeontheend joined #nim |
06:11:32 | FromDiscord | <ripluke> Why doesn't createfile exist? |
06:12:05 | FromDiscord | <Elegantbeef> Cause you dont ever need to create a file |
06:12:20 | FromDiscord | <Elegantbeef> You just write to a file in one of the multiple ways and it creates it |
06:12:38 | FromDiscord | <ripluke> Oh so writeFile creates it too? |
06:12:50 | FromDiscord | <Elegantbeef> Be pretty useless if it didnt |
06:12:59 | FromDiscord | <ripluke> Oh lol thx |
06:16:56 | * | rockcavera quit (Remote host closed the connection) |
07:06:43 | * | noeontheend quit (Ping timeout: 244 seconds) |
07:50:56 | FromDiscord | <Phil> In reply to @b1rdf00d "and thanks xflywind too": I secretly maintain the stance that half this community secretly sings in their heads a version of "I'll make a man out of you": "I'll get contribs out of you"↵😄 |
07:51:08 | FromDiscord | <Phil> (edit) "In reply to @b1rdf00d "and thanks xflywind too": I secretly ... maintain" added "(well, now publicly)" |
07:51:52 | FromDiscord | <Phil> But congratz to your contribution!↵Know how that feels, was pretty much where I was at around 4-5 months ago |
07:56:52 | FromDiscord | <ripluke> In reply to @b1rdf00d "my PR got merged": Lol nice |
08:21:55 | FromDiscord | <Transparent> In reply to @b1rdf00d "my PR got merged": github? |
09:05:16 | FromDiscord | <Xzayler> if I have `proc doThis(a: int, b: string, c: float) =`↵is there a way to give arguments in a different order? like `doThis(c,a,b)`? |
09:09:27 | FromDiscord | <phargob> hi noob question, how do i clear a seq? |
09:12:00 | FromDiscord | <Xzayler> In reply to @phargob "hi noob question, how": assign an empty sequence to the sequence variable |
09:12:40 | FromDiscord | <Xzayler> like `s = @[]` or something like that. |
09:12:58 | FromDiscord | <Xzayler> or maybe `s.setLen(0)`? |
09:13:05 | FromDiscord | <Xzayler> not sure which is more efficient |
09:13:33 | FromDiscord | <phargob> like to avoid memory allocation, I'll try both. thanks. |
09:14:18 | NimEventer | New thread by Enthus1ast: Test for static in macro, see https://forum.nim-lang.org/t/9283 |
09:14:42 | FromDiscord | <Xzayler> In reply to @phargob "like to avoid memory": sequences are dynamic and nim has garbage collection so I don't think you need to manage memory either way. |
09:15:41 | FromDiscord | <Xzayler> If you know the size of the sequence ahead and it doesn't change you can use arrays. |
09:16:35 | FromDiscord | <planetis> In reply to @phargob "hi noob question, how": setLen avoids the deallocation |
09:18:31 | FromDiscord | <phargob> ok thanks. that was what I was looking for. |
09:20:33 | FromDiscord | <phargob> I am probably over thinking memory since porting c++ code. |
09:23:54 | FromDiscord | <Yardanico> In reply to @Xzayler "if I have `proc": Yes, you can supply them with names |
09:24:43 | FromDiscord | <Yardanico> doThis(c = 0.5, a = 1, b = "hello") |
09:25:27 | FromDiscord | <Xzayler> In reply to @Yardanico "doThis(c = 0.5, a": oh that makes total sense |
09:25:30 | FromDiscord | <Yardanico> Or you can have a wrapper proc/template that uses the arguments in the order given |
09:25:40 | FromDiscord | <Yardanico> changes the order |
09:26:14 | FromDiscord | <Xzayler> the naming solution is perfect. Thank you. |
09:31:25 | FromDiscord | <Geiseric> Is it only me or Defender suddenly decided to flag every Nim binary? I can't seem to print an hello world anymore.. |
09:34:19 | FromDiscord | <Phil> I... I do not understand. Prologue's wiki somehow does not respect markdown lists. As in, the entries are not properly listed below one another, they just straight up miss the linebreaks |
09:35:03 | FromDiscord | <enthus1ast> no this unfortunately a known issue↵(@Geiseric) |
09:35:39 | FromDiscord | <Geiseric> In reply to @enthus1ast "no this unfortunately a": Oh so, unless some rewrite happens, Nim doesn't really apper to be usable |
09:36:18 | FromDiscord | <enthus1ast> do not blame nim for this, blame your anti virus vendor for their to broad signatures↵(@Geiseric) |
09:37:10 | * | jmdaemon quit (Ping timeout: 240 seconds) |
09:37:50 | FromDiscord | <enthus1ast> one step could be to submit samples to your vendor |
09:37:57 | FromDiscord | <enthus1ast> for false positives |
09:38:31 | FromDiscord | <enthus1ast> and/or add exceptions in your anti virus |
09:40:09 | FromDiscord | <Geiseric> Lol i'm not blaming Nim, i know AV vendors are the issue here |
09:40:28 | FromDiscord | <Geiseric> In reply to @enthus1ast "and/or add exceptions in": Unfortunately this can't happen in corporate envs |
09:40:48 | FromDiscord | <xflywind> We really need an article to denounce these av vendors. |
09:41:23 | FromDiscord | <enthus1ast> then i do not understand what you mean by this↵(@Geiseric) |
09:41:35 | FromDiscord | <enthus1ast> this↵(@Geiseric) |
09:42:02 | FromDiscord | <enthus1ast> but yeah you're right, this is an annoying issue |
09:42:39 | FromDiscord | <dom96> In reply to @flywind "We really need an": This |
09:42:43 | FromDiscord | <Geiseric> That if I want to develop something at work, I can't do it because the moment the compiled file will touch my disk my AV will erase it, triggering an alarm that will pop SOC's ears and i'll get a call from Sec department asking what was i doing |
09:43:07 | FromDiscord | <dom96> Can you use WSL? |
09:43:25 | FromDiscord | <Geiseric> Nope unfortunately |
09:43:34 | FromDiscord | <Geiseric> And anyway binaries should do things on Windows |
09:44:35 | FromDiscord | <d4rckh> In reply to @flywind "We really need an": im not sure if that will change much |
09:44:59 | FromDiscord | <dom96> In reply to @d4rckh "im not sure if": It’s better than doing nothing |
09:45:03 | * | vicecea quit (Remote host closed the connection) |
09:45:22 | FromDiscord | <enthus1ast> maybe we can get some other smaller langs into the boat |
09:45:28 | FromDiscord | <enthus1ast> they suffer the same issues i guess |
09:45:42 | FromDiscord | <dom96> In reply to @Geiseric "And anyway binaries should": Yeah, I understand. It really sucks this happens :/ |
09:45:59 | * | vicecea joined #nim |
09:46:10 | FromDiscord | <enthus1ast> @Geiseric\: one thing to try is to use another compiler |
09:46:17 | FromDiscord | <d4rckh> i was surprised to see nim is 14 years old and so small at the same time 😅 |
09:46:20 | FromDiscord | <enthus1ast> maybe visual c or zig or so |
09:46:21 | FromDiscord | <xflywind> In reply to @d4rckh "im not sure if": At least let their lives a bit harder when Nim suffers from their discrimination 🥳 |
09:46:48 | FromDiscord | <Geiseric> In reply to @enthus1ast "maybe visual c or": Could be a thing, but at this point i guess imma go back to C++ or learn C# |
09:47:30 | FromDiscord | <d4rckh> i mean even go is newer |
09:47:35 | FromDiscord | <enthus1ast> this is unfortunate but understandable |
09:47:44 | FromDiscord | <ieltan> Zig get flagged or not? |
09:47:55 | FromDiscord | <enthus1ast> think the issue is with mingw |
09:48:28 | FromDiscord | <xflywind> Even C or Go get flagged from times to times. |
09:48:36 | FromDiscord | <xflywind> (edit) "get" => "gets" |
09:49:26 | FromDiscord | <enthus1ast> antivirus == snake oil == Shark Fin Soup |
10:26:31 | FromDiscord | <Phil> Btw xflywind, thanks for bearing with me through all the spammy pr's |
10:26:53 | FromDiscord | <bariali07> hi |
10:28:43 | FromDiscord | <aru-hackZ> In reply to @d4rckh "i was surprised to": and python is like 30y old |
10:42:20 | FromDiscord | <Phil> Heya bariali |
10:47:10 | FromDiscord | <xflywind> In reply to @Isofruit "Btw xflywind, thanks for": Not at all. I'm glad to merge them 😁 |
10:48:34 | FromDiscord | <dain> are there benchmarks anywhere for nimscript |
10:50:18 | FromDiscord | <xflywind> I don't think there are. |
10:52:04 | FromDiscord | <dain> mayb I will do some ..... |
10:53:18 | FromDiscord | <xflywind> sent a code paste, see https://play.nim-lang.org/#ix=41KA |
11:16:48 | * | lumo_e joined #nim |
11:24:01 | FromDiscord | <b1rdf00d> In reply to @Isofruit "I secretly (well, now": 😄 this was 100% self motivated (I think) |
11:24:08 | FromDiscord | <b1rdf00d> In reply to @Transparent "github?": yep! |
11:54:45 | FromDiscord | <Josef> Is it possible to call CRT function `_controlfp` from Nim? |
12:09:22 | * | ehmry joined #nim |
12:14:52 | FromDiscord | <ezquerra> In reply to @flywind "Even C or Go": I occasionally get false positives for Python programs generated with pyinstaller. That being said it is much less frequent than with nim |
12:41:29 | * | dmichiels left #nim (#nim) |
12:41:45 | FromDiscord | <Josef> sent a code paste, see https://play.nim-lang.org/#ix=41KW |
12:50:22 | * | wallabra quit (Quit: ZNC 1.8.2 - https://znc.in) |
12:50:25 | * | wallabra_ joined #nim |
12:51:17 | FromDiscord | <demotomohiro> How `byte` type is typedefed in your C code? |
12:51:38 | * | wallabra_ is now known as wallabra |
12:51:38 | FromDiscord | <Josef> uint8 |
12:53:21 | FromDiscord | <Josef> (edit) "uint8" => "unsigned char" |
12:53:23 | FromDiscord | <fwsgonzo> is there a way to resize a string? |
12:53:26 | FromDiscord | <demotomohiro> sent a code paste, see https://play.nim-lang.org/#ix=41KY |
12:53:38 | FromDiscord | <demotomohiro> `setLen` resizes string |
12:54:59 | FromDiscord | <demotomohiro> you can use `setLen` to resize both string and seq. |
12:55:19 | FromDiscord | <Rika> In reply to @Josef "How would you rewrite": Kinda strange to take in a pointer to an integer when you’re not doing anything to the pointer |
12:56:57 | * | noeontheend joined #nim |
12:57:27 | FromDiscord | <fwsgonzo> Many thanks! I was looking hard for resize, but setLen was it! |
12:59:08 | FromDiscord | <Josef> sent a code paste, see https://play.nim-lang.org/#ix=41L1 |
12:59:24 | FromDiscord | <Rika> That’s not what your code does |
12:59:32 | FromDiscord | <Rika> It dereferences the parameter then adds five |
12:59:54 | FromDiscord | <phargob> the code is very likely to seg fault unless param is address into the stack or heap. |
12:59:57 | FromDiscord | <Josef> Yea, but it is casted to byte pointer right after. |
13:00:09 | FromDiscord | <Rika> That’s true |
13:00:22 | FromDiscord | <Rika> I missed that |
13:00:36 | FromDiscord | <Rika> So the integer is a pointer itself? |
13:00:53 | FromDiscord | <Rika> In that case it’s unsafe to use int |
13:01:18 | FromDiscord | <capocasa> sent a code paste, see https://play.nim-lang.org/#ix=41L3 |
13:02:20 | * | hc0re joined #nim |
13:04:14 | FromDiscord | <demotomohiro> How about to use array? If it is static, sizeof that seq is determined at compile time. |
13:05:19 | FromDiscord | <Rika> Size is compile time but not value per se |
13:05:26 | FromDiscord | <Rika> I assume he wants values defined by CT |
13:07:07 | FromDiscord | <Josef> So like: `f(param: ptr array[5,byte]): byte = param[][5] and 2?` |
13:08:39 | FromDiscord | <demotomohiro> sent a code paste, see https://play.nim-lang.org/#ix=41L5 |
13:10:12 | FromDiscord | <capocasa> sent a long message, see http://ix.io/41L6 |
13:10:55 | FromDiscord | <fwsgonzo> Assuming that I have a string that is an HTTP header like "X-Field: Value", how do I get the Value part? |
13:12:33 | FromDiscord | <aru-hackZ> you could use regex or a split |
13:12:46 | FromDiscord | <enthus1ast> https://nim-lang.org/docs/httpcore.html#parseHeader%2Cstring |
13:13:10 | FromDiscord | <aru-hackZ> that's even better |
13:13:15 | FromDiscord | <Rika> In reply to @capocasa "<@259277943275126785> yes exactly ": Josef was replying for his question, Tomohiro’s answer doesn’t have compile time values |
13:13:27 | FromDiscord | <Rika> Oh I misread |
13:13:33 | FromDiscord | <Rika> I missed the other static |
13:13:37 | FromDiscord | <Rika> Then yes that works |
13:14:28 | FromDiscord | <fwsgonzo> Thanks, that's very handy |
13:15:20 | FromDiscord | <aru-hackZ> yh, didn't know abt it |
13:17:18 | FromDiscord | <capocasa> @demotomohiro Hm disadvantage of the generic `static int` is that I need to explicitly specify it if there are additional generics. Might there be an option that does not require that? |
13:18:42 | FromDiscord | <capocasa> @demotomohiro This does not compile if there are additional generics: `foo[Foo](["bar"])` but this does `foo[Foo, static int](["bar"])` which works but makes the api a little baroque |
13:19:21 | FromDiscord | <enthus1ast> sent a code paste, see https://play.nim-lang.org/#ix=41L9 |
13:20:36 | FromDiscord | <PyryTheBurger> how do i check if a property of an object is nil |
13:20:41 | FromDiscord | <PyryTheBurger> or havent set it |
13:21:14 | FromDiscord | <enthus1ast> .isNil |
13:21:40 | FromDiscord | <enthus1ast> then its the default value of the type↵(@PyryTheBurger) |
13:22:15 | FromDiscord | <PyryTheBurger> sent a long message, see http://ix.io/41La |
13:22:24 | FromDiscord | <enthus1ast> not all types in nim can be nil |
13:22:37 | FromDiscord | <enthus1ast> what is Texture? |
13:22:39 | FromDiscord | <PyryTheBurger> soooooo how do i check it |
13:22:43 | FromDiscord | <PyryTheBurger> its a raylib type |
13:23:26 | FromDiscord | <enthus1ast> maybe test for myobj.mytexture == Texture() |
13:25:08 | FromDiscord | <demotomohiro> sent a code paste, see https://play.nim-lang.org/#ix=41Lb |
13:25:22 | FromDiscord | <zhmtzhmt> how to resize a seq? or how to preserve space? |
13:25:29 | FromDiscord | <aru-hackZ> .setLen |
13:25:30 | * | noeontheend quit (Ping timeout: 240 seconds) |
13:25:39 | FromDiscord | <zhmtzhmt> Thanks!!! |
13:26:06 | FromDiscord | <demotomohiro> In reply to @zhmtzhmt "how to resize a": Please read this section: https://nim-lang.github.io/Nim/system.html#system-module-seqs |
13:26:09 | FromDiscord | <capocasa> In reply to @demotomohiro "These works without explicitly": Thank you very much! The catch is I wanted to specify parameters directly, but only Foo. |
13:26:13 | FromDiscord | <capocasa> In reply to @demotomohiro "Please read this section:": I will! |
13:27:41 | FromDiscord | <enthus1ast> @PyryTheBurger\: but it might be better when you do not have to test in the first place |
13:27:57 | FromDiscord | <PyryTheBurger> what do you mean |
13:28:19 | FromDiscord | <enthus1ast> create the objects with the Texture |
13:28:37 | FromDiscord | <PyryTheBurger> if i didnt specify a texture in the object then i want to draw a rectangle else i draw the texture |
13:28:40 | FromDiscord | <capocasa> In reply to @demotomohiro "Please read this section:": I'd already tried `newSeq[string]().static` but same issue as with the `@[]`. Openarray would be fine too... but really great learning with the array length in the generic |
13:29:14 | FromDiscord | <demotomohiro> In reply to @capocasa "I will!": That is reply to @zhmtzhmt |
13:29:20 | FromDiscord | <Rika> Setting the length of a sequence does not reduce the memory allocated |
13:29:40 | FromDiscord | <Rika> Sequences never shrink as implemented now |
13:30:27 | FromDiscord | <zhmtzhmt> I see |
13:30:41 | FromDiscord | <zhmtzhmt> I want more space |
13:31:00 | FromDiscord | <enthus1ast> @PyryTheBurger\: in addition to == Texture() ; you could maybe test for mytexture.id == 0 but i do not know if it starts with 0 https://github.com/greenfork/nimraylib_now/blob/3207f457be0f3204df15a1367111159d3c888c4c/src/nimraylib_now/mangled/raylib.nim#L224 |
13:31:03 | FromDiscord | <zhmtzhmt> Thank you for explanation. |
13:32:35 | FromDiscord | <Rika> In reply to @zhmtzhmt "I want more space": Do you need it |
13:32:44 | FromDiscord | <Rika> Are you in an embedded context |
13:35:33 | FromDiscord | <capocasa> sent a code paste, see https://play.nim-lang.org/#ix=41Lf |
13:37:07 | FromDiscord | <Transparent> Opinions on Nim? I am coming from C (noobish), PY, & V Dev. My goto lang is V then PY |
13:37:32 | FromDiscord | <PyryTheBurger> nim is cool but i am noob lol |
13:38:21 | FromDiscord | <Transparent> it looks cool. a bit of Python with type declaration (syntax wise) |
13:38:56 | FromDiscord | <PyryTheBurger> yeah and compiles to c and optional garbage collector (idk how that is good though) |
13:43:21 | FromDiscord | <zhmtzhmt> @Rika I am developing game, serializing and deserializing seq of objects. I need to preserve memory when deserializing seq. |
13:43:30 | FromDiscord | <xflywind> Nim doesn't need to use a gc collectors. It supports multiple memory management: Arc/Orc, boehm and so on. |
13:43:41 | FromDiscord | <Rika> If you’re not going to keep the sequence then it will be garbage collected |
13:43:46 | FromDiscord | <xflywind> (edit) "collectors." => "collector." |
13:43:48 | FromDiscord | <aru-hackZ> for game dev and embedded, GC is bad |
13:43:52 | FromDiscord | <PyryTheBurger> i thought nim has garbage collector 😦 |
13:44:01 | FromDiscord | <Rika> In reply to @aru-hackZ "for game dev and": Only certain GCs are |
13:44:04 | FromDiscord | <PyryTheBurger> i love garbage collector |
13:44:04 | FromDiscord | <aru-hackZ> it has, but you can turn it off |
13:44:14 | FromDiscord | <Rika> In reply to @aru-hackZ "it has, but you": Which is never recommended |
13:44:21 | FromDiscord | <PyryTheBurger> i hate manual memory management |
13:44:26 | FromDiscord | <aru-hackZ> In reply to @Rika "Only certain GCs are": yh |
13:44:37 | FromDiscord | <zhmtzhmt> I thinking refc should be enough. |
13:44:46 | FromDiscord | <Rika> In reply to @aru-hackZ "yh": Nim’s default GC is okay for game development |
13:44:48 | FromDiscord | <xflywind> Arc/Orc is going to be the default memory management option in v2. |
13:45:25 | FromDiscord | <aru-hackZ> In reply to @Rika "Nim’s default GC is": dk much abt nim and the GCs it offers, still a noob learning |
13:46:01 | FromDiscord | <Rika> Just trust most of us with what we say, someone else is bound to correct the dumbass (<—) when they’re wrong |
13:46:07 | FromDiscord | <zhmtzhmt> thread-islolated should be ok., just like lua does. |
13:46:58 | FromDiscord | <enthus1ast> the GC debates are always entertaining; i would recommend to build your game first, and make it fun, then see if it uses to much memory \:) |
13:47:08 | FromDiscord | <zhmtzhmt> and struct in nim can be embed in gc'ed object, so gc'ed objets will much less. |
13:47:27 | FromDiscord | <aru-hackZ> In reply to @zhmtzhmt "thread-islolated should be ok.,": iirc if you create threads, one thread can not access other's memory, you should use a channel or global vars |
13:47:33 | FromDiscord | <PyryTheBurger> i love to put memory leaks in my games because idk how to prevent them |
13:47:47 | FromDiscord | <zhmtzhmt> game client is single threaded. |
13:48:09 | FromDiscord | <enthus1ast> ok its a simple game then ;)↵(@zhmtzhmt) |
13:48:12 | FromDiscord | <zhmtzhmt> server is multi-threaded, tunnel will used. |
13:48:22 | FromDiscord | <enthus1ast> even for audio you'll need a thread |
13:48:45 | FromDiscord | <aru-hackZ> and user input |
13:49:09 | FromDiscord | <zhmtzhmt> game client is working in unity( which is a popular game engine.) |
13:50:00 | FromDiscord | <zhmtzhmt> the game engine handled all multithreaded things, I just write game logic in one thread. |
13:50:48 | FromDiscord | <enthus1ast> i see and you write the server in nim? |
13:50:58 | FromDiscord | <zhmtzhmt> Yes |
13:51:07 | FromDiscord | <zhmtzhmt> client and server. |
13:51:39 | FromDiscord | <zhmtzhmt> I want to share code possibly |
13:51:56 | FromDiscord | <enthus1ast> so you rewrite the client from unity to nim? |
13:52:49 | FromDiscord | <zhmtzhmt> It is writen in c++ before. but I am tired of memory management, |
13:52:55 | FromDiscord | <enthus1ast> we also have a game development nim channel btw |
13:53:06 | FromDiscord | <zhmtzhmt> I burns my brain. |
13:53:40 | FromDiscord | <zhmtzhmt> So I want to wapp legacy c++ in nim. |
13:53:52 | FromDiscord | <xflywind> You can also try Orc. |
13:54:26 | FromDiscord | <zhmtzhmt> Can I swich gc freely? |
13:54:55 | * | hc0re quit (Remote host closed the connection) |
13:55:03 | FromDiscord | <xflywind> Yeah it should. Use --mm:orc if you are on 1.6.x/devel version. |
13:55:15 | * | hc0re joined #nim |
13:55:25 | FromDiscord | <zhmtzhmt> Great! |
13:55:58 | FromDiscord | <zhmtzhmt> I will try different gc if I find long gc pause. |
13:56:31 | FromDiscord | <enthus1ast> the arc/orc should not pause like the default one |
13:56:47 | * | derpydoo joined #nim |
13:57:14 | FromDiscord | <zhmtzhmt> if pause < 20 ms , it is acceptable for me. |
13:57:16 | * | arkurious joined #nim |
13:57:33 | FromDiscord | <zhmtzhmt> fps 60 is enough. |
13:58:05 | FromDiscord | <zhmtzhmt> I have read document, refc' gc pause < 1ms |
13:58:45 | FromDiscord | <xflywind> Yeah, this is the ;atest docs regarding memory management => https://nim-lang.org/docs/mm.html |
13:58:49 | FromDiscord | <xflywind> (edit) ";atest" => "latest" |
13:59:19 | FromDiscord | <zhmtzhmt> I have read it. |
13:59:44 | FromDiscord | <zhmtzhmt> I prefer thread-isoloated gc |
14:00:57 | FromDiscord | <zhmtzhmt> may be ORC ARC is a good choice for client. |
14:01:02 | FromDiscord | <Transparent> yo |
14:01:48 | FromDiscord | <zhmtzhmt> Thanks for your guys help. |
14:01:51 | FromDiscord | <Transparent> What language can you use with Nim? |
14:02:11 | FromDiscord | <zhmtzhmt> c c++ |
14:02:22 | FromDiscord | <Transparent> c++ fr? |
14:02:22 | FromDiscord | <xflywind> lua, C, C++, Js, Go, objectC, Python |
14:02:28 | FromDiscord | <Transparent> no way? |
14:02:46 | FromDiscord | <Transparent> can i get docs to this ? |
14:02:53 | FromDiscord | <zhmtzhmt> ffi |
14:03:01 | FromDiscord | <xflywind> (edit) "Python" => "Python, julia" |
14:03:13 | FromDiscord | <zhmtzhmt> https://scripter.co/binding-nim-to-c-plus-plus-std-list/#test-c-plus-plus-code |
14:03:51 | FromDiscord | <zhmtzhmt> https://livebook.manning.com/book/nim-in-action/chapter-8/ |
14:04:19 | FromDiscord | <xflywind> c2nim support generates C++ warpper => https://github.com/nim-lang/c2nim |
14:04:30 | FromDiscord | <xflywind> (edit) "support generates" => "supports generating" |
14:04:35 | FromDiscord | <xflywind> (edit) "warpper" => "wrapper" |
14:04:48 | FromDiscord | <zhmtzhmt> c2nim is pretty nice, it help me a lot. |
14:04:57 | FromDiscord | <xflywind> https://github.com/n0bra1n3r/cinterop => About↵A C/C++ interop library for the Nim programming language |
14:05:24 | FromDiscord | <xflywind> In reply to @zhmtzhmt "c2nim is pretty nice,": I used futark which supports "simply import C header files directly into Nim". It is greate too! |
14:05:50 | FromDiscord | <Phil> In reply to @Transparent "can i get docs": For python, look at GitHub for the nimpy package. Allows trivial usage of nim in python and vice versa |
14:06:04 | FromDiscord | <Phil> Oh wow my internet is crap |
14:06:33 | FromDiscord | <Transparent> hmmm |
14:06:59 | FromDiscord | <zhmtzhmt> @xflywind awsome! |
14:07:16 | FromDiscord | <xflywind> I have an excerpt for these interoperability => https://dev.to/xflywind/nim-a-modern-glue-language-like-python-3270 |
14:11:01 | FromDiscord | <Phil> In reply to @Transparent "hmmm": Sidenote, if you want to spend the time, I can recommend giving 2 articles from demotomohiro a read about how nim relates to c/GCC. I'm on phone atm so I can't throw in the link, but I did get them linked to me in the offtopic channel recently so shouldn't be too hard to find |
14:11:46 | FromDiscord | <Phil> Helped me, but I had little to no understanding of c etc beforehand |
14:15:31 | FromDiscord | <Transparent> welp. im stuck on should i learn the lang or have time for it |
14:18:24 | FromDiscord | <Phil> I use it for webdev and have a lot of fun. It's become my general purpose lang if I'm not forced into any other ecosystem since it can be damn fast if you optimize a bit |
14:18:42 | FromDiscord | <Phil> That's all I can say regarding that |
14:19:33 | FromDiscord | <retkid> conconcatting arrays in arraymancer is a bit... slow |
14:19:46 | FromDiscord | <retkid> its a but o(n^2) |
14:19:49 | FromDiscord | <retkid> (edit) "but" => "bit" |
14:21:15 | FromDiscord | <retkid> especially when the arrays will be about 54,125,412 values |
14:21:25 | FromDiscord | <Transparent> LOL |
14:21:46 | FromDiscord | <Transparent> In reply to @Isofruit "I use it for": web dev? hmm |
14:22:09 | FromDiscord | <retkid> so is there anyway to add values to a tensor in an array mancer that wont take about 2000 years |
14:22:16 | * | derpydoo quit (Ping timeout: 244 seconds) |
14:23:02 | FromDiscord | <xflywind> You probably need to ask on science channel. |
14:23:12 | FromDiscord | <Transparent> procs are functions? |
14:23:17 | FromDiscord | <xflywind> (edit) "You probably need to ask on ... science" added "the" |
14:24:58 | FromDiscord | <retkid> nim has both |
14:25:11 | FromDiscord | <retkid> procedures and funcs are not the same in nim |
14:25:38 | FromDiscord | <retkid> funcs are sideaffectless functions |
14:25:39 | FromDiscord | <retkid> or well |
14:25:42 | FromDiscord | <retkid> functional functions |
14:25:58 | FromDiscord | <ieltan> procs have side effect and dont return values |
14:26:15 | FromDiscord | <xflywind> ? |
14:26:26 | FromDiscord | <ieltan> isnt it correct ? |
14:26:32 | FromDiscord | <retkid> procs return values |
14:26:57 | FromDiscord | <ieltan> doh |
14:28:51 | FromDiscord | <Phil> In reply to @ieltan "procs have side effect": Procs are allowed to have side effects. They don't have to, but can. Function enforced not having side effects |
14:29:05 | FromDiscord | <Phil> (edit) "enforced" => "enforces" |
14:30:00 | FromDiscord | <xflywind> In reply to @Transparent "welp. im stuck on": Nim is a small low level programming language compiling to C and has many optimizations, move semantics, return value optimizations and automatic memory management without gc. |
14:30:37 | FromDiscord | <xflywind> (edit) "gc." => "gc etc." |
14:30:50 | FromDiscord | <Phil> In reply to @Transparent "web dev? hmm": I do webdev for a living, that's why I chose that type of project. The fact I can use what amounts to a c equivalent for this and it is not painful is pretty bonkers so far |
14:31:13 | FromDiscord | <Phil> (edit) "In reply to @Transparent "web dev? hmm": I do webdev for a living, that's why I chose that type of project. The fact I can use what amounts to a c equivalent for this and it is not painful ... is" added ", fun even," |
14:34:50 | FromDiscord | <Phil> In reply to @ieltan "doh": Basically, a proc can do everything a func can, be since funcs are more narrowly defined. But by being more narrowly defined you can get guarantees which are important for e.g functional programming |
14:35:02 | * | noeontheend joined #nim |
14:35:07 | FromDiscord | <Phil> (edit) removed "be" |
14:36:54 | FromDiscord | <PyryTheBurger> sent a long message, see http://ix.io/41Lw |
14:37:18 | FromDiscord | <PyryTheBurger> but the text and pressed methods are what i provide? |
14:37:23 | * | derpydoo joined #nim |
14:38:25 | FromDiscord | <xflywind> echo rect and result.rect? |
14:42:32 | * | rockcavera joined #nim |
14:42:32 | * | rockcavera quit (Changing host) |
14:42:32 | * | rockcavera joined #nim |
14:46:06 | FromDiscord | <PyryTheBurger> (0.0, 0.0, 0.0, 0.0 |
14:46:08 | FromDiscord | <PyryTheBurger> ) |
14:46:55 | FromDiscord | <PyryTheBurger> or in the methd theyre good but when i try to use them theyre 0 |
14:49:11 | FromDiscord | <PyryTheBurger> when i remove 1 variable from the type the rect works?????? |
14:50:40 | * | noeontheend quit (Ping timeout: 244 seconds) |
14:55:43 | FromDiscord | <PyryTheBurger> well, i suppose the rectangle works as a position as well, but i dont understand that... do objects have a limited amount of usable variables? |
14:58:04 | FromDiscord | <PyryTheBurger> so only 4 usable variables in an object damn |
15:14:45 | FromDiscord | <enthus1ast> no, as i also told you last time↵(@PyryTheBurger) |
15:15:48 | FromDiscord | <enthus1ast> can you find the position in your code, when the rect is all 0? |
15:16:23 | FromDiscord | <enthus1ast> this or please share example code |
15:16:50 | FromDiscord | <enthus1ast> you can put longer snippets on https://play.nim-lang.org/ |
15:18:54 | * | kenran joined #nim |
15:22:14 | * | v9fk quit (Ping timeout: 268 seconds) |
15:26:50 | FromDiscord | <PyryTheBurger> sent a long message, see https://paste.rs/XC0 |
15:27:08 | FromDiscord | <Geiseric> I've made a weird "discovery" and I'm quite unsure about it. So basically, my Kali produces nim binaries that gets flagged, my ubuntu binaries instead, dont' get flagg my AV. Moreover, size is different. Any possible ideas about it? |
15:27:34 | FromDiscord | <enthus1ast> please update your post so that it is properly formatted |
15:27:58 | FromDiscord | <Geiseric> (edit) "I've made a weird "discovery" and I'm quite unsure about it. So basically, my Kali produces nim binaries that gets flagged, my ubuntu binaries instead, dont' get flagg my AV. Moreover, size is different. Any possible ideas about it? ... " added "Ofc same exact nim version, source and compiler flags." |
15:29:21 | FromDiscord | <enthus1ast> different c compiler and version?↵(@Geiseric) |
15:29:54 | FromDiscord | <Geiseric> I reinstalled the C compiler in both, but my kali could still have something off |
15:30:09 | FromDiscord | <enthus1ast> clang vs gcc ? |
15:30:17 | FromDiscord | <Geiseric> mingw with both |
15:30:21 | FromDiscord | <Geiseric> and both gcc |
15:31:25 | FromDiscord | <enthus1ast> [Edit](https://discord.com/channels/371759389889003530/371759389889003532/994263341029658634): @PyryTheBurger\: please update your post so that it is properly formatted |
15:32:45 | FromDiscord | <PyryTheBurger> What |
15:33:39 | FromDiscord | <enthus1ast> image.png https://media.discordapp.net/attachments/371759389889003532/994264875780022302/image.png |
15:33:56 | FromDiscord | <enthus1ast> put it on https://play.nim-lang.org/ |
15:38:24 | FromDiscord | <Phil> In reply to @PyryTheBurger "What": Or copy paste it here, enclosed by 3 backticks on each side to keep spacing etc |
15:39:05 | FromDiscord | <PyryTheBurger> Sorry im on a phone now but i will when i get back to a computer |
15:40:31 | NimEventer | New thread by Dom96: Choosenim 0.8.4 now available, see https://forum.nim-lang.org/t/9285 |
15:56:37 | * | derpydoo quit (Quit: derpydoo) |
16:02:41 | * | v9fk joined #nim |
16:59:05 | FromDiscord | <jmgomez> When using Table in a static type for a Macro, it gives me an error. Is that expected? |
16:59:32 | FromDiscord | <jmgomez> sent a code paste, see https://play.nim-lang.org/#ix=41Md |
16:59:38 | FromDiscord | <jmgomez> If I commented it, the macro works just ine |
16:59:45 | FromDiscord | <jmgomez> (edit) "ine" => "fine" |
17:03:58 | FromDiscord | <PyryTheBurger> In reply to @Isofruit "Or copy paste it": my entire button module: https://play.nim-lang.org/#ix=41Mh why does it limit the working variables to 4 |
17:16:37 | FromDiscord | <lantos> sent a code paste, see https://play.nim-lang.org/#ix=41Mi |
17:18:37 | FromDiscord | <lantos> (edit) "https://play.nim-lang.org/#ix=41Mi" => "https://play.nim-lang.org/#ix=41Mj" |
17:25:11 | FromDiscord | <Rika> uds is below the layer of http |
17:25:18 | FromDiscord | <Rika> so you use raw sockets for those i believe |
17:29:11 | CyberTailor | do you know any threadpool alternatives? |
17:32:11 | FromDiscord | <aru-hackZ> In reply to @PyryTheBurger "my entire button module:": not sure but, iirc you can only change an object's attributes inside procs when it's a `ref object`, if that's what you mean |
17:33:25 | FromDiscord | <Yardanico> you can just use `var Type` to mutate a normal object in a proc |
17:33:40 | FromDiscord | <Yardanico> as the argument type |
17:33:53 | FromDiscord | <lantos> In reply to @Rika "so you use raw": yeah they are lower level but I've seen some things have now started to do this http://unix:/↵thing like insomnia/postman |
17:34:16 | FromDiscord | <Yardanico> In reply to @PyryTheBurger "my entire button module:": what exactly do you mean? |
17:34:25 | FromDiscord | <Yardanico> i mean what doesn't work |
17:34:42 | FromDiscord | <aru-hackZ> In reply to @Yardanico "you can just use": true, that's another way |
17:41:51 | FromDiscord | <PyryTheBurger> In reply to @Yardanico "what exactly do you": when i have over 5 variables in a type, only 4 of them are not 0 in my other code even though i make them to be something other and there is no errors though |
17:42:23 | FromDiscord | <Yardanico> i still can't quite understand you, but your code does have some logic errors |
17:42:34 | FromDiscord | <PyryTheBurger> no it doesnt for me |
17:42:35 | FromDiscord | <Yardanico> e.g. `buttonSelected = buttons[selectedButton]` in updateButtons will make a copy of a button |
17:42:46 | FromDiscord | <PyryTheBurger> yeah its purpose |
17:42:50 | FromDiscord | <Yardanico> so if you then modify buttonSelected it won't modify the button in `buttons` |
17:42:58 | FromDiscord | <Yardanico> In reply to @PyryTheBurger "yeah its purpose": when what's the problem? can you maybe show what you want with code? |
17:42:59 | FromDiscord | <PyryTheBurger> i dont need to modify it |
17:44:46 | FromDiscord | <enthus1ast> @PyryTheBurger\: i do not see an error in the code you send that could do this error |
17:44:58 | FromDiscord | <enthus1ast> Rect is all 0 error |
17:46:24 | FromDiscord | <PyryTheBurger> In reply to @Yardanico "when what's the problem?": problem: https://play.nim-lang.org/#ix=41Mt |
17:46:34 | FromDiscord | <enthus1ast> Where do you construct the buttons seq? |
17:46:48 | FromDiscord | <PyryTheBurger> menu.nim |
17:47:08 | FromDiscord | <PyryTheBurger> sent a long message, see http://ix.io/41Mu |
17:48:19 | FromDiscord | <enthus1ast> Then buttonSeq1 is empty? |
17:48:32 | FromDiscord | <PyryTheBurger> no |
17:48:42 | FromDiscord | <PyryTheBurger> later buttonSeq1.add(button1)↵buttonSeq1.add(button2)↵buttonSeq1.add(button3) |
17:48:45 | FromDiscord | <Josef> Does Nim have repl? |
17:50:22 | * | hc0re quit (Read error: Connection reset by peer) |
17:50:25 | FromDiscord | <enthus1ast> Not in the ipython sense↵(@Josef) |
17:50:31 | FromDiscord | <enthus1ast> inim |
17:50:33 | * | hc0re joined #nim |
17:51:00 | FromDiscord | <enthus1ast> Is a small repl, but it's not really needed since nim is so strongly typed |
17:55:40 | FromDiscord | <Phil> I use it regularly! |
17:56:20 | FromDiscord | <Phil> Typically to test out 3 line behaviour, after that I start copy pasting code into my playground project |
17:56:49 | FromDiscord | <Phil> There's also nim secret |
17:59:25 | FromDiscord | <Josef> In reply to @enthus1ast "Is a small repl,": That's not why you need a repl. |
17:59:50 | FromDiscord | <demotomohiro> If you use vim, it is easy to test a few line of code with this plugin. It works on termux on android.↵https://github.com/rhysd/wandbox-vim |
18:06:05 | FromDiscord | <lantos> sent a code paste, see https://play.nim-lang.org/#ix=41MA |
18:07:32 | FromDiscord | <Josef> How can I print bit representation of a number? |
18:10:20 | FromDiscord | <jan0809> inim works well in termux too https://media.discordapp.net/attachments/371759389889003532/994304305538539560/IMG_20220706_200953.jpg |
18:14:25 | FromDiscord | <Rika> In reply to @Josef "How can I print": representation in what |
18:14:48 | FromDiscord | <jan0809> in bits (?) |
18:14:57 | FromDiscord | <Josef> Found it. |
18:17:27 | FromDiscord | <Yardanico> sent a code paste, see https://play.nim-lang.org/#ix=41MG |
18:17:51 | FromDiscord | <jan0809> good to know ig |
18:18:06 | FromDiscord | <Yardanico> or use toBin from strutils |
18:36:53 | * | xigoi joined #nim |
19:08:17 | * | Jjp137 quit (Quit: Leaving) |
19:11:05 | * | Jjp137 joined #nim |
19:12:33 | FromDiscord | <ripluke> In reply to @Isofruit "I use it regularly!": Yup |
19:13:04 | FromDiscord | <ripluke> Very useful to test the output of some procs without making a whole new file and doing it that way |
19:13:39 | * | kenran quit (Quit: WeeChat info:version) |
19:14:47 | * | hc0re quit (Ping timeout: 256 seconds) |
19:18:39 | * | pro joined #nim |
19:35:53 | FromDiscord | <lantos> sent a code paste, see https://play.nim-lang.org/#ix=41N9 |
19:48:52 | * | krux02 joined #nim |
19:49:10 | * | lumo_e quit (Ping timeout: 240 seconds) |
19:57:56 | FromDiscord | <jan0809> why would one use curl for sockets?↵isnt there some async implementation in std? |
20:04:42 | FromDiscord | <jan0809> in `std/net` |
20:18:27 | * | kenran joined #nim |
20:20:22 | * | kenran quit (Client Quit) |
20:35:49 | * | pro quit (Quit: pro) |
20:42:13 | * | CyberTailor left #nim (Konversation terminated!) |
20:42:58 | * | noeontheend joined #nim |
20:53:59 | * | tafa quit (Quit: ZNC - https://znc.in) |
20:56:00 | * | tafa joined #nim |
21:08:40 | * | lumo_e joined #nim |
21:15:41 | * | jmdaemon joined #nim |
21:29:50 | * | lumo_e quit (Ping timeout: 240 seconds) |
21:31:06 | * | noeontheend quit (Ping timeout: 244 seconds) |
21:34:38 | FromDiscord | <lantos> Thats what I'm trying to use the std/net but I'm getting ↵bad file descriptor with unix sockets so I was going to see if there is another way/how curl does it. |
21:51:11 | * | lumo_e joined #nim |
21:55:51 | * | lumo_e quit (Client Quit) |
22:23:40 | FromDiscord | <dom96> another option is implementing unix socket support for std/httpclient |
22:40:01 | * | krux02 quit (Remote host closed the connection) |
22:50:43 | FromDiscord | <bariali07> Is it possible to study two or more programming languages at the same time? |
22:51:07 | FromDiscord | <Elegantbeef> If you have twice the time of course |
22:51:16 | * | toulene joined #nim |
22:51:51 | * | toulene quit (Remote host closed the connection) |
22:53:26 | FromDiscord | <!Patitotective> twice the mind |
22:55:06 | FromDiscord | <Elegantbeef> Now whenever someone joins the matrix room i'm expecting crypto scam spam |
22:55:50 | FromDiscord | <!Patitotective> does matrix not have spam filter? |
22:56:12 | FromDiscord | <classj> Now is your Bitcoin wallet or coinbase 0.00000 I promise 0.80500 in less than 24 hours without sending money to anyone. Earn 0.764 in 7hours, No referrals, No Ads, No scams. Ask how(me)Or join https://t.me/+JdEg2rIn7E0wZDFk |
22:56:15 | FromDiscord | <classj> Join and ask how |
22:56:18 | FromDiscord | <Elegantbeef> Fuck |
22:56:22 | FromDiscord | <Elegantbeef> I summoned them |
22:56:37 | FromDiscord | <!Patitotective> hahahha |
22:56:39 | FromDiscord | <!Patitotective> @moddo |
22:56:46 | FromDiscord | <!Patitotective> In reply to @classj "Now is your Bitcoin": <@&371760044473319454> |
22:57:42 | FromDiscord | <Elegantbeef> I mean you probably can filter messages and ban/warn users with a bot but dont think there is any built in spam protection due to the openness of the platform↵(@!Patitotective) |
22:58:17 | FromDiscord | <dom96> ffs |
23:05:39 | NimEventer | New Nimble package! urlon - URL Object Notation implemented in Nim, see https://github.com/Double-oxygeN/urlon-nim |
23:07:57 | FromDiscord | <Benjamin> Mjolnir does a good job of preventing spam in another room I'm in\: https://matrix.org/docs/guides/moderation#moderation-tooling |
23:16:18 | FromDiscord | <b1rdf00d> sent a code paste, see https://play.nim-lang.org/#ix=41NR |
23:16:22 | FromDiscord | <b1rdf00d> (edit) |
23:16:44 | FromDiscord | <b1rdf00d> (edit) "https://play.nim-lang.org/#ix=41NR" => "https://play.nim-lang.org/#ix=41NS" |
23:19:27 | FromDiscord | <!Patitotective> `peg""` is a raw string↵to escape double quotes in a raw string use double double quotes↵`peg""""` |
23:20:18 | FromDiscord | <!Patitotective> actually it doesnt compile |
23:20:35 | FromDiscord | <!Patitotective> https://media.discordapp.net/attachments/371759389889003532/994382379898650664/unknown.png |
23:20:40 | FromDiscord | <Elegantbeef> you probably want `peg "\""` |
23:21:15 | FromDiscord | <Elegantbeef> The strlit call syntax is very useful but has the downside that it's a raw string lit |
23:23:41 | FromDiscord | <b1rdf00d> perfect, thanks! |
23:24:17 | FromDiscord | <Elegantbeef> If you're using pegs you may want ot checkout NPEG |
23:27:45 | FromDiscord | <b1rdf00d> so what's the difference between `peg""` and `peg ""` ?↵↵I tend to prefer using stuff in a stdlib by default, but I'll take a look at NPEG since you recommended |
23:28:15 | FromDiscord | <Elegantbeef> `peg""` uses a raw string literal which means no escaping |
23:28:27 | FromDiscord | <Elegantbeef> `peg ""` uses a string literal which means escaping can be used |
23:29:03 | FromDiscord | <Elegantbeef> https://nim-lang.org/docs/manual.html#lexical-analysis-generalized-raw-string-literals |
23:29:22 | FromDiscord | <b1rdf00d> thanks for the explanation and link, I'll have a read 🙂 |
23:29:44 | FromDiscord | <Elegantbeef> https://nim-lang.org/docs/manual.html#lexical-analysis-raw-string-literals |
23:41:23 | FromDiscord | <treeform> In reply to @Elegantbeef "Now whenever someone joins": Do we even need matrix room? |
23:42:08 | FromDiscord | <Elegantbeef> Do we even need a discord channel? |
23:43:03 | FromDiscord | <j-james> Do we even need an IRC channel? |
23:43:08 | FromDiscord | <treeform> it appears most convo happens on discord |
23:43:12 | FromDiscord | <Elegantbeef> Do we even need a community |
23:43:18 | FromDiscord | <treeform> IRC and Discord i can get behind. |
23:43:23 | FromDiscord | <j-james> Simply shout very loud |
23:43:41 | FromDiscord | <treeform> But matrix? If only 1% of users use matrix and its 100% of the spam? |
23:43:57 | FromDiscord | <Elegantbeef> I mean we can just you know setup moderation bots |
23:44:00 | FromDiscord | <j-james> Matrix users are more like 10 or 15 percent |
23:44:20 | FromDiscord | <Elegantbeef> But you're right just shut down any client that ever has spam |
23:44:34 | FromDiscord | <Elegantbeef> Discord had a lot of spam there for a while |
23:44:42 | FromDiscord | <j-james> I would like to see something like Mjolnir set up though |
23:44:43 | FromDiscord | <Elegantbeef> Irc had a lot of spam when freenode's takeover happened |
23:45:04 | FromDiscord | <Elegantbeef> "We've tried nothing and it shut it down" |
23:45:07 | FromDiscord | <j-james> Discord has a lot of account takeover spam going on right now |
23:45:54 | FromDiscord | <j-james> because of their god damn broken qr code login system 😠 |
23:46:14 | FromDiscord | <Yardanico> In reply to @treeform "But matrix? If only": fyi almost no one uses IRC for the Nim community now, Matrix is much more popular relative to IRC in here |
23:50:46 | FromDiscord | <treeform> ok |
23:52:10 | * | noeontheend joined #nim |
23:55:26 | FromDiscord | <retkid> how can i get the size of an object in memory |
23:55:40 | FromDiscord | <Elegantbeef> `sizeof(object)` |
23:55:45 | FromDiscord | <Elegantbeef> This doesnt work for nested heap allocations |
23:55:51 | FromDiscord | <retkid> that returns the size of a ttype |
23:55:53 | FromDiscord | <retkid> (edit) "ttype" => "type" |
23:56:03 | FromDiscord | <Elegantbeef> Which is the size of the type in memory |
23:56:09 | FromDiscord | <retkid> yes |
23:56:11 | FromDiscord | <retkid> i dontwant the typw |
23:56:15 | FromDiscord | <retkid> (edit) "dontwant" => "dont want" | "typw" => "type" |
23:56:16 | FromDiscord | <retkid> i want the object |
23:56:32 | FromDiscord | <Elegantbeef> You need to recurse the type then |
23:56:45 | FromDiscord | <Elegantbeef> You want the allocated memory of an object not the size of an object 😄 |
23:57:22 | FromDiscord | <retkid> beef.... |
23:57:37 | FromDiscord | <retkid> how do I see the total memory allocation of a variable |
23:57:44 | FromDiscord | <Elegantbeef> I told you |
23:57:52 | FromDiscord | <Elegantbeef> You have to recurse the type to find all of the allocations |
23:57:53 | FromDiscord | <retkid> but what do i iterate over |
23:58:02 | FromDiscord | <Elegantbeef> the object's fields |
23:58:33 | FromDiscord | <retkid> i shall resort to mth |
23:58:36 | FromDiscord | <retkid> (edit) "mth" => "math" |