ChanServ changed the topic of #picolisp to: PicoLisp language | Channel Log: https://irclog.whitequark.org/picolisp/ | Check also http://www.picolisp.com for more information
_whitelogger has joined #picolisp
orivej has quit [Ping timeout: 240 seconds]
rob_w has joined #picolisp
mtsd has joined #picolisp
<mtsd> Good morning everyone.
<Regenaxer> Hi mtsd!
<mtsd> Hi Regenaxer
<mtsd> Staying healthy, I hope?
<Regenaxer> yes, fine, thanks!
<Regenaxer> Sweden does not impose any limitations to social contacts yet?
<mtsd> Not yet.. The only limit is public gatherings. No more than 500 people allowed
<Regenaxer> Wow, 500. Here the max is 2 ;)
<mtsd> I am working from home, due to recommendations from authorities. But nu strict limits as such. Schools still open too..
<Regenaxer> Quite dangerous I think
<mtsd> I don't know why, but the authorities here don't impose restrictions. It is as if they are still not taking it seriously..
<Regenaxer> The problem is that nobody really knows how many people are infected
<mtsd> They are also not testing people any longer. Only the ones admitted to hospital. So no way of knowing how many are getting sick
<Regenaxer> T
<Regenaxer> A big part even does not get sick, but still spreads
<mtsd> I think the situation here is really dangerous. Things could go very bad very quickly this way.
<Regenaxer> Sadly, yes
<mtsd> I hope we will make it through this..
<aw-> hi Regenaxer mtsd
<Regenaxer> Hi aw-!
<mtsd> Hi aw-!
<Regenaxer> mtsd, we all hope
<mtsd> I just wish the necessary restrictions would be enforced here.
<aw-> mtsd: just don't worry about govnt orders, just make sure you keep yourself safe and away from others for a little while
<Regenaxer> aw-, the problem is not individual health
<Regenaxer> the risk is low
<mtsd> Well, we do what we can. Still legally obliged to send my oldest son to school, even in this situation..
<Regenaxer> the problem is the health system
<mtsd> Avoiding social contact is not so much of a problem for me. Typical introvert.. ;)
<Regenaxer> me too :)
<Regenaxer> But kids are very potential spreaders
<Regenaxer> So this is really dangerous
<Regenaxer> Most kids don't get sick, so nobody notices they are infected
<mtsd> Yes, that seems to be the case
<mtsd> And they still keep the schools open here..
<Regenaxer> :(
<Regenaxer> and *force* you to have them attend
<Regenaxer> strange indeed
<mtsd> Yes, that is the system here. Kids are obliged to go to school..
<mtsd> If parents refuse, you get a fine..
<mtsd> No option for home schooling
<Regenaxer> You have to tell your son to be careful
<Regenaxer> keep distance, wash hands etc at least
<mtsd> I do. All the time..It feels like I am nagging about such things constantly
<Regenaxer> :(
<beneroth> hi
<Regenaxer> Salami aleikum beneroth!
<beneroth> xD
<beneroth> Salami Regenaxer
<Regenaxer> :)
<mtsd> Hi beneroth!
<beneroth> gov want to build herd immunity, so they hope most get infected without issues, and then back to normal more quickly. paying with some 10- or 100-thousands of deaths.
<beneroth> problem is, the theory is most likely bullshit
<beneroth> all they get is multiple virues from giving it enough spread and time to mutate
<beneroth> the correct handling would have been heavy lockdown as early as possible, then test & isolate, then weaken the lockdown except for borders
<beneroth> we will go there now, having the bad stuff of both worlds...
<beneroth> western people just don't realize that China looked at that stuff for about 1-2 months, and decided it is the CHEAPEST way to go full heavy lockdown
<beneroth> if there would be a cheaper way, China would certainly have taken it...
<beneroth> western nations will pay a have price for their arrogance and ignorance. they became lazy and stupid.
<mtsd> T
<Regenaxer> right
<beneroth> positive aspects:
<beneroth> 1) it can be demonstrated that heavy measures have an influence on pollution and clima, so maybe we will finally do a bit more about this after this crisis
<beneroth> 2) the crisis nicely shows which professions are really necessary (infrastructure), and which are bullshit (most of banking). maybe recognition of this will hold a bit (well lets hope)
aw- has quit [Ping timeout: 256 seconds]
<beneroth> 3) as we are clever and hopefully not to unlucky, we can make PicoLisp standard programming language after the crisis, only language to get all the necessary stuff done with low dev resources ;-)
<beneroth> (joke)
aw- has joined #picolisp
<beneroth> wb aw-
<Regenaxer> Yess!! And the other really good thing is that CO2 output massively went down worldwide
<beneroth> germany will probably hit its clima goals for 2022
<beneroth> thanks to coronavirus
<beneroth> insightful video from two woman in Czechia, English auto-subtitles are good: https://www.youtube.com/watch?v=eslbV6ogyv0&t=4s
<beneroth> and now back to channel topic :)
<mtsd> Jokes aside, beneroth, I think point 3 is very interesting
<mtsd> Financial crisis could open things up for a thing like Pil.Low dev resources, and machine resources to get lots done
<mtsd> Stable, expressive, complete.
<beneroth> :)
<mtsd> In my experience, the users are fine as long as they get things done. The hardest sell are mostly other programmers, and various IT- people.. :(
<beneroth> aye
<beneroth> and stupid managers deciding on hearsay & only to protect their arses
<mtsd> Yes, very much so!
<mtsd> I have been in so many, mind-numbing, discussions with that category..
cil_Z has joined #picolisp
m_mans has joined #picolisp
<m_mans> Hi all!
<mtsd> Hello m_mans!
<Regenaxer> Di m_mans! How are you?
<m_mans> Regenaxer: fine, thanks! I hope you too? :)
<Regenaxer> yes, all right
<m_mans> I'm at the office as usual
<m_mans> Regenaxer: how pil21 is going?
<Regenaxer> Proceeding well, but is a lot of work
<m_mans> good
<Regenaxer> I hope to finish bin/picolisp till summer or so
<m_mans> wow
<Regenaxer> without much testing though
<Regenaxer> just to get it working
mtsd has quit [Ping timeout: 240 seconds]
orivej has joined #picolisp
mtsd has joined #picolisp
orivej_ has joined #picolisp
orivej has quit [Ping timeout: 250 seconds]
Nistur has joined #picolisp
<Nistur> Hello all!
<Regenaxer> Hi Nistur!
<Nistur> Hello! Long time since I've been on here! Turns out #picolisp isn't in my irssi autojoin, so a server restart disconnected me and I haven't had time to do any lisping in ages
<Nistur> how is everyone coping with the apocalypse?
<Regenaxer> All still ok :)
<Nistur> :)
<Regenaxer> Are you still in UK?
<Nistur> yup
<Nistur> The reason I remembered to come on here was that I have a project I want to use Picolisp for :D Finally a real use case that makes sense, at least to me. A number of my game projects would benefit from a persistent online service, something like that which is provided by the likes of GameSparks, but, while it's free in development, I don't REALLY want to pay $299 per month if I actually release a game
<Nistur> (as I'd expect the game to make roughly $0.50 probably) so I thought about rolling my own, more limited service... and as I would prefer to avoid JS, I immediately thought of Picolisp :P I've been re-learning what I forgot in the intervening year(s?) since I last lisped in anger, and looking at the web tutorials etc. I am probably missing something somewhere, and am prepared to get told to RTFM, but, I
<Nistur> cannot figure out how I can read a file (PUT? I think?) (probably a json in case I want to make this friendly for other people to use) to make a REST interface. I saw aw has a REST project on github, but I didn't see any examples of this. IT's mentioned in the application development guide under charts, but only that it will be mentioned later
<Nistur> I'm probably doing something stupid, and I will accept that :) But in my defense I have an 8 month old baby, and very little sleep :D
<aw-> Nistur: i have a REST API out in production for the last ~4 years now
<aw-> written in PicoLisp, open source
<aw-> but it's designed for a specific use-case, not sure how easy it is to customize for your own needs
<Nistur> aw-: is that the one on github? Umm...aw/picolisp-api
<Nistur> ?
<aw-> ohhhh haha picolisp-api!! wow no
mtsd has quit [Quit: Leaving]
<aw-> I think i never finished that
<Nistur> that's probably why I was confused :P
<aw-> I'm also confused
<Regenaxer> Cool Nistur! (Sorry, busy here atm)
<aw-> well that code is very similar to the jidoteki-admin-api code
<aw-> but picolisp-api is incomplete
<Nistur> no worries, I'm meant to be working :P This picolisp stuff is for my personal project, which I can only really work on in the evening when MiniNisturette is asleep :P But I figured I'd ask so I'm prepared for tonight
<Nistur> so yeah, no pressure :)
<aw-> i'm going to delete that repo to avoid confusing others
<beneroth> o/ Nistur
<aw-> clone it now if you want
<Nistur> sec then :P
<Nistur> grabbed :P
<Nistur> o/ beneroth
<Nistur> Hmmmm, you seem to be using POST rather than PUT. To be quite honest, I have very little understanding about this bit at all. I just looked up the GameSparks docs and they were mostly using PUT.
<aw-> yes POST
<aw-> picolisp HTTP server doesn't implement PUT
<beneroth> technically it makes no difference
<beneroth> you can adapt for PUT if you need to
<aw-> yes you can try to modify http.l
<Regenaxer> right
<aw-> or rewrite the request with Nginx or HAProxy
<beneroth> or make your own http.l
<beneroth> only tricky part is really just file uploads / MIME format
<beneroth> and DOS protection maybe, but just run it behind an nginx or so, and you should be good.
<aw-> oh yeah i made my own http.l but I didn't release it publicly yet
<aw-> was going to release at PilCon 2020
<beneroth> same. I need to make a better version first :)
<beneroth> the standard http.l from Regenaxer is good though
<Nistur> I don't really mind what I use :P Right now I just want a proof of concept, so things like DOS protection are waaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaay down the line
<Nistur> allI really want now is to be able to send and receive json :P
<aw-> Nistur: wait i have a link for you
* Nistur waits
<aw-> picolisp TODO app using @lib/http.l and @lib/json.l
<aw-> not sure how helpful
<aw-> but if you want a quick/easy way to setup a server to send/receive json with PicoLisp, it's probably impossible haha
<aw-> you'll have to tear out code from existing projects
<aw-> or launch (server) and (load "@lib/json.l") and do it yourself
<Nistur> ffs, my broadband keeps cutting out
<Nistur> anyway, I wasn't expecting picolisp to do the json decode automagically
<Nistur> I was just hoping to be able to receive files which I can then pass into json.l
<aw-> well if you can accept POST requests, it should be fairly easy to do that with the existing picolisp distribution
<aw-> with very little code
<Nistur> cool, I'll have a dig through your code and see :)
<Nistur> like I said, I just didn't see any examples of this in docs
<Nistur> but I may have missed them
<aw-> hmmm
<aw-> isn't there a web app tutorial?
<aw-> Nistur: https://picolisp.com/wiki/?home -> scroll down to "Serve web pages"
<aw-> you can use that code and replace xhtml.l with json.l
<Nistur> I was mostly going through this https://software-lab.de/doc/app.html but it's obviously more targetted at having a html frontend
<aw-> your code can then check for *Post, if it's set then it's a POST request
<aw-> I have this function defined somewhere in my code:
<aw-> [de get-http-method ()
<aw-> (if *Post
<aw-> "POST"
<aw-> "GET" ]
<aw-> so i just call (get-http-method) on every request
<Nistur> I think the magic I'm looking for is in [de http-file (Type)
<Nistur> Maybe
cil_Z has quit [Ping timeout: 246 seconds]
xkapastel has joined #picolisp
stultulo has joined #picolisp
f8l has quit [Ping timeout: 250 seconds]
stultulo is now known as f8l
rob_w has quit [Quit: Leaving]
cil_Z has joined #picolisp
cil_Z has quit [Ping timeout: 246 seconds]
cil_Z has joined #picolisp
cil_Z has quit [Ping timeout: 272 seconds]
cil_Z has joined #picolisp
jibanes is now known as twelvemonkeys
mtsd has joined #picolisp
cil_Z has quit [Ping timeout: 272 seconds]
xkapastel has quit [Quit: Connection closed for inactivity]
stultulo has joined #picolisp
f8l has quit [Ping timeout: 265 seconds]
stultulo is now known as f8l
mtsd has quit [Ping timeout: 250 seconds]
mtsd has joined #picolisp
cil_Z has joined #picolisp
mtsd has quit [Quit: Leaving]
cil_Z has quit [Ping timeout: 272 seconds]