News for hackers. Stuff that matters.
Re:MakeCode Arcade: Retro Gaming, Modern Programming by Lerc on Saturday January 19, 2019 @02:39AM (#18945850)
It's an interesting direction to go in. I like the proliferation of toy machines that the Pico-8 has spawned.

I'm making one going in almost the polar opposite direction to this. I 8-bit avr based with asm (and C,pascal and anything else the avr ecosystem supports)

It's slow going (current work in progress in-broswer emulator+assembler at http://fingswotidun.com/avr/AvrAsm/Testbed/ ) Still have to make a website for sharing cartridge images.

Also this caught my eye in the linked article.

"TypeScript is compiled directly to machine code - there is no interpreter or JIT-compiler involved." There's a Typescript to native compiler about? Where?

Re:MakeCode Arcade: Retro Gaming, Modern Programming by pjmlp on Saturday January 19, 2019 @03:25AM (#18945966)
Yes, there is one, it is part of the MakeCode project.

https://makecode.com/language

"Microsoft MakeCode: from C++ to TypeScript and Blockly (and Back)"

https://www.youtube.com/watch?v=tGhhV2kfJ-w

Re:MakeCode Arcade: Retro Gaming, Modern Programming by xfer on Saturday January 19, 2019 @03:33AM (#18945997)
Re:MakeCode Arcade: Retro Gaming, Modern Programming by homarp on Saturday January 19, 2019 @03:39AM (#18946006)
PXT's underlying programming language is a subset of TypeScript (leaving out JavaScript dynamic features).

The main features of PXT are: [...] an ARM Thumb machine code emitter

Re:MakeCode Arcade: Retro Gaming, Modern Programming by mmoskal on Saturday January 19, 2019 @06:27AM (#18946476)
In fact there is more dynamic features in now, including accessing arbitrary fields through 'any' type and typeof expression. What's missing is mostly eval and prototype inheritance (instead we use classes). There's also a precise GC now.
Re:MakeCode Arcade: Retro Gaming, Modern Programming by jamesadevine on Saturday January 19, 2019 @05:07AM (#18946263)
Re:MakeCode Arcade: Retro Gaming, Modern Programming by homarp on Saturday January 19, 2019 @05:39AM (#18946346)
paper name is MakeCode and CODAL: Intuitive and Efficient Embedded Systems Programming for Education

https://www.microsoft.com/en-us/research/uploads/prod/2018/0...

https://doi.org/10.1145/3211332.3211335

Re:MakeCode Arcade: Retro Gaming, Modern Programming by sehugg on Saturday January 19, 2019 @11:39AM (#18947792)
I wonder if this could be retargeted to retro CPUs like the 6502 and Z80? Seems the assumption of 32-bit integers might make things less efficient though. (EDIT: never mind, it does support smaller int types!)
Re:MakeCode Arcade: Retro Gaming, Modern Programming by makapuf on Saturday January 19, 2019 @08:52AM (#18947037)
Interesting. I wonder if i can make it work on my arm32 console. It's fast but I generate video on the fly so there is few cycles left.