Logs: freenode/#haskell
| 2020-09-17 19:34:40 | × | notzmv quits (~user@177.103.86.92) (Changing host) |
| 2020-09-17 19:34:40 | → | notzmv joins (~user@unaffiliated/zmv) |
| 2020-09-17 19:34:56 | × | wroathe quits (~wroathe@c-68-54-25-135.hsd1.mn.comcast.net) (Ping timeout: 272 seconds) |
| 2020-09-17 19:35:08 | <sm[m]> | frdg: IIRC keter helps minimise downtime and dropped requests while upgrading. If you're fine with just installing the new binary and restarting your app, you don't need keter |
| 2020-09-17 19:35:51 | <frdg> | sm[m]: Yes I am fine with that. |
| 2020-09-17 19:35:58 | <sm[m]> | where are you deploying ? if it has systemd, that's a way to keep your app running |
| 2020-09-17 19:36:27 | <sm[m]> | or you can just run it yourself in a shell session made persistent by dtach or screen |
| 2020-09-17 19:36:28 | <frdg> | I would like to run it from my laptop running opensuse |
| 2020-09-17 19:36:32 | geekosaur | considers that if it hasn't been updated since ghc-8.0 then it must not be used very much |
| 2020-09-17 19:36:38 | × | ahmr88 quits (~ahmr88@cpc85006-haye22-2-0-cust131.17-4.cable.virginm.net) (Read error: Connection reset by peer) |
| 2020-09-17 19:37:03 | × | p-core quits (~Thunderbi@koleje-wifi-0046.koleje.cuni.cz) (Client Quit) |
| 2020-09-17 19:37:05 | → | finkata joins (~dpetrov@83.222.188.39) |
| 2020-09-17 19:37:12 | → | knupfer joins (~Thunderbi@mue-88-130-61-060.dsl.tropolys.de) |
| 2020-09-17 19:37:13 | <sm[m]> | frdg: so.. just run it then ? Am I missing something |
| 2020-09-17 19:37:24 | → | p-core joins (~Thunderbi@koleje-wifi-0046.koleje.cuni.cz) |
| 2020-09-17 19:37:27 | → | ahmr88 joins (~ahmr88@cpc85006-haye22-2-0-cust131.17-4.cable.virginm.net) |
| 2020-09-17 19:38:00 | <frdg> | well that is what I have been doing...but that only runs on localhost. |
| 2020-09-17 19:38:24 | × | nan` quits (~nan`@unaffiliated/nan/x-5405850) (Ping timeout: 260 seconds) |
| 2020-09-17 19:38:24 | <sm[m]> | for others to access it, you'll run it on a server, like a VPS, right ? |
| 2020-09-17 19:38:34 | × | gestone quits (~gestone@c-73-97-137-216.hsd1.wa.comcast.net) (Ping timeout: 260 seconds) |
| 2020-09-17 19:38:46 | <frdg> | oh I have to use a vps? |
| 2020-09-17 19:38:53 | <frdg> | I wanted to just use my computer. |
| 2020-09-17 19:39:35 | × | geekosaur quits (42d52102@66.213.33.2) (Remote host closed the connection) |
| 2020-09-17 19:39:49 | <sm[m]> | are you wanting other people to access it ? |
| 2020-09-17 19:39:51 | → | wroathe joins (~wroathe@c-68-54-25-135.hsd1.mn.comcast.net) |
| 2020-09-17 19:39:52 | <frdg> | yes |
| 2020-09-17 19:40:24 | <sm[m]> | while it's running on your laptop, and while your laptop is connected ? that's possible, but not easy and not usual |
| 2020-09-17 19:40:31 | × | bahamas quits (~lucian@unaffiliated/bahamas) (Ping timeout: 272 seconds) |
| 2020-09-17 19:41:01 | → | geekosaur joins (42d52102@66.213.33.2) |
| 2020-09-17 19:41:07 | <frdg> | oh really |
| 2020-09-17 19:41:23 | <koz_> | If statistical profiling gives me a lot of variance due to outliers, how do I deal with it? |
| 2020-09-17 19:41:27 | <sm[m]> | "hey frdg, open your laptop so I can access the app!" |
| 2020-09-17 19:42:11 | <frdg> | so usually people use a vps. |
| 2020-09-17 19:42:20 | <frdg> | Only ones I have seen are paid. |
| 2020-09-17 19:42:24 | <geekosaur> | not only that but you won't have a fixed address others could use to access it (I just got booted by my local address changing, for an example) |
| 2020-09-17 19:42:51 | → | eric_ joins (~eric@2804:431:c7d4:402a:e9bd:254c:fe89:5831) |
| 2020-09-17 19:42:58 | → | kenran joins (~maier@b2b-37-24-119-190.unitymedia.biz) |
| 2020-09-17 19:43:16 | <geekosaur> | names yes, but you'r unlikely to have a name either and if you do it'll be based on the address |
| 2020-09-17 19:44:50 | <sm[m]> | frdg: sometimes people run their own physical server, eg a raspberry pi in a cupboard connected 24/7 |
| 2020-09-17 19:45:01 | <koz_> | sm[m]: Or, in my case, an old Eee-PC. |
| 2020-09-17 19:45:06 | <sm[m]> | but yes a vps is by far the easiest |
| 2020-09-17 19:45:16 | <sm[m]> | aha, koz_ knows how |
| 2020-09-17 19:45:28 | <koz_> | I've been on the self-hosting train for a while, lol. |
| 2020-09-17 19:45:40 | <koz_> | Best thing for a starting self-hoster is actually an old laptop IMHO. |
| 2020-09-17 19:45:41 | <geekosaur> | eee pc re-users represent! |
| 2020-09-17 19:46:03 | <koz_> | They're easy to set up, easy to fix if stuff breaks, and have a built-in UPS. |
| 2020-09-17 19:46:13 | <frdg> | I have an old macbook |
| 2020-09-17 19:46:13 | × | eric quits (~eric@2804:431:c7d4:402a:8db3:9561:773:fb8e) (Ping timeout: 272 seconds) |
| 2020-09-17 19:46:59 | <koz_> | frdg: An old Macbook would work. |
| 2020-09-17 19:47:03 | <sm[m]> | koz_: what's the way to ensure a fixed ip address ? use an ISP that will provide that ? |
| 2020-09-17 19:47:18 | × | wroathe quits (~wroathe@c-68-54-25-135.hsd1.mn.comcast.net) (Quit: Lost terminal) |
| 2020-09-17 19:47:20 | <nineonine> | hey all, I am trying to use hi all, I am trying to use https://hackage.haskell.org/package/process-1.6.10.0/docs/src/System.Process.html#withCreateProcess and sometimes no cleanup is happening |
| 2020-09-17 19:47:23 | <nineonine> | is this expected? |
| 2020-09-17 19:47:28 | <koz_> | sm[m]: That's what I do - mine charges me 10 bucks a month. |
| 2020-09-17 19:47:33 | <sm[m]> | or is a fixed dns name good enough ? |
| 2020-09-17 19:47:45 | <frdg> | koz_: Do I just need to get linux on it? |
| 2020-09-17 19:47:46 | <koz_> | DNS name needs an IP address to aim at. |
| 2020-09-17 19:47:51 | <koz_> | frdg: Yeah, any Linux will do. |
| 2020-09-17 19:47:54 | × | kenran quits (~maier@b2b-37-24-119-190.unitymedia.biz) (Ping timeout: 260 seconds) |
| 2020-09-17 19:48:22 | <sm[m]> | koz_: well there's the dynamic ones where the machine runs a client to update the record on boot |
| 2020-09-17 19:48:24 | <frdg> | ok this may fall perfectly into place. |
| 2020-09-17 19:48:30 | × | machinedgod quits (~machinedg@45.78.189.122) (Ping timeout: 256 seconds) |
| 2020-09-17 19:48:31 | × | heatsink quits (~heatsink@2600:1700:bef1:5e10:b0dc:6c54:247b:ece) (Remote host closed the connection) |
| 2020-09-17 19:48:34 | <koz_> | sm[m]: Perhaps, but I've never needed it. |
| 2020-09-17 19:48:54 | <glguy> | My ISP has kept my "dynamic" IP address the same on the scale of years |
| 2020-09-17 19:49:03 | <nineonine> | the process is not getting killed for some reason |
| 2020-09-17 19:49:25 | → | notzmv` joins (~user@177.103.86.92) |
| 2020-09-17 19:49:39 | <koz_> | glguy: Mine flipped my supposedly static one on me once. |
| 2020-09-17 19:49:44 | <koz_> | (that was _real_ fun) |
| 2020-09-17 19:50:02 | <koz_> | (both to diagnose and to subsequently inform customer service in _no uncertain terms_ that this was not good enough) |
| 2020-09-17 19:50:08 | <nineonine> | ok I see this comment in code |
| 2020-09-17 19:50:11 | <nineonine> | terminateProcess does not guarantee that it terminates the process. |
| 2020-09-17 19:50:15 | <geekosaur> | right |
| 2020-09-17 19:50:17 | <nineonine> | which answers my question |
| 2020-09-17 19:50:28 | <koz_> | terminateProcessMaybe :P |
| 2020-09-17 19:50:46 | <sm[m]> | discourageProcess |
| 2020-09-17 19:50:48 | <geekosaur> | was just about to point out it does terminateProcess and then forkIO-s the following waitForProcess, so in fact it's not cleaned up synchronously at all |
| 2020-09-17 19:51:00 | × | shafox quits (~shafox@106.51.234.111) (Remote host closed the connection) |
| 2020-09-17 19:51:04 | <koz_> | sm[m]: |
| 2020-09-17 19:51:11 | <koz_> | kindlySuggestProcessDie |
| 2020-09-17 19:51:13 | <nineonine> | this is quite deceiving |
| 2020-09-17 19:51:33 | <koz_> | nineonine: Not much we can do about it. Unkillable processes are possible, and Haskell can't really save you. |
| 2020-09-17 19:51:33 | → | heatsink joins (~heatsink@2600:1700:bef1:5e10:b0dc:6c54:247b:ece) |
| 2020-09-17 19:51:43 | <koz_> | (I had this happen many times due to dodgy drivers) |
| 2020-09-17 19:51:48 | <geekosaur> | ^ |
| 2020-09-17 19:51:53 | <koz_> | (ended up with a process even the _OS_ couldn't kill) |
| 2020-09-17 19:51:58 | <nineonine> | makes sense, my hopes were too high! |
| 2020-09-17 19:52:22 | <davean> | well, what OS - a processing being killable or not is an OS thing and some OSes do guarrentee they can |
| 2020-09-17 19:52:27 | <nineonine> | so I guess this is an OS quirk |
| 2020-09-17 19:52:32 | <davean> | its specificly POSIXy systems that usually have an issue with it. |
| 2020-09-17 19:52:35 | <Boarders> | dolio: thanks for your help! |
| 2020-09-17 19:53:02 | × | notzmv quits (~user@unaffiliated/zmv) (Ping timeout: 260 seconds) |
| 2020-09-17 19:53:25 | <geekosaur> | there's also a harder kill than SIGTERM, not that it's guaranteed either — but some processes do ignore SIGTERM for no good reason |
| 2020-09-17 19:53:25 | <sm[m]> | btw there's no reason frdg has to install linux on their macbook megaserver I assume |
| 2020-09-17 19:53:29 | <koz_> | davean: Well, it was a Linux thing, so yeah. Who guarantees process death? |
| 2020-09-17 19:53:42 | <koz_> | sm[m]: No _specific_ reason, no. |
| 2020-09-17 19:53:53 | <koz_> | I'd say it's easier for me to self-host on a Linux, but YMMV. |
| 2020-09-17 19:54:09 | × | p-core quits (~Thunderbi@koleje-wifi-0046.koleje.cuni.cz) (Quit: p-core) |
| 2020-09-17 19:54:27 | → | mirrorbird joins (~psutcliff@2a00:801:44b:8959:8d6c:276b:332b:1c71) |
| 2020-09-17 19:54:28 | → | p-core joins (~Thunderbi@koleje-wifi-0046.koleje.cuni.cz) |
All times are in UTC.