News for hackers. Stuff that matters.
Re:Wren is a small, fast, class-based concurrent scripting l... by goodpaul6 on Sunday August 28, 2022 @05:59PM (#32632493)
I’m currently working on Tiny [0], a small statically typed programming languages which is even more minimal than Wren.

[0] https://github.com/goodpaul6/Tiny

Re:Wren is a small, fast, class-based concurrent scripting l... by IshKebab on Monday August 29, 2022 @12:55PM (#32640510)
Looks interesting. How is the type just `array` in that example though? Doesn't it have to be an array of something?
Re:Wren is a small, fast, class-based concurrent scripting l... by goodpaul6 on Thursday September 01, 2022 @01:12AM (#32672261)
Interestingly, given the minimal core of the language, arrays are not built in (this is something I'm looking to change, of course).

As such, the "array" type is just an opaque type exposed via the C binding API. Given that there are no generics at the moment, this array API works with "any" values (similar to "any" in e.g. TypeScript).

Re:Wren is a small, fast, class-based concurrent scripting l... by fm77 on Sunday August 28, 2022 @06:57PM (#32632925)
Very interesting!

BTW: I think I found a typo: "MATCH2("+=", PERCENTEQUAL);" — should be "%=" ??

Re:Wren is a small, fast, class-based concurrent scripting l... by goodpaul6 on Monday August 29, 2022 @04:20AM (#32635870)
Thanks! Just fixed this. Seems the "%=" operator is less useful than I thought.