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_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,NICE_REPLY_A autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 14014 invoked from network); 6 Aug 2021 11:42:45 -0000 Received: from 1ess.inri.net (216.126.196.35) by inbox.vuxu.org with ESMTPUTF8; 6 Aug 2021 11:42:45 -0000 Received: from mail-lf1-f52.google.com ([209.85.167.52]) by 1ess; Fri Aug 6 07:36:33 -0400 2021 Received: by mail-lf1-f52.google.com with SMTP id b6so963230lff.10 for <9front@9front.org>; Fri, 06 Aug 2021 04:36:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=Lyf+o/BDm1btaZS3CgIYciR5YA06oyaDNFU1oHEre2s=; b=WPuqtvDai4nIQSrGU1tKe24hvMZwKUoURj0V6LQx+5V5XaVheNGkdN+USt3FjHht9O Z4z/jpGIIIGPVCJN0+WMZRfICOx3poJ8W+gRWzOhQXIf/fKMgh7UVLTcuvzMKOYr3Yxf 5R6RZy7vy+grgGCIFtcGFAi4of5Nz+jW8MWVqZqDoVDaSHIsmRRxyNN4/sdGnC1PZzYP MdZ+yDTLLJsI3CT2Xz+PAakuUA9IYmXmDD2bU7RmeDF1KrSkKX5ZW6FLLgPwRiIbMRgs plHv7C3s9mqfhYBxVrGrVVulf0jzbw+817GuIQkx0h73JUT45yOyRCvGy5BEbbx2GR1w TNqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=Lyf+o/BDm1btaZS3CgIYciR5YA06oyaDNFU1oHEre2s=; b=ncN/n6zjNy1FskozD5ffY7x2fPogZJmdG+x9RFsNjy52qAGN31c1q9j1sDmgMGMA/E 1HgZg/MEOzuoUzrW0wwe4z+APPe/QUQJ3CiCLtGC9ckkIULhVDNMhfxQUv48XQypvA8Y uBRlFexhKPJolAxyBwv5BiiAIgkF5FNl3cvqQ5MlWn1uxHwbUIODaSArJi4DtQHafbnF vgmZshxk/d8UPjJ7fNWoi/eo1OGTyDFASUP0sdqZudTDhNzW3crYIbeQde/s7vGWWIgM nPoF3ErCTYPdNaPvBmmNG0n6ezaPXO+DIwf73M8+HHGr6tZuc+ngFGnIYKKJ+tMElemi 7E+Q== X-Gm-Message-State: AOAM533J4iM9OLJdvIhmAz/eCxRv1t0kxmJIOVyNqyFN/WB8PWQztVyR KMQB+pE+xZYv427pLUozlIkxHCVV8Xk= X-Google-Smtp-Source: ABdhPJz7JVfn43hv2AzpGbUbD2okfrxwpwdKLXZDvUPWwqjmgCYXbN/pWj3hEoZPA2fu2FB7ZH4x3A== X-Received: by 2002:a2e:a90b:: with SMTP id j11mr6189615ljq.475.1628248291009; Fri, 06 Aug 2021 04:11:31 -0700 (PDT) Return-Path: Received: from [192.168.1.165] (178235039084.elblag.vectranet.pl. [178.235.39.84]) by smtp.gmail.com with ESMTPSA id i8sm803306lfu.55.2021.08.06.04.11.30 for <9front@9front.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 06 Aug 2021 04:11:30 -0700 (PDT) To: 9front@9front.org References: <981ff1ef-7de9-4b86-b481-17c586c1848e@posteo.net> From: Adrian Siekierka Message-ID: <20cccf71-092d-fe36-2933-6b3fe6bb5caa@gmail.com> Date: Fri, 6 Aug 2021 13:11:31 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: <981ff1ef-7de9-4b86-b481-17c586c1848e@posteo.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: CSS pipelining-based package-scale interface Subject: Re: [9front] Nim lang, C alignment support Reply-To: 9front@9front.org Precedence: bulk Hello, The Nim garbage collector? I hope you're opting into ARC/ORC instead - that's the one the Nim development team is pushing for (the former is reference counting with RAII elements; the latter is that combined with a dedicated garbage collector just for resolving references which may contain cycles). I think Araq might be interested in patches which improve the portability of the C code they output, but you'd have to ask. Adrian "asie" Siekierka On 8/6/21 12:52 PM, Emery wrote: > Hi, > > I've been try to port the Nim language to Plan 9 and so far it works with > one exception. Most pure Nim code can be compiled to a C form that can be > built by the native compilers (no APE), but the Nim garbage collector > uses the alignment features of GCC/LLVM/VCC. Programs run until the first > garbage collection and then things go to shit. > > Are there C compilers with alignment control (C11?) available for 9Front? > Is there any interest in backporting alignas or alignof to 6c? > An alternative would be to port Nim to C99. > > There might not be any interest in Nim within the Plan 9 community but > I would prefer to be writing and testing my projects on 9Front. > > > Cheers, > Emery > > > https://nim-lang.org/ > > The alignment macros: > https://github.com/nim-lang/Nim/blob/v1.4.8/lib/nimbase.h#L548 > > Expected behavior: > https://raw.githubusercontent.com/nim-lang/Nim/devel/tests/align/talign.nim > > > Useless Plan 9 port: > https://github.com/nim-lang/Nim/compare/v1.4.8...ehmry:plan9 >