!wypKDDiZJdzZRWebIG:matrix.org

J

425 Members
5 Servers

Load older messages


SenderMessageTime
25 Jan 2023
@_discord_722191022557364315:t2bot.iojpf * I could see this happen within a loop and with the new concept of an "Atomically Modifiable Value", but not sure if the loop is necessary. Basically in loop, keep comparing ASVs to last recorded value. Does this require a loop? 19:01:18
@_discord_687763954050793501:t2bot.ioRaul (Miller) Non-blocking isn't going to block, so yeah, you'd need to repeatedly inspect that variable. 19:41:22
@_discord_687763954050793501:t2bot.ioRaul (Miller) I'll have to think a bit about the possibility of callbacks. 19:41:44
@_discord_687763954050793501:t2bot.ioRaul (Miller) Conceptually speaking, I guess you could make the "variable" contain a gerund which would be executed. At some point, though, something is going to have to do some waiting. 19:42:56
@_discord_730114277280579594:t2bot.ioSteffan joined the room.21:53:41
26 Jan 2023
@_discord_722191022557364315:t2bot.iojpfRedacted or Malformed Event00:28:34
@_discord_722191022557364315:t2bot.iojpf Sorry, wrong keyboard earlier. I am looking for the abilty to send a http message on update of a memory-mapped variable. 00:30:10
@_discord_722191022557364315:t2bot.iojpf If the variable is updated, then send an http call. Might have a number of different functions update the global variable. I do not want to embed the http call as a step in the update functions. 00:31:11
@_discord_687763954050793501:t2bot.ioRaul (Miller) Either ould happen within a task. gethttp (from require'web/gethttp') should function fine. I'm not aware of any bugs which would prevent mapped file use, either. 03:13:50
@_discord_687763954050793501:t2bot.ioRaul (Miller) * Either could happen within a task. gethttp (from require'web/gethttp') should function fine. I'm not aware of any bugs which would prevent mapped file use, either. 03:13:57
@_discord_687763954050793501:t2bot.ioRaul (Miller) What would be the problem with an "embedded http call"? 03:14:24
@_discord_497098958536048651:t2bot.ioLumiKalt#5914 changed their profile picture.10:36:02
@_discord_402456897812168705:t2bot.iodeadbraincoral#8079 changed their profile picture.10:41:02
@_discord_722191022557364315:t2bot.iojpf Not specifically anything wrong with embedding an http call. If I wish to make asynchronus changes to the input to the 'downstream' http call, I'd generally like to do this without necessarily rerunning everything 'upstream' functions in which I might otherwise embed the variable. If possible to do this with global shared stated, perhaps that's easiest. Mulling over how to use ASVs in this context. I suppose one could add a watch-loop within task, referencing an ASV. 22:39:39
@_discord_722191022557364315:t2bot.iojpf * Not specifically anything wrong with embedding an http call. If I wish to make asynchronus changes to the input to the 'downstream' http call, I'd generally like to do this without necessarily rerunning any 'upstream' functions in which I might otherwise embed the variable. If possible to do this with global shared stated, perhaps that's easiest. Mulling over how to use ASVs in this context. I suppose one could add a watch-loop within task, referencing an ASV. 22:40:48
@_discord_687763954050793501:t2bot.ioRaul (Miller) You have access to the full J engine. As long as you don't make calls out to non-thread-safe routines in some other code base, you should be fine (but, sadly, that currently includes J's user interface -- we're working on fixing that). 22:51:22
27 Jan 2023
@_discord_724421839924756480:t2bot.ioelcaro I've got this old snippet I used for "Indices where true" that works on matrices (and higher dimension arrays)
(, # ($ #: i.@#@,))
Is there something more idiomatic?
11:05:59
@_discord_687763954050793501:t2bot.ioRaul (Miller) ($ #: I.@,) 11:28:16
@_discord_724421839924756480:t2bot.ioelcaro Very nice 21:34:18
28 Jan 2023
@_discord_892825856861409330:t2bot.iotikkanz Not as idiomatic, but very performant 4$. $. 02:38:20
@_discord_862741749276606524:t2bot.ioOmar Antolín Cool abuse of sparse arrays! 03:17:45
@playback2396:matrix.orgplayback2396 joined the room.09:31:19
@_discord_497098958536048651:t2bot.ioLumiKalt#5914 changed their profile picture.23:21:10
29 Jan 2023
@_discord_534012435766575124:t2bot.ioxalamye joined the room.13:22:57
@_discord_457853553151574017:t2bot.ioAllofron Mastiga#1018 joined the room.13:30:01
@_discord_457853553151574017:t2bot.ioAllofron Mastiga#1018 gl 13:30:01
@_discord_886588197562363944:t2bot.ioTrouble "Périgord" Truffle#4324 changed their profile picture.15:05:04
@_discord_450835234200617001:t2bot.iodarrylkid joined the room.15:35:38
30 Jan 2023
@_discord_575727126351839262:t2bot.iofireflame241#3111 changed their profile picture.09:05:26
@_discord_687763954050793501:t2bot.ioRaul (Miller) I've been looking at the jqt implementation -- there's some stuff that ideally could be improved -- and I'm wondering if anyone here has used jqt printer support? (I'm looking for some example code for sanity check purposes.) 18:06:38

There are no newer messages yet.


Back to Room List