Re: Would a logging framework make sense for PicoLisp

2014-02-25 Thread Henrik Sarvell
Sometimes it's also nice to be able to get everything in a file, not just printed, would be nice if it could have that option. On Tue, Feb 25, 2014 at 6:50 PM, Thorsten Jolitz tjol...@gmail.com wrote: Hi List, sometimes I start putting a lot of (maybe too many) 'msg calls in my code for

Re: Would a logging framework make sense for PicoLisp

2014-02-25 Thread Henrik Sarvell
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: Sometimes it's also nice to be able to get

Re: JSON Rest

2014-02-17 Thread Henrik Sarvell
This encoder/decoder is based on Alex's rosetta example https://bitbucket.org/hsarvell/ext/src/31f26bbff901e1a88aa997ce919b7edb50ea810d/json.l?at=defaultbut has turned out quite changed to automatically account for various edge cases. With this CURL based client you can post the JSON straight in

Seed and rand

2014-02-10 Thread Henrik Sarvell
If I use od -vAn -N8 -tu8 /dev/urandom to generate a really, really big truly random number and then use that number with seed, then subsequent calls to rand should generate a sequence with a very very big period. Are those correct assumptions?

Re: Seed and rand

2014-02-10 Thread Henrik Sarvell
avoid flaw #3 and #4 as described here: http://www.lauradhamilton.com/random-lessons-online-poker-exploit or? On Mon, Feb 10, 2014 at 5:32 PM, Henrik Sarvell hsarv...@gmail.com wrote: If I use od -vAn -N8 -tu8 /dev/urandom to generate a really, really big truly random number and then use

Re: Creation stamp

2014-02-10 Thread Henrik Sarvell
so may not be worth the time. It's nice to have small reproducible examples. It's neat to hear that the queries are sub second. Thanks Joe On Sun, Feb 9, 2014 at 6:24 AM, Henrik Sarvell hsarv...@gmail.com wrote: Yes, a bit perhaps. I tested, it is of no consequence (at least for my

Re: Seed and rand

2014-02-10 Thread Henrik Sarvell
Thanks Alex for the clarification, 2**64 should be enough :-) On Mon, Feb 10, 2014 at 7:11 PM, Alexander Burger a...@software-lab.dewrote: Hi Henrik, od -vAn -N8 -tu8 /dev/urandom should eliminate the trap of not generating a random seed? You don't need to call 'od' for that. Simply do

Re: Creation stamp

2014-02-10 Thread Henrik Sarvell
So by (735580 53948) you mean a +Ref +List? Is it possible to get a range by way of collect with that setup? I tested with two separate relations, ie one +Ref +Time and one +Ref +Date, the database file ended up the same size. On Mon, Feb 10, 2014 at 9:31 PM, Alexander Burger

Re: Creation stamp

2014-02-10 Thread Henrik Sarvell
The index file is 1.3GB in the +Bag case, 2GB in the +String case, doesn't seem like a big deal to me given that the main entity file ends up being 32GB. Now I haven't checked, but due to the relative size of the files the range query might be comparably faster but in my case a tenth of a second

Re: Creation stamp

2014-02-09 Thread Henrik Sarvell
'+Transaction 2013-10-05 00:00:00 2013-10-05 23:59:59)) (bye) On Sat, Feb 8, 2014 at 5:44 PM, Alexander Burger a...@software-lab.dewrote: Hi Henrik, On Fri, Feb 07, 2014 at 08:29:07PM +0700, Henrik Sarvell wrote: Given a very large amount of external objects, representing for instance

Creation stamp

2014-02-07 Thread Henrik Sarvell
Given a very large amount of external objects, representing for instance transactions, what would be the quickest way of handling the creation stamp be with regards to future lookups by way of start stamp and end stamp? It seems to me that using two relations might be optimal, one +Ref +Date and

Re: How to get the Object-ID from a DB-Object?

2014-01-27 Thread Henrik Sarvell
is a remote object then the ;; function infers that fact and fetches the user from the remote machine through the local +Link pointer on that machine. On Mon, Jan 27, 2014 at 3:16 PM, Thorsten Jolitz tjol...@gmail.com wrote: Henrik Sarvell hsarv...@gmail.com writes: Hi Henrik, why do you want

Re: How to get the Object-ID from a DB-Object?

2014-01-26 Thread Henrik Sarvell
Hi Thorsten, why do you want to do this explicitly since it's done for you implicitly in all the various type of reference relations you have (typically +Link)? In Macropis I simply use the convention of having a relation called id auto increment (by way of

Re: Making 64bit development version fails

2014-01-21 Thread Henrik Sarvell
The reinstalling makes me believe that maybe you don't have either Java or some version of PL already installed? If I remember correctly you need one or the other to build the 64bit version. On Tue, Jan 21, 2014 at 6:48 PM, Pedro Gomes azynhe...@gmail.com wrote: Hi Thorsten, I tryed on my

Re: Prolog into pilog

2013-12-16 Thread Henrik Sarvell
If it helps I translated the SWI prolog tutorial here: http://www.prodevtips.com/2008/04/28/advanced-oodb-in-pico-lisp/ On Tue, Dec 17, 2013 at 4:00 AM, Jon Kleiser jon.klei...@usit.uio.no wrote: Hi, I've just started reading the book Prolog and Natural-Language Analysis by F. C. N. Pereira

Re: Adding relation

2013-11-16 Thread Henrik Sarvell
I apologize for the confusion, the issue was completely unrelated to the core functionality, it's all good. On Sat, Nov 16, 2013 at 1:08 AM, Alexander Burger a...@software-lab.de wrote: Hi Henrik, Hi, I'm trying to add a relation, at first I added (rel newRel (+String)) to the class, and then

Adding relation

2013-11-15 Thread Henrik Sarvell
Hi, I'm trying to add a relation, at first I added (rel newRel (+String)) to the class, and then put newRel in the dbs. That didn't work though, information refused to get saved so I changed the rel call to (rel newRel (+Ref +String)) but still the database refuses to store anything in newRel

Re: External object inheritance

2013-11-10 Thread Henrik Sarvell
And to achieve the same thing after the fact, I suppose (set! Obj '(+Admin +User)) would work? On Sun, Nov 10, 2013 at 2:46 PM, Alexander Burger a...@software-lab.dewrote: On Sun, Nov 10, 2013 at 01:30:28PM +0700, Henrik Sarvell wrote: But pretend I'd like to go down the prefix route instead

External object inheritance

2013-11-09 Thread Henrik Sarvell
Either I've forgotten, or this issue has never been brought up before. Apologies in advance if it's the former case. Basically what I want to achieve is the following: (class +User +Entity) (rel id (+Key +Number)) (rel nm (+Key +String)) (dm hi () (print (; This nm))) (class +Admin +User) (dm

Programming can be futuristic

2013-10-23 Thread Henrik Sarvell
This guy has obviously not discovered PicoLisp yet :-) http://www.ianbicking.org/blog/2013/10/why-isnt-programming-futuristic.html

PicoLisp lexer for Pygments

2013-10-09 Thread Henrik Sarvell
I have submitted a lexer for inclusion into the next release of Pygments ( http://pygments.org/ ). Pygments is used by for instance bitbucket. It will be awhile before everything is finalized so I have attached the files in question to this message if anyone wants to make some

Re: PicoLisp and Redis

2013-10-07 Thread Henrik Sarvell
machine, it is a must have really. I've also added it to the ext library: https://bitbucket.org/hsarvell/ext/raw/fd41e8e8f43de04b6a46474809bc0c4099fa20b6/redis.l On Mon, Nov 26, 2012 at 9:42 AM, Henrik Sarvell hsarv...@gmail.com wrote: I'm always keeping my options open so I don't have

Re: Some initial questions

2013-09-28 Thread Henrik Sarvell
good to have everything in one place. On Wed, Sep 25, 2013 at 9:20 PM, Henrik Sarvell hsarv...@gmail.com wrote: We should put up links to all resources on one single page on picolisp.com, I can do that this weekend if no one else does it first. On Wed, Sep 25, 2013 at 8:05 PM, Joe Bogner joebog

Re: Some initial questions

2013-09-24 Thread Henrik Sarvell
Hi Luis. You've got a lot of info on http://picolisp.com/5000/!wiki?home Also be sure to check out the app subfolder/example in the picolisp download. PicoLisp is under the MIT/X11 license, see the download page: http://software-lab.de/down.html and as far as I know there is no way of

Re: A few quick emu/pil timings

2013-09-24 Thread Henrik Sarvell
If VM can't be avoided isn't Gentoo more minimal than Arch? http://www.gentoo.org/ On Tue, Sep 24, 2013 at 7:05 PM, Thorsten Jolitz tjol...@gmail.com wrote: Mansur Mamkin mmam...@mail.ru writes: in case of Windows don't forget to look at coLinux and andLinux: Isn't archlinux quite popular

Re: Add relation to entity

2013-09-11 Thread Henrik Sarvell
What is the practical case you're working with, why do you want to do what you describe? Some kind of dynamic ALTER TABLE equivalent? In that case won't you need to also manipulate the *Dbs data? Plus modifying the E/R files? On Wed, Sep 11, 2013 at 7:29 PM, Thorsten Jolitz tjol...@gmail.com

Re: Add relation to entity

2013-09-11 Thread Henrik Sarvell
So these changes are done in a dynamic way, maybe through a user interface, eg add middle name to +User through a form submission in an admin interface

Re: A dbs+ problem

2013-09-09 Thread Henrik Sarvell
Aha ok so the file grew by accident to become something that is not really best practice? Anyway your template example pointed the way for me, I simply pad my dbs E/R like so: (dbs (3 +Page #1 +PageAttr +Block +BlockAttr +Menu

Re: A dbs+ problem

2013-09-08 Thread Henrik Sarvell
with more, yet at the end your example has a lot more files than 10. I'm confused? On Sun, Sep 8, 2013 at 3:36 PM, Alexander Burger a...@software-lab.dewrote: On Sun, Sep 08, 2013 at 02:49:31PM +0700, Henrik Sarvell wrote: At the same time projects that rely on the framework need to be able

Re: A dbs+ problem

2013-09-07 Thread Henrik Sarvell
After some testing I think the basic problem is that I try to use a higher number than the dbs call has resulted in, thus causing a gap, it seems like this is a no no. A small test: (load dbg.l) (class +Server +Entity) (rel ip(+Key +String)) (class +Entry +Entity) (rel tag (+Ref

Ext library and file name indexer

2013-08-31 Thread Henrik Sarvell
Hi, I just noticed that bitbucket now allows an unlimited amount of private projects (last time I checked only 5 was supported I think). I got a little bit motivated by this and the fact that I also just finished a small snippet that recursively parses any directory and full text indexes all file

Re: Ext library and file name indexer

2013-08-31 Thread Henrik Sarvell
Anything newer than Subversion is pretty much equal in my book, that includes both darcs, hg and git. They're all so simple that it doesn't make sense spending time shopping in that area once you've settled for one of them, at least not for my use case. I use hg at work so I use bitbucket, it's

Re: Ext library and file name indexer

2013-08-31 Thread Henrik Sarvell
Thanks for sharing Joe, I knew of picostache from this list but it never really registered that you had uploaded to bitbucket, it has now :-) On Sat, Aug 31, 2013 at 9:02 PM, Joe Bogner joebog...@gmail.com wrote: Hi Henrik Thanks for sharing. I have a few picolisp repos on bitbucket too.

Re: kill without 'KILL does not work for PicoLisp processes

2013-07-17 Thread Henrik Sarvell
When developing web apps I keep the code for the server and the rest separate and reload the rest on every request. No need for restarts at all that way. Unless you're actually fiddling with the actual server code, then it can't be helped I suppose... On Wed, Jul 17, 2013 at 3:33 PM, Thorsten

Re: kill without 'KILL does not work for PicoLisp processes

2013-07-17 Thread Henrik Sarvell
. On Wed, Jul 17, 2013 at 5:23 PM, Thorsten Jolitz tjol...@gmail.com wrote: Henrik Sarvell hsarv...@gmail.com writes: Hi Henrik, When developing web apps I keep the code for the server and the rest separate and reload the rest on every request. No need for restarts at all that way

Re: pl-web, almost a web development framework

2013-05-08 Thread Henrik Sarvell
files in the uploads folder. Do you have a newer version of your code? /Jon On 2/4/12 12:48 PM, Henrik Sarvell wrote: Hi guys! This time I've also attached the sample web app. You know where things are to be and how to start the http server if you read the prior post. So pl-web is getting

Re: Canonical use of namespaces

2013-04-21 Thread Henrik Sarvell
1.) I use namespaces in what I currently work on. Works good, I use them wherever I would've earlier just created a static class as a container. It helps to communicate the intent better where intent in this case is just a collection of functions that I want to group/encapsulate together. Here is

Re: datomic - database built on immutable facts (which are cacheable forever...)

2013-04-13 Thread Henrik Sarvell
I've not tried it so I take your word for it that it's similar, at least in the way you access the data (ie Datalog being similar to Pilog etc). However, that's where the similarity ends, at heart Datomic is not at all anything like PicolispDB. It's just a layer that resides on top of existing

Re: ACID tests

2013-01-20 Thread Henrik Sarvell
in itself. It seems to defeat the purpose of per file level locking? On Sun, Jan 6, 2013 at 8:53 PM, Alexander Burger a...@software-lab.dewrote: On Sun, Jan 06, 2013 at 08:00:51PM +0700, Henrik Sarvell wrote: OK so how would you deal with a situation where you have the need to quickly increment

Re: ACID tests

2013-01-06 Thread Henrik Sarvell
/!incRepeat when I also open http://localhost:8080/!decBalance in another tab while incRepeat runs. Seems to me that incRepeat gets the decrease alright? On Sun, Jan 6, 2013 at 5:16 PM, Alexander Burger a...@software-lab.dewrote: On Sun, Jan 06, 2013 at 01:33:55AM +0700, Henrik Sarvell wrote

Re: ACID tests

2013-01-06 Thread Henrik Sarvell
processes creating collateral damage to each other so to speak? On Sun, Jan 6, 2013 at 7:19 PM, Alexander Burger a...@software-lab.dewrote: On Sun, Jan 06, 2013 at 05:43:06PM +0700, Henrik Sarvell wrote: Yes, but the caching issue is not resolved. If two processes increment ... I'm not sure I

Re: ACID tests

2013-01-05 Thread Henrik Sarvell
How does the GUI framework work? What if user A pulls upp object X in an update form and then goes to the toilet and in the meantime user B pulls the same object and changes it, will user A see any changes when he comes back? On Sat, Jan 5, 2013 at 10:48 PM, Alexander Burger

Re: ACID tests

2013-01-05 Thread Henrik Sarvell
a...@software-lab.dewrote: On Sat, Jan 05, 2013 at 11:25:30PM +0700, Henrik Sarvell wrote: How does the GUI framework work? What if user A pulls upp object X in an update form and then goes to the toilet and in the meantime user B pulls the same object and changes it, will user A see any

Re: PicoLisp and Redis

2012-11-25 Thread Henrik Sarvell
I'm always keeping my options open so I don't have to rewrite a lot of stuff later if I realize I need for instance encapsulation. On Mon, Nov 26, 2012 at 9:21 AM, Thorsten Jolitz tjol...@googlemail.comwrote: Joe Bogner joebog...@gmail.com writes: Hi Henrik, Hi Joe, Thank you for sharing.

Re: pilog solver

2012-07-26 Thread Henrik Sarvell
I can't say for sure if prolog is a good fit or not. The problems seems a little bit too arithmetic maybe but do not trust my word on it. Otherwise it seems like a typical curve examination problem to find all the maxima, the maxima with the highest profit is the solution. On Thu, Jul 26, 2012

Re: Processing Text in PicoLisp

2012-07-23 Thread Henrik Sarvell
for you to simple loop through the functions in questions with for instance for or mapc and then apply them one by one? Hope that helps. /Henrik Sarvell On Mon, Jul 23, 2012 at 10:35 AM, Thorsten Jolitz tjol...@googlemail.comwrote: Hi List, related to the nice idea of publishing

Re: Processing Text in PicoLisp

2012-07-23 Thread Henrik Sarvell
AFAIK out doesn't do auto dir creation or any dir creation for that matter. Looks good but the cd thing should not be necessary, just use the absolute path in the last call. Note that you can use info to check stuff, could possibly be used in a function that checks a certain path from top to

Re: efficiently building a large list

2012-06-03 Thread Henrik Sarvell
question Thanks Joe On Fri, Jun 1, 2012 at 1:38 AM, Henrik Sarvell hsarv...@gmail.com wrote: I noticed you were talking about idx. The below code is from vizreader and was part of a system that counted and stored all the non-common words in every article: # We extract all words from

Re: Parallel command execution

2012-06-02 Thread Henrik Sarvell
Correct, and I should have added that in my case that only trivial stuff was actually executed straight in the parent process, the more hairy stuff was forked in the main, so a child calls the boss which creates new children in order to avoid children of children (afaik the db syncing only works

Re: Parallel command execution

2012-06-01 Thread Henrik Sarvell
I don't know if the boss function might be of help to you? It helped me in order for the current forked instance of the web server to be able to call the main process and do various slow writes there. The reason was that the user should not have to wait for stuff like that., ie the current child

Re: efficiently building a large list

2012-05-31 Thread Henrik Sarvell
What happens if you first load the whole thing into memory, ie (let Invoices (in ... and then work with the Invoices variable? On Thu, May 31, 2012 at 9:56 PM, Joe Bogner joebog...@gmail.com wrote: I'd like to do some analysis on a large text file of invoices - for example, grouping and

Re: Websockets

2012-05-29 Thread Henrik Sarvell
a progressbar without having to change my current PL web server code at all. To be continued after I actually try it... On Mon, May 28, 2012 at 1:41 PM, Henrik Sarvell hsarv...@gmail.com wrote: Thanks Jose, awesome! Will check this out more thoroughly tonight. What do you mean with xor descrambling

Re: db new! performance

2012-05-29 Thread Henrik Sarvell
Use new and chunk it up: (dbSync) (for A As (at (0 . 1000) (commit 'upd) (prune) (dbSync)) (new (db: +Article) '(+Article) key1 value1 key2 value2 ... )) (commit 'upd) With new! you are locking and writing every row so should only be used in cases where you know you are only

Re: Websockets

2012-05-28 Thread Henrik Sarvell
Thanks Jose, awesome! Will check this out more thoroughly tonight. What do you mean with xor descrambling, the ut8 decode function? It has a comment labelling it as slow. On Mon, May 28, 2012 at 12:54 AM, José Romero j...@2.71828.com.ar wrote: On Sun, 27 May 2012 18:53:31 +0700 Henrik

Re: Parallel command execution

2012-05-28 Thread Henrik Sarvell
Ugly but... Chunk up the job and then you call wait with a sufficiently big number that each chunk's pipes have time to terminate before the next chunk. More complicated (but prettier) would be a later - wait combo (if possible in your situation): (dm evalAll @ (let Result (make

Re: In Detail: Native C Calls

2012-05-12 Thread Henrik Sarvell
Worked, thanks! So I'm now using this line: gcc -o main.so -m64 -std=gnu99 -fPIC -shared -export-dynamic main.c -lm -lpcre It seems the version 3 number was not needed after all. I've attached the C code for reference and this is what I use in PL: (println (pipe (native pcre/main.so

Re: In Detail: Native C Calls

2012-05-11 Thread Henrik Sarvell
I've been looking into using this in conjunction with the pcre library. However I have problems with both returning results and capturing them in PL. The result should be an array of strings or if it's more convenient stored by reference in a variable. ATM I'm trying with the following: void

Re: Reading objects

2012-04-14 Thread Henrik Sarvell
Thanks, I gather then that there will never be millions of relations etc in #1 then? If so I might just create some dummy entity (that I will never have to scan/seq) and put it there. On Sat, Apr 14, 2012 at 3:15 PM, Alexander Burger a...@software-lab.de wrote: On Sat, Apr 14, 2012 at

Re: Reading objects

2012-04-14 Thread Henrik Sarvell
Basically because I wanted to be able to list the objects without knowing about any refs or keys but I suppose I can introspect and just do a collect by the first one I find for the given class. Because as you said, any useful structures usually have them. On Sat, Apr 14, 2012 at 7:11 PM,

Re: Segfault on Linux Mint 12 x64

2012-03-06 Thread Henrik Sarvell
Did you compile everything? Sometimes I've had problems with other binaries than PL itself (which I always compile on the given system) when I've just copied them. On Tue, Mar 6, 2012 at 5:26 PM, Mansur Mamkin mmam...@mail.ru wrote: Hi Alex! I have Linux Mint 12 x64 (based on Ubuntu) on my

Re: PicoLisp SSL Problem

2012-02-15 Thread Henrik Sarvell
So this means, that the certificate isn't sent at all! So earlier versions of for instance FF accepts this fact but with version 10 it's a no go? On Wed, Feb 15, 2012 at 3:47 PM, Alexander Burger a...@software-lab.de wrote: On Wed, Feb 15, 2012 at 09:28:23AM +0100, dexen deVries wrote: On

Re: PicoLisp SSL Problem

2012-02-15 Thread Henrik Sarvell
When I install Tamper (google firefox addon tamper) in FF 10 and access the https version of the wiki Tamper reports the request as pending. This seems to indicate that nothing is returned from the server, ie that FF 10 sends something that breaks the SSL handling (and more) server side. On

Re: PicoLisp SSL Problem

2012-02-15 Thread Henrik Sarvell
Yes, if FF blocks the result before Tamper gets to access it then what I said above is not correct, that is the big caveat. On Wed, Feb 15, 2012 at 5:43 PM, dexen deVries dexen.devr...@gmail.com wrote: On Wednesday 15 of February 2012 11:12:32 you wrote: On Wed, Feb 15, 2012 at 09:47:48AM

Re: PicoLisp SSL Problem

2012-02-15 Thread Henrik Sarvell
I think the discussion on the aforementioned bugzilla page relates to issues that have nothing to do with web filters and such. The browser behavior has changed it seems. On Wed, Feb 15, 2012 at 6:32 PM, Alexander Burger a...@software-lab.de wrote: Hi Randall,

Re: PicoLisp SSL Problem

2012-02-14 Thread Henrik Sarvell
Could it be that they come with new default settings/behavior making them simply reject sites using self signed certs? On Wed, Feb 15, 2012 at 2:00 PM, Alexander Burger a...@software-lab.de wrote: Hi all, since Firefox 10 (Windows) is out, some of my customers complain that they can't

Re: Canonical way to do master detail relationship.

2012-02-11 Thread Henrik Sarvell
Hi Konrad. And really The detail records will never be accessed outside the context of the master record. They don't need any indexing, or independent lookup. Then I think you've made the right decision, in VizReader for instance, each user subscribes to some feeds in a private context, ie

Re: PicoLisp is DEAD

2012-02-07 Thread Henrik Sarvell
Without knowing much about the Emacs related stuff you are talking about it strikes me that Alex GUI-DB framework would be a very good fit in itself as an ERP should not: 1.) Make any demands on what the URLs should look like, it's all internal anyway (no picky Google is supposed to parse it).

Re: pl-web, almost a web development framework

2012-02-04 Thread Henrik Sarvell
the pairs so that mapcar over the getl is the result of that inability. Anyway, it now basically works like I want. On Sat, Jan 28, 2012 at 4:25 PM, Henrik Sarvell hsarv...@gmail.com wrote: OK so I've got a first draft of something simple. As opposed to what has been requested before

Re: Suggestion for message to passers by

2012-02-03 Thread Henrik Sarvell
Seems like a good idea! On Fri, Feb 3, 2012 at 8:31 PM, Jakob Eriksson ja...@aurorasystems.euwrote: Hello! Suggestion: put prominently on the picolisp.com site two things: How to sign up to this mailing list, and if you ask a question on Stackoverflow and put the picolisp tag on

Re: Social Share Privacy buttons in the PicoLisp Wiki

2012-02-01 Thread Henrik Sarvell
A minified version can be downloaded here (if it is not already used): http://docs.jquery.com/Downloading_jQuery#Download_jQuery On Wed, Feb 1, 2012 at 4:50 PM, Jon Kleiser jon.klei...@usit.uio.no wrote: Hi Alex, I may not see the benefit of having those buttons at the bottom of every page

pl-web, almost a web development framework

2012-01-28 Thread Henrik Sarvell
demands on the main application E/R. Comments? /Henrik Sarvell pl-web.tar.bz2 Description: BZip2 compressed data

Re: pl-web, almost a web development framework

2012-01-28 Thread Henrik Sarvell
Ops, the httpHead redifinition part in pl-web.l can be removed, I think I thought I would need to make changes there but I did not. On Sat, Jan 28, 2012 at 4:25 PM, Henrik Sarvell hsarv...@gmail.com wrote: OK so I've got a first draft of something simple. As opposed to what has been requested

Re: PicoLisp is DEAD (Was: PicoLisp and its (lack of) libraries)

2012-01-25 Thread Henrik Sarvell
I never came up with that DEAD headline and have no idea who did and don't agree with it. Let's take Clojure as an example again, no one in their right mind would think that that language would have the adoption it has if it wasn't based on Java with easy interoperability to get at all that

Re: PicoLisp and its (lack of) libraries

2012-01-21 Thread Henrik Sarvell
dynamic and simple than current solutions in that area. On Sat, Jan 14, 2012 at 8:28 PM, Alexander Burger a...@software-lab.de wrote: On Sat, Jan 14, 2012 at 06:49:34PM +0700, Henrik Sarvell wrote: That JSON implementation is too simplistic which kind of reinforces my point, writing good libs take

Re: PicoLisp and its (lack of) libraries

2012-01-14 Thread Henrik Sarvell
That JSON implementation is too simplistic which kind of reinforces my point, writing good libs take time and for that to happen you need a lot of users to ease the burden on each person, ie it's easier for 10 people to write one good lib each instead of 2 writing 5 each. Here is for instance

Re: PicoLisp and its (lack of) libraries

2012-01-13 Thread Henrik Sarvell
I think I'm the only one except Alex (at least publicly) who actually took time to write a useful/largish web application (vizreader.com). I wanted to see for myself what that would entail. So vizreader is an RSS reader which shouldn't be too difficult, read som XML, store it in a database and

Re: Remote database access again.

2011-12-26 Thread Henrik Sarvell
I'll see what I can do, thanks for the help and happy holidays! On Mon, Dec 26, 2011 at 10:57 PM, Alexander Burger a...@software-lab.de wrote: Hi Henrik, So I've tried the remote pilog stuff out now (better late than never). Good :) I've attached a simple project (needs to be extracted to

Re: Remote database access again.

2011-12-25 Thread Henrik Sarvell
Hi Alex! So I've tried the remote pilog stuff out now (better late than never). I've attached a simple project (needs to be extracted to /opt/picolisp/projects/). Very cool stuff, indeed. You start by running: /p projects/remote-test/remote.l -go 1 /p projects/remote-test/remote.l -go 2 /p

Re: Bad ID

2011-11-21 Thread Henrik Sarvell
I think I get the ObjFun part in: (de dbMap (ObjFun TreeFun) (default ObjFun quote TreeFun quote) (finally (mark 0) (_dbMap *DB) (dbMapT *DB) ) ) But what about the TreeFun? Pretend I want to loop through all +FeedTags: (class +FeedTag +Entity) # (rel user (+Ref +Link) NIL

Re: Bad ID

2011-11-20 Thread Henrik Sarvell
On further inspection I noticed that it happened when accessing random articles which could be fetched from any time period, including the very beginning when corruptions could have arisen. At first I thought it was new but that does not have to be the case. I wiped everything and switched to

Re: How to get the signature of function and method definitions

2011-11-14 Thread Henrik Sarvell
It's at the end here: http://www.prodevtips.com/2010/09/29/emacs-color-themes-tags-cedet-ecb-and-other-customizations/ Not much to it, I do things old school ie I put the download in /opt/picolisp and simply cd there in a shell and do: ctags -e -R --languages=-JavaScript,-PHP,-C,-Make,-HTML This

Re: How to get the signature of function and method definitions

2011-11-14 Thread Henrik Sarvell
1.) Lisp level functions are handled anyway by the jump to documentation script. 2.) It's only a problem when jumping as you then jump to the incorrect file but since I don't do much global functions anyway this is not a problem for me, if I jump to http for instance I end up in the right file.

Re: Does 'doc' require Global Installation?

2011-11-11 Thread Henrik Sarvell
. Basically everything in my whole emacs series is just copy paste from other people's code. I have attached my config for complete reference in case you want to take a look. On Sat, Nov 12, 2011 at 1:51 AM, Thorsten quintf...@googlemail.com wrote: Henrik Sarvell hsarv...@gmail.com writes: Hi

Re: How to get the signature of function and method definitions

2011-11-10 Thread Henrik Sarvell
I don't know if this is exactly what you want but (all) can be used to inspect stuff, an example of getting all loaded classes: (de getClasses () (filter '((S) (and (= `(char +) (char S)) (type S))) (all))) On Thu, Nov 10, 2011 at 7:27 PM, Thorsten

Re: 32 to 64 database conversion problem

2011-10-02 Thread Henrik Sarvell
Unfortunately I managed to accidentally delete the local copy 32bit I had of the DB after the conversion was finished :( However, when I run it on the live database which the copy is an older snapshot of I get this: {2L} (302 . {P-D}) tag +ArticleTag {1} {2L} (302 . {P-;}) article +ArticleTag

Re: Namespace support

2011-09-20 Thread Henrik Sarvell
It solves the long function name problem and due to class naming conventions it improves the global namespace problem quite a bit. The long function name solution solves the the global namespace problem completely but is imo not a good solution as it can easily become absurd. On Tue, Sep 20,

Re: Namespace support

2011-09-19 Thread Henrik Sarvell
Importing symbol from another namespace can be done with (intern 'myNames~Foo) - Foo This will make the symbol 'Foo' from 'myNames' available as an internal symbol in the current namespace. This is imo a must have feature, it has to be up to the programmer to avoid clashes as it is

Re: Is Transactional Memory Relevant to PicoLisp?

2011-09-15 Thread Henrik Sarvell
Since my only experience of STM is through Clojure and threads I don't even know if a similar locking mechanism can be implemented in PicoLisp since here we have forked processes instead. As usual my knowledge of Unix/Linux internals is too lacking to say anything definite, despite having

Re: Is Transactional Memory Relevant to PicoLisp?

2011-09-15 Thread Henrik Sarvell
with the data file. Maybe slow but that's what I could come up with from my limited knowledge of these things. On Thu, Sep 15, 2011 at 6:44 PM, Alexander Burger a...@software-lab.dewrote: On Thu, Sep 15, 2011 at 06:22:46PM +0700, Henrik Sarvell wrote: This section seems to imply though that it would

Re: Is Transactional Memory Relevant to PicoLisp?

2011-09-10 Thread Henrik Sarvell
In Clojure there are a few constructs and functions to handle them that make use of this to keep multithreaded apps sane: http://clojure.org/refs However, in the course of developing web apps I've only used them when I want different request to share a piece of storage that needs to be updated

Re: Is Transactional Memory Relevant to PicoLisp?

2011-09-10 Thread Henrik Sarvell
End result of 9 of course. On Sat, Sep 10, 2011 at 9:55 PM, Henrik Sarvell hsarv...@gmail.com wrote: In Clojure there are a few constructs and functions to handle them that make use of this to keep multithreaded apps sane: http://clojure.org/refs However, in the course of developing web

Re: error message line numbers

2011-09-08 Thread Henrik Sarvell
If they target .NET I mean, I've heard you can get acceptable results on that stack so some respect is due to those people. On Thu, Sep 8, 2011 at 4:42 PM, Henrik Sarvell hsarv...@gmail.com wrote: I'm sorry to have to say this but these people are only real programmers if they don't target

Re: error message line numbers

2011-09-08 Thread Henrik Sarvell
I'm sorry to have to say this but these people are only real programmers if they don't target the MS stack with .NET etc, the whole WAMP, XAMPP posse are just hobbyists and not a iota of energy should be spent to make their lives easier. They have to suffer, as much as possible. On Thu, Sep 8,

Re: error message line numbers

2011-09-08 Thread Henrik Sarvell
Not per se but I would never try to make life easier for someone who is afraid to let go of the teat for no other reason than that it's comfortable sucking at it. On Thu, Sep 8, 2011 at 5:41 PM, Jakob Eriksson ja...@vmlinux.org wrote: On Thu, 8 Sep 2011 16:42:22 +0700, Henrik Sarvell hsarv

Re: Proposal for Packages (Was: The art of Unix Programming in

2011-09-05 Thread Henrik Sarvell
names should be exploited further instead of creating new constructs that add complexity to the language. We already have conventions where we use ?, and in names, we can have more. /Henrik Sarvell On Mon, Sep 5, 2011 at 7:46 PM, Alexander Burger a...@software-lab.dewrote: Hi all, On Mon

Re: Proposal for Packages (Was: The art of Unix Programming in

2011-09-05 Thread Henrik Sarvell
The new % would solve some problems and you are right about the mapcar thing which can be annoying. However the ambiguity as to which class is controlling the behavior of func% remains but can perhaps be mitigated by yet another convention requiring you to put the context call in a special place,

The art of Unix Programming in PicoLisp

2011-09-01 Thread Henrik Sarvell
Lately I've been reading parts of this funny document: http://www.catb.org/~esr/writings/taoup/html/ (The Master Foo section is especially funny: http://www.catb.org/~esr/writings/taoup/html/ten-thousand.html ) Anyway I thought that perhaps it would be possible to somehow bypass the need for an

Re: httpGate and libssl problems

2011-08-22 Thread Henrik Sarvell
22, 2011 at 08:37:29AM +0200, Jakob Eriksson wrote: On Sun, Aug 21, 2011 at 11:22:29PM +0700, Henrik Sarvell wrote: Trying to compile with 32bit libc libraries installed gives me the following: ... gcc -m32 -o ../bin/ssl ssl.o -lssl -lcrypto snip I have installed every possible libssl

Re: httpGate and libssl problems

2011-08-22 Thread Henrik Sarvell
http://picolisp.com/5000/-2-1k.html On Mon, Aug 22, 2011 at 11:45 PM, Alexander Burger a...@software-lab.dewrote: Hi Henrik, /usr/bin/ld: cannot find -lssl collect2: ld returned 1 exit status make: *** [../bin/ssl] Error 1 * # lsb_release -a* No LSB modules are available.

httpGate and libssl problems

2011-08-21 Thread Henrik Sarvell
I'm trying to get the PicoLisp server up and running on Debian for the first time but encounter this problem when I try to run httpGate: bin/httpGate: error while loading shared libraries: libssl.so.0.9.8: cannot open shared object file: No such file or directory This happened when copying a

<    1   2   3   4   >