From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vs1-xe2b.google.com (mail-vs1-xe2b.google.com [IPv6:2607:f8b0:4864:20::e2b]) by sourceware.org (Postfix) with ESMTPS id 6A40D3858D1E for ; Sat, 22 Oct 2022 12:08:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 6A40D3858D1E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-vs1-xe2b.google.com with SMTP id o5so2225563vsc.0 for ; Sat, 22 Oct 2022 05:08:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=vVPjhzj/Tp5Fo6nM1JgMtHtb8naJcqcQSPerT9rJ0qY=; b=b1H43ZaKUo6jpdjFV/D/jAplPebjRv7mPBMeuVANuswAl9wHKNhxb6X7o02ctW/UMH 3Q84AcH0UqpXAJSOOD/p2cgpcmfQ3o+fWYQg6kpWJrWWcCaKzWo5M8M+37h/ZCuaNEjh lH8RKSZ8iwFHvxOj+hFDdNOIMLydfP40S+L2v5ybudA+V4Ym4PITXBG80tJ0crlbqUyZ faeHzAByhATPTGUhsQM9j8+XEBGwUUpJU4grjIGkaVGlZK2EdIFZMtOAB1+hn5tjVZgy 63nwiq/FV3yIeQb8AF2D85yIJMRL600r7tEO/AzA66EGVOBW3SqlaAvAMlJJ7ZEkQD4n lpMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc: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=vVPjhzj/Tp5Fo6nM1JgMtHtb8naJcqcQSPerT9rJ0qY=; b=Jzvc793d/3YkSZbXlqE9exfSAaAnND10DxOI/eLWXJkBO0pat0C1iIxfFjNwZlvgYG 8QRB/cTcxpmf7qrvH01LPlkrrOS6Z8knfel1TeUrDKO2w5aNr1YDmF52XJslWfktU2NY DQ/CF9lJ6RfVQ8URuGG+wjyO7F7hC6HNW2xutH5JsNHNaFXA4OU9a6GqYF3QuFlEJ1ix JfJ9/UHPl+MsQgJ4VSWD+3GHmgCO+tXrBnt0WslvLWxYARshIOAZWTnY6q44KGTDNJ/g xRrebI0bRhXAF/+r/FiQay+EPKeti2XEZM98cxFQITTty0KfqWWvNMngu8/QnvK/co84 U+jw== X-Gm-Message-State: ACrzQf1RPpxtWY0b59ieGZJG+OoC2qFHJSKzutaKwR7xd7SYaCT+EpQO XpqEVGiyjMoMpWQc7q6stCfF8jEV9YWG2Dmu8JB4g5TQ X-Google-Smtp-Source: AMsMyM4e2OdrBtSd2HXPUc+jaqC7ckNdPU/2BzrLxR5+AG66UmT5Y/OjpdCQ3Ir1eKQ0SLRTOX8UpQ4O3zYw3Y9amfY= X-Received: by 2002:a67:fad5:0:b0:3a6:5bc5:ffd8 with SMTP id g21-20020a67fad5000000b003a65bc5ffd8mr14641375vsq.23.1666440532657; Sat, 22 Oct 2022 05:08:52 -0700 (PDT) MIME-Version: 1.0 References: <0986a08f-c28f-882c-8236-f5f3ecc5cb6a@bothner.com> <3077976f-5161-3069-f540-5fb79ef95665@bothner.com> In-Reply-To: From: Panicz Maciej Godek Date: Sat, 22 Oct 2022 14:08:40 +0200 Message-ID: Subject: Re: Building for Android To: Per Bothner Cc: kawa@sourceware.org Content-Type: multipart/alternative; boundary="000000000000fd0bf705eb9e6b47" X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --000000000000fd0bf705eb9e6b47 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable It perhaps might have something to do with the fact, that I override the "cons" operator with my own one, which uses eq? as equals, and Java's default hash functions for objects: https://github.com/panicz/grasp-android/blob/master/stages/retreat/GRASP/sr= c/primitive.scm#L151 sob., 22 pa=C5=BA 2022, 11:31 u=C5=BCytkownik Panicz Maciej Godek < godek.maciek@gmail.com> napisa=C5=82: > This is weird. > Without the patch, the only complaint concerns the identifiers - and if I > rename them to legal Java identifiers, everything works fine. > > However, when I apply the patch and try to run the editor, I get the > following: > > java.lang.RuntimeException: wrong number of indexes 0 to 1-rank array > at > gnu.lists.AbstractSequence.badRank(AbstractSequence.java:55) > at gnu.lists.AbstractSequence.checkRank(AbstractSequence.java:51) > at > gnu.lists.AbstractSequence.effectiveIndex(AbstractSequence.java:84) > at gnu.lists.AbstractSequence.getInt(AbstractSequence.java:173) > at cons.hashCode(primitive.scm:156) > at > java.base/java.util.WeakHashMap.hash(WeakHashMap.java:303) > at java.base/java.util.WeakHashMap.getEntry(WeakHashMap.java:432) > at > java.base/java.util.WeakHashMap.containsKey(WeakHashMap.java:423) > at hash$Mntable.hashRef$Pl$V(hash-table.scm:21) > at hash$Mntable.hashRef$Pl$check(hash-table.scm:20) > at > gnu.mapping.CallContext.runUntilValue(CallContext.java:656) > at gnu.mapping.Procedure.apply3(Procedure.java:167) > at space.getter$2(space.scm:504) > at space.getter$2$check(space.scm:504) > at > gnu.mapping.CallContext.runUntilValue(CallContext.java:656) > at gnu.mapping.Procedure.apply1(Procedure.java:154) > at > gnu.kawa.functions.ApplyToArgs.apply2(ApplyToArgs.java:52) > at parse$frame1.lambda5addElement$Ex(parse.scm:183) > at parse.readList(parse.scm:275) > at parse.readList(parse.scm) > at > parse.readList(parse.scm:223) > at parse.readList(parse.scm) > at parse.readList$check(parse.scm:165) > at > gnu.mapping.CallContext.runUntilValue(CallContext.java:656) > at gnu.mapping.Procedure.apply0(Procedure.java:148) > at parse.parseDocument(parse.scm:291) > at parse.parseDocument(parse.scm:289) > at > parse.parseDocument$check(parse.scm:288) > at > gnu.mapping.Procedure.applyToConsumerDefault(Procedure.java:75) > at > gnu.kawa.functions.ApplyToArgs.applyToConsumerA2A(ApplyToArgs.java:132) > at gnu.mapping.CallContext.runUntilDone(CallContext.java:586) > at > gnu.mapping.CallContext.runUntilValue(CallContext.java:669) > at gnu.mapping.Procedure.apply1(Procedure.java:154) > at conversions$frame0.lambda2(conversions.scm:14) > at > conversions$frame0.lambda2$check(conversions.scm:12) > at gnu.mapping.CallContext.runUntilValue(CallContext.java:656) > at gnu.mapping.Procedure.apply1(Procedure.java:154) > at > kawa.lib.ports.callWithInputString(ports.scm:154) > at conversions.withInputFromString(conversions.scm:12) > at > conversions.withInputFromString$check(conversions.scm:10) > at gnu.mapping.CallContext.runUntilValue(CallContext.java:656) > at gnu.mapping.Procedure.apply2(Procedure.java:160) > at > atInteractiveLevel$Mn3.run(primitive-terminal-client.scm:48) > at gnu.expr.ModuleExp.evalModule2(ModuleExp.java:290) > at kawa.Shell.run(Shell.java:300) > at kawa.Shell.runFile(Shell.java:562) > at > kawa.Shell.runFileOrClass(Shell.java:485) > at kawa.repl.processArgs(repl.java:298) > at kawa.repl.main(repl.java:830) > > The exception clearly comes from my code. It's a bit convoluted to explain > what's going in there, but if you'd like to take a glimpse, you can find = it > here: > > > https://github.com/panicz/grasp-android/tree/master/stages/retreat/GRASP/= src > > Android isn't required to run any of these. You can either try running > ./grasp-terminal (in vt100-compatible terminal with unicode) > ./grasp-desktop (with AWT) > or > ./primitive-terminal-client (in terminal) > > > sob., 22 pa=C5=BA 2022, 08:26 u=C5=BCytkownik Per Bothner napisa=C5=82: > >> >> >> On 10/21/22 12:45, Panicz Maciej Godek wrote: >> > During its compilation, Kawa issues the following warning: >> > >> > subclass-refering-to-mangled-superclass-property.scm:6:4: warning - no >> declaration seen for mangled-name >> >> The attached patch seems to fix it. >> >> -- >> --Per Bothner >> per@bothner.com http://per.bothner.com/ > > --000000000000fd0bf705eb9e6b47--