code logs -> 2020 -> Thu, 28 May 2020< code.20200527.log - code.20200529.log >
--- Log opened Thu May 28 00:00:32 2020
00:14 VirusJTG [VirusJTG@Nightstar-42s.jso.104.208.IP] has quit [Connection closed]
00:14 VirusJTG [VirusJTG@Nightstar-42s.jso.104.208.IP] has joined #code
00:14 mode/#code [+ao VirusJTG VirusJTG] by ChanServ
00:51 Attilla [uid13723@Nightstar-6br85t.irccloud.com] has quit [[NS] Quit: Connection closed for inactivity]
00:59 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [Connection closed]
01:39 macdjord|slep is now known as macdjord
--- Log closed Thu May 28 02:20:55 2020
--- Log opened Thu May 28 02:21:02 2020
02:21 TheWatcher [chris@GlobalOperator.Nightstar.Net] has joined #code
02:21 Irssi: #code: Total of 29 nicks [22 ops, 0 halfops, 0 voices, 7 normal]
02:21 mode/#code [+o TheWatcher] by ChanServ
02:21 Irssi: Join to #code was synced in 19 secs
03:22 Pink [user1@Nightstar-g7hdo5.dyn.optonline.net] has joined #code
03:23 Pinkhair [user1@Nightstar-g7hdo5.dyn.optonline.net] has quit [Ping timeout: 121 seconds]
03:42 Pinkhair [user1@Nightstar-g7hdo5.dyn.optonline.net] has joined #code
03:43 Pink [user1@Nightstar-g7hdo5.dyn.optonline.net] has quit [Ping timeout: 121 seconds]
03:57 Degi [Degi@Nightstar-f5g8c2.dyn.telefonica.de] has quit [Ping timeout: 121 seconds]
03:58 Degi [Degi@Nightstar-0cps6v.dyn.telefonica.de] has joined #code
05:13 Vorntastic [uid293981@Nightstar-h2b233.irccloud.com] has joined #code
05:13 mode/#code [+qo Vorntastic Vorntastic] by ChanServ
05:26 catalys14 [catalyst@Nightstar-lp935v.dab.02.net] has joined #code
05:26 catalyst [catalyst@Nightstar-n8esqn.dab.02.net] has quit [Ping timeout: 121 seconds]
06:21 VirusJTG [VirusJTG@Nightstar-42s.jso.104.208.IP] has quit [Ping timeout: 121 seconds]
06:40 celticminstrel [celticminst@Nightstar-nuu42v.dsl.bell.ca] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
07:12 Pinkhair [user1@Nightstar-g7hdo5.dyn.optonline.net] has quit [Ping timeout: 121 seconds]
07:12 Pink [user1@Nightstar-g7hdo5.dyn.optonline.net] has joined #code
10:34 abudhabi [abudhabi@Nightstar-7nkq9k.de] has quit [Operation timed out]
10:34 abudhabi [abudhabi@Nightstar-7nkq9k.de] has joined #code
10:34 mode/#code [+o abudhabi] by ChanServ
10:40 Alek [Alek@Nightstar-kaiguq.il.comcast.net] has quit [Operation timed out]
10:44 Alek [Alek@Nightstar-kaiguq.il.comcast.net] has joined #code
10:45 mode/#code [+o Alek] by ChanServ
11:11 Emmy [Emmy@Nightstar-9p7hb1.direct-adsl.nl] has joined #code
11:32 VirusJTG [VirusJTG@Nightstar-42s.jso.104.208.IP] has joined #code
11:32 mode/#code [+ao VirusJTG VirusJTG] by ChanServ
11:55 catalys14 [catalyst@Nightstar-lp935v.dab.02.net] has quit [Ping timeout: 121 seconds]
12:01 catalyst_ [catalyst@Nightstar-6lqcam.dab.02.net] has joined #code
12:10
<@gnolam>
Emmy: I still have to support it.
12:10
<@gnolam>
But hey, we still have a few customers on *DOS*.
12:19
< Emmy>
hahaha
12:43 mac [macdjord@Nightstar-rslo4b.mc.videotron.ca] has joined #code
12:43 mode/#code [+o mac] by ChanServ
12:46 macdjord [macdjord@Nightstar-rslo4b.mc.videotron.ca] has quit [Ping timeout: 121 seconds]
12:46
<&[R]>
My equipment actually runs DOS
12:46
<&[R]>
DrDOS specifically
12:46
<&[R]>
(I guess it counts as an embedded system)
12:54 macdjord|slep [macdjord@Nightstar-rslo4b.mc.videotron.ca] has joined #code
12:54 mode/#code [+o macdjord|slep] by ChanServ
12:57 mac [macdjord@Nightstar-rslo4b.mc.videotron.ca] has quit [Ping timeout: 121 seconds]
13:05 celticminstrel [celticminst@Nightstar-nuu42v.dsl.bell.ca] has joined #code
13:05 mode/#code [+o celticminstrel] by ChanServ
14:24
<@sshine>
any C#ers around?
14:26
<@sshine>
I'm trying to understand how async APIs work. if I've got a 'public Task Setup() { ... }' that is supposed to create a connection, but since this may block for some time, the caller should be made aware of that, which is achieved by not simply doing 'public void Setup()'; the Task suggests: you may wanna do this somewhere safe. I guess.
14:27
<@sshine>
and, in fact, upon returning a Task, I can actually pass around the workload like a lazy lambda.
14:27
<@sshine>
all neat.
14:28
<@sshine>
but 1) why isn't it 'public async Task Setup()'? and 2) since it isn't prefixed with 'async', how do I wrap the connection-making code in such a way that execution is deferred? something like new Task(() => { ... })?
14:29
<@sshine>
also, if all of this is explained in some concurrency in C# for dummies chapter 1-N, feel free to just point. :)
14:30
<&ToxicFrog>
sshine: https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/concepts/async/ is probably the starting point for those docs
14:30
<&ToxicFrog>
That said, there's two things going on here
14:31
<@sshine>
(also I've read somewhere that 'async void' is an anti-pattern in C# for technical reasons that I probably understand, and I think the alternative must then be Task.)
14:32
<@sshine>
s/that I probably understand/related to exception handlers and contexts/
14:32
<&ToxicFrog>
- Task represents a computation that may be finished sometime in the future but is not guaranteed to be finished yet. These are first-class objects you can return, pass around, store in variables, block on until finished, etc
14:32
<&ToxicFrog>
- async/await are a compile-time transformation that makes certain kinds of uses of Tasks easier (with some tradeoffs)
14:33
<@sshine>
OK.
14:33
<&ToxicFrog>
You can use Tasks directly without using async/await.
14:33
<@sshine>
yes.
14:36
<&ToxicFrog>
async means "this function is going to await things inside it; those awaits should be to async functions or functions returning Tasks; the compiler will automatically futz with it (including potentially splitting it into multiple functions) to make things like "foo = await bar()" equivalent to "task = bar(); wait for task; foo = contents of task"
14:37
<&ToxicFrog>
Setup probably just creates and returns the Task "by hand" and thus there's no need for it to be declared async.
14:37
<&ToxicFrog>
It's up to the caller if they want to await Setup() or just grab the task and manage it themselves.
14:57 Kindamoody is now known as Kindamoody|afk
15:00
<@sshine>
right, ok. thanks! that makes sense.
15:07 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code
15:07 mode/#code [+qo Vornicus Vornicus] by ChanServ
16:09 mac [macdjord@Nightstar-rslo4b.mc.videotron.ca] has joined #code
16:09 mode/#code [+o mac] by ChanServ
16:12 macdjord [macdjord@Nightstar-rslo4b.mc.videotron.ca] has joined #code
16:12 mode/#code [+o macdjord] by ChanServ
16:12 macdjord|slep [macdjord@Nightstar-rslo4b.mc.videotron.ca] has quit [Ping timeout: 121 seconds]
16:13 macdjord|slep [macdjord@Nightstar-rslo4b.mc.videotron.ca] has joined #code
16:13 mode/#code [+o macdjord|slep] by ChanServ
16:13 mac [macdjord@Nightstar-rslo4b.mc.videotron.ca] has quit [Ping timeout: 121 seconds]
16:14 mac [macdjord@Nightstar-rslo4b.mc.videotron.ca] has joined #code
16:14 mode/#code [+o mac] by ChanServ
16:16 macdjord [macdjord@Nightstar-rslo4b.mc.videotron.ca] has quit [Ping timeout: 121 seconds]
16:18 macdjord|slep [macdjord@Nightstar-rslo4b.mc.videotron.ca] has quit [Ping timeout: 121 seconds]
16:53
<&ToxicFrog>
You're welcome!
16:59 Vorntastic [uid293981@Nightstar-h2b233.irccloud.com] has quit [[NS] Quit: Connection closed for inactivity]
18:08 macdjord|slep [macdjord@Nightstar-rslo4b.mc.videotron.ca] has joined #code
18:08 mode/#code [+o macdjord|slep] by ChanServ
18:11 mac [macdjord@Nightstar-rslo4b.mc.videotron.ca] has quit [Ping timeout: 121 seconds]
18:25 catalyst_ [catalyst@Nightstar-6lqcam.dab.02.net] has quit [Ping timeout: 121 seconds]
18:30 catalyst_ [catalyst@Nightstar-nkuuah.dab.02.net] has joined #code
18:52 Kindamoody|afk is now known as Kindamoody
19:05 mac [macdjord@Nightstar-rslo4b.mc.videotron.ca] has joined #code
19:05 mode/#code [+o mac] by ChanServ
19:07 macdjord [macdjord@Nightstar-rslo4b.mc.videotron.ca] has joined #code
19:07 mode/#code [+o macdjord] by ChanServ
19:08 macdjord|slep [macdjord@Nightstar-rslo4b.mc.videotron.ca] has quit [Ping timeout: 121 seconds]
19:09 mac [macdjord@Nightstar-rslo4b.mc.videotron.ca] has quit [Ping timeout: 121 seconds]
19:25 mac [macdjord@Nightstar-rslo4b.mc.videotron.ca] has joined #code
19:25 mode/#code [+o mac] by ChanServ
19:28 macdjord [macdjord@Nightstar-rslo4b.mc.videotron.ca] has quit [Ping timeout: 121 seconds]
19:37 mac [macdjord@Nightstar-rslo4b.mc.videotron.ca] has quit [Ping timeout: 121 seconds]
19:37 mac [macdjord@Nightstar-rslo4b.mc.videotron.ca] has joined #code
19:37 mode/#code [+o mac] by ChanServ
19:46 mac [macdjord@Nightstar-rslo4b.mc.videotron.ca] has quit [Ping timeout: 121 seconds]
19:47 mac [macdjord@Nightstar-rslo4b.mc.videotron.ca] has joined #code
19:47 mode/#code [+o mac] by ChanServ
19:49 macdjord|slep [macdjord@Nightstar-rslo4b.mc.videotron.ca] has joined #code
19:49 mode/#code [+o macdjord|slep] by ChanServ
19:52 mac [macdjord@Nightstar-rslo4b.mc.videotron.ca] has quit [Ping timeout: 121 seconds]
19:57 Attilla [uid13723@Nightstar-2dc.p8m.184.192.IP] has joined #code
19:57 mode/#code [+o Attilla] by ChanServ
20:02 mac [macdjord@Nightstar-rslo4b.mc.videotron.ca] has joined #code
20:02 mode/#code [+o mac] by ChanServ
20:04 macdjord|slep [macdjord@Nightstar-rslo4b.mc.videotron.ca] has quit [Ping timeout: 121 seconds]
20:05 macdjord [macdjord@Nightstar-rslo4b.mc.videotron.ca] has joined #code
20:05 mode/#code [+o macdjord] by ChanServ
20:07 mac [macdjord@Nightstar-rslo4b.mc.videotron.ca] has quit [Ping timeout: 121 seconds]
20:13 mac [macdjord@Nightstar-rslo4b.mc.videotron.ca] has joined #code
20:13 mode/#code [+o mac] by ChanServ
20:14 macdjord [macdjord@Nightstar-rslo4b.mc.videotron.ca] has quit [Ping timeout: 121 seconds]
20:18 mac [macdjord@Nightstar-rslo4b.mc.videotron.ca] has quit [Ping timeout: 121 seconds]
21:35 Alek [Alek@Nightstar-kaiguq.il.comcast.net] has quit [Ping timeout: 121 seconds]
21:44 Alek [Alek@Nightstar-kaiguq.il.comcast.net] has joined #code
21:44 mode/#code [+o Alek] by ChanServ
22:53 Kindamoody is now known as Kindamoody[zZz]
23:28 Emmy [Emmy@Nightstar-9p7hb1.direct-adsl.nl] has quit [Ping timeout: 121 seconds]
--- Log closed Fri May 29 00:00:33 2020
code logs -> 2020 -> Thu, 28 May 2020< code.20200527.log - code.20200529.log >

[ Latest log file ]