code logs -> 2019 -> Sun, 03 Feb 2019< code.20190202.log - code.20190204.log >
--- Log opened Sun Feb 03 00:00:12 2019
00:05 Kindamoody is now known as Kindamoody[zZz]
00:11 macdjord|Subnautica is now known as macdjord
00:25
<&ToxicFrog>
Woot, I now have a framework for writing touchscreen interfaces in zsh
00:33
<&[R]>
Crazy
00:34
<&ToxicFrog>
Pass it the right /dev/input device and the right tty (so it can do screen coordinate to character cell mapping) and define the event-{press,release,drag,click} functions and awaaaay you go!
00:34
<&ToxicFrog>
No support for multitouch yet though.
02:01
<&[R]>
If I were to have a library of shell functions that all operate on a similar type of data, and wanted to prefix all the commands, is / a reasonable separator?
02:02
<&McMartin>
Very unreasonable if the similar type of data is file paths
02:03
<&[R]>
Separator between the prefix and the command, so I'd have table/add table/new table/search etc...
02:03
<&McMartin>
Oh
02:03
<&McMartin>
That's very Clojure-y to me.
02:03
<&ToxicFrog>
Same, which is why I use it for all my shell libraries
02:03
<&ToxicFrog>
It might not work if you need to use it in an environment where POSIXLY_CORRECT is set
02:04
<&[R]>
This shell doesn't obey that, or have plans to
02:04
<&ToxicFrog>
then rock on
02:07
<&[R]>
How is Clojure as a shell language?
02:23 Degi [Degi@Nightstar-da54u4.dyn.telefonica.de] has quit [Connection closed]
02:29
<&[R]>
<ToxicFrog> Same, which is why I use it for all my shell libraries <-- or did I misunderstand this?
02:29
<&ToxicFrog>
[R]: I mean, I use / as a separator in the libraries I write for zsh or bash
02:29
<&ToxicFrog>
Not that I use clj as my shell
02:29
<&ToxicFrog>
It's probably really bad for that
02:30
<&[R]>
Right, that's why I was kind of confused
02:30
<&[R]>
Still xs shell BTW, I'm thinking I'll be using it as my login shell pretty soon
02:38
<@macdjord>
[R]: AIUI, '-' is the traditional seperator.
03:30 Emmy [Emmy@Nightstar-9p7hb1.direct-adsl.nl] has joined #code
03:36 Emmy [Emmy@Nightstar-9p7hb1.direct-adsl.nl] has quit [Ping timeout: 121 seconds]
03:44
<&[R]>
Yay, I have table-new, table-push and table-pop
03:44
<&[R]>
And table-length
03:50
<&[R]>
... and result doesn't end function execution flow
03:50 * McMartin determines that he is making negative progress, calls it off for now.
04:48 Vorntastic [uid293981@Nightstar-6br85t.irccloud.com] has joined #code
04:48 mode/#code [+qo Vorntastic Vorntastic] by ChanServ
05:30 Derakon is now known as Derakon[AFK]
07:30 celticminstrel is now known as celmin|sleep
07:53 McMartin [mcmartin@Nightstar-rpcdbf.sntcca.sbcglobal.net] has quit [Ping timeout: 121 seconds]
08:07 McMartin [mcmartin@Nightstar-rpcdbf.sntcca.sbcglobal.net] has joined #code
08:07 mode/#code [+ao McMartin McMartin] by ChanServ
09:04 Kindamoody[zZz] is now known as Kindamoody
10:58 Emmy [Emmy@Nightstar-9p7hb1.direct-adsl.nl] has joined #code
12:16 Degi [Degi@Nightstar-0ttpu5.dyn.telefonica.de] has joined #code
12:46 Degi [Degi@Nightstar-0ttpu5.dyn.telefonica.de] has quit [The TLS connection was non-properly terminated.]
13:19 Emmy [Emmy@Nightstar-9p7hb1.direct-adsl.nl] has quit [[NS] Quit: Leaving]
13:20 Emmy [Emmy@Nightstar-9p7hb1.direct-adsl.nl] has joined #code
13:56
<&ToxicFrog>
macdjord: I generally use - as the spacing separator, e.g. touch/register-event-handler
14:37 celmin|sleep is now known as celticminstrel
15:14 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code
15:14 mode/#code [+qo Vornicus Vornicus] by ChanServ
16:58 Vorntastic [uid293981@Nightstar-6br85t.irccloud.com] has quit [[NS] Quit: Connection closed for inactivity]
19:36 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [Connection closed]
19:55 himi [sjjf@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds]
20:01 Derakon[AFK] is now known as Derakon
20:52
<@macdjord>
ToxicFrog: You can use _ for that.
21:05 Degi [Degi@Nightstar-0ttpu5.dyn.telefonica.de] has joined #code
21:06
<&ToxicFrog>
macdjord: I can, but why would I?
21:08
<@macdjord>
ToxicFrog: To free up '-' for use as a higher-level seperator
21:10 Degi [Degi@Nightstar-0ttpu5.dyn.telefonica.de] has quit [Operation timed out]
21:10
<&ToxicFrog>
touch-register_event_handler looks significantly more ugly to me.
21:14
<&[R]>
Agreed
21:19 * macdjord shrugs
21:55 himi [sjjf@Nightstar-1drtbs.anu.edu.au] has joined #code
21:55 mode/#code [+o himi] by ChanServ
22:05 Kindamoody is now known as Kindamoody|afk
22:28 Degi [Degi@Nightstar-0ttpu5.dyn.telefonica.de] has joined #code
23:15 Emmy [Emmy@Nightstar-9p7hb1.direct-adsl.nl] has quit [Ping timeout: 121 seconds]
23:21 macdjord is now known as macdjord|dance
23:32
<&[R]>
So if `map` is a function that takes and array and a function, and uses that function to change every element of that array, what is the name of a function that does the same thing, but instead makes a new array rather than modifing the old one?
23:45
<&ToxicFrog>
`map`
23:46
<&ToxicFrog>
A `map` that modified the input in place would be very unpleasantly surprising.
23:47
<&ToxicFrog>
[R]: I don't think I've ever used a language where `map` was in-place, and that includes Python, which has an unhealthy obsession with modifying stuff in-place you didn't want it to.
23:47
<&[R]>
JS
23:47
<&[R]>
Err
23:47
<&[R]>
No
23:47
<&[R]>
You're right, I'm just derping hard
23:48
<@TheWatcher>
Although, to be fair, I wouldn't put that past JS
23:48
<&ToxicFrog>
Neither would I, but as it happens JS map() is not in place.
23:48
<&[R]>
> a.map(n=>{return n * n})
23:48
<&[R]>
[ 1, 4, 9, 16 ]
23:48
<&[R]>
> a
23:48
<&[R]>
[ 1, 2, 3, 4 ]
23:48
<&[R]>
Yeah
23:50
< Degi>
How come JS, python and a few others got such weird stuff going on?
23:54
<&[R]>
Oh man, not being able to modify a single element of an array is annoying
--- Log closed Mon Feb 04 00:00:13 2019
code logs -> 2019 -> Sun, 03 Feb 2019< code.20190202.log - code.20190204.log >

[ Latest log file ]