News for hackers. Stuff that matters.
Re:DaScript – high-performance statically strong typed scrip... by ColinWright on Sunday August 16, 2020 @07:51AM (#24177048)
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.

Re:DaScript – high-performance statically strong typed scrip... by kilburn on Sunday August 16, 2020 @01:40PM (#24179621)
> I'm going to be a grumpy old man ...

Ironically, the site is made using tables for layout! Like, the really old technique where the left and right margins of the content are actually td's with a bunch of &nbsp's inside.

I'm really surprised that someone would make a site this way nowadays. It is a lot more work than necessary and the end results are not great (as you can see here).

PS: Running this in your console will get to a mostly workable state (not great, but better):

[...document.querySelectorAll('*')].map(e => {e.style.width = 'auto';})

Edit: I did my good deed of the day by opening a PR that modernizes the site's markup and CSS, fixing the issues too:

https://github.com/GaijinEntertainment/daScript/pull/70

Re:DaScript – high-performance statically strong typed scrip... by AntonYudintsev on Tuesday August 25, 2020 @05:16AM (#24269468)
Thank you for that contribution!

Updated site is now live (along with big documentation update and link to sandbox tio.run).

Re:DaScript – high-performance statically strong typed scrip... by CyberDildonics on Sunday August 16, 2020 @04:13PM (#24180845)
Maybe that's why it loaded so fast it was done before I could switch to the tab.
Re:DaScript – high-performance statically strong typed scrip... by bxparks on Sunday August 16, 2020 @09:40AM (#24177683)
Yup, and Reader mode on Firefox Mobile is disabled. Couldn't read more than a few sentences.

Just out of curiosity, what controls whether or not reader mode is enabled?

Re:DaScript – high-performance statically strong typed scrip... by parkovski on Sunday August 16, 2020 @12:43PM (#24179193)
I believe it is a heuristic that looks at text length, element type and class name.
Re:DaScript – high-performance statically strong typed scrip... by sunnylemon on Sunday August 16, 2020 @03:50PM (#24180654)
Yup! It looks for paragraphs that are at least 140 characters long. I wrote about it a bit more here: https://videoinu.com/blog/firefox-reader-view-heuristics
Re:DaScript – high-performance statically strong typed scrip... by RedShift1 on Sunday August 16, 2020 @08:09AM (#24177150)
Even worse on mobile
Re:DaScript – high-performance statically strong typed scrip... by pjmlp on Sunday August 16, 2020 @06:33AM (#24176708)
Nice one, it is nice to see an increase in more productive languages offering compilation as part of their toolchain capabilities.
Re:DaScript – high-performance statically strong typed scrip... by formerly_proven on Sunday August 16, 2020 @09:31AM (#24177615)
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...

Re:DaScript – high-performance statically strong typed scrip... by out_of_protocol on Sunday August 16, 2020 @07:08AM (#24176833)
Too early to say anything but looks like it could replace lua as game's default scripting language. Suggestion to authors: copy Golang tour
Re:DaScript – high-performance statically strong typed scrip... by dkersten on Sunday August 16, 2020 @09:22AM (#24177550)
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).

Re:DaScript – high-performance statically strong typed scrip... by eggy on Sunday August 16, 2020 @11:03AM (#24178369)
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.
Re:DaScript – high-performance statically strong typed scrip... by j88439h84 on Saturday August 15, 2020 @01:29PM (#24170550)
Compare to Nim?
Re:DaScript – high-performance statically strong typed scrip... by michaelcampbell on Sunday August 16, 2020 @07:32AM (#24176941)
Indeed. And Crystal (https://crystal-lang.org/)
Re:DaScript – high-performance statically strong typed scrip... by MaxBarraclough on Sunday August 16, 2020 @08:07AM (#24177136)
Does Crystal have an interpreter? I get the impression traditional ahead-of-time compilation is currently the only way to use it.

daScript has both ahead-of-time compilation and an interpreter.