12 ms·
C64
- flerovium 5y agoIs this open source?
- amasad 5y agoYes, 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/ https://blog.replit.com/
- flerovium 5y agoIt doesn't appear to be open source in the sense that I can't figure out what is actually happen. 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.
- djmips 5y agoVery 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_ 5y agoVery 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 https://github.com/jblang/supermon64) onto the one of the disks and you'd have a just enough to do some actual debugging.
- rzzzt 5y agoVICE has a monitor. It can also resolve symbols in KERNAL, IIRC.
- ChrisArchitect 5y agoDescriptive title: Functional Commodore 64 development environment on Replit
- 300bps 5y agoSeems 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.
- spullara 5y agoI was hoping this was one of their IDEs / runtimes not just a program that happens to be on Replit.
- amasad 5y agoIf 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!
- spullara 5y agoI would want to see it as a top level "language" where your files show up on the left and are accessible using disk commands in the environment. Running something would execute the commands to load and run on the C64 emulator, etc.
- flerovium 5y agoWarning: if you try the "Snapshot" option, it will open a window that can't (?) be closed?
- steve_coral 5y agoPOKE 1,52 Works as expected :)
- atlanta90210 5y agoSYS 64738
- dark-star 5y agoI'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?
- flohofwoe 5y agoDoes it even run locally via WASM? It feels a bit too slow for that. Here's an alternative though that's a bit closer to an "IDE experience": https://8bitworkshop.com/v3.8.0/?platform=c64&file=hello.dasm https://8bitworkshop.com/v3.8.0/?platform=c64&file=hello.das...
- flerovium 5y agoSimilarly 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 5y ago1. 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 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
- flerovium 5y ago1. Yes, but, what is actually happening on the box? 2. I doubt this is xterm.js. The font and text to not appear to be aligned columns/rows like an xterm session. (Compare the outer emulator font sizing and the inner x64 font sizing.) 3. The croisis protocol says, "x protobuf for vague 1-sentence description", but this does not actually specify the behavior of the backend--and you can't read the source.
- amelius 5y agoIt's so slow, it's even missing keystrokes.
- flerovium 5y agoWe 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.
- sixothree 5y agoIt doesn't fit the frame properly on my system.
- deleted 5y ago[deleted]
- davidw 5y agoNearly 20 years: https://en.wikipedia.org/wiki/Ettore_Perazzoli https://en.wikipedia.org/wiki/Ettore_Perazzoli
- pomian 5y agoBrilliant! Now if I could find my old cassettes, with the programs I wrote, and record them onto a computer, I wonder if they would run?
- bouncycastle 5y agoCool! Is there a way to save as a d64 file and export out of the browser?