Search found 23 matches

by vetelko
Tue Feb 28, 2023 7:40 pm
Forum: newLISP newS
Topic: I'd like to offer to take over these forums
Replies: 25
Views: 2935

Re: I'd like to offer to take over these forums

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 ...
by vetelko
Mon May 13, 2019 1:24 pm
Forum: newLISP in the real world
Topic: libtls for TLS in newLISP
Replies: 3
Views: 3820

Re: libtls for TLS in newLISP

Joining this thread to support Kirill's prayers :) https et al. is everywhere now.
by vetelko
Sun Feb 18, 2018 9:56 pm
Forum: newLISP in the real world
Topic: Uploading multiple files.
Replies: 0
Views: 5025

Uploading multiple files.

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 ...
by vetelko
Mon Oct 30, 2017 8:50 pm
Forum: newLISP in the real world
Topic: VIM indent
Replies: 0
Views: 4597

VIM indent

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?
by vetelko
Sun Sep 10, 2017 7:29 pm
Forum: newLISP in the real world
Topic: Get line number of script line currently executed
Replies: 1
Views: 2590

Get line number of script line currently executed

Hi guys,

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

Code: Select all

(if error  (println $lineno))
;; something magical like $it :)
Thanks in advance.
by vetelko
Tue Aug 22, 2017 2:35 pm
Forum: newLISP in the real world
Topic: set - setf - setq woes
Replies: 6
Views: 5330

Re: set - setf - setq woes

Description in manual is short and simple
http://www.newlisp.org/downloads/newlis ... .html#setf
by vetelko
Tue Aug 15, 2017 9:39 am
Forum: newLISP in the real world
Topic: Setting up hash items at once
Replies: 2
Views: 3065

Setting up hash items at once

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"))
by vetelko
Fri Aug 04, 2017 5:51 pm
Forum: newLISP in the real world
Topic: [solved] String interpolation
Replies: 8
Views: 6182

Re: [solved] String interpolation

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.
by vetelko
Tue Aug 01, 2017 7:49 pm
Forum: newLISP in the real world
Topic: [solved] String interpolation
Replies: 8
Views: 6182

Re: [solved] String interpolation

Hello, rickyboy. Thank you for your long answer. I like the "curry" trick :) I still don't know/use all newlisp goodies. I'm playing with newlisp http server and I wanted to use such a function in my html view templates, this is why function prints by default. Now it looks cleaner for me than printl...
by vetelko
Tue Aug 01, 2017 8:36 am
Forum: newLISP in the real world
Topic: [solved] String interpolation
Replies: 8
Views: 6182

Re: String interpolation

I'm new in (new)lisp, if someone can optimize it I would be glad. (set 'name "John" 'age 37 'city "NY") ;; P replaces symbol name in string with its value, symbol name is enclosed ;; between colons (or choose your own), symbol must be defined (define (P str (sep ":")) (set 'fields '()) (find-all (fo...
by vetelko
Mon Jul 31, 2017 7:01 am
Forum: newLISP in the real world
Topic: [solved] String interpolation
Replies: 8
Views: 6182

Re: String interpolation

OK. It's like placeholders in function format but named so instead of %s you are using named placeholders The effect should be like in PHP where you write something like this $one = 1; $two = 2; $str = "here $one and there $two"; So instead of (println (format "here %d and there %d" one two)) one ca...
by vetelko
Sun Jul 30, 2017 3:33 pm
Forum: newLISP in the real world
Topic: [solved] String interpolation
Replies: 8
Views: 6182

[solved] String interpolation

Hello guys,

is there some way how to replace placeholders in string with symbols values?
"value of one is :one: and value of two is :two:"
I want to replace :one: and :two: with values of symbols 'one and 'two if they exists. How to get symbol value if its name is available as string?
by vetelko
Sat Feb 11, 2017 3:22 pm
Forum: newLISP in the real world
Topic: set multiple symbols from list values at once
Replies: 2
Views: 3162

set multiple symbols from list values at once

Hi guys,

is it possible to achieve something like this in newLISP?

Code: Select all

(assign name city age '("john", "new york", 22))
by vetelko
Sat Jan 28, 2017 11:02 am
Forum: newLISP in the real world
Topic: regex doesn't match utf-8 character using \w pattern
Replies: 2
Views: 2941

Re: regex doesn't match utf-8 character using \w pattern

So there is no way how to match this character as a word character using pattern?
by vetelko
Fri Jan 27, 2017 8:37 pm
Forum: newLISP in the real world
Topic: regex doesn't match utf-8 character using \w pattern
Replies: 2
Views: 2941

regex doesn't match utf-8 character using \w pattern

Hello newLISP-ers :)

the following code returns nil for utf-8 character
(regex {\w} "č")
and so the following
(regex {\w} "č" "u")
while this works
(regex {\w} "m")

Is this not implemented or am I doing something wrong?
VT
by vetelko
Wed Oct 26, 2016 2:35 pm
Forum: newLISP newS
Topic: We are hiring newLisp programmers....
Replies: 4
Views: 20220

Re: We are hiring newLisp programmers....

Please could you write more on newLISP use cases in your company? I found this very interesting.
by vetelko
Sun Oct 23, 2016 8:29 am
Forum: Anything else we might add?
Topic: TLS/SSL support
Replies: 9
Views: 12731

Re: TLS/SSL support

Optionally of course. There are already optional parts as UTF-8 support or FFI so why not TLS if bigger binary is not a problem.
by vetelko
Sat Oct 22, 2016 10:14 am
Forum: Anything else we might add?
Topic: TLS/SSL support
Replies: 9
Views: 12731

Re: TLS/SSL support

Thank you for replies guys. I also started using curl, but IMHO whole world has started using https protocol so soon or later get-url against public internet will be useless.
by vetelko
Wed Oct 19, 2016 9:46 am
Forum: newLISP in the real world
Topic: map trim command on list members
Replies: 1
Views: 3157

map trim command on list members

Hi guys,

how can I map trim command to list members?
say I have list like this:

Code: Select all

(set 'lst '("a." "b " "c"))
and I want to trim dot character trying this construct:

Code: Select all

(set 'lst2 (map (curry trim {.}) lst))
but it doesn't work, output is:

Code: Select all

("." "." ".")
by vetelko
Fri Oct 14, 2016 5:43 pm
Forum: Anything else we might add?
Topic: TLS/SSL support
Replies: 9
Views: 12731

Re: TLS/SSL support

Sorry I mean support in get-url function to receive data from site which uses https.
by vetelko
Thu Oct 13, 2016 4:54 pm
Forum: So, what can you actually DO with newLISP?
Topic: newLISP shining again ...
Replies: 1
Views: 8783

Re: newLISP shining again ...

You are right. This is one of the things I love on Golang, and now on newlisp as I'm a novice :)
by vetelko
Thu Oct 13, 2016 4:51 pm
Forum: Anything else we might add?
Topic: TLS/SSL support
Replies: 9
Views: 12731

TLS/SSL support

Hi guys,

is there a chance that newlisp will support TLS/SSL in the near future? In my case I need it to fetch content using httpS protocol.

VT