Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Helping promote the Lax programming language
2 points by Mavox-ID 20 days ago | hide | past | favorite | 6 comments
Myself and a team of four people: Anthony Lubmansky, N467, NeedYOU7, and myself, Mavox-ID, created the Lax programming language and uploaded it to GitHub. We also formed Lax Inc. We want to promote the language and add it to Linguist on GitHub, but that requires about 200 or more repositories using Lax. Could anyone who wouldn't mind downloading Lax: https://github.com/lax-Inc/Lax/releases/tag/6.0.6 and give the Lax code to the AI so it can create programs and upload them to GitHub, please? Github Repo URL: https://github.com/lax-inc/Lax

Official website: https://lax-lang.space

Please create your own project forks or empty repositories with .lx files of my Lax programming language so that GitHub can see the interest of users of the Lax project and the popularity of the language.

Lax has S-syntax and Lisp-like code. It can help you learn programming and write programs on Linux, even a simple calculator or shell, and much more. Lax also has over 145 commands that you can use to do anything. Here's an example of Hello World:

[start [image "Hello World!"] [nl] ]

start - Creates a command chain image - Prints text nl - Creates a line break

You can also use just an image using \n:

[image "Hello World!\n"]

Here's how to work with input:

[start [spot name [input "Enter your name: "]] [image "Hello, "] [image name] [image "!"] [nl]]

spot - Creates a variable input - The simple input command will print Lax> and wait for the user to enter input. If it's quoted like "image," it will be the text inside the quotes.

Here we go. We create a variable 'name' where we assign it the value of the user's input, and then use image to display what the user entered. This is basic work with input and output, as well as variables.

And here's also a simple calculator that calculates roots, powers, and other mathematical equations:

[start [spot op_raw [input "Select operation (+, -, , /, sqrt, expt): "]] [spot op [string->sign op_raw]]

[spot is_unary [eq? op [string->sign "sqrt"]]]

[spot first_raw [if is_unary [input "Enter number: "] [input "First number: "]]] [spot first_num [to-number first_raw]] [spot first_ok [and [> [string-length first_raw] 0] [number? first_num]]]

[spot second_raw [if [not is_unary] [input "Second number: "] ""]] [spot second_num [to-number second_raw]] [spot second_ok [or is_unary [and [> [string-length second_raw] 0] [number? second_num]]]]

[spot dispatch_table [list [cons [string->sign "+"] +] [cons [string->sign "-"] -] [cons [string->sign ""] ] [cons [string->sign "/"] /] [cons [string->sign "expt"] expt] [cons [string->sign "sqrt"] sqrt] [] ] ]

[spot op_pair [assq op dispatch_table]]

[spot ans [if [not first_ok] "Error: Bad first number" [if [not second_ok] "Error: Bad second number" [if [not op_pair] "Error: Unknown operation" [start [spot func [tail op_pair]]

[if [and [eq? op [string->sign "/"]] [= second_num 0]] "Error: Division by zero" [if [and is_unary [< first_num 0]] "Error: Negative root" [if is_unary [func first_num] [func first_num second_num] ] ] ] ] ] ] ] ]

[image first_raw] [image " "] [image op_raw] [if [not is_unary] [start [image " "] [image second_raw]] ""] [image "="] [image ans] [nl] ]



(I'm a moderator here. You and your colleagues are welcome on Hacker News. Anyone making a new programming language is a good addition to our community!)

HN readers are very interested in new programming languages, but the way this post is written is not the best way to present your work. Your best bet would be to add some pages to your website that give more of an intellectual (not commercial or promotional) exposition of your project: how/why you came to work on this, describing the design choices involved, and giving a nice set of real examples for people to look over. Make sure to put a few code samples on whatever page you submit as the link to HN, because that's the first thing people will look for.

On your github it says: "The Lax programming language is used to create programs for Linux, operating systems, and kernels, and Lax is used for direct execution by the processor.". I don't understand all of that, but if you went into detail about what you mean there, that could be interesting to people.

Emphasize what's different about your language, i.e. what design tradeoffs you've made, and how they make certain kinds of programs easier to write. That is always of interest.

Don't make dramatic claims and don't try to 'sell' your language to HN. Our audience is pretty cynical about being sold to. Rather, try to interest them intellectually (and let them to do the selling part themselves!) You won't get far asking for help to promote your language, but if you interest the community, you might awaken a wish to participate.

If you use HN Search to go through past threads on "The $LANG programming language" (with $LANG as whatever language name), you'll get a sense of which types of posts do well and generate the best discussions. (Edit: well here you go, I did it for you: The $LANG Programming Language - https://news.ycombinator.com/thelang, https://news.ycombinator.com/item?id=46610557.)

Edit: here are a few comments users have posted in the past in response to new-programming-language posts - they give an idea of the kind of things one should take care of in advance:

https://news.ycombinator.com/item?id=46084237 (Nov 2025)

https://news.ycombinator.com/item?id=44047724 (May 2025)

https://news.ycombinator.com/item?id=41820548 (Oct 2024)

https://news.ycombinator.com/item?id=38570711 (Dec 2023)

https://news.ycombinator.com/item?id=36629455 (July 2023)

https://news.ycombinator.com/item?id=36031433 (May 2023)

https://news.ycombinator.com/item?id=36031398 (May 2023)

https://news.ycombinator.com/item?id=14076776 (April 2017)

Good luck!


Hello, moderator! I read your message and wanted to ask you for links to similar comments about people who created their own programming language so I could understand how to properly comment. Don't worry about the website; it's constantly updated, and documentation is currently being developed for Lax, detailing its commands and providing examples of each command. This will help me learn Lax syntax and be able to write anything instantly after reading the documentation.

All the problems that people see in Lax can be easily solved through updates. Lax was created as an ultra-light language that can be written almost immediately after downloading and does not require additional installation of various libraries. It was also created for writing programs on Linux as a binary file that can be used as a program. It is because of this feature that Lax updates commands and adds new ones to make it easy to do anything with it. Unfortunately, only the CLI version of all written programs is currently supported, but in the future, it is planned to add the gui command and others for interacting with the system through the GUI and UI, and not just the CLI through the terminal.


Clicky:

https://lax-lang.space It has a link to SourceForge instead of GitHub

https://github.com/lax-inc/Lax

> Please create your own project forks or empty repositories with .lx files

Do you mean "new" instead of "empty"? My recomendation is to try to get real users instead of asking minimal repos.

Remember to use two spaces to activate the magic "code" mode in HN

  [start
    [spot op_raw [input "Select operation (+, -, , /, sqrt, expt): "]]
    [spot op [string->sign op_raw]]
    [spot is_unary [eq? op [string->sign "sqrt"]]]
    ...
  ]
Some functions like "eq?" use a question mark and other like "is_unary" use an underscore. It's strange.

From github

> License and Restrictions

> No License.

> All rights are reserved by Lax Inc.

> Copying is strictly prohibited.

> The redistribution of source code, binaries, or the Lax compiler logic is not permitted.

> Unauthorized use of the Lax trademark or the Lax REPL CLI interface design is forbidden.

Are you selling the compiler? IIUC I can only stare at the compiler code but not download or run it. Seling compilers is very hard now. People expect an open source license, but it's hard to monetize. Some people tried with "semi-free"[1] licenses. Who can use your compiler for free? Who must pay to use it?

[1] or "semi-close", depending who is complaining. The only truly free part is to get voluntaries for complaining.


Lax is completely open source and uses the MIT license. You can download the release from Github: https://github.com/lax-Inc/Lax/releases/tag/6.0.6 . However, I warn you that Lax is currently only for Linux, and you can build it with Conda Make or, for more details, use Make Help. I asked you to create an empty Github repository where you will create a project with a file with the .lx extension and a detailed README.md about the project (not what you used in the code, but what it does and why. We recommend checking the code using the Lax argument: -o and uploading it to Github). The most important thing is that the project is empty and uses a minimum of an .lx file with code written in Lax and a README.md explaining the program at a minimum. The rest is up to you. (Just don't mention that this is help for Lax; the project should be about interest in using the Lax programming language, not about help.)

Any questions regarding eq? In code, eq? checks whether two values point to the same object in memory (referential identity). In other functions, it's the check code itself, created earlier, not the function itself. (It's like a variable that participates as a command but is itself executed via spor. If used, it executes another command, such as eq? , but with the value entered by the user.)

For example:

[spot [is_true [x] [x]] eq? [x] [x]]

And more.

The fact that you found Sourceforge is one of the ways to download Lax, which is currently temporarily non-existent. You can download it using the button right at the beginning of the site 'Download Lax 6.0.6'. What you saw in README.md was a test version of Lax and did not apply to the current version at all. Lax currently uses MIT and you can download and edit Lax as you like and even suggest your changes through forks of the official repository. Lax is compiled very quickly using make and is not sold. Lax is simply provided in the form of only .c code, where you compile it yourself and is not immediately submitted only as a binary file, where you cannot open it like the same .c code and edit it.


> Lax is completely open source and uses the MIT license.

I see that there is an MIT license file in the repo, but the readme in the repo still says there is no license and redistribution in source or binary form is explicitly forbidden. This is a discrepancy that should probably be addressed


The problem with README.md was caused by our moderator, we have already fixed README.md




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: