From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mail-a.sr.ht; dkim=pass header.d=maniero.me header.i=@maniero.me Received: from insect.birch.relay.mailchannels.net (insect.birch.relay.mailchannels.net [23.83.209.93]) by mail-a.sr.ht (Postfix) with ESMTPS id 4D82920228 for <~johnnyrichard/olang-devel@lists.sr.ht>; Tue, 27 Feb 2024 15:44:58 +0000 (UTC) X-Sender-Id: hostingeremail|x-authuser|carlos@maniero.me Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id D79A3841B89 for <~johnnyrichard/olang-devel@lists.sr.ht>; Tue, 27 Feb 2024 15:44:54 +0000 (UTC) Received: from uk-fast-smtpout2.hostinger.io (unknown [127.0.0.6]) (Authenticated sender: hostingeremail) by relay.mailchannels.net (Postfix) with ESMTPA id 12D58843369 for <~johnnyrichard/olang-devel@lists.sr.ht>; Tue, 27 Feb 2024 15:44:53 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1709048694; a=rsa-sha256; cv=none; b=U1A/xUqGNIqxE+dUH0weH6kKhu9ZH3Q6N9H2Cmi9EKhbg7dqNSQdTCZBBqRlYXvyNguqle 1+YuXMIqkyLQsDJJgoSojDDxDTlCHdC8Ua6M0TqJhn3LyyDP00q8A+YJYoS7sk7DCx4O62 vEB0Z77ERbA7SuNw20r6wPOyGu6jfIVTdXBVpw9GpTB6kjkWUdbP1SgDsRn/BXJOPOeoyX Xb17yQK9BA8VvXfndgzm13NyC2hRt3h8whrUiPViILzpjX2+g7ivUCbdYkqpI6mnHbgRWJ UxK52uGLUQL/7+DlZcftRB+HmymWO7MQ2F2tKLPJz7vGAQcJPSGgNk/YIjWVHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1709048694; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=g0QCUXyDJyl4S7HXw+4V86VZ6Da/2gUY77PtN/Zthmw=; b=kpej7KGjdPyYleGfd6vSyq9zfY2HsBdPthotvzW89A0Wvb7CXkDdJBjkWOy8OkUQ2P3xU5 qGd3+T3zqSGvrRadLws7bGgBnR6eon+GlhuGfcQDwGezJLtLJZ3Zhs8pq2xIzgdYxwUJj8 3bl4sgNlcq6rHAXjKESq68/3WVe424fPDyI7szJufAX5IOVqJVRNoL0HIOI8HuiDkl0l4a hCEzIVULVTCKXV2q6C/Kyf7I6Xe2Nu5c5qnO7mxi3vkkorKdVDX8Ep+yb6v0flWoQhxo5T JPm+ZZsQ/9WtYTrPt5gh2nD3Mfhyz5jED7KSPGC6dAI8dBf81JWsyDPaHNOtTQ== ARC-Authentication-Results: i=1; rspamd-7f9dd9fb96-g765t; auth=pass smtp.auth=hostingeremail smtp.mailfrom=carlos@maniero.me X-Sender-Id: hostingeremail|x-authuser|carlos@maniero.me X-MC-Relay: Neutral X-MailChannels-SenderId: hostingeremail|x-authuser|carlos@maniero.me X-MailChannels-Auth-Id: hostingeremail X-Cooing-Army: 46a3dab5402a52d9_1709048694659_2342980715 X-MC-Loop-Signature: 1709048694659:981617157 X-MC-Ingress-Time: 1709048694658 Received: from uk-fast-smtpout2.hostinger.io (uk-fast-smtpout2.hostinger.io [31.220.23.36]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.104.192.70 (trex/6.9.2); Tue, 27 Feb 2024 15:44:54 +0000 Mime-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maniero.me; s=hostingermail1; t=1709048692; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=g0QCUXyDJyl4S7HXw+4V86VZ6Da/2gUY77PtN/Zthmw=; b=VKTfmi6U9e/aiqAxsrs2ybqgHzFgFL+Q+a3lYRCaPbfEx2CZRxHHmhDU2baVg69+DbWbea WEsyxUIJXOgK4gCkJsQn2fxhMPL+AlNuyEnQ9N8qUrLNh1AkyEiQ6VIsusDQv2RJclxX0u VZbOcCSDdly2tl61ukrpQGrHgCZKRhPUrE6pgIUaG5taKoNIGCferUI0IPM9FsoX8T77hp uvChUlFOTnoeXzK723pqpt9I2ex3+kt2pBF3jgRQLapasNJpH/vrkDBr+iojmTYeYTJHXv WTCNTn6Hvzi5dI6ikioyOqoKRJj/n0Pjx0+8dgK3MBmI5G7a4DojmqMWxlI3fw== Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Tue, 27 Feb 2024 12:44:47 -0300 Message-Id: From: "Carlos Maniero" To: "Johnny Richard" , <~johnnyrichard/olang-devel@lists.sr.ht> Subject: Re: [PATCH olang] cli: replace memory allocation malloc -> arena X-Mailer: aerc 0.15.2-211-g37d5fc691aff References: <20240222191007.78350-1-johnny@johnnyrichard.com> In-Reply-To: <20240222191007.78350-1-johnny@johnnyrichard.com> X-CM-Envelope: MS4xfI2Fiwov1yjBJNiw+rvDjCJdMopGfGMicH2j6GlxdMrY9YkvCKw2dTuKLdlDHkq4W7ofW9r3JlJ6PovJ0+ptlxATu7N92EZADOaQFSJuffz4KCxHA1UD 6KVo3EqHucexhG1u+8PxsbEmcqVlqyPSTkUX71p4Q52MRCZgFXUkbKTa32A00Kq3a3l9h+/O2ZWuNTQQTio3lZ9BwtVLuKRH6aeeA3S0f86rUxIVX6yRfNkx VrcbeX1iTFmzBcW/wcCWdQ== X-CM-Analysis: v=2.4 cv=WakKaVhX c=1 sm=1 tr=0 ts=65de0373 a=5+VMC1FZ3J4mVPAKpPmAqg==:117 a=5+VMC1FZ3J4mVPAKpPmAqg==:17 a=IkcTkHD0fZMA:10 a=MKtGQD3n3ToA:10 a=1oJP67jkp3AA:10 a=BXDaF_L80NYA:10 a=vhUd-WTthcZC1iscZVkA:9 a=QEXdDO2ut3YA:10 X-AuthUser: carlos@maniero.me X-TUID: sy6b5naqybK/ > diff --git a/src/0c.c b/src/0c.c > index 978b770..f0ac974 100644 > --- a/src/0c.c > +++ b/src/0c.c 0c.c no longer exists > +#define ARENA_CAPACITY (1024 * 1024) Can you add a TODO comment to us to remember to solve this issue in the feature? We can both make a algorithm to predict how much memory we gonna need or make arena expandable.