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: Merry Christmas!!

2019-12-24 Thread Joe Bogner
Merry Christmas! (from Ohio, USA) Yes, thank you Alex! It's been almost a decade since I got into PicoLisp! Still one of my favorites! On Tue, Dec 24, 2019, 1:09 PM Mattias Sundblad wrote: > Just to add to the international flavour: > > God jul! > > // Mattias > > Priyadarshan skrev: (24

Re: A possible way to build for windows

2019-02-26 Thread Joe Bogner
Hi Kashyap, I've been interested in a picolisp port to Windows for several years. I've tried a number of different options. My last effort was to use https://midipix.org/ as the POSIX layer. It worked OK but then midipix seemed to lose steam with Windows Subsystem for Linux (WSL) coming out. Now,

Re: Wiki

2018-05-20 Thread Joe Bogner
Hi Arie - Thanks for the contribution and good suggestion on removing the flinux page. Can you do that for me? On Sun, May 20, 2018, 10:56 AM Arie van Wingerden wrote: > Hi, > > Just added a Wiki page about new WSL install for Windows 10, which is > linked from the main page.

Re: Question about tutorial ...

2018-04-18 Thread Joe Bogner
Arie, I followed your WSL steps on a newer machine and I don't see the db locking issue any more. Thanks! My other machine has the problem but its WSL is at least 6 months old - so maybe it was fixed in WSL since then or possibly something fixed/changed by following your instructions. Thanks, I'll

Re: PicoLisp on Windows WSL first tryout fails ...

2018-04-17 Thread Joe Bogner
Arie, For WSL, you need to build picoLisp on a linux machine and then transfer it down. You can follow the download/install instructions, but here is generally what I did ON LINUX 1. wget https://software-lab.de/picoLisp.tgz 2. tar -zxvf picoLisp.tgz 3. cd picoLisp/src 4. make 5 cd ../src64 6.

Re: PicoLisp on Windows

2018-04-16 Thread Joe Bogner
Hi Arie, I would like to send a more detailed reply later. I'm the author of the flinux writeup. It's been a few years and things don't work as nicely as they did back then. I retested some the writeup today. I was unable to get the flinux static option working. I was able to get flinux dynamic

Re: Feed reader and bookmarker

2018-04-10 Thread Joe Bogner
Hi Henrik, thank you for your other contributions to date. I am also interested in reviewing it On Tue, Apr 10, 2018 at 9:52 AM, Manuel Cano wrote: > Hi, > > Where can we find it? > > Kind regards, > Manu > > 2018-04-08 15:22 GMT+02:00 Henrik Sarvell :

Re: anyone tried cygwin or mingw recently?

2017-07-05 Thread Joe Bogner
Hi Richard, I'm not sure about mingw/cygwin but I do have an unofficial port of pil-64 that runs on windows using midipix -- https://github.com/joebo/picoLisp-win-x86-64 My port has somewhat stalled as midipix is moving a bit slower than I expected. If I recall, most tests were passing and it

Re: building picolisp in mobaxterm (cygwin)

2017-06-13 Thread Joe Bogner
ess: parent(0xE3) != child(0x6C) > make: Makefile:128: fork: Resource temporarily unavailable > cc -o sysdefs -D_FILE_OFFSET_BITS=64 sysdefs.c > 0 [main] make 7520 child_info_fork::abort: > C:\Users\jose\DOWNLO~1\jose\PROGRA~2\MOBAXT~1\PERSIS~1\slash\bin\cyggmp-10.dll

Re: building picolisp in mobaxterm (cygwin)

2017-06-13 Thread Joe Bogner
If you get stuck, jump on #picolisp on irc.freenode.net On Tue, Jun 13, 2017 at 5:19 PM, Joe Bogner <joebog...@gmail.com> wrote: > Building from my repo is complicated as it requires a different toolchain

Re: building picolisp in mobaxterm (cygwin)

2017-06-13 Thread Joe Bogner
Hi pd, yes, this is a common issue with cygwin and fork. Are you on a 64-bit bit PC? If so, I have an experimental version of PicoLisp on 64-bit that might be useful - https://github.com/joebo/picoLisp-win-x86-64 I can elaborate if so On Tue, Jun 13, 2017 at 3:22 PM, pd

Re: Method undefined - why?

2017-03-23 Thread Joe Bogner
Hi Thorsen, what about using (class) and (dm) instead? joebo@joebo:~/dev/picoLisp$ pil + : (class +Test) -> +Test : (dm T (Hi) (=: hi Hi)) -> T : (dm hi> (Nm) (or (text (: hi) Nm) "Dear Sir or Madam,")) -> hi> : (setq Foo (new '(+Test) "Hi @1")) -> $177463554467256 : (hi> Foo "Alex") -> "Hi Alex"

Re: in the spirit of RosettaCode...

2017-03-17 Thread Joe Bogner
Thanks Erik! I've updated app-persist To run it, I was also thinking heroku or hyper.sh is interesting (minimal expense). For either one, I was thinking of creating a docker container. I have a minimal, non-picolisp, example at: https://github.com/joebo/docker-tinycore-jhs There is also

Re: in the spirit of RosettaCode...

2017-03-15 Thread Joe Bogner
exercise. I would like to write a wiki article about it and possibly even create a video to show my workflow On Wed, Mar 1, 2017 at 9:36 PM, Joe Bogner <joebog...@gmail.com> wrote: > Hi Dave, I am hoping to find some time over the next few days to work on > this and will send a note

Re: JavaCode with static class methods

2017-03-02 Thread Joe Bogner
Hi Thorsen, it looks like you were on the right path. I'm guessing there may be a bug or issue with the double signature This works: : (java (java "java.lang.Math" "abs" -4)) -> 4 : (java (java "java.lang.Math" "min" 10 5)) -> 5 But I'm just guessing On Thu, Mar 2, 2017 at 3:02 PM, Thorsten

Re: in the spirit of RosettaCode...

2017-03-01 Thread Joe Bogner
Hi Dave, I am hoping to find some time over the next few days to work on this and will send a note when I have some progress. It looks like an interesting challenge and similar to the todo work I already did. Thanks for sharing. Thanks, Joe On Wed, Mar 1, 2017 at 11:13 AM, Loyall, David

Re: in the spirit of RosettaCode...

2017-02-28 Thread Joe Bogner
Hi David, Alex Not exactly the same thing (both front-end and back-end)... I created a todo example last year: https://github.com/joebo/pil-mithril-todo. This is not a pure pil way since it uses a javascript framework - so it could be a PicoLisp / Mithril.js combo. It would be nice to see a pure

Re: Copy/Clone a 'job

2017-02-26 Thread Joe Bogner
Hi Lindsay, It looks like you are using job primarily to retain the value of N between invocations. Is that true? Just curious, why not move the loop inside of hexSpigot instead of looping outside of it? Another option to consider if you want the behavior of being able to increment the hexSpigot

Re: help with global replace in text file/list of bytes

2017-02-21 Thread Joe Bogner
After trying to figure it out myself for a few minutes, I remembered to check rosettacode (wonderful resource). This is probably close to what you need: http://rosettacode.org/wiki/Globally_replace_text_in_several_files#PicoLisp On Tue, Feb 21, 2017 at 8:08 AM, Joe Bogner <joebog...@gmail.

Re: help with global replace in text file/list of bytes

2017-02-21 Thread Joe Bogner
Hi dean, I experimented with this problem for a few minutes and didn't come up with anything worth posting. A few comments though: 1. Your picolisp code is becoming easier to read. Nice work! 2. My initial thought was to split the input into words and replace sublists, however it looks like you

Re: clip and chop down consecutive "internal" white spaces to one space??

2017-02-17 Thread Joe Bogner
fun does this do it? (pack (mapcon '((X) (ifn (= '(" " " ") (head 2 X)) (cons (car X (chop S))) -> " this contains 2 consecutive spaces " On Feb 17, 2017 5:23 PM, "dean" wrote: > I've done this and it works but...is there a slicker way :) > > (setq S " this

Re: altering LOCAL list elements

2017-02-10 Thread Joe Bogner
dean, is this what you are describing? (let L (list 1 2 3) (setq L (append L (4))) (printsp L) ) (1 2 3 4) The key to this is understanding how let works. It restores the prior value after execution. See http://software-lab.de/doc/refL.html#let Defines local variables. The

Re: Segfault with huge list...?

2017-02-10 Thread Joe Bogner
It sounds like it's exceeding the stack size. Have you tried setting it to unlimited? ulimit -s unlimited http://www.mail-archive.com/picolisp@software-lab.de/msg01203.html On Fri, Feb 10, 2017 at 8:07 AM, Christopher Howard < christopher.how...@qlfiles.net> wrote: > Hi list. When I try to do >

Re: exit case body/prog/function

2017-01-19 Thread Joe Bogner
dean, I would use unless. See this control structure below as an alternative to the prog/if : (setq Test1 1) -> 1 : (case Test1 (1 (unless Test2 (prinl "true" true -> "true" : (setq Test2 "Nope") -> "Nope" : (case Test1 (1 (unless Test2 (prinl "true" -> NIL On Thu, Jan 19, 2017 at

Re: help extracting number from string

2016-12-15 Thread Joe Bogner
This is probably better: : (extract format (split (mapcar format (chop "35fabc79")) NIL)) -> (35 79) On Thu, Dec 15, 2016 at 7:57 PM, Joe Bogner <joebog...@gmail.com> wrote: > OK, how about this this? > > : (mapcar format (extract pack (split (mapcar for

Re: help extracting number from string

2016-12-15 Thread Joe Bogner
...@gmail.com> wrote: > If i understood it correctly he wants to get all groups of number. "35f79" > -> (35 79) > Am 16.12.2016 09:28 schrieb "Joe Bogner" <joebog...@gmail.com>: > >> how about >> >> : (extract format (chop 'ab33Cd)) >> -

Re: help extracting number from string

2016-12-15 Thread Joe Bogner
how about : (extract format (chop 'ab33Cd)) -> (3 3) or : (format (pack (extract format (chop 'ab33Cd -> 33 On Thu, Dec 15, 2016 at 4:16 PM, dean wrote: > I've seen num? and chop but think I need something in the middle to turn a > character to a number. > >

Re: Incomplete documentation on 'need'

2016-12-03 Thread Joe Bogner
Hi Bruno, welcome! I agree the documentation is terse, but I think it's clear. "When lst is given, it is extended to the left (if cnt is positive) or (destructively) to the right (if cnt is negative) with any elements" Here's an example Perhaps an additional example would be useful in the

Re: solving for pilog variables

2016-11-27 Thread Joe Bogner
dean, does this help? I don't know pilog well but was just playing around : (prove (goal '( (equal @A 5) (equal @B 2) (^ @C (- (-> @A) (-> @B) ) -> ((@A . 5) (@B . 2) (@C . 3)) On Sun, Nov 27, 2016 at 12:42 PM, dean wrote: > (prove (goal '( (^ @X (- (-> @A)

Re: stuck re quote

2016-11-22 Thread Joe Bogner
r quote but I couldn't produce a ' > equivalent of ((quote (X) (* X X)) 9) i.e. > > : ((quote (X) (* X X)) 9) > -> 81 > : (('(X) (* X X)) 9) > !? (('(X) (* X X)) 9) > NIL -- Undefined > ? > : (('X (* X X)) 9) > !? ('X (* X X)) > X -- Undefined >

Re: stuck re quote

2016-11-21 Thread Joe Bogner
Hi dean, It's not clear what you're asking. Does this help explain it? http://software-lab.de/doc/tut.html --- from the page --- Anonymous functions without the lambda keyword There's no distinction between code and data in PicoLisp, quote will do what you want (see also this FAQ entry). :

Re: later vs. co

2016-11-17 Thread Joe Bogner
Great! To add to the dialog, I am not surprised by co/in-row being similar. I might have actually thought that co would be slightly slower. This task is CPU bound which won't get any benefit from switching coroutines, whereas later spawns new processes (workers) to take advantage of multi-core.

Re: Date query question

2016-11-17 Thread Joe Bogner
Henrik, thanks for sharing. Interesting question! > I can fairly trivially do a collect and then a filter on the results of the > collect as shown above. > > But how would the above problem be solved with Pilog and select if we have > more than "a couple of hundred objects" in the database? >

Re: map-reduce

2016-11-14 Thread Joe Bogner
Thanks for sharing. This is an impressive example to show how to execute a computation in parallel The parallel magic seems to be here: (chain (mapcan '((F) (later (cons) (-file F))) *MAPFILES ) ) (wait NIL (full (made))) ) great work! On Mon, Nov 14, 2016 at 8:30 AM, Mike

Re: (< @X 18) doesn't behave as expected with pilog

2016-11-14 Thread Joe Bogner
Hi Alex, range/3 seems to work as I expected. Should it not be used here? (be age (Paul 19) ) (be age (Kate 17) ) (be underage (@X) (age @X @Y) (range (0 . 18) @Y)) (? (underage @X) ) @X=Kate On Sat, Nov 12, 2016 at 10:44 AM, Alexander Burger wrote: > Hi Joe, >

Re: (< @X 18) doesn't behave as expected with pilog

2016-11-12 Thread Joe Bogner
Untested, but what about using range/3 ? http://software-lab.de/doc/refR.html#range/3 On Sat, Nov 12, 2016 at 9:59 AM, CILz wrote: > Hello, > > Let's say that I have those two facts in a pilog database: > > (be age (Paul 18)) > (be age (Vincent 17)) > > I'm looking for the

Re: First post

2016-11-12 Thread Joe Bogner
Hello Eric! Thanks for the introduction. Welcome! Looking forward to your questions! On Sat, Nov 12, 2016 at 9:45 AM, CILz wrote: > Dear list, > > I take the opportunity of this first post to introduce myself as well as the > reasons for which I come here. > > I am not a

Re: Subscribe

2016-11-11 Thread Joe Bogner
Hi dean, Welcome! I would probably do this: : (in '(ls) (make (until (eof) (link (line T) -> ("app" "bin" "CHANGES" "COPYING" "CREDITS" "cygwin" "db2" "dbg" "dbg.l" "dev" "doc" "doc64" "ersatz" "ext.l" "games" "img" "INSTALL" "lib" "lib.css" "lib.l" "loc" "man" "misc" "picoblogorg" "pil"

Re: bcrypt

2016-09-19 Thread Joe Bogner
perfect, thanks! On Mon, Sep 19, 2016 at 9:03 AM, Mike Pechkin <mike.pech...@gmail.com> wrote: > > all under CC0. > you are free to do you want. > > On Mon, Sep 19, 2016 at 3:12 PM, Joe Bogner <joebog...@gmail.com> wrote: > >> Mike, this looks great. What

Re: bcrypt

2016-09-19 Thread Joe Bogner
Mike, this looks great. What license covers this work - I see CC0 in the root LICENSE[1] but didn't want to assume? Can I redistribute the source with my example app? [1] - https://bitbucket.org/mihailp/tankfeeder/src/f9ad69ad2a6ec35941f50c4ec1160e7a53ea3e67/LICENSE?at=default=file-view-default

creating a todo app in less than 2 minutes (pil-mithril-scaffold)

2016-09-15 Thread Joe Bogner
I've created a new demo of using PicoLisp with mithril to quickly prototype apps. The key feature is a scaffolding which generates crud operations and forms for any +ApiEntity https://github.com/joebo/pil-mithril-scaffold/blob/master/README.md Create a todo app in less than 2 minutes (cheated a

Re: web app example - todo w/mithril.js

2016-09-14 Thread Joe Bogner
rick, great suggestion and thanks for the feedback! Added and deployed! https://github.com/joebo/pil-mithril-todo/blob/master/app.js#L52 On Wed, Sep 14, 2016 at 8:37 PM, <r...@tamos.net> wrote: > Hi Joe! > > On Wed, 14 Sep 2016 00:14 -0400, Joe Bogner wrote: > &

Re: web app example - todo w/mithril.js

2016-09-14 Thread Joe Bogner
On Wed, Sep 14, 2016 at 7:52 AM, Mike Pechkin wrote: > I will implement bcrypt in PicoLisp. > > Great! It will be nice to eliminate that dependency on bcrypt.so >

web app example - todo w/mithril.js

2016-09-13 Thread Joe Bogner
I've been working on an example of using PicoLisp to create as a single page web application (javascript / SPA). The code is available at https://github.com/joebo/pil-mithril-todo You can play with the example here (may be temporary): http://csilo.com:8088/ log in with admin/admin I welcome

Re: Article on fixed-point arithmetic in picolisp

2016-09-06 Thread Joe Bogner
Hey Rick, Thanks for the article! It was informative and interesting. It should make the scale operations less intimidating and awkward to a new user. I particularly like how it highlights the benefits over floating point math. What do you think about publishing some bits from the article on the

Re: toy-forth-in-picolisp, and a 32-bit problem

2016-08-26 Thread Joe Bogner
Hi Jon - also works on windows 64bit version : : : ff 0 if 77 else 88 then ; -> +DefineWord Done defining ff as (0 $200243534) t -> tempStack: -> +DefineWord Done defining fac as (_dup_ 1 _>_ $200244051) 5 fac .s -> (120) On Fri, Aug 26, 2016 at 11:26 AM, Brian Walker

task db example

2016-08-24 Thread Joe Bogner
Some discussion on irc this morning prompted me to create a simple example showing how to interact with the db directly. I posted it to the wiki and am sharing it here in case anyone would benefit http://picolisp.com/wiki/?taskdb

picolisp windows update & other notes

2016-08-18 Thread Joe Bogner
I wrote up a few notes after working with the picolisp win-x86-x64 port today http://csilo.com/!article?2016/08/19/PicoLisp-win-x86-64-app/main-edit-workaround,-other-musings I figured others may be interested. Feel free to reply here with any comments. It's good to be working with pil again

Re: Windows x64 PicoLisp preview

2016-08-17 Thread Joe Bogner
Thanks for the feedback everyone. I resurveyed the options on Windows this morning for PicoLisp 1. pil32 compiled under mingw -- compiles but doesn't work due to issues with reading from stdin -- example (load "lib.l") is read as (load "lib.") .. similar failures when invoking from command line

Re: flinuxpicolisp

2016-07-05 Thread Joe Bogner
ows Subsystem for Linux". > > Haven't tried using database yet, though. > > On Tue, Jul 5, 2016 at 5:26 AM, Rick Hanson <cryptor...@gmail.com> wrote: > >> On Mon, Jul 4, 2016 at 2:17 PM, Thorsten wrote: >> > Hi List, >> >> Hi, Thorsten ! >> >&

Re: flinuxpicolisp

2016-07-05 Thread Joe Bogner
On Mon, Jul 4, 2016 at 2:17 PM, Thorsten <tjol...@gmail.com> wrote: > Hi List, > I just discovered a nice article by Joe Bogner about FLINUX as an > alternative was to run PicoLisp under Windows (http://picolisp.com/wiki/? > flinuxpicolisp). > > Hi Thorsten, glad you foun

Re: Websockets now considered stable

2016-01-14 Thread Joe Bogner
Hi Henrik, Thanks for sharing. I get the following when running the ws-demo: ./pil pl-web/ws-demo/main.l -go .. !? (wsServer) wsServer -- Undefined I can't find the definition of wsServer anywhere. Is it missing from the repo? Thanks, Joe On Mon, Jan 4, 2016 at 4:27 PM, Henrik Sarvell

Re: Single File Function Reference

2015-10-13 Thread Joe Bogner
This may be relevant: https://github.com/tj64/picolisp-by-example https://github.com/tj64/picolisp-works/blob/master/editor.pdf?raw=true https://github.com/tj64/picolisp-by-example/blob/master/book.pdf?raw=true PicoLisp By Example has a function reference Also documented here:

Re: PilOS

2015-07-23 Thread Joe Bogner
hole though, since I have learned heaps about DMA and qemu, and I have even started to look into Alex's code. Now, back to PilOS!!! Rob On Tue, Jul 21, 2015 at 7:18 PM, Joe Bogner joebog...@gmail.com wrote: Hi Rob, I'm using qemu-2.0.9.1 on win64 with pilos and it works fine I downloaded

Re: PilOS

2015-07-21 Thread Joe Bogner
Hi Rob, I'm using qemu-2.0.9.1 on win64 with pilos and it works fine I downloaded it from here: http://qemu.weilnetz.de/w64/qemu-w64-setup-20140715.exe Later versions, including qemu-w64-setup-20150503.exe did not run for me Hope that helps On Mon, Jul 20, 2015 at 6:10 AM, Robert Herman

Re: PilOS Boot Issues

2015-06-29 Thread Joe Bogner
Hi Alex, The new version boots fine on qemu under windows 7 x64. Under virtualbox on the same platform, get stuck with a black screen that says Loading PilOS with nothing else displayed This is how I converted the image c:\Program Files\qemu\qemu-img.exe convert -O vmdk x86-64.img x86-64.vmdk

Re: PilMCU is dead - Long live PilOS!

2015-06-19 Thread Joe Bogner
Alex, this is incredibly cool. It runs fine on win64 under qemu. This will be fun to play with. Are you considering adding networking support in the future? I imagine that would be quite difficult. On Fri, Jun 19, 2015 at 4:16 PM, Alexander Burger a...@software-lab.de wrote: Hi all, I'm happy

Re: PilMCU is dead - Long live PilOS!

2015-06-19 Thread Joe Bogner
I was so excited I didn't read close enough Also missing is - of course - networking (left as an exercise for the reader ;). On Fri, Jun 19, 2015 at 4:47 PM, Joe Bogner joebog...@gmail.com wrote: Alex, this is incredibly cool. It runs fine on win64 under qemu. This will be fun to play

Re: Static file server with Ersatz

2015-03-16 Thread Joe Bogner
Christophe, I wrote up an article a few years ago about creating a web app with ersatz and picoLisp: http://picolisp.com/wiki/?ersatzwebapp One of the subtle points of the article is that you need to modify the ersatz sources to remove the Static initialization of variables, otherwise it won't

Re: PicoLisp roots

2014-09-22 Thread Joe Bogner
Hi Jerome, You might be interested in https://github.com/michelp/0pl as it's somewhat similar to what you are trying to accomplish. It's PicoLisp bindings for ZeroMQ It may give you some ideas on how to tackle the amqp port On Sun, Sep 21, 2014 at 12:32 PM, jerome moliere

Re: Announce: PicoLisp in Hardware (PilMCU)

2014-09-19 Thread Joe Bogner
Hi Alex - congratulations... It's really inspiring to see picoLisp keep improving and branching out. It really has staying power This might be off base, but is it within the realm of possibility to run PilMCU on a raspberry pi now or in the future? That's an accessible piece of hardware that many

Re: try picolisp

2014-08-28 Thread Joe Bogner
Hi Mike, I would also be interested in minipicolisp running under Emscripten. In the meantime, have you seen Jon Kleiser's EmuLisp: http://folk.uio.no/jkleiser/pico/emuLisp/console.html ? On Thu, Aug 28, 2014 at 1:41 PM, Mike Pechkin mike.pech...@gmail.com wrote: hi, Is it hard to implement

Re: Implementation Education

2014-08-07 Thread Joe Bogner
Hi Alabhya, I would also suggest starting with miniPicoLisp.- http://software-lab.de/miniPicoLisp.tgz Check out the docs: http://picolisp.com/wiki/?Documentation Specifically, the reference: http://software-lab.de/doc/ref.html#vm You may need to read it over several times. I've probably read

Re: Regarding the implementations of PicoLisp

2014-05-12 Thread Joe Bogner
On Mon, May 12, 2014 at 5:40 AM, Christophe Gragnic christophegrag...@gmail.com wrote: I'm interested by a clang compatible version, just to see what emscripten will make of it. For the sake of the experience I'm gonna try anyway. chri, I'm also interested in a emscripten compiled

Re: Regarding the implementations of PicoLisp

2014-05-12 Thread Joe Bogner
Hi Alex, Thanks for the reply and the details. On Mon, May 12, 2014 at 9:56 AM, Alexander Burger a...@software-lab.dewrote: Alex, is there a reasonably safe upper bounds that can be used instead of it being determined dynamically? Hmm, what is safe? In any case you use the generality of

Re: Regarding the implementations of PicoLisp

2014-05-12 Thread Joe Bogner
: On Mon, May 12, 2014 at 2:16 PM, Joe Bogner joebog...@gmail.com wrote: I was able to compile miniPicoLisp on windows under clang. I basically just replaced all instances of variable array initialization, such as: struct {any sym; any val;} bnd[length(x = car(expr))+3]; with //TODO

Re: Regarding the implementations of PicoLisp

2014-05-12 Thread Joe Bogner
On Mon, May 12, 2014 at 11:50 AM, Christophe Gragnic christophegrag...@gmail.com wrote: I just set up a repository on github (Alex being OK) and reported my issue here: https://github.com/Grahack/minipicolisp/issues/1 I think the main difference is your Makefile

Re: Regarding the implementations of PicoLisp

2014-05-09 Thread Joe Bogner
Hi Rick, Christophe, I was thinking the same thing. miniPicolisp might be a simpler first step to port On Fri, May 9, 2014 at 7:51 AM, Rick Lyman lyman.r...@gmail.com wrote: Christophe, How about porting the c version using: https://github.com/kripken/emscripten? -rl On Thu, May 8,

Re: Regarding the implementations of PicoLisp

2014-05-09 Thread Joe Bogner
-accelerator-in-the-works-242042 -rl p.s.: anyone considering c directly via Chrome/NaCL? On Fri, May 9, 2014 at 8:19 AM, Joe Bogner joebog...@gmail.com wrote: Hi Rick, Christophe, I was thinking the same thing. miniPicolisp might be a simpler first step to port On Fri, May 9, 2014 at 7:51 AM

Re: Regarding the implementations of PicoLisp

2014-05-09 Thread Joe Bogner
[-Wparentheses] } while (p = p-link); ~~^ ... On Fri, May 9, 2014 at 11:20 AM, Rick Lyman lyman.r...@gmail.com wrote: re: http://pypyjs.org/demo/ Success: Chrome: 34 Internet Explorer: 11 Failure: Safari: 5 On Fri, May 9, 2014 at 10:50 AM, Joe Bogner

Re: Using OpenStreetMap Geo-Data with PicoLisp

2014-05-06 Thread Joe Bogner
Hi Alex, I look forward to reading the article. To load the videos only when needed, you could take a screenshot of video and use that as the image on the page. You could have a javascript click event that replaces the image HTML with the video tag. That's the first idea that came to mind. I

Re: Would a logging framework make sense for PicoLisp

2014-02-25 Thread Joe Bogner
I like the idea of something simple and possibly built-in. However, would it be possible to implement as a function that wraps definitions with a redef and adds the logging? http://software-lab.de/doc/refR.html#redef On Tue, Feb 25, 2014 at 9:20 AM, Henrik Sarvell hsarv...@gmail.com wrote:

Re: Creation stamp

2014-02-10 Thread Joe Bogner
Hey Alex - On Mon, Feb 10, 2014 at 9:31 AM, Alexander Burger a...@software-lab.dewrote: Also, you can save quite some time if you pre-allocate memory, to avoid an increase with each garbage collection. I would call (gc 800) in the beginning, to allocate 800 MB, and (gc 0) in the end.

Re: Pre-compiled picolisp for CentOS, Cygwin, OSX

2013-11-01 Thread Joe Bogner
Thanks Keith. The cygwin one is helpful. The last time I compiled it is a few years ago and haven't reconfigured cygwin on this machine to build On Fri, Nov 1, 2013 at 10:20 AM, Keith Kim keith...@gmail.com wrote: Hello, I've uploaded pre-compiled picolisp for CentOS6 (32 and 64bit), OSX and

PicoLisp parsing example

2013-10-07 Thread Joe Bogner
Hello, In the interest of sharing PicoLisp related content, I recently wrote up a solution[1] to a problem[2] posted in a J forum. https://gist.github.com/joebo/6813083 I also ended up creating a J solution too[3] The PicoLisp solution was a joy to write and actually turned out to be a bit

Re: Some initial questions

2013-09-26 Thread Joe Bogner
Hi Luis, I've built a proof of concept PicoLisp apk and ran it on a Droid X and my kindle fire. I wrote about it here: http://www.mail-archive.com/picolisp@software-lab.de/msg03114.html I was able to build the entire apk using terminal ide on my android (no android SDK). I'm happy to answer any

Re: Some initial questions

2013-09-25 Thread Joe Bogner
I remember finding this reference very helpful as well: http://pleac.sourceforge.net/pleac_picolisp/index.html These quick guides have been cropping up lately on my news feeds - http://learnxinyminutes.com/ . Is anyone interested in doing one for PicoLisp? It's been on my maybe-someday list for

Re: Great canvas article and demo

2013-09-15 Thread Joe Bogner
Tomas, That is interesting! I was playing around with your demo and ran a little bookmarklet that would refresh the stepped version automatically. I first included jquery through a bookmarklet. Then, I pasted this into my javascript console window: var refresh = function(location) {

Re: Ext library and file name indexer

2013-08-31 Thread Joe Bogner
Hi Henrik Thanks for sharing. I have a few picolisp repos on bitbucket too. https://bitbucket.org/joebo Includes my orgmode parser, mustache template implementation, and blog. All have been running flawlessly for 8 continuous months. I have read Alex's comments on the stability of picolisp

Re: Bitmessage Mailing List for PicoLisp

2013-08-29 Thread Joe Bogner
Got it! Thanks. I'm trying it out for the first time On Thu, Aug 29, 2013 at 10:02 AM, Alexander Burger a...@software-lab.dewrote: Hi Joe, Do we also need the chan name? I tried PicoLisp I didn't create a chan (Decentralized Mailing List), as this involves possible spam issues. Just a

Re: SEXP?

2013-07-01 Thread Joe Bogner
Hi Thorsten, I've used fun? to determine if an argument had the proper form of something that was executable or if it was data. It may not work in all cases, but it was sufficient for my use case. As Alex mentioned, it won't let you know whether it's actually executable or not. I think of it as

picolisp org-mode blog

2013-01-05 Thread Joe Bogner
Hello all - Over the holiday I made some progress on the org-mode parser and rolled it into a blog engine. It's still very much a work in progress yet wanted to share it with the group for some early feedback. The cosmetics of the blog are last on my list.

Re: org mode parser

2012-12-15 Thread Joe Bogner
Alex - thank you as always for the code suggestions! Thorsten - I just added PROPERTIES parsing and preliminary tag parsing and now we're at 90 lines. I think it will take a bit more to get to 5000 ;) On Sat, Dec 15, 2012 at 9:01 AM, Thorsten Jolitz tjol...@googlemail.comwrote: Alexander

org mode parser

2012-12-14 Thread Joe Bogner
Hello all, I've written a tiny org-mode parser and hooked it up with my mustache implementation to create a simple web page that dumps out the org structure. I'm not sure where I'm going to go next but figured I'd share it since I enjoy reading other's code as well. I'm amazed at what can be

Re: New Emacs-style command-line editor

2012-11-30 Thread Joe Bogner
Hi Alex, Are the arrow keys usable on the phone? Both the vi- and the emacs-style command line in PicoLisp now also support arrow keys for navigating the history. Yes, they work great. One less keypress. Great! Thorsten, Alex - Would it be possible to add hooks to the emacs line editor? I

Re: New Emacs-style command-line editor

2012-11-29 Thread Joe Bogner
Thanks Thorsten! I will give it a shot. This gives me a reason to try emacs again for picolisp. I installed everything the other day and then switched back to vi and vi mode in the repl after getting frustrated with not knowing how to cycle through my command history in inferior-picolisp. I am so

Re: New Emacs-style command-line editor

2012-11-29 Thread Joe Bogner
, Thorsten Jolitz tjol...@googlemail.comwrote: Joe Bogner joebog...@gmail.com writes: Hi Joe, I will give it a shot. This gives me a reason to try emacs again for picolisp. I installed everything the other day and then switched back to vi and vi mode in the repl after getting frustrated

Re: making in a loop - or an sequentially building a nested list

2012-11-26 Thread Joe Bogner
, Nov 26, 2012 at 1:11 PM, Joe Bogner joebog...@gmail.com wrote: I'm sure I'm making this harder than it is. I spent several hours tinkering around trying to find a way to sequentially build a nested list. make and link have spoiled me. Instead of this: : (make (link (make (link 'parent (make

pilog - using range

2012-11-21 Thread Joe Bogner
I'm having trouble figuring out how to use range in a simple pilog example. I can use member: (be add1-or-double (@X @Num) (member @X (1 2 3 4)) (@Ans + 1 (- @X)) (@Ans2 * 2 (- @X)) (or ((equal @Num @Ans)) ((equal @Num @Ans2 (? (add1-or-double @X 4)) @X=2 @X=3: If I try this:

Re: A few quick emu/pil timings

2012-11-06 Thread Joe Bogner
I ran a similar test the other day. Here are my timings with (fibo 33) and (cFibo 33) I'm including cFibo (since I can now run it on emu64) and ersatz. emu64: 21.632 sec emu64/cFibo: 0.111 sec pil32: 4.477 sec ersatz: 12.797 sec On Tue, Nov 6, 2012 at 11:04 AM, Alexander Burger

Re: pil64emu testing features

2012-11-02 Thread Joe Bogner
Hi Alex, pil64emu sounds very interesting. In case it helps, here is some output from running pil64emu joebo@joebo:~/tmp/picolisp$ ./pil + : *CPU - emu : (load misc/fibo.l) /usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/4.4.5/libgcc.a when searching for -lgcc /usr/bin/ld:

Re: Android Demo

2012-10-10 Thread Joe Bogner
Hi Thorsten, Thanks for asking. I haven't done any work on the topic since I last posted about it. I haven't built any real apps using PicoLisp on Android. On the other hand, I haven't built any real apps for Android using any technology, so it's more a matter of not having a need vs it being the

Re: pilog solver

2012-07-26 Thread Joe Bogner
My interest also piqued when I saw the amb example in rosettacode. It seems like that could be combined with something to backtrack if a permutation goes out of bounds. http://www.randomhacks.net/articles/2005/10/11/amb-operator On Thu, Jul 26, 2012 at 12:21 PM, Joe Bogner joebog...@gmail.com

Re: efficiently building a large list

2012-06-03 Thread Joe Bogner
on the original symbol that held the customer number string. I'm fairly clear now on it. Definitely an interesting deep dive On Sun, Jun 3, 2012 at 4:23 AM, Alexander Burger a...@software-lab.dewrote: On Sat, Jun 02, 2012 at 06:10:05PM -0400, Joe Bogner wrote: To be more clear, this is the call

Re: efficiently building a large list

2012-06-02 Thread Joe Bogner
helpful to you. On Fri, Jun 1, 2012 at 10:33 AM, Joe Bogner joebog...@gmail.com wrote: Thanks Tomas, I've started using nil now. This is what I came up with to aggregate the data. It actually runs reasonably well. I'm sharing because I always enjoy reading other people's picoLisp code

Re: efficiently building a large list

2012-06-02 Thread Joe Bogner
see, clearing it before calling Sum gives the correct results. On Sat, Jun 2, 2012 at 6:08 PM, Joe Bogner joebog...@gmail.com wrote: Hi Henrik - Thanks for sharing. I used your approach and it ran quickly after I built the index using balance. (bench (setq SL (by '((X) (get X 'CustNum)) sort

Re: efficiently building a large list

2012-05-31 Thread Joe Bogner
Nice! (gc) was the trick. I noticed lags still when doing a (gc 300) so I bumped it up to (gc 800) and it loaded 4M records in 34 seconds I switched my code to use a (class +Invoice) and do everything in memory. Calculating a SUM is very quick.. ! (bench (let Amt 0 (mapc '((This) (inc 'Amt (:

Re: efficiently building a large list

2012-05-31 Thread Joe Bogner
Thanks Tomas, I've started using nil now. This is what I came up with to aggregate the data. It actually runs reasonably well. I'm sharing because I always enjoy reading other people's picoLisp code so I figure others may as well. My source file has 4 million rows : (bench (pivot L 'CustNum))

Re: db new! performance

2012-05-30 Thread Joe Bogner
Hi Alex, Thanks for the reply. Just for reference, using seq is actually considerably slower. It ran in 39 seconds vs. 4 seconds. I think it's because it has to look up every object from disk to get the value of 'id instead of using the index which is likely in memory. The index appears to be

  1   2   >