<<Prev Next>> Scroll to Bottom
Stuff goes here
L1[00:09:44] ⇦ Quits: Thutmose (~Patrick@67.21.186.225) (Read error: Connection reset by peer)
L2[00:11:02] ⇨ Joins: Thutmose (~Patrick@67.21.186.225)
L3[00:43:12] <Wat​tana> It should be possible to make an OC2 emulator using QEMU, right?
L4[00:43:21] <Wat​tana> Has anyone here figured out the exact setup?
L5[00:45:56] <Ocawes​ome101> it's more or less `qemu-system-riscv32` with the memory mapped io enabled iirc
L6[00:47:36] <Z0id​berg> let's swap it out with bochs
L7[00:47:54] <Ocawes​ome101> bochs is very x86 only :P
L8[01:25:14] <Z0id​berg> Yes but you could run Windows 1.0 on it.
L9[01:25:29] <Z0id​berg> REVERSI!
L10[01:39:46] ⇦ Quits: Hawk777 (~chead@2607:c000:8279:ac00:f56c:7eb2:df3c:2987) (Quit: Leaving.)
L11[01:51:47] <Amanda> Yes Sophia, let's emulate risc-v with an exclusively x86-emulating program
L12[02:18:31] ⇨ Joins: ben_mkiv (~ben_mkiv@2001:16b8:1e57:bc00:fe34:97ff:fea9:75f2)
L13[02:26:13] <Wat​tana> Ayy my print subroutine..... wait what? https://tinyurl.com/ya9objve
L14[02:49:16] * Amanda curls up around elfi under some blankets again, as it's even cooler tonight then last night, zzzmews, hopefully not too wake herself up by yelling at birds that are bleeding though to her dreams
L15[02:50:15] <Amanda> Night nerds
L16[02:56:27] <Wat​tana> Why do I sometimes fee llike Amanda is secretly an eldritch cat god or smth
L17[02:56:33] <Wat​tana> Why do I sometimes feel like Amanda is secretly an eldritch cat god or smth [Edited]
L18[03:08:02] ⇨ Joins: ball (~ball@162.222.233.9)
L19[03:08:36] ⇦ Quits: ball (~ball@162.222.233.9) (Client Quit)
L20[03:45:01] <Michiyo> @Wattana "secretly"...?
L21[03:45:09] <Wat​tana> ¯\(ツ)/¯
L22[03:45:36] <Michiyo> %tonkout
L23[03:45:36] <MichiBot> Jiminy Cricket! Mic​hiyo! You beat your own previous record of 3 hours, 34 minutes and 7 seconds (By 1 hour, 2 minutes and 30 seconds)! I hope you're happy!
L24[03:45:37] <MichiBot> Mic​hiyo has tonked out! Tonk has been reset! They gained 0.004 tonk points! plus 0.006 bonus points for consecutive hours! Current score: 0.50804, Position #2 Need 0.18658432 more points to pass Va​ur!
L25[04:05:43] ⇨ Joins: Hawk777 (~chead@2607:c000:8279:ac00:e32a:5b2a:99cd:777b)
L26[04:37:30] ⇦ Quits: Thutmose (~Patrick@67.21.186.225) (Quit: Leaving.)
L27[05:11:34] ⇦ Quits: ashka (~postmaste@server4.shellgratuit.com) (Ping timeout: 189 seconds)
L28[05:13:02] ⇨ Joins: ashka (~postmaste@server4.shellgratuit.com)
L29[05:16:35] ⇦ Quits: ashka (~postmaste@server4.shellgratuit.com) (Ping timeout: 189 seconds)
L30[05:46:49] ⇨ Joins: ashka (~postmaste@server4.shellgratuit.com)
L31[06:09:07] <Forec​aster> %tonk
L32[06:09:09] <MichiBot> Wild! Forec​aster! You beat Mic​hiyo's previous record of <0 (By 2 hours, 23 minutes and 31 seconds)! I hope you're happy!
L33[06:09:10] <MichiBot> Forecaster's new record is 2 hours, 23 minutes and 31 seconds! Forecaster also gained 0.00239 tonk points for stealing the tonk. Position #3. Need 0.03064432 more points to pass Mic​hiyo!
L34[06:19:46] ⇦ Quits: ashka (~postmaste@server4.shellgratuit.com) (Read error: Connection reset by peer)
L35[06:39:17] ⇦ Quits: Hawk777 (~chead@2607:c000:8279:ac00:e32a:5b2a:99cd:777b) (Quit: Leaving.)
L36[07:00:39] ⇦ Quits: ben_mkiv (~ben_mkiv@2001:16b8:1e57:bc00:fe34:97ff:fea9:75f2) (Ping timeout: 192 seconds)
L37[07:37:32] <Forec​aster> %sip
L38[07:37:34] <MichiBot> You drink a solid dalekanium potion (New!). Forecaster's hair glows the color of aqua until someone baps them.
L39[07:42:18] ⇨ Joins: Michiyo_ (~Michiyo@50.38.53.215)
L40[07:42:18] zsh sets mode: +o on Michiyo_
L41[07:43:43] ⇦ Quits: Michiyo (~Michiyo@50.38.53.215) (Ping timeout: 192 seconds)
L42[07:56:02] <Va​ur> %sip
L43[07:56:03] <MichiBot> You drink a silent rock potion (New!). Vaur gains one research point. Vaur now has 1 point. (Rem. uses: 1)
L44[08:00:33] <Forec​aster> %drink silent rock
L45[08:00:34] <MichiBot> You drink a silent rock potion. Forecaster gains one research point. Forecaster now has 2 points. (Rem. uses: 0)
L46[08:07:10] ⇦ Quits: Michiyo_ (~Michiyo@50.38.53.215) (Read error: Connection reset by peer)
L47[08:55:06] ⇨ Joins: ashka (~postmaste@server4.shellgratuit.com)
L48[09:08:37] ⇦ Quits: ashka (~postmaste@server4.shellgratuit.com) (Ping timeout: 189 seconds)
L49[09:18:52] ⇨ Joins: Vexatos (~Vexatos@port-92-192-6-121.dynamic.as20676.net)
L50[09:18:52] zsh sets mode: +v on Vexatos
L51[09:25:36] <ThePi​Guy24> well, figured out why i couldnt get cellular data to work on pinephone and have now got it working, turns out O2 have a seperate APN for pay as you go sims
L52[10:00:11] <B​ob> damn, somebody who hosted a TWRP image for my phone took it all down
L53[10:00:14] <B​ob> and i can't find it anywhere
L54[10:00:32] <B​ob> i have a local copy but some python bullshit wiped some of my files for no reason
L55[10:00:49] <B​ob> i need TWRP or else my data is just a backup i cannot use
L56[10:42:30] ⇨ Joins: ben_mkiv (~ben_mkiv@2001:16b8:1e57:bc00:fe34:97ff:fea9:75f2)
L57[12:22:07] <B​ob> how would one flush the HLAPI if its left in an invalid state ?
L58[12:22:12] <B​ob> a foolproof method 🤔
L59[12:26:26] <Amanda> Sending an empty message (two NULLs) I guess? Otherwise after the first message finishes it's mangling and returns an error it's be fine
L60[12:26:45] <B​ob> what if a null was sent already
L61[12:27:06] <B​ob> sending two nulls would close the previous json message and initiate a new one ? leaving it in an invalid state again 🤔
L62[12:27:25] <Amanda> There's not that much state in the Java side
L63[12:28:03] <Amanda> It looks for a NULL, handles what's in the buffer, then clears it
L64[12:28:49] <Amanda> The beginning NULL is likely exactly that error mechanic
L65[12:28:52] <B​ob> oh so it just wipes eveything
L66[12:29:08] <B​ob> so i can just send a null to reset the state ?
L67[12:29:36] <Amanda> You may get a message back for that, but sure
L68[12:31:09] <Amanda> You don't really need to worry about it that much, the null at the beginning of every message you send will do it for you
L69[12:31:30] <B​ob> well, the thing is that i dont want to read an error message when i expect a method name or what not
L70[12:31:58] <B​ob> since the write limit is 4kB, if the stream writes more than 4kB, just reset the state
L71[12:32:08] <Amanda> You should always be expecting an error message as a possibility
L72[12:33:11] <Amanda> The whole message handling is wrapped around a try/catch that sends an error message if any exception happens
L73[12:33:16] <B​ob> well, it would just error out anyways
L74[12:33:57] <Amanda> So any bug in the Java side, wether in oc2 or a addon can cause an error messafe
L75[12:34:19] <B​ob> at worst, as usual, fuck it lol
L76[12:34:22] <B​ob> itll work out
L77[12:34:53] <Amanda> My invoke (does a single send/respond cycle) handles error messages and throws on them. You could make your equivalent return an Result wrrory
L78[12:35:14] <B​ob> well yeah, my library always returns a `Result`
L79[12:35:21] <B​ob> handling them is piss easy with the try operator so
L80[12:38:56] <Forec​aster> %tonkout
L81[12:38:57] <MichiBot> Boo-yah! Forec​aster! You beat your own previous record of 2 hours, 23 minutes and 31 seconds (By 4 hours, 6 minutes and 17 seconds)! I hope you're happy!
L82[12:38:58] <MichiBot> Forec​aster has tonked out! Tonk has been reset! They gained 0.006 tonk points! plus 0.01 bonus points for consecutive hours! Current score: 0.49339568, Position #3 Need 0.01464432 more points to pass Mic​hiyo!
L83[13:55:34] <smili​ngCat> i've been searching online for a while now and i couldn't find anything. is there a command (that i can use in a script) to simply wait a specified amount of time?
L84[13:56:55] <B​ob> `os.sleep(n)` where `n` is an amount of seconds
L85[13:57:54] <smili​ngCat> errors everywhere
L86[13:58:19] <smili​ngCat> something is wrong again
L87[13:59:08] <smili​ngCat> https://tinyurl.com/y8lu8no4
L88[14:00:05] <B​ob> your code ¯\(ツ)/¯
L89[14:00:06] <B​ob> show it then
L90[14:01:03] <smili​ngCat> https://tinyurl.com/ya9687a4
L91[14:01:26] <smili​ngCat> im a noob prob. just forgot somthing
L92[14:03:09] <smili​ngCat> ignore the component.redstone at the top i forgot to remove it
L93[14:05:28] <smili​ngCat> @Bob here is it . im a noob prob. just forgot somthing [Edited]
L94[14:09:48] <smili​ngCat> https://tinyurl.com/ycen7vzd
L95[14:10:03] <smili​ngCat> >Bob: your code ¯\_(ツ)_/¯
L96[14:10:03] <smili​ngCat> one sec
L97[14:10:27] <smili​ngCat> https://tinyurl.com/y9b3mo5c
L98[14:11:20] <smili​ngCat> its something with the component.redstone
L99[14:11:22] <B​ob> the error is unrelated as the syntax here is valid odd
L100[14:11:30] <B​ob> but, you have not loaded any of the libraries
L101[14:11:40] <B​ob> so this code wont work until you import `component` and `sides`
L102[14:12:20] <smili​ngCat> how do i do that 😅
L103[14:12:55] <smili​ngCat> im not used to lua
L104[14:12:59] <B​ob> `local component = require("component")`
L105[14:13:01] <B​ob> same for sides
L106[14:13:05] <smili​ngCat> hmmm
L107[14:13:07] <smili​ngCat> ok
L108[14:13:13] <B​ob> place them at the very top
L109[14:13:27] <smili​ngCat> ik that
L110[14:13:47] <B​ob> good
L111[14:14:29] <smili​ngCat> im used to java and imports go up there as well so yea
L112[14:16:13] <smili​ngCat> noice it works
L113[14:16:13] <smili​ngCat> ty
L114[14:16:32] <smili​ngCat> may need your help soon again xD
L115[14:25:48] <smili​ngCat> and im already back. is there a command to navigate into a specified directory? (in a script)
L116[14:26:41] <Kristo​pher38> What do you actually want to do, there's probably a better way to do it
L117[14:27:28] <smili​ngCat> ive got a floppy disk with a program and in autorun.lua i already mount it and now i want it to go into a specified folder if i insert if
L118[14:27:31] <smili​ngCat> ive got a floppy disk with a program and in autorun.lua i already mount it and now i want it to go into a specified folder if i insert it [Edited]
L119[14:28:39] <Kristo​pher38> You just want to go into a specific folder? Or do something there afterwards
L120[14:29:26] <smili​ngCat> no just go in
L121[14:30:01] <smili​ngCat> no just want go in [Edited]
L122[14:30:15] <smili​ngCat> so i dont have to type cd <folder> every time
L123[14:32:19] <Forec​aster> There's a shell library for running shell commands I think
L124[14:32:42] <smili​ngCat> ehh
L125[14:32:45] <smili​ngCat> so what do i do
L126[14:34:08] <Forec​aster> Check the wiki
L127[14:34:43] <Kristo​pher38> shell.setWorkingDirectory
L128[14:36:44] <smili​ngCat> >Kristopher38: shell.setWorkingDirectory
L129[14:36:45] <smili​ngCat> thanks. do i need to import anything?
L130[14:36:56] <smili​ngCat> im a noob sry
L131[14:37:02] ⇨ Joins: Thutmose (~Patrick@67.21.186.225)
L132[14:41:44] <B​ob> yes, the `shell` library
L133[14:41:50] <B​ob> same way you imported `component` and `sides`
L134[14:42:09] <smili​ngCat> tried
L135[14:42:12] <smili​ngCat> something is wrong
L136[14:42:56] <smili​ngCat> shell.setWorkingDirectory(/launch) right?
L137[14:43:02] <smili​ngCat> thats my disk folder
L138[14:43:10] <B​ob> you forgot the part where it needs to be a string
L139[14:43:12] <smili​ngCat> >smilingCat: shell.setWorkingDirectory(/launch) right?
L140[14:43:12] <smili​ngCat> because thats not workin
L141[14:43:17] <smili​ngCat> OHH
L142[14:43:19] <smili​ngCat> bruh
L143[14:43:35] <smili​ngCat> im too used to java
L144[14:43:55] <Amanda> ... java doesn't let you omit ""s on strings, either
L145[14:44:53] <smili​ngCat> aand its not working
L146[14:44:54] <smili​ngCat> great
L147[14:45:23] <Amanda> Pretty sure it only modifies it for that process. "cd" is a shell builtin
L148[14:45:50] <smili​ngCat> noo
L149[14:46:33] <smili​ngCat> there's gotta be a way to do it right?
L150[14:46:45] <smili​ngCat> there's gotta be a way to do it,*right?* [Edited]
L151[14:46:50] <smili​ngCat> there's gotta be a way to do it, *right?* [Edited]
L152[14:46:52] <B​ob> is that disk a foreign one ?
L153[14:46:59] <smili​ngCat> floppy
L154[14:46:59] <B​ob> if so it gets mounted in `/mnt`
L155[14:47:09] <B​ob> well, the obviously, it wont be in the root of the system
L156[14:47:11] <Forec​aster> Like I said, there's a method to execute shell commands in the shell library
L157[14:47:45] <smili​ngCat> >Kristopher38: shell.setWorkingDirectory
L158[14:47:45] <smili​ngCat> im using that and it does literally nothing
L159[14:47:57] <smili​ngCat> (visible)
L160[14:48:09] <Forec​aster> That doesn't execute shell commands
L161[14:48:27] <smili​ngCat> lets scrap that real quick
L162[14:48:50] <Forec​aster> A shell command is something like "cd" which you type into the shell
L163[14:49:05] <smili​ngCat> yea
L164[14:49:26] <smili​ngCat> i started with opencomputers 1 day ago i know almost nothing
L165[14:49:30] <Forec​aster> shell.execute("command") executes shell commands in the active shell from within a script
L166[14:49:38] <smili​ngCat> mhm
L167[14:49:40] <smili​ngCat> ill try
L168[14:49:55] <Forec​aster> The wiki has all of this
L169[14:50:09] <Forec​aster> I'd suggest learning how to find things on your own
L170[14:50:45] <smili​ngCat> i tried finding it online
L171[14:50:53] <smili​ngCat> but i couldn't
L172[14:51:01] <Amanda> oc.cil.li
L173[14:51:20] <smili​ngCat> yea the website
L174[14:51:23] <smili​ngCat> ik
L175[14:51:31] <B​ob> well everything is there ?
L176[14:51:36] <Amanda> That's the wiki
L177[14:52:08] <Forec​aster> Did you look up the shell library and read through the methods when I told you that could do what you wanted?
L178[14:52:48] <smili​ngCat> >Forecaster: shell.execute("command") executes shell commands in the active shell from wit…
L179[14:52:48] <smili​ngCat> aand it didnt work again
L180[14:53:10] <Forec​aster> You're going to have to be more specific than "didn't work"
L181[14:53:34] <Amanda> ^ Our mind-reading machine's in for repairs today, so you'll have to use your words
L182[14:53:34] <Forec​aster> Show the code and describe what you're doing
L183[14:54:19] <smili​ngCat> shell.execute("cd /launch")
L184[14:54:36] <smili​ngCat> i probably typed it wrong again in some way
L185[14:55:06] <Amanda> are you expecting to run "mycommand.lua" and end up in "/launch" when you get back to the shell?
L186[14:55:23] <Amanda> because that's not how working directories works in OC
L187[14:55:30] <smili​ngCat> its an autorun on a disk
L188[14:56:09] <smili​ngCat> it auto mounts the disk and i just want it to go into the correct script folder
L189[14:56:42] <Amanda> Pretty sure that's not possible, at least not without poking about in OpenOS internal data structures
L190[14:56:59] <Amanda> because, again, that's not how working directories work
L191[14:57:00] <smili​ngCat> so i dont have to type cd /launch every time
L192[14:57:29] <Amanda> working directories are inherited down the process tree, and not propogated back up
L193[14:57:44] <Amanda> as it is in Unix
L194[14:58:14] <Amanda> you could start your own shell, I guess, but that's about it
L195[14:59:02] <smili​ngCat> well for me if it would work it would just be a QOL feature, its not needed ig
L196[14:59:24] <smili​ngCat> i just have to type cd /launch everytime i insert the disk now
L197[14:59:42] <Amanda> is /launch a program or a directory?
L198[14:59:54] <smili​ngCat> directory
L199[14:59:57] <smili​ngCat> on a floppy
L200[14:59:59] <Amanda> then yes, you do
L201[15:00:22] <smili​ngCat> whatever
L202[15:00:36] <smili​ngCat> thanks for your help
L203[15:19:50] ⇨ Joins: tka (~tka@89-64-50-1.dynamic.chello.pl)
L204[15:20:50] <B​ob> what the discriminant / numerical ID for sides ?
L205[15:21:04] ⇦ Quits: tka (~tka@89-64-50-1.dynamic.chello.pl) (Client Quit)
L206[15:21:41] <Amanda> OC2 uses string literals that get turned into the enum
L207[15:22:47] <B​ob> well yeah but still
L208[15:23:31] <B​ob> Code Block pastebined https://paste.pc-logix.com/agacirobif so i can slap a `repr` on it
L209[15:24:15] <Forec​aster> heh, fun
L210[15:24:24] <Amanda> "north" "south" "east" "west" "up" "down"
L211[15:24:41] <Amanda> like I said
L212[15:24:47] <B​ob> that's taken care of with Code Block pastebined https://paste.pc-logix.com/upivobokum
L213[15:24:49] <Forec​aster> My old boss who I've been freelancing for but haven't heard from in like a year just called
L214[15:25:07] <B​ob> ~~if there are any job offers, i take em all~~
L215[15:25:14] <Forec​aster> he has a PHP4 website that wont work in modern PHP servers that he needs updated
L216[15:25:17] ⇨ Joins: tka (~tka@89-64-50-1.dynamic.chello.pl)
L217[15:25:27] <Forec​aster> that's positively ancient
L218[15:25:37] <B​ob> i always thought freelance people who go experimental
L219[15:25:39] <B​ob> but PHP wow
L220[15:26:16] <Forec​aster> I said to send me the source so I could throw it into IDEA to get an idea of how much work it'll be
L221[15:26:32] ⇦ Quits: tka (~tka@89-64-50-1.dynamic.chello.pl) (Client Quit)
L222[15:26:51] <B​ob> Code Block pastebined https://paste.pc-logix.com/aqoyupagus the part i feared the most, time to give it a shot
L223[15:27:58] <B​ob> oh god oh fuck
L224[15:28:01] <B​ob> untyped generic types
L225[15:28:15] <B​ob> `findSound` just yields `List`
L226[15:28:17] <B​ob> what the fuck
L227[15:28:26] <B​ob> i assume its `List<String>` but still
L228[15:28:30] <B​ob> i gotta do lotta monkey patching
L229[15:40:29] <Amanda> That's because Java's reflection removes that information unless you do a lot of extra steps it's not really worth doing
L230[15:40:37] <Amanda> it erases types
L231[15:48:00] <Forec​aster> Anything worth doing is worth reflecting
L232[15:48:09] <Forec​aster> %sip
L233[15:48:09] <MichiBot> You drink a tiny tan potion (New!). Tonk moved back 4 hours. (Rem. uses: 2)
L234[15:48:24] <Forec​aster> %tonk
L235[15:48:25] <MichiBot> Waesucks! Forec​aster! You beat your own previous record of <0 (By 7 hours, 9 minutes and 28 seconds)! I hope you're happy!
L236[15:48:26] <MichiBot> Forecaster's new record is 7 hours, 9 minutes and 28 seconds! No points gained for stealing from yourself. (Lost out on 0.00716)
L237[16:43:50] <Ar​iri> @lunar_sam consider the following: https://cdn.discordapp.com/attachments/555301947146502144/946486127928442920/video0-1.mov
L238[16:44:49] <Z0id​berg> LOL
L239[16:44:53] <Z0id​berg> That is so cute
L240[17:10:18] <Va​ur> %sip tiny tan potion
L241[17:10:18] <MichiBot> You drink a tiny tan potion. Tonk moved back 2 hours. (Rem. uses: 1)
L242[17:16:29] ⇦ Quits: ben_mkiv (~ben_mkiv@2001:16b8:1e57:bc00:fe34:97ff:fea9:75f2) (Killed (NickServ (GHOST command used by ben_mkiv|afk!~ben_mkiv@2001:16b8:1ebe:2600:fe34:97ff:fea9:75f2)))
L243[17:16:31] ⇨ Joins: ben_mkiv|afk (~ben_mkiv@2001:16b8:1ebe:2600:fe34:97ff:fea9:75f2)
L244[17:26:14] <Va​ur> %sip tiny tan potion
L245[17:26:14] <MichiBot> You drink a tiny tan potion. Tonk moved back 4 hours. (Rem. uses: 0)
L246[17:26:18] <Va​ur> %tonk
L247[17:26:19] <MichiBot> Crud! Va​ur! You beat Forec​aster's previous record of 7 hours, 9 minutes and 28 seconds (By 28 minutes and 25 seconds)! I hope you're happy!
L248[17:26:20] <MichiBot> Vaur's new record is 7 hours, 37 minutes and 53 seconds! Vaur also gained 0.00376 (0.00047 x 8) tonk points for stealing the tonk. Position #1.
L249[17:37:25] <B​ob> >Amanda: That's because Java's reflection removes that information unless you d…
L250[17:37:25] <B​ob> yeah i know that
L251[17:37:30] <B​ob> but that just makes it impossible to work it
L252[17:37:37] <B​ob> without tons of patches and shit
L253[17:39:50] <Amanda> damnit Azra, get it together, stop letting all the cows out
L254[17:47:25] <B​ob> i think i would then need some kind of patch files / manual handy work to remove the uncenrtainty
L255[17:47:30] <B​ob> i think i would then need some kind of patch files / manual handy work to remove the uncertainty [Edited]
L256[17:58:11] <B​ob> like, everything else uses `Object[]`
L257[17:58:15] <B​ob> why does this suddenly use `List`
L258[18:02:34] <B​ob> also since the type names are truncated, where can i lookup their full definition
L259[18:02:39] <B​ob> gotta scourge OC2's code again rite ?
L260[18:03:34] <B​ob> i guess i will manually monkeypatch some of the JSON dump fules
L261[18:03:36] <B​ob> i guess i will manually monkeypatch some of the JSON dump files [Edited]
L262[18:03:47] <B​ob> ill make my dumper software smarter
L263[18:16:09] <Ocawes​ome101> note to self: if you ever need a practical-ish good-looking space device explosion, film a capacitor exploding
L264[18:16:33] <B​ob> why does `returnValueDescription` even exist ?
L265[18:16:41] <B​ob> its in all cases literally a copy paste of the `description` part ?
L266[18:17:01] <B​ob> https://tinyurl.com/y8lfd76g
L267[18:29:19] <Amanda> presumably it can be set seperately
L268[18:30:10] <Forec​aster> sometimes you don't just want a description but also a return value
L269[18:31:49] <Z0id​berg> @Bob Why does JSON exist? It's literally a copy paste of JavaScript objects.
L270[18:31:58] <Z0id​berg> :>
L271[18:32:36] <B​ob> >Z0idberg: <@!202281082047954954> Why does JSON exist? It's literally a copy past…
L272[18:32:37] <B​ob> i hate it
L273[18:48:11] <Va​ur> a function can do different things than it's return value. For instance:
L274[18:48:11] <Va​ur> Code Block pastebined https://paste.pc-logix.com/eqifejavaz
L275[18:48:19] <Va​ur> a function can do different things than it's return value. For instance:
L276[18:48:19] <Va​ur> Code Block pastebined https://paste.pc-logix.com/ekoxavimin [Edited]
L277[18:48:42] <Va​ur> a function can do different things than it's return value. For instance:
L278[18:48:42] <Va​ur> Code Block pastebined https://paste.pc-logix.com/paxuqatope [Edited]
L279[18:51:10] <Amanda> What's that from, @VAur?
L280[18:51:28] <Va​ur> from nowhere, I just typed it in 😄
L281[18:51:32] <Amanda> ah
L282[18:51:43] <Va​ur> it's an example
L283[18:52:13] <Va​ur> why ?
L284[18:56:48] <Amanda> Just curious if it was from a real mod or not
L285[19:00:04] <B​ob> >Vaur: a function can do different things than it's return value. For instanc…
L286[19:00:04] <B​ob> the problem is that it isnt
L287[19:00:09] <B​ob> i'm not complaining about non issues
L288[19:00:11] <B​ob> this is real pain
L289[19:00:26] <B​ob> i now need to somehow make a generic type thats compiant to expanding to several JSON values
L290[19:00:51] <B​ob> how do you guys handle the parameters ? besides using dynamic dispatching ?
L291[19:05:39] <Amanda> I don't plan to generate type-safe APIs for every possible component under the sun, that's just a waste of time, imho
L292[19:06:19] <B​ob> sure is
L293[19:06:33] <B​ob> at worst, i can remove the bad dumps / manually edit some of the dumps
L294[19:06:38] <B​ob> so they're compliant to my API
L295[19:06:53] <B​ob> well, actually i can resolve overloads by hand too
L296[19:06:54] <B​ob> tbh should
L297[19:26:35] <B​ob> https://docs.rs/serde/latest/serde/de/trait.Deserializer.html#tymethod.deserialize_tuple
L298[19:26:39] <B​ob> another day thanking the serde gods
L299[20:09:27] ⇦ Quits: ben_mkiv|afk (~ben_mkiv@2001:16b8:1ebe:2600:fe34:97ff:fea9:75f2) (Ping timeout: 192 seconds)
L300[20:36:53] <Izaya> CompanionCube: ttps://drawfriends.booru.org/index.php?page=post&s=view&id=48691
L301[20:37:27] <CompanionCube> that works surprisingly well
L302[20:45:14] <Forec​aster> https://tinyurl.com/y86wmj5q
L303[21:04:57] ⇨ Joins: Michiyo (~Michiyo@50.38.53.215)
L304[21:04:57] zsh sets mode: +o on Michiyo
L305[21:08:09] <sapphicf​ettucine> >Bob: how do you guys handle the parameters ? besides using dynamic dispatching ?
L306[21:08:10] <sapphicf​ettucine> typed parameters for devices i've written bindings for, or &[&dyn Serialize] for generic/non-bound calls
L307[21:08:18] <sapphicf​ettucine> returning a T: Deserialize
L308[22:01:33] ⇦ Quits: Thutmose (~Patrick@67.21.186.225) (Quit: Leaving.)
L309[23:14:08] ⇨ Joins: Michiyo_ (~Michiyo@50.38.53.215)
L310[23:14:08] zsh sets mode: +o on Michiyo_
L311[23:14:12] ⇦ Quits: Michiyo_ (~Michiyo@50.38.53.215) (Remote host closed the connection)
L312[23:38:41] <ThePi​Guy24> blegh darn CJK fonts being so massive
L313[23:49:02] ⇨ Joins: Thutmose (~Patrick@67.21.186.225)
L314[23:51:05] ⇦ Quits: Vexatos (~Vexatos@port-92-192-6-121.dynamic.as20676.net) (Quit: Insert quantum chemistry joke here)
<<Prev Next>> Scroll to Top