From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4 Received: (qmail 11804 invoked from network); 13 Dec 2023 03:30:55 -0000 Received: from 9front.inri.net (168.235.81.73) by inbox.vuxu.org with ESMTPUTF8; 13 Dec 2023 03:30:55 -0000 Received: from mail-wm1-f50.google.com ([209.85.128.50]) by 9front; Tue Dec 12 22:28:20 -0500 2023 Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-40c0fc1cf3dso66292405e9.0 for <9front@9front.org>; Tue, 12 Dec 2023 19:28:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702438097; x=1703042897; darn=9front.org; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=5F2yFAiP7l2iRZ3po8gDlOvNsO4YrC8+Pcbk5ar20QY=; b=jtJfYmcOVeGEdocGQ2j567AA8fsk67EN16q+k6qh+0viP13SDw0usF6Q5KJpzzXBBu WuvTXb0upZcZzZqefSgUtFUoKDeKkXKggwr7nV/EqgyXXaQPu7A0okK6cDrrFn0h2mMa c0EudOTcEckJglKp9kAT10tswhSWCpKnVr6ITHepaxYyba0MtODDP7kStva2NuYM6niH aHN2OPi2o9+yNmydXOhcHJ73oSqjCjPGBAoFTvbTMUbG5BHvB6IdId4rFL7sElsv4rEm Q52QzgU+r7zTwFctHtppWFiLNFakl73zkZQfH19tcbiKNYXg2XuGNDAwI13jWeqokMJD P1CQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702438097; x=1703042897; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5F2yFAiP7l2iRZ3po8gDlOvNsO4YrC8+Pcbk5ar20QY=; b=N62mULJ8l9rQ0Z/FsW71pzUAXMwbC5VHqUkW4uVWHP4dw73OehlrS0svYj3xdjSLRi MdET4VgwGRaxxt3TVKUWZWI8CuY1XEpL+DwmKOPcenyic0pF+UTbxSc+b3EqGaywISyE FXZhHpxlg82aA4SaKHvlbs4LQjD9zyj3YnymqA1gaDvfnokRvD64N/lZthfQdd6gUk/1 EaQgMWX9gsL5vv0gvXuNgM3jLsQyjtwRJXcN7rssFVPYyKEi0gLrmMUoy8EDPAU7FTmu HXCFZ+xxUZyB0y6/exQ3Spi2E3XVdmOk7HOJ54h5sScqP0jSzT9ZNxsGX6mAkq7cGELW B3dQ== X-Gm-Message-State: AOJu0YypVCoFR4FbGAf/YIaYZXc6aJVNpFF+QQogWQXf9/5q4SQPJ3Qu Gylcwd7fXFy5OHft4APHECw+pwQT4zBuWwcnwaKe4S8GjI4= X-Google-Smtp-Source: AGHT+IENrtBXxc4ziDbitalLQITpuF7CNn/9y/CpWrL0QFLghNpykbP+zFQjwz4jnxsydVtY21j5arG18/g2BwlGIRc= X-Received: by 2002:a7b:c012:0:b0:40c:25f6:4585 with SMTP id c18-20020a7bc012000000b0040c25f64585mr2276105wmb.73.1702438096745; Tue, 12 Dec 2023 19:28:16 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Amavect Date: Tue, 12 Dec 2023 21:28:00 -0600 Message-ID: To: 9front@9front.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: CMS proxy-oriented scripting-aware optimizer Subject: Re: [9front] prof profiler changing program result Reply-To: 9front@9front.org Precedence: bulk On Sat, Dec 9, 2023 at 12:30=E2=80=AFPM sirjofri wrote: >today I did an implementation of mandelbrot and learned to use prof to pro= file my program. >I noticed that the mandelbrot result is different when linked using -p. >Instead of the nice mandelbrot image I get a circle (but still with lots o= f details). >Funnily enough, julia seems to work better. You have uninitialized variables. I guess kencc doesn't warn if you don't fully initialize a struct. Acid showed me that SetParams params was initialized differently by the time it reaches generate(). The .julia field gets an uninitialized value of 0 without -p, and an uninitialized value of 1 with -p. After setting a zero struct initializer {0}, the mandelbrot generates corre= ctly. After setting a struct initializer {1}, the mandelbrot generates incorrectly in the same way. Thanks, Amavect