Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - vetelko

#1
newLISP newS / Re: newLISP Github?
March 03, 2025, 01:35:57 AM
https://github.com/newlisp

That's crazy that Github keeps accounts that haven't had a single activity in the last 15 years, and deleting them would cause no harm.
#2
Solved, libz and libpthread were missing. This is because these two needs libsqlite3 itself.

#3
All required libs are available :( I can (import ...) any of them except libsqlite3 while newlisp runs in chroot

gringo: ~ $: ls /var/www/usr/lib/
total 31968
drwxr-xr-x  2 root  daemon   512B Jan 20 20:32 ./
drwxr-xr-x  7 root  daemon   512B Apr 10  2023 ../
-r--r--r--  1 root  daemon   3.6M Jan 15 10:24 libc.so.100.3
-r--r--r--  1 root  daemon   1.8M Jan 15 10:31 libcurses.so.15.0
-r--r--r--  1 root  daemon  43.1K Jan 15 10:24 libffi.so.2.1
-r--r--r--  1 root  daemon   584K Jan 15 10:22 libm.so.10.1
-r--r--r--  1 root  daemon   597K Jan 15 10:22 libreadline.so.5.0
-r--r--r--  1 root  daemon   7.0M Jan 20 18:51 libsqlite3.so.8.6
#4
Hi guys,

I can load libsqlite3 in normal environment but NOT while in chroot. It is interesting that other libraries like libc can be loaded as you can see in the following example:

gringo: ~ $: newlisp
newLISP v.10.7.6 64-bit on BSD IPv4/6 UTF-8 libffi, options: newlisp -h

> (import "/var/www/usr/lib/libsqlite3.so.8.6")
true

Now chroot, the same library file with different path of course:

gringo: ~ $: doas chroot -u www -g www /var/www /usr/bin/newlisp
newLISP v.10.7.6 64-bit on BSD IPv4/6 UTF-8 libffi, options: newlisp -h

> (import "/usr/lib/libsqlite3.so.8.6")

ERR: problem loading library in function import : "Cannot load specified object"

> (import "/usr/lib/libc.so.100.3" "printf")
printf@D5CDE4B7A40
>
gringo: ~ $:

ANY idea?
#5
Thank you rrq .. will try it :)
#6
Hi guys, can anyone help me out? Is it possible to compile newlisp statically so I don't have to copy all dependency libraries from /usr/lib/... into the chroot? I need single big fat binary :)

I think Ted Walther mentioned in one of his posts that he managed to do it on OpenBSD (which is also my system). But he doesn't explain how :)
#7
this whole case is weird, i suppose no one replied to greg. no one knows what's with Lutz who really owns and runs newlisp.org domain and web site now because it was even down for a while, who runs this forum etc. :(



Please don't take me wrong I assume that Lutz is in state in which he is unable to exist in this community anymore whatever this state is. I would consider to take

code, rename language to elimininate lisp flamewars and trolls (name it eg. Lutz) buy appropriate domain to run website and forum and create some small github community around official repo. I'm not C programmer, but I'm ready to contribute with some money to help this happen.



It is so sad for me even some people consider newlisp mature and done.
#8
Sad :(
#9
Joining this thread to support Kirill's prayers :) https et al. is everywhere now.
#10
newLISP in the real world / Uploading multiple files.
February 18, 2018, 01:56:40 PM
Hello guys,



I tried upload.cgi example and it works for me, but what if I need to upload multiple files at once? I can't figure out how to do this. Are there multiple file boundaries in POST data than? Also there is no reference to <input type=file /> name in upload.cgi. It is not needed because we are checking for boundary and than it doesn't matter?
#11
newLISP in the real world / VIM indent
October 30, 2017, 01:50:22 PM
Hello guys,



is someone using Vim to edit newlisp code? I can't get it to use 4 spaces autoindent. It uses only single space.

Can someone help me?
#12
Hi guys,



is it possible to get line number which is currently executed in script? Somethin like:



(if error  (println $lineno))
;; something magical like $it :)

Thanks in advance.
#13
newLISP in the real world / Re: set - setf - setq woes
August 22, 2017, 07:35:27 AM
Description in manual is short and simple

http://www.newlisp.org/downloads/newlisp_manual.html#setf">//http://www.newlisp.org/downloads/newlisp_manual.html#setf
#14
Hi guys,

is it possible to set hash items at once in hash definition?



;; this works
(define cities:cities)
(cities "ny" "new york")
(cities "sf" "san francisco")
(println (cities "sf"))

;; this not
(define cities:cities '(
    ("ny" "new york")
    ("sf" "san francisco")))

(println (cities "sf"))
#15
Thanks for your version rickyboy. Things happen when I don't know the language enough. Knowing replace can use regexp one can avoid find-all :) Cool.