From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id gPwCKwz+BWbYawEAe85BDQ:P1 (envelope-from ) for ; Fri, 29 Mar 2024 00:32:28 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id gPwCKwz+BWbYawEAe85BDQ (envelope-from ) for ; Fri, 29 Mar 2024 00:32:28 +0100 X-Envelope-To: patches@johnnyrichard.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=lists.sr.ht header.s=20240113 header.b="llM/XHRa"; dkim=pass header.d=johnnyrichard.com header.s=key1 header.b=Qv4dCwfA; spf=pass (aspmx1.migadu.com: domain of lists@sr.ht designates 46.23.81.152 as permitted sender) smtp.mailfrom=lists@sr.ht; dmarc=pass (policy=quarantine) header.from=johnnyrichard.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=johnnyrichard.com; s=key1; t=1711668748; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=WtiEI05DlsGEJlxncrUFAqHg+L7BOXMzzCTIwzB/KT4=; b=2+f3flG6nqwQQILpvFnxNM1MEdAPiwpsBfrP8XoF52vkVU8Amdz22nR7HnhoNGMTr+5XWp d7Mr3bRYWFydJMRx7wkxtLvk2uyuxmQMSzBte+hYUa3ZsIND9qpYQlOpUbWWv7OlgWMq3J zdQDGaV84Y52l5AxJOqFVJCZWqgHLwE3HUbQBYqcHGsOw5KgXbcN1N881GVH78u5KYRyLs VbUoa6fAI5IHnuvaf5wuxNt783k3YYsFb/sfQfg66V3kbHK19EMBKH65VIZ9ZxdwUcva1K 9o9+tYNtwV/j+FGXAFskaiH8MT+xX+V+g7+mtH3TXXMYZ3xjiqBfYok4YYM+xA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=lists.sr.ht header.s=20240113 header.b="llM/XHRa"; dkim=pass header.d=johnnyrichard.com header.s=key1 header.b=Qv4dCwfA; spf=pass (aspmx1.migadu.com: domain of lists@sr.ht designates 46.23.81.152 as permitted sender) smtp.mailfrom=lists@sr.ht; dmarc=pass (policy=quarantine) header.from=johnnyrichard.com ARC-Seal: i=1; s=key1; d=johnnyrichard.com; t=1711668748; a=rsa-sha256; cv=none; b=hX0xFAw/TMtBLWbJm8vRi13XRZykyfIU6ofWrkJo+kJ8MMKABgsDREkYJ83ETy2csnyYsd dKGeC0qprvS5AOSDIMXPOaXnTvgnbS33qhOH8ZPdseHYElHW53o6qtqdvOVQx+YZBwp+bm cqMzgNnkV1N/PVlmIwOsdtS5vKvTUobu/xDZgy/JaVaifXsxGJiAqCUYb+h33oQ1tpxWYk Ikk6hfFXfr+j2dMOG82vq8opvsOs7EzX8LIOM6I+Hy94xZlrRCUuwSqAXv7gLFQLJvnuY5 YCn5+gO8sI+w4ncFjljPJUQfmwAMn33ycA/UhqPVDu1f6yq0BDXr1OR5hfSPQw== Received: from mail-a.sr.ht (mail-a.sr.ht [46.23.81.152]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 37BF96BC57 for ; Fri, 29 Mar 2024 00:32:28 +0100 (CET) DKIM-Signature: a=rsa-sha256; bh=AyW7Q6YV6ycA7Rlw7sCjVDrB/+1zwhC1BRM7YLXYmA4=; c=simple/simple; d=lists.sr.ht; h=From:To:Cc:Subject:Date:List-Unsubscribe:List-Subscribe:List-Archive:List-Post:List-ID; q=dns/txt; s=20240113; t=1711668748; v=1; b=llM/XHRac/ReARlLzUWpdQEbRV+dHn+2KjrpfadO1z+90w393JCBsWfCED0BWFepRFd5Zs5U 0ASW4uEmnqLVkY2El1xsc+LNnpAEhJvKOE7S1REeW56osKLGUBCB9qCHMadL8sd4XuHv1p2WXQH zodIeLf+i2vl3I611V8yXXWOjbhqPR71sREsNmckuKvHM7CFvF5YdL9761jkqfMajznDiRa2wo4 1GQv49Th4gvq6gER+p9D4InkoD/dqf84OSGu4JlwJHvLB0gYE6pu4pynW5owMVmyy4QBT3hSDft oRcOo44LdX/59KI1E8KSwYPsBJ64g/YCZowhGuV1mjNVw== Received: from lists.sr.ht (unknown [46.23.81.154]) by mail-a.sr.ht (Postfix) with ESMTPSA id F321720344 for ; Thu, 28 Mar 2024 23:32:27 +0000 (UTC) Received: from out-177.mta0.migadu.com (out-177.mta0.migadu.com [IPv6:2001:41d0:1004:224b::b1]) by mail-a.sr.ht (Postfix) with ESMTPS id 2F4F42033E for <~johnnyrichard/olang-devel@lists.sr.ht>; Thu, 28 Mar 2024 23:32:27 +0000 (UTC) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=johnnyrichard.com; s=key1; t=1711668746; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=WtiEI05DlsGEJlxncrUFAqHg+L7BOXMzzCTIwzB/KT4=; b=Qv4dCwfAWpk8Geewl7/JSmNI7jNktxbTBkZO2923BQL+n2QeHLBjgEpyuGPJ8m9Y+5cyg5 mxQGAz8GC0X0KHNqmEgsqKCrs30ZFSYk5n30lRu0ASna7fZgg5p+0g9pywgksHJd2aVYXO INdaTQScr2aqMvPevPNvpR5YEfCcUa35V3npFP2vJin6Sa7MaTnTxtQXKLzDhJ5Ejx7Hqm 0mL3IPDStgP0joDTMgWi00WWgxv8om8Um6VMzN5zc4yZY3TSQDmjcPj9Z9A55N1f6W8Vi8 2HnfGnOplZSOXe3T3U3eOzvx0iHJUYpnPU6XOMcEkY/bPAvY70RURDw52JRw0g== From: Johnny Richard To: ~johnnyrichard/olang-devel@lists.sr.ht Cc: Johnny Richard Subject: [PATCH olang] site: change look and feel and rewrite home introduction section Date: Fri, 29 Mar 2024 01:33:05 +0100 Message-ID: <20240329003309.650189-1-johnny@johnnyrichard.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Sourcehut-Patchset-Status: PROPOSED List-Unsubscribe: List-Subscribe: List-Archive: Archived-At: List-Post: List-ID: ~johnnyrichard/olang-devel <~johnnyrichard/olang-devel.lists.sr.ht> Sender: ~johnnyrichard/olang-devel <~johnnyrichard/olang-devel@lists.sr.ht> X-Migadu-Country: NL X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 37BF96BC57 X-Spam-Score: -9.61 X-Migadu-Spam-Score: -9.61 X-Migadu-Scanner: mx10.migadu.com X-TUID: I/JPc9dgIKsL Signed-off-by: Johnny Richard --- docs/index.md | 34 +++++++--------------- docs/pages/{hacking.md => contribute.md} | 7 ++--- docs/pages/getting-started.md | 2 +- docs/template.html | 37 +++++++++++++++++------- src/pretty_print_ast.c | 2 +- 5 files changed, 42 insertions(+), 40 deletions(-) rename docs/pages/{hacking.md => contribute.md} (97%) diff --git a/docs/index.md b/docs/index.md index 1a28069..82c4ef3 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1,27 +1,15 @@ -% Welcome to olang documentation +% Introduction -The O Programming Language. +**[WARNING] THIS SOFTWARE IS UNFINISHED AND NOT PRODUCTION READY** -## olang manifest +The O language is a system programming language crafted to be remarkably simple +and flexible. It stands not as a replacement for C, but rather as a +complementary counterpart, as both can coexist within the same source code. O +language boasts minimal abstraction, ensuring seamless integration with C and +almost predictable machine code. -We, as developers, value the modern programming languages that allow us to -produce reliable code in a short time span. However, we, as programmers, also -lament that these same languages have diminished the joy of programming by -imposing unnecessary constraints and complexities on our creative expression. +olang is a deterministic system language that follows tree principles: -That is why we are creating a new programming language that may not be suitable -for most commercial applications, but that can be enjoyed in the places where -it is meant to be used: on system applications. - -olang is a deterministic system language that follows two principles: - -- **olang fights complexity** by providing a simple syntax with a low level of abstraction; -- **olang doesn't babysit programmers** and therefore the compiler only checks semantics. - -olang maintainers - -### Subscribe olang's development mailing list. - -If you want to subscribe to the mailing list, you can achieve it by sending an -email to -[~johnnyrichard/olang-devel+subscribe@lists.sr.ht](mailto:~johnnyrichard/olang-devel+subscribe@lists.sr.ht?subject=Subscribe&body=Subscribe) +- **fights complexity** by providing a simple syntax with a low level of abstraction. +- **doesn't babysit programmers**, it gives you the freedom of shooting your own foot. +- **aims easy maintainability** by providing a syntax with a low refactoring overhead. diff --git a/docs/pages/hacking.md b/docs/pages/contribute.md similarity index 97% rename from docs/pages/hacking.md rename to docs/pages/contribute.md index fe8f705..884c4b4 100644 --- a/docs/pages/hacking.md +++ b/docs/pages/contribute.md @@ -1,11 +1,10 @@ -% Hacking +% Contribute We're thrilled to have you here! Your interest in making olang the most exceptional and straightforward language ever is greatly appreciated. -In this document, we'll outline how you can begin contributing to olang. - -First and foremost, clone the project if you haven't done so already. +In this document, we'll outline how you can begin contributing to olang. First +and foremost, clone the project if you haven't done so already. ``` {.sh} git clone https://git.sr.ht/~johnnyrichard/olang diff --git a/docs/pages/getting-started.md b/docs/pages/getting-started.md index af258df..eb4822a 100644 --- a/docs/pages/getting-started.md +++ b/docs/pages/getting-started.md @@ -1,3 +1,3 @@ -% Getting stated (WIP) +% Getting stated WIP diff --git a/docs/template.html b/docs/template.html index 52a22d1..774ab49 100644 --- a/docs/template.html +++ b/docs/template.html @@ -21,8 +21,7 @@ body { background: var(--background-color); color: var(--text-color); - font-family: monospace; - font-size: 1.1rem; + font-size: 1.4rem; margin: 0; padding: 0 40px; } @@ -33,8 +32,18 @@ max-width: 1024px; margin: 10px auto; } - header, footer { - margin: 70px auto; + header > h1 { + font-weight: normal; + } + nav, header > h1 { + text-align: center; + } + header { + margin-top: 70px; + margin-bottom: 20px; + } + footer { + margin: 20px auto; } article { line-height: 1.75rem; @@ -47,19 +56,25 @@ padding: 10px; max-width: 100%; overflow: auto; + font-size: large; + } + + .logo-name { + font-size: 3.2rem; + font-weight: bold; }
-

olang | The O Programming Language

+

olang | O Programming Language

diff --git a/src/pretty_print_ast.c b/src/pretty_print_ast.c index e950796..129f090 100644 --- a/src/pretty_print_ast.c +++ b/src/pretty_print_ast.c @@ -26,7 +26,7 @@ #define ANSI_COLOR_MAGENTA "\x1b[35m" #define ANSI_COLOR_RESET "\x1b[0m" -#define PP_IS_BIT_SET(data, index) ((data)&1 << index) +#define PP_IS_BIT_SET(data, index) ((data) & 1 << index) typedef struct pretty_print_node { -- 2.44.0