News for hackers. Stuff that matters.
Re:Bare metal Smalltalk-80 port to the Raspberry Pi by cmrdporcupine on Friday July 17, 2020 @03:49PM (#23874709)
I wonder if there's anything neat that could be done in the Smalltalk VM that could take advantage of the BCM SOC's VPU etc. hardware ... hmm...
Re:Bare metal Smalltalk-80 port to the Raspberry Pi by johndoe0815 on Friday July 17, 2020 @04:10PM (#23874936)
Accelerating the Smalltalk VM BitBlt primitives using the VPU would certainly be interesting. Currently, drawing is rather slow since lots of the functionality is implemented in interpreted bytecodes and rendering to the framebuffer is completely unoptimized.
Re:Bare metal Smalltalk-80 port to the Raspberry Pi by zackangelo on Friday July 17, 2020 @05:18PM (#23875682)
Slight tangent, but: I first encountered a function named BitBlt when using the Win32 C API a long time ago. I had no idea that it originated in Smalltalk-72 in 1975 and the function name was just carried forward into the Windows API.
Re:Bare metal Smalltalk-80 port to the Raspberry Pi by johndoe0815 on Friday July 17, 2020 @05:25PM (#23875810)
BitBlt was also used as the drawing primitive for an early graphics terminal developed at Bell Labs, the appropriately named "Blit" (https://en.wikipedia.org/wiki/Blit_(computer_terminal). Hardware implementations of BitBlt were available in the Amiga and Atari ST blitter chips (that's how I learned about BitBlt in the late '80s).

Btw., there's a nice paper on BitBlt by Rob Pike: https://pdos.csail.mit.edu/~rsc/pike84bitblt.pdf

Re:Bare metal Smalltalk-80 port to the Raspberry Pi by pinewurst on Friday July 17, 2020 @07:00PM (#23877024)
A very long time ago, I ported Smalltalk to Windows and had to map Smalltalk BitBlt to Win32 BitBlt.
Re:Bare metal Smalltalk-80 port to the Raspberry Pi by johndoe0815 on Saturday July 18, 2020 @02:41AM (#23879547)
I had a quick look at the Win32 BitBlt API and it seems to be quite similar. Can you remember how much work was actually involved in mapping the Smalltalk primitives to Win32?
Re:Bare metal Smalltalk-80 port to the Raspberry Pi by pinewurst on Saturday July 18, 2020 @11:28AM (#23882009)
I probably shouldn't have described it quite like that.

This was in the days of Windows 2 (1988 or so) and I was hacking PPS Smalltalk to support larger, non-VGA displays. I ran the VM in 386 protected mode, because it needed large memory, where it blt-ed to an upper memory frame buffer. This was sort of a "bounce buffer" which in turn was blt-ed onto a Windows canvas by my Windows app which also reflected input events up to the VM.

Bill Gates was impressed when he saw a demo (or so I was told). Of course, he didn't realize the level of hackery involved to make it happen.

Re:Bare metal Smalltalk-80 port to the Raspberry Pi by cmrdporcupine on Tuesday July 21, 2020 @12:33PM (#23908273)
I believe Circle now has some OpenGL / GPU acceleration support. So textures could be used for bitblt.

I was thinking more along the lines of... I wonder if there's anything in the VPU (or other support hardware) that would be especially useful for accelerating a bytecode VM. But I can't really think of anything.