Xoscript

(xoscript.com)

28 points | by gabordemooij 2 hours ago ago

19 comments

  • ddtaylor 4 minutes ago

    Interesting to see, Gabor. I don't like the "stop" thing. I think the verbosity can be tuned down a bit in that case, but I understand the small-talk message passing need for "Out write". Am I allowed to use just write "out" instead of "Out"? I assume case sensitivity, but I couldn't find in the docs anything about it.

    I have used RedBeanPHP for many things and contributed a bit. Thank you.

  • selfsimilar an hour ago

    "The language is intentionally neutral and apolitical, without any stance on social or political issues."

    I don't applaud or condemn this, but it's strange that it's on the home and history pages. Putting this in a code of conduct document for collaborators might make sense, but on the home page? Maybe I'm the weird one, but for most languages I consider them a tool. So it's like going to the hardware store and seeing a hammer that has a label "This is not a Liberal or Conservative hammer." Yeah, buddy I know. It's just a hammer.

    • throw-the-towel 13 minutes ago

      There's always a loud someone who'll try to force their country's political issue du jour because "everything is political".

      • gabordemooij 9 minutes 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.

        • ddtaylor 2 minutes ago

          I appreciate the desire to focus on the code.

    • gabordemooij an hour ago

      I was having doubts about this too. But in today's (geo)political climate it might be useful. Otherwise I can always delete it. But you're right, it's just a hammer.

      • gabordemooij an hour ago

        and.. I want to avoid having to add a coc. Can try.

  • pasquinelli an hour ago

    > The language is intentionally neutral and apolitical, without any stance on social or political issues.

    does this mean something?

    i was very confused by your description of xoscript as typeless. only typeless languages i know of are languages where a variable can only be a word. i assume you mean it's dynamically typed.

    every new language that gets on hn gets two criticisms: they don't show code first thing, and they don't start with what problem is being solved by designing a new language. i'm not very interested in those things. i would, however, like to be told what it is in a concise way. you've basically got, if i understand correctly, a smalltalk-like system here, prototype based instead of class based, with dynamically scoped variables, and you're tooling it with server side scripting in mind. that tells me a lot more than code.

    as for the what-problem-are-you-solving-by-designing-this-language criticism, if we're honest we can see that every language is either designed as an experiment, "what would a language be like if...?", or it's designed as a matter of personal ergonomics, "i want language X with differences i, j, and k cuz i like it that way." i'm completely fine with that.

    • gabordemooij 42 minutes ago

      I used PHP, nodejs, Python etc and I just wanted something simpler. I use OpenBSD as my server os and I wanted a scripting language that matches the simplicity (and security) of OpenBSD.

      • gabordemooij 39 minutes ago

        maybe I'll add support for pledge/unveil (with cgi) as well - what do you think?

  • mettamage an hour ago

    I’m getting some Smalltalk vibes looking at the examples.

    Oh, I just read it was mentioned in the history of the project too.

    • gabordemooij an hour ago

      I know it's probably not for everyone, but yeah I like the general idea of Smalltalk. However, xoscript does not have the whole vm/image thing. Also no classes, just prototypes. So I guess it sits more between smalltalk and js. You can create a class by overriding the new-method of an object though. That will essentially give you a class.

  • jkhall81 31 minutes ago

    gross.

  • gabordemooij 2 hours ago

    hi...