Search found 23 matches
- Tue Feb 28, 2023 7:40 pm
- Forum: newLISP newS
- Topic: I'd like to offer to take over these forums
- Replies: 25
- Views: 34539
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 ...
- Sun Oct 16, 2022 1:21 pm
- Forum: Anything else we might add?
- Topic: What's up with Nuevatec and Lutz?
- Replies: 3
- Views: 7135
- Mon May 13, 2019 1:24 pm
- Forum: newLISP in the real world
- Topic: libtls for TLS in newLISP
- Replies: 3
- Views: 5845
Re: libtls for TLS in newLISP
Joining this thread to support Kirill's prayers :) https et al. is everywhere now.
- Sun Feb 18, 2018 9:56 pm
- Forum: newLISP in the real world
- Topic: Uploading multiple files.
- Replies: 0
- Views: 6128
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 ...
- Mon Oct 30, 2017 8:50 pm
- Forum: newLISP in the real world
- Topic: VIM indent
- Replies: 0
- Views: 5541
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?
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?
- 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: 3574
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:
Thanks in advance.
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 :)
- Tue Aug 22, 2017 2:35 pm
- Forum: newLISP in the real world
- Topic: set - setf - setq woes
- Replies: 6
- Views: 15473
Re: set - setf - setq woes
Description in manual is short and simple
http://www.newlisp.org/downloads/newlis ... .html#setf
http://www.newlisp.org/downloads/newlis ... .html#setf
- Tue Aug 15, 2017 9:39 am
- Forum: newLISP in the real world
- Topic: Setting up hash items at once
- Replies: 2
- Views: 4473
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"))
- Fri Aug 04, 2017 5:51 pm
- Forum: newLISP in the real world
- Topic: [solved] String interpolation
- Replies: 8
- Views: 10146
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.
- Tue Aug 01, 2017 7:49 pm
- Forum: newLISP in the real world
- Topic: [solved] String interpolation
- Replies: 8
- Views: 10146
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...
- Tue Aug 01, 2017 8:36 am
- Forum: newLISP in the real world
- Topic: [solved] String interpolation
- Replies: 8
- Views: 10146
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...
- Mon Jul 31, 2017 7:01 am
- Forum: newLISP in the real world
- Topic: [solved] String interpolation
- Replies: 8
- Views: 10146
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...
- Sun Jul 30, 2017 3:33 pm
- Forum: newLISP in the real world
- Topic: [solved] String interpolation
- Replies: 8
- Views: 10146
[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?
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?
- 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: 4707
set multiple symbols from list values at once
Hi guys,
is it possible to achieve something like this in newLISP?
is it possible to achieve something like this in newLISP?
Code: Select all
(assign name city age '("john", "new york", 22))
- 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: 4185
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?
- 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: 4185
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
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
- Wed Oct 26, 2016 2:35 pm
- Forum: newLISP newS
- Topic: We are hiring newLisp programmers....
- Replies: 4
- Views: 26503
Re: We are hiring newLisp programmers....
Please could you write more on newLISP use cases in your company? I found this very interesting.
- Sun Oct 23, 2016 8:29 am
- Forum: Anything else we might add?
- Topic: TLS/SSL support
- Replies: 9
- Views: 26598
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.
- Sat Oct 22, 2016 10:14 am
- Forum: Anything else we might add?
- Topic: TLS/SSL support
- Replies: 9
- Views: 26598
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.
- Wed Oct 19, 2016 9:46 am
- Forum: newLISP in the real world
- Topic: map trim command on list members
- Replies: 1
- Views: 4116
map trim command on list members
Hi guys,
how can I map trim command to list members?
say I have list like this:
and I want to trim dot character trying this construct:
but it doesn't work, output is:
how can I map trim command to list members?
say I have list like this:
Code: Select all
(set 'lst '("a." "b " "c"))
Code: Select all
(set 'lst2 (map (curry trim {.}) lst))
Code: Select all
("." "." ".")
- Fri Oct 14, 2016 5:43 pm
- Forum: Anything else we might add?
- Topic: TLS/SSL support
- Replies: 9
- Views: 26598
Re: TLS/SSL support
Sorry I mean support in get-url function to receive data from site which uses https.
- Thu Oct 13, 2016 4:54 pm
- Forum: So, what can you actually DO with newLISP?
- Topic: newLISP shining again ...
- Replies: 1
- Views: 12364
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 :)
- Thu Oct 13, 2016 4:51 pm
- Forum: Anything else we might add?
- Topic: TLS/SSL support
- Replies: 9
- Views: 26598
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
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