Re: pil21, some progress

2020-02-16 Thread Jean-Christophe Helary
> On Feb 17, 2020, at 0:17, Alexander Burger wrote: > > Hi Jean-Christophe, > >> Are there relatively trivial tasks that low-skilled people can help with ? > > Not sure if trivial, Pretty sure it's not :) But thank you for the hints. I'll take a look. Jean-Christophe > but LLVM code can

Re: pil21, some progress

2020-02-16 Thread Alexander Burger
Hi Jean-Christophe, > Are there relatively trivial tasks that low-skilled people can help with ? Not sure if trivial, but LLVM code can (and has to?) be optimized on several levels. I have not found the energy yet to research that in detail. The main and only reference I used for the

Re: pil21, some progress

2020-02-16 Thread Christophe Gragnic
On Sun, Feb 16, 2020 at 12:12 AM C K Kashyap wrote: > > Thanks Alexa friend of mine recently made a RISC V processor using fpga > and it got me intrigued by the whole FPGA thing ...perhaps a picolisp machine > may be possible :) Hi, Did you know about this?

Re: pil21, some progress

2020-02-16 Thread Jean-Christophe Helary
Are there relatively trivial tasks that low-skilled people can help with ? Jean-Christophe > On Feb 12, 2020, at 23:25, Alexander Burger wrote: > > Hi Jon, > >> Great! Now it works. I just did a “(+ 2 3 4 5)” and got 14. ;-) > > Glad to hear that :) > > >> What’s the most important things

Re: pil21, some progress

2020-02-15 Thread C K Kashyap
Thanks Alexa friend of mine recently made a RISC V processor using fpga and it got me intrigued by the whole FPGA thing ...perhaps a picolisp machine may be possible :) ... .this would require some digesting for me... Looks like there may be other folks who may be interested in the llvm

Re: pil21, some progress

2020-02-14 Thread Alexander Burger
Hi Kashyap, > Hey Alex, I did a quick comparison of a couple of .l files (gc.l and > flow.l) between pil21 and the current src64 files. I was expecting the > assembly files to not have much changes - I mean, in theory, only an > arch/llvm.l and perhaps minor tweaks in some more file should have

Re: pil21, some progress

2020-02-13 Thread C K Kashyap
Building pil21 on Docker seems trivial - 1. Run the docker container --> docker run --rm -it alpine:latest sh 2. Install the dependencies --> apk add llvm pkgconfig libffi-dev make clang libc-dev gcc 3. Download the source --> wget https://software-lab.de/pil21.tgz 4. Extract the sources --> tar

Re: pil21, some progress

2020-02-12 Thread Jean-Christophe Helary
Jon, Well, it seems I thought I had llvm installed but it was not the case... :) I added the relevant data to ~/.profile and now cd pil21 (cd src; make) && bin/picolisp works like a charm :) Thank you, and thank you Alex :) Jean-Christophe > On Feb 13, 2020, at 15:29, Jon Kleiser

Re: pil21, some progress

2020-02-12 Thread Jon Kleiser
Hi Jean-Christophe, If you find llvm-link by doing "which llvm-link”, and get something like this: /usr/local/opt/llvm/bin/llvm-link and you have added the two exports to your ~/.bash_profile, then I think you only need to make a new terminal window or tab for these exports to take effect. (In

Re: pil21, some progress

2020-02-12 Thread Jean-Christophe Helary
> On Feb 13, 2020, at 1:50, Alexander Burger wrote: > > Hi Jean-Christophe and Kashyap, > >> Quick related question - I can build pl21 using LLVM target on Linux right? >> I am planning to give it a shot on docker this weekend. > > It should require just these steps: > > apt install make

Re: pil21, some progress

2020-02-12 Thread Mike
> > ckk@DESKTOP-LROQHRF:~/picoLisp21/pil21/src$ make > llvm-link: base.bc: error: Unknown attribute kind (60) (Producer: 'LLVM9.0.1' > Reader: 'LLVM 6.0.0') > llvm-link: error loading file 'base.bc' > Makefile:22: recipe for target 'picolisp.bc' failed > make: *** [picolisp.bc] Error 1 >

Re: pil21, some progress

2020-02-12 Thread C K Kashyap
Thanks Joe I was trying various "apt update /upgrade/dist-upgrade" :) nothing worked. Your instructions did the trick! Very exciting indeed!!! Regards, Kashyap On Wed, Feb 12, 2020 at 12:02 PM Joe Bogner wrote: > Hi! I was also able to build and run on windows 10 under wsl > > I also had

Re: pil21, some progress

2020-02-12 Thread Joe Bogner
Hi! I was also able to build and run on windows 10 under wsl I also had the LLVM error and resolved it with this: https://solarianprogrammer.com/2017/12/13/linux-wsl-install-clang-libcpp-compile-cpp-17-programs/ sudo apt-get install make clang llvm lldb pkg-config

Re: pil21, some progress

2020-02-12 Thread Jon Kleiser
Hi Jean-Christophe, It seems I have my llvm installed by “brew install llvm”, and that probably also gave me llvm-config. If I do llvm-config --version , then I get 9.0.0. If I do which llvm-config , then I get /usr/local/opt/llvm/bin/llvm-config You can check if you have libffi by doing “brew

Re: pil21, some progress

2020-02-12 Thread Alexander Burger
Hi Kashyap, > "libffi-dev" instead of libffi since apt complained that it could not find > libffi. Good to know! > llvm-link: base.bc: error: Unknown attribute kind (60) (Producer: > 'LLVM9.0.1' Reader: 'LLVM 6.0.0') Oh! LLVM 6 is extremely old, isn't it? I have no idea how much LLVM changed

Re: pil21, some progress

2020-02-12 Thread C K Kashyap
I could not resist ... I just gave it a quick spin on my WSL - I had to use "libffi-dev" instead of libffi since apt complained that it could not find libffi. After that I ran make and got this - I think the error message is obvious - I'll try adjusting the llvm version later.

Re: pil21, some progress

2020-02-12 Thread C K Kashyap
Oh ... and I forgot - super cheers for not requiring PicoLisp and having base.bc in place :) On Wed, Feb 12, 2020 at 9:14 AM C K Kashyap wrote: > I could not resist ... I just gave it a quick spin on my WSL - I had to > use "libffi-dev" instead of libffi since apt complained that it could not

Re: pil21, some progress

2020-02-12 Thread Alexander Burger
Hi Jean-Christophe and Kashyap, > Quick related question - I can build pl21 using LLVM target on Linux right? > I am planning to give it a shot on docker this weekend. It should require just these steps: apt install make clang llvm libffi pkg-config tar xfz pil21.tgz cd pil21 (cd

Re: pil21, some progress

2020-02-12 Thread C K Kashyap
Quick related question - I can build pl21 using LLVM target on Linux right? I am planning to give it a shot on docker this weekend. Regards, Kashyap On Wed, Feb 12, 2020 at 8:21 AM Jean-Christophe Helary < jean.christophe.hel...@traduction-libre.org> wrote: > Jon, > > Would you mind describing

Re: pil21, some progress

2020-02-12 Thread Jean-Christophe Helary
Jon, Would you mind describing how you build pil21 ? I don't seem to be able to "make" it (no pun intended). JC > On Feb 12, 2020, at 23:00, Jon Kleiser wrote: > > Hi Alex, > > Great! Now it works. I just did a “(+ 2 3 4 5)” and got 14. ;-) > What’s the most important things missing?

Re: pil21, some progress

2020-02-12 Thread Alexander Burger
Hi Jon, > Great! Now it works. I just did a “(+ 2 3 4 5)” and got 14. ;-) Glad to hear that :) > What’s the most important things missing? Functions or stability? Stability is all right at the moment, though I did not do any significant testing. But concerning functionality, the largest part

Re: pil21, some progress

2020-02-12 Thread Jon Kleiser
Hi Alex, Great! Now it works. I just did a “(+ 2 3 4 5)” and got 14. ;-) What’s the most important things missing? Functions or stability? /Jon > On 12. Feb, 2020, at 13:16, Alexander Burger wrote: > > Hi Jon, > >> I have now made some progress in building pil21 on my Mac. > > Good! :) > >

Re: pil21, some progress

2020-02-12 Thread Alexander Burger
Hi Jon, > I have now made some progress in building pil21 on my Mac. Good! :) > lib.c:7:35: warning: format specifies type 'unsigned long' but the argument > has type 'int64_t' > (aka 'long long') [-Wformat] >fprintf(stderr, "%s %lX\n", s, n); I see, that's an easy one. Just a