beneroth changed the topic of #picolisp to: PicoLisp language | The scalpel of software development | Channel Log: https://libera.irclog.whitequark.org/picolisp | Check www.picolisp.com for more information
aw- has joined #picolisp
rob_w has joined #picolisp
<Nistur> mornin' all
<Regenaxer> Hi Nistur!
<Nistur> I am seriously considering trying to do some work-work with pil :D
<Regenaxer> 👍
<Nistur> One of my current projects, we're using UE4 to do a large amount of photorealistic rendering for marketing material (like... 16 months worth of solid rendering). So our plan is to throw it onto AWS, so we can scale it... but I needed to write a scheduler/coordinator... I initially tried to do it in UE4, because I could reuse code, but then gave up and wrote a quick and clean one in c++ that has a
<Nistur> RESTlike interface, so we could make a quick web frontend to control it... unfortunately our web person is busy at the moment, so I thought I'd try to set up a proof of concept for the web interface, and asked her what she'd be using... she said node.js...
<Nistur> I've spent the last day trying to set up a simple node.js server which, for now, just acts as a proxy, calls http://127.0.0.1:8000/api/get_jobs and spews the resulting json into the web response that the browser gets
<Nistur> but the slution appears to be, either write a bunch of boilerplate, or use some incredibly complicated framework which inexplicably also needs mysql
<Regenaxer> Interesting indeed
<Nistur> ... or say "I'll maintain this project, not the webdev person" and write it in pil
<Regenaxer> perfect
<Nistur> for my proof of concept, it'd be what... 3 lines?
<Regenaxer> hehe, well ...
<Regenaxer> maybe four
<Nistur> and the only thing we need a database for (because the scheduler handles everything else) is authentication...
<Nistur> so I think mysql is... perhaps overkill for that?
<Regenaxer> I think so
<Regenaxer> auth is prefabricated in standard pil anyway
<Nistur> :)
<Regenaxer> so almost nothing needed
<Nistur> the only reason I'm hesitating is, I'd like the website to be dynamic, so that you don't have to refresh to see what's currently being rendered... so it'll need javascript _anyway_... and I'm not sure I'm likely to get competent enough at webdev stuff to be able to get that set up in a timely manner, while our webdev person could certainly make it quickly
<Regenaxer> true
<Nistur> if she can't take over in the next few days, then I will just write a website in pil and have it need refreshing to see updates
<Nistur> c'est la vie :P
<Regenaxer> You can do simple updates with an +Auto +Button
<Regenaxer> More sophisticated stuff with serverSentEvents
<Regenaxer> What is "rederered" here?
<Regenaxer> rendered
<Regenaxer> Just text?
<Nistur> Um... the webpage will be... mostly just a list of text, but _ideally_ once UE4 has rendered the images, it'd have a link, or a hover-tooltip type thing, showing a preview of the rendered image
<Regenaxer> ok
razzy has quit [Ping timeout: 240 seconds]
<aw-> hi guys
<aw-> Nistur: i've done quite a few web apps written in pil
<aw-> it's wonderful
<aw-> and i've written some REST APIs as well which only accept and reply with JSON
<aw-> the trick for me was to modify http.l so it parses requests a certain way, and responds with the proper headers etc
<Nistur> I've managed to sort the node.js stuff so it 'works'
<Nistur> I've had to install two packages, one to handle serving requests, and one to handle requesting from my service
<aw-> nodejs... for anything public facing, is a huge mistake
<Nistur> which pulled in about 50 more dependencies of course (no exaggeration)
<Nistur> not my mistake. This is our webdev's mistake :P I don't do web stuff :D
<aw-> yeah just that "pulling in dependencies" is considered dangerous
<Nistur> I'm only setting up the environment they want right now
<Nistur> also, this isn't going to be open to the world (hopefully)
<Nistur> so it _should_ be ok
<aw-> ok good
<Nistur> maybe
<Nistur> :D
<aw-> (famous last words) haha
<Nistur> it's on an AWS machine, so it's currently open, sure
<Nistur> but the plan is that we're going to restrict it. Can't do it to IPs as we're all using home connections with dynamic IP. Maybe I'll limit it to office IP, then we'll have to VPN into the office to access it
razzy has joined #picolisp
razzy has quit [Ping timeout: 240 seconds]
<Nistur> the 50 was not an exaggeration at all
<Nistur> ls -lha node_modules/ | wc -l
<Nistur> 165
<Nistur> I thought I saw 48 with one and 3 with another, so I thought 50 was reasonable... but apparently it pulled in more than I Realised
<Nistur> ... which includes this: https://tweetnacl.cr.yp.to/ ... because of course it does
razzy has joined #picolisp
razzy has quit [Ping timeout: 240 seconds]
<beneroth> Node.js is the new PHP. In way its way worse.
<beneroth> You are aware that the package management for Node.js, so far had like.. 6? incidents where dependencies were removed, could potentially be replaced with malware, or were indeed replaced?
<beneroth> just look that you don't end up being responsible for it ^^
<Nistur> web stuff is firmly in the hands of our webdev. I've made it clear that I'm just setting up the environment they want
<Nistur> I did suggest picolisp, buuuuuuut let's say they're not too fond of parens :P
<beneroth> with removed I mean: packages were removed/replaced, which broke most applications indirectly, because they all fetch the dependencies all the time... including whatever comes
<beneroth> yeah
<beneroth> CV-driven programming :)
<Nistur> as I said, if this was me maintaining it, I'd have dropped any idea of using node a long time ago. At the very latest when my stupidly simple proxy thing pulled in a library for crypto, whose main selling point is that it fits in 100 tweets... because...yeah...
<Nistur> (it is only a stupidly simple proxy thing for now... just as a proof of concept that I can use a website to get the data from my little scheduler daemon)
<beneroth> that is the important criteria for judging crypto libraries, you didn't know?
razzy has joined #picolisp
aw- has quit [Ping timeout: 240 seconds]
viaken has quit [Ping timeout: 268 seconds]
viaken has joined #picolisp
Guest26 has joined #picolisp
Guest26 has quit [Quit: Ping timeout (120 seconds)]
rob_w has quit [Quit: Leaving]