gabordemooij

Joined 14 years ago

Karma
375
Submissions
212
Member since
Apr 8
Creator of xoscript.com, a simple, server-side, security focused scripting language. I try to bring the script back in scripting languages by practicing restraint when it comes to adding new paradigms and features. XO is very simple, and easy to learn. There are just 5 syntax rules: assign, message, return, chain and group (code blocks, i.e. functions).

XO is pure OO but without classes. Also no traits, no async, no threading, no types, just plain objects. Use with CGI. Runtimes for Linux and OpenBSD.

View on Hacker News

Recent submissions

Comment · 7 months ago
fine, but can you buy alternatives that run your software then?
Comment · 7 months ago
no because, from what I understand you have to do this on a per-app (per version even?) basis
Comment · 7 months ago
Would it not be nicer to have a dual boot phone where one OS is baked in rom and only contains certain necessary government/banking/medical service apps and the other is just completely free to use for whatever purpose? Just a thought...
Comment · 7 months ago
Can we please stop to design our whole society around the inability of people to deal with things?
Comment · 7 months ago
I find the hivemind terribly oppressing at times. AI tools are great, but in the end it seems to me that the results matter most. However we seem to go from hype to hype, again and again. It's all so tiresome. Why can't we just respect individual choices and focus less on the tools and more on the results?
Comment · 9 months ago
It's a side effect of pass-by-reference. In most languages you have to guess if something is passed by value/ref. In xoscript everything is always a reference.
Comment · 9 months ago
1. I guess this is just personal taste, we can add aliases if you like. lf (lowercase seems nice). Smalltalk itself uses brk. Could at both. Personally I love the 'touch' of history, makes it seem like there is continuum in tech somehow. But that's just personal taste as well.

2. ['the word 'Hello' has 5 chars'] ['I say: "Hi There!"'] ['In xoscript we use [' and '] ']

this is not allowed: ['this causes a '] parsing error.']

3. It's all just message passing.

- {} * x is just message * with arg x - yes it's a function, which is an object, and it has a method called * - Smalltalk uses times: { ... } times: 101.

- True is an object - (i = i) yields True, so you can send a messages to True - continue/break only work with True - , means: continue talking to object (True)

Comment · 9 months ago
I don't feel oppressed. I'm just happy with my life.
Comment · 9 months ago
Out is used in a static/class-like sense here, hence the uppercase letter. It means it should not be treated as an instance (although it technically does not really matter).
Comment · 9 months ago
I would love to further discuss some syntax issues.

- STOP is from telegraphs. \n is also allowed.

- The assymetric string boundaries (brackets) allow you to embed quotes/boundaries without escaping.

what is terse about the loops?

any further thoughts about EOL?

Comment · 9 months ago
I dont care what you or anyone else thinks. I give you a free tool. That's all.
Comment · 9 months ago
it means there are objects, everything is an object. That has nothing to do with side-effects.
Comment · 9 months ago
well that's what I want to avoid. What it means is that someone like xlibre-author could create a pr and I will not reject it.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton