from Hacker News

DaScript – high-performance statically strong typed scripting language (2019)

by wesamco on 8/15/20, 6:26 AM with 16 comments

  • by ColinWright on 8/16/20, 11:51 AM

    OK, so I'm going to be a grumpy old man ...

    My eyesight isn't great, so I use the "Zoom" function on Firefox to increase the font size. But the text now doesn't wrap, and I'm constantly scrolling from side-to-side to be able to read the text. It's tedious in the extreme.

    Screen shot here: https://www.solipsys.co.uk/images/daScript.png

    Magnification, line truncation, and scroll bar indicated.

    * Why doesn't the text wrap to the window size? No idea.

    * Why is it written like this? No idea.

    Annoying, irritating, and so unnecessary.

  • by pjmlp on 8/16/20, 10:33 AM

    Nice one, it is nice to see an increase in more productive languages offering compilation as part of their toolchain capabilities.
  • by formerly_proven on 8/16/20, 1:31 PM

    Curiously the daScript repository goes back to 2008, when it contained a URI parser: https://github.com/GaijinEntertainment/daScript/tree/262ca4a...

    Ten years later, in 2018, someone added a basic lexer for "YZG" to the repo: https://github.com/GaijinEntertainment/daScript/commit/215d5...

  • by out_of_protocol on 8/16/20, 11:08 AM

    Too early to say anything but looks like it could replace lua as game's default scripting language. Suggestion to authors: copy Golang tour
  • by dkersten on 8/16/20, 1:22 PM

    Looks really interesting. Nice approach and interesting featureset. I’ll have to keep an eye on it.

    Currently, it seems to be lacking documentation on how to embed and interoperate with C++, though, so have no idea how easy it is to get working (especially AOT vs interpreted and interop with templated C++ code).

  • by eggy on 8/16/20, 3:03 PM

    Used by Gaijin Entertainment and compiled and run on Nintendo Switch are two things that caught my eye. I will have to check it out for use in place of LuaJit.
  • by j88439h84 on 8/15/20, 5:29 PM

    Compare to Nim?