[HN Gopher] C64
       ___________________________________________________________________
        
       C64
        
       Author : amasad
       Score  : 89 points
       Date   : 2021-11-23 18:51 UTC (4 hours ago)
        
 (HTM) web link (replit.com)
 (TXT) w3m dump (replit.com)
        
       | djmips wrote:
       | Very nice. Some ideas... that you already thought of ;-) For a
       | REPL it's a little too slow...
       | 
       | - Automatically do the LOAD "CPROG",8 and RUN
       | 
       | - Even better. Load the CPROG directly into the memory image and
       | bypass the drive load completely
       | 
       | - Optimize Emulator startup
        
       | ataylor284_ wrote:
       | Very cool. One of the c64's glaring omissions for a hackable
       | machine is a built-in monitor. My suggestion: throw a monitor
       | program (my favorite: https://github.com/jblang/supermon64) onto
       | the one of the disks and you'd have a just enough to do some
       | actual debugging.
        
         | rzzzt wrote:
         | VICE has a monitor. It can also resolve symbols in KERNAL,
         | IIRC.
        
       | dark-star wrote:
       | I'm confused. So... someone figured out that you can use cc65 to
       | compile C code for the C64, and then he stuck it into an
       | Emscripten version of VICE and put it on the web? I can click on
       | "run" and it looks like it's compiling the two programs, puts
       | them on a floppy, and then runs VICE with that floppy... What's
       | the point of this?
       | 
       | I can see the source code when I click on "show files", but I
       | cannot edit anything, I think I'm obviously missing something
       | here... how is that an IDE? Or is the IDE running inside VICE and
       | I can load it somehow?
       | 
       | Can someone enlighten me?
        
         | flerovium wrote:
         | Similarly confused. This seems to be running on a remote box,
         | but:
         | 
         | (1) How is the information is getting to the frontend?
         | 
         | (2) How is it being rendered when it gets there?
         | 
         | (3) What is being run on the box?
        
           | 19wintersp wrote:
           | 1. The information gets from the VM to you through a custom
           | WebSocket protocol called Goval (you can see the JS client at
           | https://github.com/replit/crosis). It can do editing, console
           | I/O, VNC, configuration of the image, etc.
           | 
           | 2. The console is rendered with xterm.js, the desktop is a
           | VNC client.
           | 
           | 3. Not sure what you mean
        
         | 19wintersp wrote:
         | It's a read-only "IDE" of sorts; it's effectively a disk image
         | stored in the cloud, which when run will create a VM and send
         | the output back to you. If you create an account, you can fork
         | that repl to create your own editable version of it, and access
         | the full IDE.
        
       | spullara wrote:
       | I was hoping this was one of their IDEs / runtimes not just a
       | program that happens to be on Replit.
        
         | amasad wrote:
         | If you fork it you can program it in the IDE including writing
         | C and ASM programs.
         | 
         | But it's a good idea -- will make it a template!
        
       | flerovium wrote:
       | Warning: if you try the "Snapshot" option, it will open a window
       | that can't (?) be closed?
        
       | amelius wrote:
       | It's so slow, it's even missing keystrokes.
        
         | flerovium wrote:
         | We can't really know why it's slow without knowing how it
         | works.
         | 
         | If it were sending keystrokes to a box, you should expect
         | latency <100ms and no bandwidth limitations. It must be a
         | problem with the emulation server. Without knowing more, we
         | can't really know.
        
       | ChrisArchitect wrote:
       | Descriptive title: Functional Commodore 64 development
       | environment on Replit
        
       | steve_coral wrote:
       | POKE 1,52
       | 
       | Works as expected :)
        
       | davidw wrote:
       | Nearly 20 years: https://en.wikipedia.org/wiki/Ettore_Perazzoli
        
       | flerovium wrote:
       | Is this open source?
        
         | amasad wrote:
         | Yes, most things on Replit are open-source. Just click "show
         | files" on the top-left corner. Also it's powered by Nix, and we
         | wrote a ton about it here: https://blog.replit.com/
        
           | flerovium wrote:
           | It's not clear to me what code I'm running.
           | 
           | 1. What is the secure (?) frontend? Is this xterm?
           | 
           | 2. What is the outer GUI operating system? How can I interact
           | with it?
           | 
           | Even for hobbies, I don't like building on something I don't
           | understand.
        
       | 300bps wrote:
       | Seems to be VICE running in a web client? VICE is a well-known
       | Commodore 64 emulator that's been around for 28 years. I'm not
       | sure why I wouldn't just run this locally? Serious question -
       | what is the advantage of this?
       | 
       | Running it on Replit I had to answer a multi-stage CAPTCHA
       | identifying all trucks and then it was so slow I couldn't even
       | type without holding the keys down for several seconds before
       | they would register.
        
       ___________________________________________________________________
       (page generated 2021-11-23 23:00 UTC)