The Gambit@30 workshop was a blast! For those who couldn’t make it, you can find PDFs for some of the presentations on github at https://github.com/gambit/gambit-at-30 .
The repository also contains the compressed image of mimosa for running Gambit on bare metal. You can copy the image to a real IDE HDD and use it to boot a real PC, or use the QEMU emulator like this:
% gunzip -c mimosa.img.gz > mimosa.img % qemu-system-i386 -m 1G -hda mimosa.img
Once booted, here are some interesting things to type at the Gambit REPL:
> (current-directory) > (directory-files) > (load "fact.scm") > (load "fib.scm") ;; run it interpreted > (compile-and-load "fib.scm") ;; run it compiled to x86 > (load "x86-asm.scm") ;; x86 assembler example > (load "x86-os.scm") ;; read RTC with in/out instructions > (edit "fib.scm") ;; save/exit with ESC key
The state of the filesystem is preserved in mimosa.img. This includes the REPL history and any files generated or edited with `(edit ...)`.
Have fun!
Marc
Afficher les réponses par date
This is great!
Thank you Marc for such a great time at the workshop. Can we also made the presentation videos available, perhaps in youtube?
-- vyzo
On Tue, Oct 15, 2019 at 9:22 PM Marc Feeley feeley@iro.umontreal.ca wrote:
The Gambit@30 workshop was a blast! For those who couldn’t make it, you can find PDFs for some of the presentations on github at https://github.com/gambit/gambit-at-30 .
The repository also contains the compressed image of mimosa for running Gambit on bare metal. You can copy the image to a real IDE HDD and use it to boot a real PC, or use the QEMU emulator like this:
% gunzip -c mimosa.img.gz > mimosa.img % qemu-system-i386 -m 1G -hda mimosa.img
Once booted, here are some interesting things to type at the Gambit REPL:
> (current-directory) > (directory-files) > (load "fact.scm") > (load "fib.scm") ;; run it interpreted > (compile-and-load "fib.scm") ;; run it compiled to x86 > (load "x86-asm.scm") ;; x86 assembler example > (load "x86-os.scm") ;; read RTC with in/out instructions > (edit "fib.scm") ;; save/exit with ESC key
The state of the filesystem is preserved in mimosa.img. This includes the REPL history and any files generated or edited with `(edit ...)`.
Have fun!
Marc
Gambit-list mailing list Gambit-list@iro.umontreal.ca https://mailman.iro.umontreal.ca/cgi-bin/mailman/listinfo/gambit-list
Thank you Marc for a wonderful workshop and for Gambit. I learned a lot.
On Tue, Oct 15, 2019 at 2:22 PM Marc Feeley feeley@iro.umontreal.ca wrote:
The Gambit@30 workshop was a blast! For those who couldn’t make it, you can find PDFs for some of the presentations on github at https://github.com/gambit/gambit-at-30 .
The repository also contains the compressed image of mimosa for running Gambit on bare metal. You can copy the image to a real IDE HDD and use it to boot a real PC, or use the QEMU emulator like this:
% gunzip -c mimosa.img.gz > mimosa.img % qemu-system-i386 -m 1G -hda mimosa.img
Once booted, here are some interesting things to type at the Gambit REPL:
> (current-directory) > (directory-files) > (load "fact.scm") > (load "fib.scm") ;; run it interpreted > (compile-and-load "fib.scm") ;; run it compiled to x86 > (load "x86-asm.scm") ;; x86 assembler example > (load "x86-os.scm") ;; read RTC with in/out instructions > (edit "fib.scm") ;; save/exit with ESC key
The state of the filesystem is preserved in mimosa.img. This includes the REPL history and any files generated or edited with `(edit ...)`.
Have fun!
Marc
Gambit-list mailing list Gambit-list@iro.umontreal.ca https://mailman.iro.umontreal.ca/cgi-bin/mailman/listinfo/gambit-list
The repository also contains the compressed image of mimosa for running Gambit on bare metal. You can copy the image to a real IDE HDD and use it to boot a real PC, or use the QEMU emulator like this:
% gunzip -c mimosa.img.gz > mimosa.img % qemu-system-i386 -m 1G -hda mimosa.img
Once booted, here are some interesting things to type at the Gambit REPL:
> (current-directory) > (directory-files) > (load "fact.scm") > (load "fib.scm") ;; run it interpreted > (compile-and-load "fib.scm") ;; run it compiled to x86 > (load "x86-asm.scm") ;; x86 assembler example > (load "x86-os.scm") ;; read RTC with in/out instructions > (edit "fib.scm") ;; save/exit with ESC key
Very promising! I was able to run all of these examples with QEmu.
It's very nice that there's a built-in editor.
Also tried with VirtualBox. It needs the disk image in qcow2 format: `qemu-img convert -f raw -O qcow2 mimosa.img mimosa.qcow2`. Runs fine up to "The len of the gambit file is: 9569 520" but then hangs at full CPU usage. Let me know if there's some way I can try to get useful debug info.
Also tried with VirtualBox. [...] Runs fine up to "The len of the gambit file is: 9569 520" but then hangs at full CPU usage.
Wait, everything does work in VirtualBox too. It just takes several minutes to load the gambit file. After that it's about as fast as with QEmu; even the interpreted fibonacci runs quickly. Maybe the load time is due to some difference with the way interrupts are done in VBox or which kind of IDE disk it is emulating?
Maybe file IO is really slow on VirtualBox. Hourray for QEMU! On a real PC IO is quite acceptable… so I don’t know why VirtualBox is slow.
Marc
On Oct 16, 2019, at 3:05 PM, Lassi Kortela lassi@lassi.io wrote:
Also tried with VirtualBox. [...] Runs fine up to "The len of the gambit file is: 9569 520" but then hangs at full CPU usage.
Wait, everything does work in VirtualBox too. It just takes several minutes to load the gambit file. After that it's about as fast as with QEmu; even the interpreted fibonacci runs quickly. Maybe the load time is due to some difference with the way interrupts are done in VBox or which kind of IDE disk it is emulating?
Gambit-list mailing list Gambit-list@iro.umontreal.ca https://mailman.iro.umontreal.ca/cgi-bin/mailman/listinfo/gambit-list