-
-
Notifications
You must be signed in to change notification settings - Fork 632
Hello World & Reverse a String in PicoLisp #152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Alright, so I cleaned up a couple things! Everything looks great. I have a couple questions though. Both picoLisp examples run a bit odd using the online editor: https://www.jdoodle.com/execute-picolisp-online If I run the Hello World example: Meanwhile, the string reversal example: |
|
Hi! I'm not sure why the first shows a warning. It doesn't seem to when I turn on "interactive mode". The second probably fails because the web REPL lacks a stdin, and it seems that it tries to run the loop or script once again when 'read fails, until it hits the output or heap limit. It also seems to happen if one tries to enter values in the stdin field. I tested both snippets in a local REPL, this is the first time I've seen a web version for picoLisp so I'm not aware of the implementation details. |
|
Do you have a link to the local REPL you're using? I'd like to include it in the article. |
|
http://software-lab.de/picoLisp.tgz for the rolling release, under Debian-style systems 'apt-get install picolisp' usually works, while 'pacman -S picolisp' usually works under Arch-style systems. If you want me to I can do a couple of simple asciinema recordings you could use. |
|
Hey, if you want, that would be awesome! I don't have a Linux machine on hand to run those tests locally. |
jrg94
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks great! Thanks for your help.
|
Good enough? Could probably take some more time tomorrow or during weekend to record writing down scripts and running those rather than just grabbing a short REPL session. |
|
This is great stuff. I appreciate the help. 😄 I'll probably embed these directly into the articles, if you don't mind. |
|
Also, just for reference, it seems the online REPL runs off the hook without the |
|
Of course, embedding them was the idea. Ah, right, good to know. I fiddled some with it but decided it didn't change much, perhaps that online REPL doesn't recognise '# as a comment operator or something. |
Hello World & Reverse a String in PicoLisp
Congrats on taking the first step to contributing to the Sample Programs in Every Language repository!
For simplicity, please make sure that your pull request includes one and only one sample program and language.
Please Complete the Following
<Sample Program> in <Language>formatNotes
Right, so I got to make notes here at the pull request.
Next up would be to write web server versions of the picolisp examples.
If there are no Factor or Forth contributions I could probably add those as well.