Home freenode/#haskell: Logs Calendar

Logs: freenode/#haskell

←Prev  Next→ 502,152 events total
2021-04-29 09:22:04 <hololeap> i'm saying don't use "-r" and there will be no chance of recursively deleting your home
2021-04-29 09:22:34 × is_null quits (~jpic@pdpc/supporter/professional/is-null) (Ping timeout: 252 seconds)
2021-04-29 09:22:38 <olligobber> is there a way of deleting an empty directory other than -r?
2021-04-29 09:22:44 <hololeap> rmdir
2021-04-29 09:22:51 <olligobber> or rm -d
2021-04-29 09:22:57 <enobayram> how do you delete a non-empty directory then?
2021-04-29 09:22:58 <olligobber> I should probably use that instead
2021-04-29 09:23:05 <olligobber> delete its contents first
2021-04-29 09:23:18 <hololeap> rm "./~/*"; rmdir "./~/"
2021-04-29 09:23:20 <enobayram> what if there are non-empty directories inside?
2021-04-29 09:23:21 is_null joins (~jpic@pdpc/supporter/professional/is-null)
2021-04-29 09:23:34 <maerwald> enobayram: find . -type f -delete
2021-04-29 09:23:38 <olligobber> remove them first?
2021-04-29 09:23:49 <maerwald> don't run that command, lol
2021-04-29 09:24:03 <enobayram> and how does that save me if the directory happens to be my home directory :)
2021-04-29 09:24:06 <hololeap> then you write a complicated shell script, or maybe figure out why you have a complex file tree in "$HOME/~" in the first place
2021-04-29 09:24:20 <maerwald> enobayram: you'll still have empty directories!
2021-04-29 09:24:45 <enobayram> Better than nothing I guess!
2021-04-29 09:25:04 <maerwald> yeah, like a cleaned up room
2021-04-29 09:25:13 <maerwald> the doors are still there
2021-04-29 09:25:49 <enobayram> I think the solution is to write all software to use nothing but directory names for local storage
2021-04-29 09:25:50 <hololeap> more like a bunch of picture frames with nothing in them
2021-04-29 09:26:45 <maerwald> that could be annoying, since filename length is capped at 255
2021-04-29 09:27:03 <enobayram> you just nest those directories
2021-04-29 09:27:12 <maerwald> yes, annoying :D
2021-04-29 09:27:40 × Qwerky quits (~qwerky@37.171.11.15) (Remote host closed the connection)
2021-04-29 09:27:41 __monty__ joins (~toonn@unaffiliated/toonn)
2021-04-29 09:27:50 <enobayram> blablabla/blablabla is the same as blablablablablabla, unless of course "blablabla/blablabla" is a valid input to your program
2021-04-29 09:27:53 <maerwald> on linux, the upside is: filenames can be binary data
2021-04-29 09:28:13 <maerwald> so you can just dump your binary in to file names
2021-04-29 09:28:28 <maerwald> your shell with thank you, though
2021-04-29 09:28:32 × stree quits (~stree@68.36.8.116) (Ping timeout: 240 seconds)
2021-04-29 09:29:04 <maerwald> this might be the dawn of a new OS
2021-04-29 09:29:19 <enobayram> in that world, your shell would be interpreting all those directory names properly, so it would present them to you as a file system with directories and files in them
2021-04-29 09:29:35 <hololeap> just name everything in haskell record style: /homeHololeapDownloadsBunnies.gif
2021-04-29 09:30:22 × ania123 quits (5e89ad7c@94.137.173.124) (Quit: Connection closed)
2021-04-29 09:30:32 <maerwald> it should be snake case
2021-04-29 09:30:41 is_null_ joins (~jpic@pdpc/supporter/professional/is-null)
2021-04-29 09:31:13 <hololeap> :p
2021-04-29 09:31:31 ClaudiusMaximus joins (~claude@cpc98210-croy26-2-0-cust137.19-2.cable.virginm.net)
2021-04-29 09:31:31 × ClaudiusMaximus quits (~claude@cpc98210-croy26-2-0-cust137.19-2.cable.virginm.net) (Changing host)
2021-04-29 09:31:31 ClaudiusMaximus joins (~claude@unaffiliated/claudiusmaximus)
2021-04-29 09:31:32 <enobayram> I'm glad we've arrived at a satisfactory solution
2021-04-29 09:32:06 mikoto-chan joins (~mikoto-ch@gateway/tor-sasl/mikoto-chan)
2021-04-29 09:33:19 ddellacosta joins (~ddellacos@86.106.143.21)
2021-04-29 09:33:33 × is_null quits (~jpic@pdpc/supporter/professional/is-null) (Ping timeout: 252 seconds)
2021-04-29 09:35:10 <olligobber> how about we do snake case, but instead of _ we use some other character
2021-04-29 09:35:30 <olligobber> something that wouldn't normally get used in file names
2021-04-29 09:35:37 <maerwald> (
2021-04-29 09:35:40 <olligobber> maybe /
2021-04-29 09:35:44 <maerwald> lol
2021-04-29 09:36:12 <yushyin> i do like kebab-case
2021-04-29 09:36:37 <olligobber> hmm, if _ is snake and - is kebab, what is /?
2021-04-29 09:36:41 <olligobber> or . too
2021-04-29 09:36:50 <olligobber> pebble.case ?
2021-04-29 09:36:58 <olligobber> book/shelf/case?
2021-04-29 09:37:15 <maerwald> why limit to ascii?
2021-04-29 09:37:40 <olligobber> ogham case
2021-04-29 09:37:59 Qwerky joins (~qwerky@37.171.11.15)
2021-04-29 09:38:03 × ddellacosta quits (~ddellacos@86.106.143.21) (Ping timeout: 268 seconds)
2021-04-29 09:38:42 <hololeap> bookshelf-after-an-earthquake-case
2021-04-29 09:40:27 Synthetica joins (uid199651@gateway/web/irccloud.com/x-lthemimjkmqujsuh)
2021-04-29 09:40:46 <maerwald> double__snake__case
2021-04-29 09:40:50 <enobayram> I'd go for bookshelf_after_an_earthquake_case
2021-04-29 09:41:07 <enobayram> unless we're talking about the top-facing side of the bookshelf of course
2021-04-29 09:41:25 <olligobber> bookshelf…after…a…fire…case
2021-04-29 09:42:22 × is_null_ quits (~jpic@pdpc/supporter/professional/is-null) (Ping timeout: 252 seconds)
2021-04-29 09:42:22 stree joins (~stree@68.36.8.116)
2021-04-29 09:42:30 × Qwerky quits (~qwerky@37.171.11.15) (Ping timeout: 265 seconds)
2021-04-29 09:42:54 <enobayram> bookshelf!after!installing!roller!wheels!case
2021-04-29 09:43:23 <opqdonut> this::is::obviously::the::superior::case
2021-04-29 09:43:27 <opqdonut> it has history!
2021-04-29 09:43:39 <olligobber> oh god
2021-04-29 09:44:25 is_null joins (~jpic@pdpc/supporter/professional/is-null)
2021-04-29 09:44:39 <maerwald> time to write up a language proposal
2021-04-29 09:44:44 <maerwald> I think we're settled
2021-04-29 09:45:02 <olligobber> (bubble)(case)
2021-04-29 09:45:32 × frozenErebus quits (~frozenEre@37.231.244.249) (Remote host closed the connection)
2021-04-29 09:45:36 × mnrmnaugh quits (~mnrmnaugh@unaffiliated/mnrmnaugh) (Remote host closed the connection)
2021-04-29 09:45:42 Guest87676 joins (~laudiacay@67.176.215.84)
2021-04-29 09:47:16 <hololeap> % toBookshelfAfterAFire = intersperse '/' (map (const Nothing))
2021-04-29 09:47:17 <yahb> hololeap: ; <interactive>:14:42: error:; * Couldn't match expected type: [Char]; with actual type: [a0] -> [Maybe a1]; * Probable cause: `map' is applied to too few arguments; In the second argument of `intersperse', namely `(map (const Nothing))'; In the expression: intersperse '/' (map (const Nothing)); In an equation for `toBookshelfAfterAFire': toBookshelfAfterAFire
2021-04-29 09:47:42 <hololeap> % toBookshelfAfterAFire = intercalate "/" . (map (show . const Nothing))
2021-04-29 09:47:42 <yahb> hololeap:
2021-04-29 09:48:27 <opqdonut> oh right, let me amend my proposal to this::::is::::obviously::::the::::superior::::case
2021-04-29 09:48:35 <opqdonut> since : and :: are reserved, and ::: is used by many libraries
2021-04-29 09:48:44 <olligobber> % toBookshelfAfterAFire ["this","is","a","test"]
2021-04-29 09:48:45 <yahb> olligobber: "Nothing/Nothing/Nothing/Nothing"
2021-04-29 09:48:51 <olligobber> I see
2021-04-29 09:49:04 <opqdonut> we could also go with ::::: to leave some expansion room for libraries
2021-04-29 09:50:03 × Guest87676 quits (~laudiacay@67.176.215.84) (Ping timeout: 252 seconds)
2021-04-29 09:50:25 mnrmnaugh joins (~mnrmnaugh@unaffiliated/mnrmnaugh)
2021-04-29 09:52:05 <hololeap> i guess that should be earthquake+fire
2021-04-29 09:52:46 × son0p quits (~ff@181.136.122.143) (Ping timeout: 240 seconds)
2021-04-29 10:00:08 lowdude[m] < https://matrix.org/_matrix/media/r0/download/matrix.org/wAfYwylrBClGeOzlynmOGEkz/message.txt >
2021-04-29 10:02:05 <tomsmeding> more∷∷superior∷∷case
2021-04-29 10:03:09 <tomsmeding> lowdude[m]: where does Rand come from?
2021-04-29 10:04:21 raehik joins (~raehik@cpc95906-rdng25-2-0-cust156.15-3.cable.virginm.net)
2021-04-29 10:04:25 <lowdude[m]> <tomsmeding "lowdude: where does Rand come fr"> I just took that over from Control.Monad.Random
2021-04-29 10:04:40 Rudd0 joins (~Rudd0@185.189.115.108)

All times are in UTC.