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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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

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: 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: 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: 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: 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: 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: 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: > &

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: 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

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: 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

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: (< @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: 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: 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: 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-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: 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: 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: 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: 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: 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: 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: 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
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: 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
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: 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: 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: 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: 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

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: Slides and notes from my Picolisp presentation

2018-09-25 Thread Joe Bogner
I also really enjoyed the presentation. Thank you for sharing! I'd be interested in hearing more about the django vs picolisp development experience. I haven't used django but have spent time in other python frameworks (flask). I skimmed through

ersatz - can not access a member

2012-01-28 Thread Joe Bogner
I'm trying to write a simple java web server using the simpleframework. I'm close, but I process anything in the method handler: (de handler (request response) (java response 'close)) (setq cont (interface org.simpleframework.http.core.Container 'handle handler)) (setq con (java

Re: ersatz - can not access a member

2012-01-28 Thread Joe Bogner
, 2012 at 6:33 AM, Joe Bogner joebog...@gmail.com wrote: I'm trying to write a simple java web server using the simpleframework. I'm close, but I process anything in the method handler: (de handler (request response) (java response 'close)) (setq cont (interface

Re: ersatz - can not access a member

2012-01-28 Thread Joe Bogner
Hi Alex, Thanks for the response! Here's the output from trace. It's neat to see, but I don't know enough to interpret it: java -DPID=42 -cp .;picolisp.jar;simple-4.1.21.jar PicoLisp lib.l go.l + interface : org.simpleframework.http.core.Container handle ((Request Response) (java Response

Re: ersatz - can not access a member

2012-01-28 Thread Joe Bogner
Thanks! Regarding threading, I stepped away for a few and the thought crossed my mind as well. I came back tried the main thread do this: (loop (setq Method nope)) And I can see that Method gets overwritten in child threads. Neither bind nor job helps either. Is there any way around this? I

json example w/ersatz

2012-01-29 Thread Joe Bogner
Are there any tips on how to port the json example to ersatz since it does not support pipe? I experimented with parsing out the string into a new string and calling str on it but didn't get very far yet. I'd like something that can parse a string. Thanks Joe -- UNSUBSCRIBE:

Re: Web app example using ersatz

2012-01-31 Thread Joe Bogner
Hi Alex - Great! I see the drawback with losing the name. For now I've just added some text to instruct please rename to a zip. With such cryptic file names it adds to the security by obscurity (hah!). Reminds me of the old trick in email to have file foo.zip.rename to suggest people to rename.

Re: Web app example using ersatz

2012-01-31 Thread Joe Bogner
Hi Henrik, Thanks for the feedback! Yes, I plan on extending it further. I fixed a small bug with having to decode the urlencoded post variables (e.g. 'hello%20world'). At first I was stumped because ht:Pack is implemented in ht.c so there wasn't a java implementation (ht:Pack (chop

Re: PicoLisp SSL Problem

2012-02-16 Thread Joe Bogner
More info on BEAST and a recent Microsoft security update that was pushed out for it: http://technet.microsoft.com/en-us/security/bulletin/ms12-006 http://www.securitynewsdaily.com/1077-beast-hack.html My bet is that the update is what caused it to break. On Thu, Feb 16, 2012 at 9:01 AM, Joe

Re: PicoLisp SSL Problem

2012-02-16 Thread Joe Bogner
You can see some interesting analysis on the certificate here: https://www.ssllabs.com/ssldb/analyze.html?d=https://app.7fach.de It mentions being vulnerable to BEAST and offers this link https://community.qualys.com/blogs/securitylabs/2011/10/17/mitigating-the-beast-attack-on-tls

Re: android success with full picolisp

2012-02-20 Thread Joe Bogner
Doug - Neat! I took a different approach and got picolisp working on my android phone and kindle fire by using terminal-ide ( http://code.google.com/p/terminal-ide/ ) as the shell and cross compiling picoLisp with gcc-arm-linux-gnueabi on my linux box. I can post the binary if anyone is

Re: server - IP socket error: Address family not supported by protocol

2012-02-23 Thread Joe Bogner
Doug - you need to install ipv6 support on linux. Look for an ipv6 package for your distro On Feb 23, 2012 1:28 AM, Doug Snead semaphore_2...@yahoo.com wrote: Might be even easier to reproduce ... just try the port function: # picoLisp-2.2.7.tgz ... ~/lisp/picoLisp $ ./p : (port 1234) - 3

Re: Android Web Server

2012-02-23 Thread Joe Bogner
. Easier to find new stuff then :) -- Regards, Imran Rafique On 23 February 2012 07:42, Joe Bogner joebog...@gmail.com wrote: Doug Snead's recent posts have encouraged me to write up my progress along similar lines with getting PicoLisp to work on Android. http://picolisp.com

Re: Google Summer of Code (GSoC) 2012

2012-02-28 Thread Joe Bogner
Hi Alex, Android porting may be a good candidate. It depends on how it would be scoped. Unfortunately I don't have much time to put towards leading it or being a mentor. However, off the top of my head this is what I think is needed: 1. Add Makefile changes and source code changes (e.g. making

Re: Google Summer of Code (GSoC) 2012

2012-03-03 Thread Joe Bogner
Hi José - I've been thoroughly impressed with everything I've seen from you and even more so if you're a student. Wow! Related to your proposal below, if I can replay back what I am understanding, it sounds like there are three aspects to it: 1.) A more robust interface between a web server and

db new! performance

2012-05-29 Thread Joe Bogner
I'm evaluating the use of picolisp for analyzing large datasets. Is it surprising that inserting a million rows into a simple db would take 5+ minutes on modern hardware? I killed it after that after about 500K were inserted. I checked by ctrl+c and then inspecting N. It seems to progressively get

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

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: 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-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: 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: 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: 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: 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

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: 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

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: 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

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: 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

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: 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

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: 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: 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: 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: 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

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: 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

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.

  1   2   >