rrose1 / jsonesharp

A browser-based implementation of the 1# text register machine
GNU General Public License v2.0
6 stars 6 forks source link

fix HTTPS issues #13

Closed ralsei closed 2 years ago

lmoss commented 2 years ago

Greetings, Robert!

As you can guess, I'm back using 1# in my class. There are two students who got interested in fixing the code to work better on contemporary browsers. They are Yafei Wang and Hazel Levine; one or both probably has gotten in touch with you. I trust that you don't mind them looking into things.

Meanwhile, since I could not completely use what you did, I re-implemented 1# in Python for Jupyter notebooks, and then it runs in one click on Google Colab. I don't yet have the nice animation that you had, but I am working on doing this in matplotlib and expect to have it later this semester. I also implemented a few other things, and you can see what I've done at

https://github.com/lmoss/onesharp

especially https://github.com/lmoss/onesharp/blob/main/evaluator.ipynb and https://github.com/lmoss/onesharp/blob/main/getting_started.ipynb

All the best,

  Larry

On Thu, Sep 8, 2022 at 1:17 PM Hazel Levine @.***> wrote:


You can view, comment on, or merge this pull request online at:

https://github.com/rrose1/jsonesharp/pull/13 Commit Summary

File Changes

(2 files https://github.com/rrose1/jsonesharp/pull/13/files)

Patch Links:

— Reply to this email directly, view it on GitHub https://github.com/rrose1/jsonesharp/pull/13, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHSAQMO4AYXIP7H5ZGELV3V5INTZANCNFSM6AAAAAAQH6VHNY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

rrose1 commented 2 years ago

Hi Larry,

It's good to hear from you!

If I were to get into this again, I would definitely start over from scratch and take an approach similar to yours. Especially with respect to integrating the textbook with the interactive software component. I guess the main thing I'd consider keeping from jsonesharp is that it runs the code locally in the browser. There's been a lot of technological progress in programming pedagogy tools along these lines (including support for just about every language under the sun) since we last thought about it together. For example, here's an introduction to javascript programming using an open source framework called freecodecamp: https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/ .

I co-taught quantum programming with Amr my last semester at IU; we used python notebooks for the second half of that class. https://qiskit.org/textbook/ch-prerequisites/python-and-jupyter-notebooks.html

I grew pretty fond of that approach. Notebooks render LaTeX as well. One real advantage over the interactive textbook approach is that students can draft their own notebooks and submit them as homework.

If Hazel or Yafei were interested in contributing, I would urge them to help you figure out how to make your version as functional as the qiskit textbook. For example, it's possible to avoid exposing the interpreter in the notebook; also, to have the notebooks seemlessly embedded in a website...

Good luck, and have fun! :-)

Robert

------- Original Message ------- On Thursday, September 8th, 2022 at 15:32, Larry Moss @.***> wrote:

Greetings, Robert!

As you can guess, I'm back using 1# in my class. There are two students who got interested in fixing the code to work better on contemporary browsers. They are Yafei Wang and Hazel Levine; one or both probably has gotten in touch with you. I trust that you don't mind them looking into things.

Meanwhile, since I could not completely use what you did, I re-implemented 1# in Python for Jupyter notebooks, and then it runs in one click on Google Colab. I don't yet have the nice animation that you had, but I am working on doing this in matplotlib and expect to have it later this semester. I also implemented a few other things, and you can see what I've done at

https://github.com/lmoss/onesharp

especially https://github.com/lmoss/onesharp/blob/main/evaluator.ipynb and https://github.com/lmoss/onesharp/blob/main/getting_started.ipynb

All the best,

Larry

On Thu, Sep 8, 2022 at 1:17 PM Hazel Levine @.***> wrote:


You can view, comment on, or merge this pull request online at:

https://github.com/rrose1/jsonesharp/pull/13 Commit Summary

File Changes

(2 files https://github.com/rrose1/jsonesharp/pull/13/files)

Patch Links:

— Reply to this email directly, view it on GitHub https://github.com/rrose1/jsonesharp/pull/13, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHSAQMO4AYXIP7H5ZGELV3V5INTZANCNFSM6AAAAAAQH6VHNY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you modified the open/close state.Message ID: @.***>