Full content update.
This commit is contained in:
parent
d07121a819
commit
1bcf9c3c12
19 changed files with 174 additions and 151 deletions
|
|
@ -1,6 +1,6 @@
|
|||
document_root: /var/www/fun-lang.xyz/www/htdocs/
|
||||
data_dir: /var/www/fun-lang.xyz/www/htdocs/
|
||||
title: fun> :load
|
||||
title: fun>
|
||||
subtitle: The programming language that makes you have fun!
|
||||
description: The programming language that makes you have fun!
|
||||
keywords:
|
||||
|
|
@ -27,7 +27,7 @@ libdir: /var/www/fun-lang.xyz/www/lib
|
|||
|
||||
mastodon: https://fosstodon.org/@fun
|
||||
|
||||
truncatewords_length: 10000
|
||||
truncatewords_length: 100000
|
||||
|
||||
# Set to your git root and branch to show a link to the file source in the footer. Unset to disable.
|
||||
git: https://git.xw3.org/fun/fun/
|
||||
|
|
@ -48,8 +48,8 @@ cookiebanner_link_text: Privacy Policy
|
|||
cookiebanner_link: /privacy/
|
||||
|
||||
paginate: 2
|
||||
paginate_path: /blog/page/:num/
|
||||
permalink: /blog/:year/:month/:day/:title/
|
||||
paginate_path: /page/:num/
|
||||
permalink: /:year/:month/:day/:title/
|
||||
|
||||
markdown: kramdown
|
||||
highlighter: rouge
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
<!--<p style="text-align:center;">{% if site.git %}Source: <a href="{{ site.git }}{{ site.branch }}{{ page.path }}" class="git" target="_blank">{{ site.git }}{{ site.branch }}{{ page.path }}</a>{% endif %}</p>-->
|
||||
<h2 style="display:none;">Navigation</h2>
|
||||
<ul style="list-style:none;margin-left:0px;text-align:center;">
|
||||
<li style="display:inline;"><a href="/" style="text-decoration:none;" title="Root" class="home">Root</a> -</li>
|
||||
<li style="display:inline;"><a href="/" style="text-decoration:none;" title="Homepage" class="home">Homepage</a> -</li>
|
||||
<li style="display:inline;"> <a href="/contact/" style="text-decoration:none;" title="Contact" class="mail">Contact</a> -</li>
|
||||
<li style="display:inline;"> <a href="/community/code-of-conduct/" style="text-decoration:none;" title="Code of Conduct" class="love">Code of Conduct</a> -</li>
|
||||
<li style="display:inline;"> <a href="/privacy/" style="text-decoration:none;" title="Privacy" class="privacy">Privacy</a> -</li>
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="revisit-after" content="7 days">
|
||||
<meta name="robots" content="index,follow">
|
||||
<link rel="alternate" type="application/rss+xml" title="Blog Feed - {{ site.title }}" href="{{ site.url }}/blog/feed/">
|
||||
<link rel="alternate" type="application/rss+xml" title="Blog Feed - {{ site.title }}" href="{{ site.url }}/feed/">
|
||||
<link rel="canonical" href="{{ site.url }}{{ page.url | replace:'index.html','' }}">
|
||||
<link rel="shortcut icon" type="image/png" href="/favicon.png">
|
||||
<link rel="stylesheet" type="text/css" href="/css/cookieconsent.min.css">
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<header class="site-header">
|
||||
<div class="wrapper">
|
||||
<a class="site-title" href="/"><img src="/images/fun.png" alt="{{ site.title }}" style="border-radius: 12px; margin: 9px 0 18px 0" title="Fun"></a>
|
||||
<nav class="site-nav">
|
||||
<nav class="site-nav" style="border-radius:8px;">
|
||||
<a href="#" class="menu-icon"><span>≡</span></a>
|
||||
<div class="trigger">
|
||||
<h2 style="display:none;">Navigation</h2>
|
||||
|
|
@ -9,12 +9,11 @@
|
|||
<li><a class="page-link" href="/" style="text-decoration:none;" title="/">/</a></li>
|
||||
<li><a class="page-link" href="/about/" style="text-decoration:none;" title="/about/">/about/</a></li>
|
||||
<li><a class="page-link" href="/community/" style="text-decoration:none;" title="/community/">/community/</a></li>
|
||||
<li><a class="page-link" href="/contact/" style="text-decoration:none;" title="/contact/">/contact/</a></li><!--
|
||||
<li><a class="page-link" href="/development/" style="text-decoration:none;" title="/development/">/development/</a></li>
|
||||
<li><a class="page-link" href="/contact/" style="text-decoration:none;" title="/contact/">/contact/</a></li>
|
||||
<!--<li><a class="page-link" href="/development/" style="text-decoration:none;" title="/development/">/development/</a></li>-->
|
||||
<li><a class="page-link" href="/documentation/" style="text-decoration:none;" title="/documentation/">/documentation/</a></li>
|
||||
<li><a class="page-link" href="/examples/" style="text-decoration:none;" title="/examples/">/examples/</a></li>-->
|
||||
<li><a class="page-link" href="/faq/" style="text-decoration:none;" title="/faq/">/faq/</a></li>
|
||||
<li><a class="page-link" href="/handbook/" style="text-decoration:none;" title="/handbook/">/handbook/</a></li>
|
||||
<!--<li><a class="page-link" href="/examples/" style="text-decoration:none;" title="/examples/">/examples/</a></li>-->
|
||||
<!--<li><a class="page-link" href="/faq/" style="text-decoration:none;" title="/faq/">/faq/</a></li>-->
|
||||
<!--
|
||||
<li>----------------</li>
|
||||
<li><a class="page-link" href="/account/" style="text-decoration:none;" title="/account/">/account/</a></li>
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ layout:
|
|||
</div>
|
||||
|
||||
<p style="text-align: center; color: #e8e8e8; font-size: 12px;">
|
||||
Page generated at: {{ site.time | date: "%b %-d, %Y" }} ({{ site.time | date: "%Z" }}) using Jekyll and xw3 on {{ site.os }}
|
||||
Page generated at: {{ site.time | date: "%b %-d, %Y" }} ({{ site.time | date: "%Z" }}) using <a href="https://jekyllrb.com/">Jekyll</a> and <a href="https://git.xw3.org/xw3/xw3">xw3</a> on {{ site.os }}
|
||||
</p>
|
||||
|
||||
<script src="/js/sorttable-2.min.js" charset="utf-8"></script>
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ layout: default
|
|||
|
||||
<div class="post">
|
||||
<header class="post-header">
|
||||
<h1 class="post-title" id="terminal">{{ site.title }} {{ page.url }}index.fun</h1>
|
||||
<h1 class="post-title" id="terminal">{{ site.title }} {{ page.title }}</h1>
|
||||
<p class="post-meta" style="padding: 0px 0px 0px 0px;">{% if page.date %}{{ page.date | date: "%b %-d, %Y %H:%M:%S" }}{% endif %}
|
||||
{% if page.date and page.date_updated %} - {% endif %}
|
||||
{% if page.date_updated %}Edited: {{ page.date_updated | date: "%b %-d, %Y %H:%M:%S" }}{% endif %}
|
||||
|
|
|
|||
21
_posts/2025-10-08-init.md
Normal file
21
_posts/2025-10-08-init.md
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
---
|
||||
layout: post
|
||||
published: true
|
||||
author: hanez
|
||||
title: Init Fun!
|
||||
description: Blog - Init Fun!
|
||||
date: 2025-10-05
|
||||
_date_updated: 2024-02-07
|
||||
categories:
|
||||
- news
|
||||
- project
|
||||
tags:
|
||||
- fun
|
||||
- programming
|
||||
- static
|
||||
- dynamic
|
||||
- language
|
||||
---
|
||||
|
||||
Initial homepage... no content actually!
|
||||
|
||||
|
|
@ -2,8 +2,11 @@
|
|||
layout: post
|
||||
published: true
|
||||
author: hanez
|
||||
noToc: false
|
||||
title: Announcing Fun 0.37.62
|
||||
date: 2026-02-25
|
||||
description: Homepage and Blog
|
||||
date: 2026-01-25
|
||||
date_updated: 2026-01-26
|
||||
categories:
|
||||
- news
|
||||
- project
|
||||
|
|
@ -15,21 +18,24 @@ tags:
|
|||
- language
|
||||
---
|
||||
|
||||
## Announcing Fun 0.37.62: The Programming Language That Makes You Have Fun!
|
||||
### First at all! Special thanks go to my wonderful girlfriend Sabine, my friends [Armin](https://m2m.pm/){:class="ext"} and [Ole](https://schizzoteam.org/){:class="ext"}, who motivated me over the past month to implement this. Cheers! Markus, I miss YOU, R.I.P!
|
||||
|
||||
We're excited to announce the release of Fun version 0.37.62, the latest iteration of our experimental programming language that prioritizes simplicity, consistency, and—most importantly—joy in coding.
|
||||
We're excited to announce the release of Fun version 0.37.62, the latest iteration of our experimental programming language that prioritizes simplicity, consistency, and most importantly — joy in coding.
|
||||
|
||||
## What's Fun All About?
|
||||
### What's Fun All About?
|
||||
|
||||
Fun is a highly strict yet highly simple programming language that draws inspiration from Bash, C, Lua, PHP, Python, and Rust. If you love Python's clean syntax but want something with stricter rules and built-in type safety, Fun might be worth exploring. It's dynamically typed with optional static typing, written in C (C99) and Fun itself, and designed to be small, embeddable, and hackable.
|
||||
Fun is a highly strict yet highly simple programming language that draws inspiration from Bash, C, Lua, PHP, Python, and Rust. If you love Python's clean syntax but want something with stricter rules and built-in type safety, Fun might be worth exploring. It's dynamically typed with optional static typing, written in C (C99) and Fun itself, and designed to be small, embeddable, and hackable. More on the [about](/about/) page.
|
||||
|
||||
## Important: This is an Experiment
|
||||
Please note: Fun is an experimental language and should be treated as such. While Fun works, it has many known and unknown bugs. We will not declare Fun as stable until we reach the 1.0 release. This is a project born out of curiosity and passion for elegant code, not production readiness—at least not yet.
|
||||
### Important: This is an Experiment
|
||||
|
||||
## What Makes Fun... Fun?
|
||||
Please note: Fun is an experimental language and should be treated as such. While Fun works, it has many known and unknown bugs. We will not declare Fun as stable until we reach the 1.0 release. This is a project born out of curiosity and passion for elegant code, not production readiness — at least not yet.
|
||||
|
||||
### What Makes Fun... Fun?
|
||||
|
||||
#### Philosophy
|
||||
|
||||
Fun is built on the idea that coding should be enjoyable, elegant, and consistent. Our manifesto includes core principles like:
|
||||
|
||||
### Philosophy
|
||||
- Fun is built on the idea that coding should be enjoyable, elegant, and consistent. Our manifesto includes core principles like:
|
||||
- Fun is Fun – Programming should spark creativity, not frustration
|
||||
- Fun Uses Nothing – Minimalism is power; no unnecessary features or syntax variations
|
||||
- Indentation is Truth – Two spaces, always (no tabs, no debates, no four-space wars)
|
||||
|
|
@ -37,9 +43,10 @@ Please note: Fun is an experimental language and should be treated as such. Whil
|
|||
- Hackable by Nature – Small and embeddable, like Lua. Easy to understand, extend, and tinker with
|
||||
- Beautiful Defaults – A language that doesn't need linters, formatters, or style guides. Beauty is built in
|
||||
|
||||
## What's New in v0.3 (and 0.37.62)
|
||||
### What's New in Specification v0.3 (and Fun 0.37.62)
|
||||
|
||||
This release brings Fun closer to its vision with significant language enhancements:
|
||||
|
||||
- This release brings Fun closer to its vision with significant language enhancements:
|
||||
- Object-Oriented Programming Classes and objects with methods, constructors, and inheritance using extends
|
||||
- Explicit this in method definitions for clarity
|
||||
- Private members by convention (leading underscore)
|
||||
|
|
@ -56,7 +63,7 @@ c = Counter()
|
|||
print(c.inc()) // 1
|
||||
</pre>
|
||||
|
||||
## Module System
|
||||
### Module System
|
||||
|
||||
- Namespaced includes with #include <path> as alias for clean imports
|
||||
- Organize code into reusable modules without naming conflicts
|
||||
|
|
@ -66,14 +73,14 @@ print(c.inc()) // 1
|
|||
print(m.add(2, 3)) // 5
|
||||
</pre>
|
||||
|
||||
## Enhanced Type System
|
||||
### Enhanced Type System
|
||||
|
||||
- Fixed-width integers: int8, uint8, int16, uint16, int32, uint32, int64, uint64
|
||||
- Maps/dictionaries: map<K, V> with literal syntax { "key": value }
|
||||
- Typed arrays: array<T> for type-safe collections
|
||||
- Byte type for low-level operations
|
||||
|
||||
## Concurrency Support
|
||||
### Concurrency Support
|
||||
|
||||
- Thread primitives: thread_spawn, thread_join, and sleep
|
||||
- Write concurrent programs with ease
|
||||
|
|
@ -87,12 +94,12 @@ tid = thread_spawn(square, 5)
|
|||
print(thread_join(tid)) // 25
|
||||
</pre>
|
||||
|
||||
## Control Flow Improvements
|
||||
### Control Flow Improvements
|
||||
|
||||
- Loop control: break and continue statements
|
||||
- Exception handling: try/catch/finally syntax (runtime implementation evolving)
|
||||
|
||||
## System and Network Integration
|
||||
### System and Network Integration
|
||||
|
||||
- Process execution: Blocking (exec, system) and non-blocking (nexec, nspawn) with process management
|
||||
- TCP and Unix domain sockets: Build networked applications
|
||||
|
|
@ -100,15 +107,16 @@ print(thread_join(tid)) // 25
|
|||
- Environment variables: Access with env(NAME)
|
||||
- CLI argument handling: Parse command-line arguments
|
||||
|
||||
## Additional Features
|
||||
### Additional Features
|
||||
|
||||
- Bitwise operations: band, bor, bxor, bnot, shl
|
||||
- Rich standard library with modules for cryptography (MD5, SHA1/256/384/512, CRC32), encoding (Base64, hex), JSON, XML, INI, regular expressions (PCRE2), datetime utilities, and more
|
||||
- Optional extensions for cURL, SQLite/libSQL, PC/SC smart cards, and Tk GUI toolkit
|
||||
|
||||
## Core Language Features
|
||||
### Core Language Features
|
||||
|
||||
Fun provides a clean, readable syntax with:
|
||||
|
||||
- Fun provides a clean, readable syntax with:
|
||||
- Strict indentation-based structure (2 spaces, no semicolons)
|
||||
- Type safety with no implicit numeric coercions
|
||||
- Bounds-checked operations to prevent common errors
|
||||
|
|
@ -116,9 +124,9 @@ print(thread_join(tid)) // 25
|
|||
- Multiple return values from functions
|
||||
- Comprehensive built-ins for common tasks
|
||||
|
||||
## The Community: Fun Unites Nerds
|
||||
### The Community: Fun Unites Nerds
|
||||
|
||||
Fun isn't about being the fastest or most feature-rich language—it's about sharing the joy of coding. We welcome contributors who are:
|
||||
Fun isn't about being the fastest or most feature-rich language — it's about sharing the joy of coding. We welcome contributors who are:
|
||||
|
||||
- Respectful
|
||||
- Curious
|
||||
|
|
@ -126,35 +134,40 @@ Fun isn't about being the fastest or most feature-rich language—it's about sha
|
|||
|
||||
A language that feels like home for developers who love minimal, elegant tools, believe consistency is freedom, and want to write code that looks good and feels good.
|
||||
|
||||
## Want to Participate?
|
||||
### Want to Participate?
|
||||
|
||||
Everybody is welcome to participate! However, before you can get started, you need to contact me at hanez@fun-lang.org to request an account on our Git server.
|
||||
Everybody is welcome to participate! However, before you can get started, you need to contact me at [hanez@fun-lang.org](mailto:hanez@fun-lang.org){:class="mail"} to request an account on our Git server.
|
||||
|
||||
Important: Fun is not developed on third-party Git servers like GitHub or GitLab. All Fun infrastructure is self-hosted at git.xw3.org. This keeps us independent and aligned with the hacker spirit of the project—we control our tools, our code, and our community.
|
||||
Important: Fun is not developed on third-party Git servers like GitHub or GitLab. All Fun infrastructure is self-hosted at git.xw3.org. This keeps us independent and aligned with the hacker spirit of the project — we control our tools, our code, and our community.
|
||||
|
||||
## Getting Started
|
||||
### Getting Started
|
||||
|
||||
If you're curious about Fun, check out:
|
||||
|
||||
- [Website](https://fun-lang.xyz)
|
||||
- [Git Repository](https://git.xw3.org/fun/fun)
|
||||
- [Fun Handbook](https://git.xw3.org/fun/fun/src/branch/main/docs/handbook.md)
|
||||
- [Specification v0.3](https://git.xw3.org/fun/fun/src/branch/main/spec/v0.3.md)
|
||||
- [Examples](https://git.xw3.org/fun/fun/src/branch/main/examples)
|
||||
- [Library modules](https://git.xw3.org/fun/fun/src/branch/main/lib)
|
||||
- [Git Repository](https://git.xw3.org/fun/fun){:class="git"}
|
||||
- [Fun Handbook](https://git.xw3.org/fun/fun/src/branch/main/docs/handbook.md){:class="git"}
|
||||
- [Specification v0.3](https://git.xw3.org/fun/fun/src/branch/main/spec/v0.3.md){:class="git"}
|
||||
- [Examples](https://git.xw3.org/fun/fun/src/branch/main/examples){:class="git"}
|
||||
- [Standard Library](https://git.xw3.org/fun/fun/src/branch/main/lib){:class="git"}
|
||||
- [Community](https://fun-lang.xyz/community/)
|
||||
|
||||
The examples directory contains demonstrations of most Fun features, from basic "Hello, World!" to threading, networking, classes, and more. The lib directory includes modules written in Fun itself—and in the future, most enhancements will be written in Fun rather than C.
|
||||
The examples directory contains demonstrations of most Fun features, from basic "Hello, World!" to threading, networking, classes, and more. The lib directory includes modules written in Fun itself — and in the future, most enhancements will be written in Fun rather than C.
|
||||
|
||||
## The Road Ahead
|
||||
### For Developers
|
||||
|
||||
- [Fun Internals](https://git.xw3.org/fun/fun/src/branch/main/docs/internals.md){:class="git"}
|
||||
- [Fun Opcodes](https://git.xw3.org/fun/fun/src/branch/main/docs/opcodes.md){:class="git"}
|
||||
|
||||
### The Road Ahead
|
||||
|
||||
Documentation is a work in progress as we continue debugging, fixing bugs, and evolving the language. Complete API documentation will follow in future releases. Version 0.37.62 represents substantial progress, but remember: this is an experiment, and stability won't be declared until we reach 1.0.
|
||||
|
||||
Fun may not change the world, but it aims to make programming a little more fun. We're on a journey, and we'd love to have you along for the ride—bugs and all.
|
||||
Fun may not change the world, but it aims to make programming a little more fun. We're on a journey, and we'd love to have you along for the ride — bugs and all.
|
||||
|
||||
Fun is and will always be 100% free under the terms of the Apache-2.0 License.
|
||||
|
||||
Happy coding, and remember: Fun is Fun!
|
||||
Happy hacking, and remember: Fun is Fun!
|
||||
|
||||
Johannes Findeisen (hanez) - [hanez@fun-lang.org](mailto:hanez@fun-lang.org){:class="mail"}
|
||||
|
||||
Johannes Findeisen
|
||||
you@hanez.org
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -1,6 +1,7 @@
|
|||
.site {
|
||||
//border-radius: 12px 12px;
|
||||
border: 1px solid #000;
|
||||
border-radius: 8px;
|
||||
background-color: #fcfbf9;
|
||||
max-width: -webkit-calc(#{$content-width} - (#{$spacing-unit} * 2));
|
||||
max-width: calc(#{$content-width} - (#{$spacing-unit} * 2));
|
||||
|
|
|
|||
|
|
@ -1,34 +1,28 @@
|
|||
---
|
||||
layout: default
|
||||
title: /about/index.fun
|
||||
layout: page
|
||||
title: About
|
||||
subtitle: More information about having fun... :)
|
||||
description: About
|
||||
metasub: news
|
||||
noToc: false
|
||||
noToc: true
|
||||
noDate: false
|
||||
tags:
|
||||
- xw3
|
||||
- project
|
||||
- cgi
|
||||
- static
|
||||
- jekyll
|
||||
- fun
|
||||
- programming
|
||||
- language
|
||||
- about
|
||||
_description: The programming language that just makes fun!
|
||||
noComments: true
|
||||
permalink: /about/
|
||||
---
|
||||
|
||||
<div class="post">
|
||||
<header class="post-header">
|
||||
<h1 class="post-title" id="terminal">{{ site.title }} {{ page.title }}</h1>
|
||||
<p style="padding: 0px 0px 0px 0px;">{{ site.subtitle }}</p>
|
||||
</header>
|
||||
</div>
|
||||
|
||||
## What is Fun?
|
||||
|
||||
Fun is an experiment, just for fun, but Fun works!
|
||||
|
||||
Fun is a highly strict programming language, but also highly simple. It looks like Python (My favorite language), but there are differences.
|
||||
|
||||
Influenced by **[Bash](https://www.gnu.org/software/bash/){:class="ext"}**, **[C](https://en.wikipedia.org/wiki/The_C_Programming_Language){:class="ext"}**, **[Lua](https://www.lua.org/){:class="ext"}**, PHP, **[Python](https://www.python.org/){:class="ext"}**, and Rust (Most influences came from linked languages).
|
||||
Influenced by **[Bash](https://www.gnu.org/software/bash/){:class="ext"}**, **[C](https://en.wikipedia.org/wiki/The_C_Programming_Language){:class="ext"}**, **[Lua](https://www.lua.org/){:class="ext"}**, PHP, **[Python](https://www.python.org/){:class="ext"}**, and a little Rust (Most influences came from linked languages).
|
||||
|
||||
Fun is and will ever be 100% free under the terms of the [Apache-2.0 License](https://opensource.org/license/apache-2-0){:class="ext"}.
|
||||
|
||||
|
|
@ -36,6 +30,8 @@ Fun is and will ever be 100% free under the terms of the [Apache-2.0 License](ht
|
|||
|
||||
- Simplicity
|
||||
- Consistency
|
||||
- Simple to extend
|
||||
- Hackable
|
||||
- Joy in coding
|
||||
- Fun!
|
||||
|
||||
|
|
@ -77,7 +73,7 @@ Fun is not about being the fastest or the most feature-rich. It’s about sharin
|
|||
|
||||
Like the name says: Fun Unites Nerds.
|
||||
|
||||
Please visit the [Fun Community Page](https://fun-lang.xyz/community/) to get in touch.
|
||||
Please visit the [Fun Community Page](https://fun-lang.xyz/community/){:class="git"} to get in touch.
|
||||
|
||||
## The Goal
|
||||
|
||||
|
|
@ -97,9 +93,11 @@ Fun may not change the world — but it will make programming a little more fun.
|
|||
- if/else if/else
|
||||
- try/catch/finally
|
||||
|
||||
and much more...
|
||||
|
||||
### Lib
|
||||
|
||||
...
|
||||
See [https://git.xw3.org/fun/fun/src/branch/main/lib](https://git.xw3.org/fun/fun/src/branch/main/lib) for what the standard library provides.
|
||||
|
||||
### Extensions (only Linux actually)
|
||||
|
||||
|
|
@ -120,20 +118,6 @@ Note: Not all of the above features will be implemented. Those who are marked "D
|
|||
|
||||
There are some libs written in Fun available in the [./lib/](https://git.xw3.org/fun/fun/src/branch/main/lib){:class="ext"} diretory. In the future most Fun enhancements should be written in Fun itself.
|
||||
|
||||
## Documentation
|
||||
|
||||
This is actually a work in progress...
|
||||
|
||||
Current documentation is only found in the [Fun Handbook](https://git.xw3.org/fun/fun/src/branch/main/docs/handbook.md){:class="ext"}.
|
||||
|
||||
In the [./examples/](https://git.xw3.org/fun/fun/src/branch/main/examples){:class="ext"} directory should be an example of most Fun features.
|
||||
|
||||
Fun internals are found directly in the [./src/](https://git.xw3.org/fun/fun/src/branch/main/src){:class="ext"} diretory. Fun [Opcodes](https://en.wikipedia.org/wiki/Opcode){:class="ext"} are found in [./src/vm/](https://git.xw3.org/fun/fun/src/branch/main/src/vm){:class="ext"}.
|
||||
|
||||
Since things are actually changing sometimes, I will not write the documentation for this as of now.
|
||||
|
||||
Complete API documentation will follow.
|
||||
|
||||
## Code
|
||||
|
||||
- [https://git.xw3.org/fun/fun/](https://git.xw3.org/fun/fun/){:class="git"}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ layout: page
|
|||
published: true
|
||||
noToc: false
|
||||
noDate: false
|
||||
title: /community/code-of-conduct/index.fun
|
||||
title: Code of Conduct
|
||||
subtitle: Contributor Covenant Code of Conduct
|
||||
description: Code of Conduct
|
||||
permalink: /community/code-of-conduct/
|
||||
|
|
|
|||
|
|
@ -1,21 +1,14 @@
|
|||
---
|
||||
layout: default
|
||||
layout: page
|
||||
published: true
|
||||
noToc: false
|
||||
noDate: false
|
||||
title: /community/index.fun
|
||||
title: Community
|
||||
subtitle: The place to contact the Fun community.
|
||||
permalink: /community/
|
||||
description: Community
|
||||
---
|
||||
|
||||
<div class="post">
|
||||
<header class="post-header">
|
||||
<h1 class="post-title" id="terminal">{{ site.title }} {{ page.title }}</h1>
|
||||
<p>{{ page.subtitle }}</p>
|
||||
</header>
|
||||
</div>
|
||||
|
||||
<h2>Important</h2>
|
||||
|
||||
<p>Please read the <a href="/community/code-of-conduct/">Code of Conduct</a> before participating in xw3 community discussions.</p>
|
||||
|
|
|
|||
|
|
@ -1,25 +1,18 @@
|
|||
---
|
||||
layout: default
|
||||
layout: page
|
||||
published: true
|
||||
noToc: true
|
||||
noDate: true
|
||||
noDate: false
|
||||
noPermalink: true
|
||||
noComments: true
|
||||
title: /contact/index.fun
|
||||
_subtitle: THIS FORM DOES NOT WORK, USE <a href="mailto:hanez@fun-lang.xyz">EMAIL</a> TO CONTACT ME!
|
||||
title: Contact
|
||||
subtitle: Please use the following form to contact us directly, anonymously if you prefer.
|
||||
description: Contact
|
||||
permalink: /contact/
|
||||
tags:
|
||||
- contact
|
||||
---
|
||||
|
||||
<div class="post">
|
||||
<header class="post-header">
|
||||
<h1 class="post-title" id="terminal">{{ site.title }} {{ page.title }}</h1>
|
||||
<p>{{ page.subtitle }}</p>
|
||||
</header>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
function doSubmit() {
|
||||
$("#loader").removeClass("hidden");
|
||||
|
|
|
|||
43
documentation/documentation.md
Normal file
43
documentation/documentation.md
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
---
|
||||
layout: page
|
||||
published: true
|
||||
noToc: true
|
||||
noComments: false
|
||||
noDate: false
|
||||
title: Documentation
|
||||
subtitle: Some documentation about the Fun programming language.
|
||||
description: The Fun Documentation
|
||||
permalink: /documentation/
|
||||
lang: en
|
||||
tags:
|
||||
- documentation
|
||||
- handbook
|
||||
- installation
|
||||
- usage
|
||||
- introduction
|
||||
- help
|
||||
- guide
|
||||
- howto
|
||||
---
|
||||
|
||||
## Basics
|
||||
|
||||
[The Fun Handbook is found here](https://git.xw3.org/fun/fun/src/branch/main/docs/handbook.md){:class="git"}!
|
||||
|
||||
Look at [https://git.xw3.org/fun/fun/src/branch/main/docs](https://git.xw3.org/fun/fun/src/branch/main/docs){:class="git"} for more detailed infomation!
|
||||
|
||||
## More information
|
||||
|
||||
- [Specification v0.3](https://git.xw3.org/fun/fun/src/branch/main/spec/v0.3.md){:class="git"}
|
||||
- [Specification v0.2](https://git.xw3.org/fun/fun/src/branch/main/spec/v0.2.md){:class="git"}
|
||||
- [Specification v0.1](https://git.xw3.org/fun/fun/src/branch/main/spec/v0.1.md){:class="git"}
|
||||
- [Examples](https://git.xw3.org/fun/fun/src/branch/main/examples){:class="git"}
|
||||
- [Standard Library](https://git.xw3.org/fun/fun/src/branch/main/lib){:class="git"}
|
||||
|
||||
The examples directory contains demonstrations of most Fun features, from basic "Hello, World!" to threading, networking, classes, and more. The lib directory includes modules written in Fun itself.
|
||||
|
||||
## For Developers
|
||||
|
||||
- [Fun Internals](https://git.xw3.org/fun/fun/src/branch/main/docs/internals.md){:class="git"}
|
||||
- [Fun Opcodes](https://git.xw3.org/fun/fun/src/branch/main/docs/opcodes.md){:class="git"}
|
||||
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
layout: page
|
||||
published: true
|
||||
noToc: true
|
||||
title: /faq/index.fun
|
||||
title: FAQ
|
||||
subtitle: Frequently Asked Questions
|
||||
description: Frequently Asked Questions (FAQ)
|
||||
permalink: /faq/
|
||||
|
|
|
|||
|
|
@ -1,24 +0,0 @@
|
|||
---
|
||||
layout: page
|
||||
published: true
|
||||
noToc: true
|
||||
noComments: true
|
||||
title: /handbook/index.fun
|
||||
subtitle:
|
||||
description: Handbook
|
||||
permalink: /handbook/
|
||||
lang: en
|
||||
tags:
|
||||
- handbook
|
||||
- installation
|
||||
- usage
|
||||
- introduction
|
||||
- help
|
||||
- guide
|
||||
- howto
|
||||
---
|
||||
|
||||
# Fun Handbook
|
||||
|
||||
[The Fun Handbook is found here](https://git.xw3.org/fun/fun/src/branch/main/docs/handbook.md){:class="ext"}!
|
||||
|
||||
31
index.md
31
index.md
|
|
@ -1,9 +1,11 @@
|
|||
---
|
||||
layout: default
|
||||
title: /index.fun
|
||||
description: Blog
|
||||
layout: page
|
||||
title: :load /index.fun
|
||||
subtitle: The programming language that makes you have fun!
|
||||
description: Blog and Homepage
|
||||
metasub: news
|
||||
noToc: true
|
||||
noDate: false
|
||||
tags:
|
||||
- fun
|
||||
- project
|
||||
|
|
@ -15,28 +17,25 @@ tags:
|
|||
permalink: /
|
||||
---
|
||||
|
||||
<div class="post">
|
||||
<header class="post-header">
|
||||
<h1 class="post-title" id="terminal">{{ site.title }} {{ page.title }}</h1>
|
||||
<p>{{ page.subtitle }}</p>
|
||||
</header>
|
||||
</div>
|
||||
|
||||
<h2>What is Fun?</h2>
|
||||
|
||||
<p>Fun is an experiment, just for fun, but Fun works!</p>
|
||||
|
||||
<p>Fun is a highly strict programming language, but also highly simple. It looks like Python (My favorite language), but there are differences.</p>
|
||||
|
||||
<p>Influenced by <a href="https://www.gnu.org/software/bash/" class="ext">Bash</a>, <a href="https://en.wikipedia.org/wiki/The_C_Programming_Language" class="ext">C</a>, <a href="https://www.lua.org/" class="ext">Lua</a>, PHP, <a href="https://www.python.org/" class="ext">Python</a>, and a little Rust (Most influences came from linked languages).</p>
|
||||
|
||||
<p>Fun is and will ever be 100% free under the terms of the <a href="https://opensource.org/license/apache-2-0" class="ext">Apache-2.0 License</a>.</p>
|
||||
|
||||
<h2>Blog - <a href="/feed/" title="Blog Feed" class="rss">Blog Feed</a></h2>
|
||||
<!--<p><a href="/about/">More about Fun</a><p>-->
|
||||
|
||||
<h2>Blog (<a href="/feed/" title="Blog Feed" class="rss">Feed</a>)</h2>
|
||||
|
||||
{% for post in site.tags.pinned %}
|
||||
<article class="post-content">
|
||||
<h3><a href="{{ post.url }}" title="{{ post.title }}">{{ post.url }}</a> <span style="cursor:help; float: right;" title="Pinned Post!">📌</span></h3>
|
||||
<h2><a href="{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a> <span style="cursor:help; float: right;" title="Pinned Post!">📌</span></h2>
|
||||
<p class="post-meta">{{ post.date | date: "%b %-d, %Y %H:%M:%S" }} ({{ post.date | date: "%b %-d, %Y %H:%M:%S" | date: "%Z" }})
|
||||
{% if post.date_updated %} - Edited: {{ post.date_updated | date: "%b %-d, %Y %H:%M:%S" }}{% endif %} ({{ post.date_updated | date: "%b %-d, %Y %H:%M:%S" | date: "%Z" }}){% if post.author %}, <a href="{{ site.git_short }}/{{ post.author }}" target="_blank" class="user">{{ post.author }}</a>{% endif %}</p>
|
||||
{% if post.date_updated %} - Edited: {{ post.date_updated | date: "%b %-d, %Y %H:%M:%S" }} ({{ post.date_updated | date: "%b %-d, %Y %H:%M:%S" | date: "%Z" }}){% endif %}{% if post.author %}, <a href="{{ site.git_short }}/{{ post.author }}" target="_blank" class="user">{{ post.author }}</a>{% endif %}</p>
|
||||
{{ post.content | truncatewords: site.truncatewords_length }}
|
||||
<p style="text-align:right;"><a href="{{ post.url }}" title="{{ post.url }}">[Read post]</a></p>
|
||||
</article>
|
||||
|
|
@ -45,16 +44,16 @@ permalink: /
|
|||
{% for post in site.posts %}
|
||||
{% unless post.tags contains 'pinned' %}
|
||||
<article class="post-content">
|
||||
<h3><a href="{{ post.url }}" title="{{ post.title }}">{{ post.url }}</a></h3>
|
||||
<h2><a href="{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a></h2>
|
||||
<p class="post-meta">{{ post.date | date: "%b %-d, %Y %H:%M:%S" }} ({{ post.date | date: "%b %-d, %Y %H:%M:%S" | date: "%Z" }})
|
||||
{% if post.date_updated %} - Edited: {{ post.date_updated | date: "%b %-d, %Y %H:%M:%S" }}{% endif %} ({{ post.date_updated | date: "%b %-d, %Y %H:%M:%S" | date: "%Z" }}){% if post.author %}, <a href="{{ site.git_short }}/{{ post.author }}" target="_blank" class="user">{{ post.author }}</a>{% endif %}</p>
|
||||
{% if post.date_updated %} - Edited: {{ post.date_updated | date: "%b %-d, %Y %H:%M:%S" }} ({{ post.date_updated | date: "%b %-d, %Y %H:%M:%S" | date: "%Z" }}){% endif %}{% if post.author %}, <a href="{{ site.git_short }}/{{ post.author }}" target="_blank" class="user">{{ post.author }}</a>{% endif %}</p>
|
||||
{{ post.content | truncatewords: site.truncatewords_length }}
|
||||
<p style="text-align:right;"><a href="{{ post.url }}" title="{{ post.url }}">[Read post]</a></p>
|
||||
</article>
|
||||
{% endunless %}
|
||||
{% endfor %}
|
||||
|
||||
<h2>$ cd</h2>
|
||||
<h2>Pages</h2>
|
||||
|
||||
<div id="pages">
|
||||
{% if paginator.page == 1 %}<a href="/blog/" class="active" title="Page 1">1</a>{% else %}<a href="/blog/" title="Page 1">1</a>{% endif %}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ layout: page
|
|||
published: true
|
||||
noToc: false
|
||||
noComments: true
|
||||
title: /privacy/index.fun
|
||||
title: Privacy
|
||||
subtitle:
|
||||
description: Privacy
|
||||
permalink: /privacy/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue