<<Prev Next>> Scroll to Bottom
Stuff goes here
L1[00:09:31] ⇦
Quits: Izaya (~izaya@210.1.218.92) (Read error: Connection reset by
peer)
L2[00:10:57] ⇨
Joins: Izaya (~izaya@210.1.218.92)
L3[00:17:38]
<AR2000>
Where can I find docmumentation for OpenOS's library like `pipe` or
`vt100`
L4[00:23:18]
<Ocawesome101> @AR2000 if documentation
exists it's either on
https://ocdoc.cil.li or in the system
man pages
L5[00:24:07]
<AR2000>
>Ocawesome101: <@256917157559009281> if documentation
exists it's either on
https://ocdo…
L6[00:24:07]
<AR2000> so
it does't exists. Not on ocdoc, and no man page
L7[00:27:21] ⇨
Joins: Eidos
(~Eidos@235.red-83-36-142.dynamicip.rima-tde.net)
L8[00:28:38] ⇦
Parts: Eidos (~Eidos@235.red-83-36-142.dynamicip.rima-tde.net)
())
L9[00:32:26]
<Ocawesome101> nope
L10[00:32:31]
<Ocawesome101> yolo
L11[00:32:46]
<Ocawesome101> though why do you want to
use them? they're more or less just support libraries
L12[00:33:04]
<DiamondCreeper_6> >Nadja: No, far from
it ^^
L13[00:33:04]
<DiamondCreeper_6> I feel like you are my
true friend 😁
L14[00:33:21]
<AR2000>
remote shell
L15[00:33:26]
<AR2000>
using the internet card
L16[00:34:01]
<AR2000> I
wanted to pipe sh into a file buffer
L17[00:34:28]
<DiamondCreeper_6> >AR2000: I wanted to
pipe sh into a file buffer
L18[00:34:29]
<DiamondCreeper_6> What are you guys
talking about
L19[00:34:44]
<AR2000> Me
being a idiot digging too deep in OpenOS
L20[00:34:56]
<DiamondCreeper_6> Lol sorry
L21[00:35:23]
<AR2000> rn
I'm more looking into making a named pipe
L22[00:36:05]
<AR2000>
but looks like I will need to make a filesystem proxy for that and
mount it somewhere since it doesn't looks like OpenOS support named
pipe
L23[00:37:20] ⇦
Quits: Hawk777 (~Hawk777@2607:c000:828a:4700:b7d1:847d:bd8d:7719)
(Quit: Leaving.)
L24[00:38:07] <Izaya> there's devfs
L25[00:40:36] <Izaya> Ocawesome101: why not
allow mixing with v1 and v2 records?
L26[00:41:29] <Izaya> oh, right, because
record length
L27[00:41:31] <Izaya> hmm
L28[00:44:31] <Izaya> though something that
can only read v0 format stuff would choke on v1 format stuff
too
L29[00:46:20] <Izaya> the alternative would
be to modify v1, have the tags eat into the file data section, but
eh
L30[00:52:58]
<Ocawesome101> i like my spec
L31[00:53:05]
<Ocawesome101> :p
L32[00:58:05] ⇨
Joins: TPG24
(~ThePiGuy2@88-107-183-218.dynamic.dsl.as9105.com)
L33[00:59:04]
<AR2000> A
doc for devfs ???
L34[00:59:05]
<AR2000>
Can't find it
L35[01:00:02] ⇦
Quits: ThePiGuy24 (~ThePiGuy2@host-92-9-14-248.as13285.net) (Ping
timeout: 189 seconds)
L36[01:42:08]
<AR2000>
/lib/devfs.lua is strange
L37[01:42:41]
<AR2000>
you need to give it a proxy, but this proxy doesn't have to be a
filesystem proxy
L38[01:43:02]
<AR2000> it
can only implement `open` and return a buffer
L41[02:05:37]
<AR2000> My
end goal is to make a debugger that will at least let you view the
variables from a external tool (like vscode or just a
teminal)
L42[02:06:44]
<AR2000>
Using event I may even be able to let the user "break"
the prgm using a shortcut
L43[02:12:46] <Izaya> manual breakpoints
are simple enough, run the program as a coroutine and yield with a
unique breakpoint ID
L44[02:14:23]
<AR2000>
yeah. What's more difficult would be automatic breakpoint (set from
the IDE). Not sure it's possible
L45[02:15:08] <Izaya> You could add a yield
after each statement (or at points of interest) as part of the ...
debugging harness, I believe is the term?
L46[02:16:18]
<AR2000>
But for breakpoint I think something like a `debugLib.break()`
would be better since you could just load a lib and use the
breakpoint in your code without needing a corroutine
L47[02:16:19]
<AR2000> It
would loop until the IDE let the code run. The stack would get
frozen, and would let you run code in the current context
L48[02:16:45]
<AR2000>
Single step would not be possible
L49[02:17:37] <Izaya> You can pass data
with coroutine.yield/coroutine.resume so you could use that to pass
code into the coroutine to run
L50[02:17:45]
<AR2000> As
for breaking in the midlle of nowhere, a event on the net_message
(I don't remeber the event name). That would freez the prgm too,
but might not give accessto the context
L51[02:18:36]
<AR2000>
The issue with corroutine is that you need to run your prgm as a
courroutine
L52[02:18:36]
<AR2000>
Using the native `debug` lib I can already get a lot of info, like
where it got called
L53[02:22:31]
<AR2000>
I'll see what I can do with the limited native `debug` lib (half or
the methods are missing)
L54[02:30:20]
<Ocawesome101> @AR2000 iirc @Kristopher38
was working on something akin to this
L55[02:42:42]
<AR2000> I
saw, but I don't think his project can be used while the app is
prgm is running, but I haven't looked in too deep
L56[02:43:26]
<AR2000> is
it the `cbrows` prbgm ?
L58[02:44:05]
<AR2000> Or
maybe that's someone else's project
L60[02:57:02]
<AR2000>
I'm going to have a look, but they are not instruction on how to
use it
L61[02:57:16]
<AR2000> at
least not in the README.md
L62[03:00:12]
<Ocawesome101> presumably clone repo and
run `kdb.lua`
L63[03:00:59]
<AR2000>
pretty much, but how do you add breakpoints ?
L64[03:01:49]
<Ocawesome101> no idea
L65[03:02:24]
<AR2000>
looks like it's interactive, with a prompt
L66[03:02:45]
<Ocawesome101> yep
L67[03:03:19]
<Ocawesome101> looks like it's vaguely
similar to gdb at a glance
L68[03:05:41] ⇨
Joins: Hawk777
(~Hawk777@2607:c000:828a:4700:42b9:73ab:b718:66c7)
L69[03:09:55]
<AR2000>
thb, I'm still going to make something new, so it can talk to
vscode
L70[03:10:17]
<Ocawesome101> might be easier to do that
using the existing code base
L71[03:10:34]
<Ocawesome101> parsing lua code to that
extent _from within lua_ is no small feat
L72[03:11:04]
<Ocawesome101> (and if you need context
like which local variables are in scope, you have to)
L73[03:11:12]
<AR2000>
The main drawback of my solution will be that you will have to
require a extra lib during development.
L74[03:11:50]
<Ocawesome101> ULOS 2's premptive
multitasking layer just uses a bunch of string ops and is quite
fast and relatively simple, but gets no context.
L76[03:16:10]
<AR2000>
Made for roblox it looks like, but that's where he got the parser
from
L77[03:16:10]
<AR2000>
This parser can let you add a hook function into the parsed code. I
think that's why he used it, but I'm sure he will explain a little
more after if he noticed he got pinged
L78[03:18:36]
<AR2000>
Other subject : does anyone know of a good DNS server / lib with
both A and SRV record, not relying on a network stack like minitel
or network (the loot disk) ?
L79[04:08:27] *
Amanda lays her head on elfi, meows sleepily about how best to use
her four arms and sharp claws to open a durean to nom
L80[04:08:53] <Amanda> Night girls
L81[04:20:07]
<Michiyo>
*Sigh* been streaming my Cyberpunk 2077 playthrough on Twitch and
YT, and the only time someone joins is AS I'm wrapping up for the
night lmao
L82[05:50:53] ⇦
Quits: Hawk777 (~Hawk777@2607:c000:828a:4700:42b9:73ab:b718:66c7)
(Quit: Leaving.)
L83[06:21:33]
<Vaur>
%sip
L84[06:21:34] <MichiBot> You drink a muddy
dilithium potion (New!). Vaur turns into an aqua spaghetti girl
until someone looks at them.
L85[06:21:38]
<RedstoneParkour> %tonk
L86[06:21:38] <MichiBot> Bejabbers!
RedstoneParkour! You beat Vaur's previous record of 11 hours, 27
minutes and 36 seconds (By 2 minutes and 41 seconds)! I hope you're
happy!
L87[06:21:39] <MichiBot> RedstoneParkour's
new record is 11 hours, 30 minutes and 17 seconds! RedstoneParkour
also gained 0.00048 (0.00004 x 12) tonk points for stealing the
tonk. Position #4. Need 1.2767475 more points to pass
Michiyo!
L88[06:21:46]
<Vaur>
>Michiyo: *Sigh* been streaming my Cyberpunk 2077 playthrough on
Twitch and YT, a…
L89[06:21:46]
<Vaur> such
is the hard life of streaming
L90[06:22:01]
<Vaur>
>RedstoneParkour: %tonk
L91[06:22:02]
<Vaur> damn
it seems I missed up my calculation
L92[06:22:37]
<Michiyo>
Can confirm.
L94[06:42:54]
<Forecaster> The videos in these tweets
are something...
L95[06:59:57] ⇨
Joins: ben_mkiv
(~ben_mkiv@200116b814107600fe3497fffea975f2.dip.versatel-1u1.de)
L96[07:11:32] ⇨
Joins: Vexatos
(~Vexatos@p200300eaef139f114696c54099999c9e.dip0.t-ipconnect.de)
L97[07:11:32] zsh
sets mode: +v on Vexatos
L98[08:04:52]
<DiamondCreeper_6> Does anyone know any
other mods that have OC compatibility
L99[08:54:55]
<Forecaster> Other than what
L100[09:36:53]
<Kristopher38> @AR2000 I used LuaMinify
because it had a Lua parser that was relatively lightweight and
easy to modify. The hook functionality I added myself and it's only
for statements, to allow me to inject code inbetween them. The
thing basically injects something along the lines `if
breakpoint[123] then __krisDbg(context) end` between every
statement and you can then set `breakpoint[id]` to true/false from
inside the debugger. This permits breakpoints on
L101[09:36:53]
<Kristopher38> specific lines, single
stepping, and I believe stepping over function calls as well
(haven't fully implemented that last one but got the algorithm
figured out). Major problem I noticed is that you only have access
to variables visible in the scope that the breakpoint is in and
`debug.getlocal` is nonexistent, so you're not able to inspect
values of variables in another call frame (which is a pretty
important functionality, in my view anyway)
L102[09:36:53]
<Kristopher38> unless you do some
complicated and/or inefficient program state-keeping
L103[09:46:56]
<Kristopher38> There were plans to go
beyond the interactive interface and make a separate debugging lib
to decouple backend from frontend but life happened and I also lost
interest
L104[09:50:43]
<Kristopher38> correction:
`debug.getlocal` exists but only returns name of the variable which
isn't very helpful in this case
L105[10:01:13]
<Kristopher38> I'd PR a fix to make it
available to query values which aren't in the sandboxing code but I
have a feeling I'm making some assumptions that might compromise
the sandbox, and also payonel might have some objections
L106[10:03:03] ⇦
Quits: lordpipe (~ba7888b72@66.109.211.50) (Ping timeout: 186
seconds)
L107[10:03:55]
⇨ Joins: lordpipe (~ba7888b72@66.109.211.50)
L108[10:04:00]
<Nadja>
Anyway @ThePiGuy24 sorry about my aggressive wording yesterday I
was a tad hangry
L110[11:24:01]
<Forecaster> This is pretty accurate
L111[13:09:20] ⇦
Quits: TPG24 (~ThePiGuy2@88-107-183-218.dynamic.dsl.as9105.com)
(Ping timeout: 189 seconds)
L112[13:21:01]
⇨ Joins: ThePiGuy24
(~ThePiGuy2@88-107-183-218.dynamic.dsl.as9105.com)
L113[13:38:48]
<Forecaster> %sip
L114[13:38:49] <MichiBot> You drink a
goopy coral potion (New!). Forecaster has 2 research points. They
figure out how to hack 0.09 tonk points for themselves! (Rem. uses:
0)
L115[13:38:56]
<Forecaster> \o/
L116[14:13:06]
<AR2000>
@Kristopher38 Have you looked at the _ENV variable ?
L117[14:14:37]
<Ocawesome101> that doesn't do
locals
L118[14:26:37]
<Kristopher38> Yeah, pretty much
L119[14:29:47] ⇦
Quits: Vexatos
(~Vexatos@p200300eaef139f114696c54099999c9e.dip0.t-ipconnect.de)
(Ping timeout: 189 seconds)
L120[14:39:02]
⇨ Joins: sads (webchat@62.240.24.70)
L121[14:43:20]
⇨ Joins: Vexatos
(~Vexatos@p200300eaef139f27dde18ffe7ec4624c.dip0.t-ipconnect.de)
L122[14:43:20]
zsh sets mode: +v on Vexatos
L123[15:09:18]
⇨ Joins: Luihum (~luihum@177.68.1.229)
L124[15:09:20] <Luihum> hi
L125[15:10:54] <Luihum> how do I make my
own OPPM repo? I'm making a slightly improved fork of OpenLoader
that shows the label as well (unless that already exists)
L126[15:11:14] <Luihum> or should I just
make a gist on github
L128[15:13:39]
<Luihum>
thanks
L129[15:13:56] ⇦
Quits: Luihum (~luihum@177.68.1.229) (Client Quit)
L130[15:16:10]
<AR2000>
example of programs.cfg
L132[15:16:29]
<AR2000>
||shameless add 😂||
L133[15:57:17] ⇦
Quits: sads (webchat@62.240.24.70) (Quit:
webchat.esper.net)
L134[16:35:28]
<Luihum>
How would I make an OPPM package that doesn't actually install any
files, just runs a flash script and exits?
L135[16:37:16]
<Luihum> If
it's not possible I'll simply make a gist
L136[16:37:46]
<Forecaster> I don't think it can do
that
L137[16:38:00]
<AR2000> I
think it is.
L140[16:38:40]
<AR2000>
From the minitel repo
L141[16:39:23]
<AR2000> It
not documented on ocdoc but it use a postinstall config. I don't
know if it work. need to be tested
L142[16:39:53]
<Forecaster> well if Izaya used it I'd
assume it works
L143[17:15:24] <Amanda> %choose polar
hub?
L144[17:15:24] <MichiBot> Amanda: Boo!
No!
L145[17:26:32]
⇨ Joins: Tar_Lev (~Tar_Lev@185.116.156.131)
L146[17:27:22] ⇦
Quits: Tar_Lev (~Tar_Lev@185.116.156.131) (Client
Quit)
L147[17:33:57]
<Luihum>
Can I use `\n` in the notes field?
L148[17:35:04]
<Forecaster> notes field?
L149[17:35:15]
<Luihum> In
the programs.cfg file
L150[17:37:23]
<AR2000> I
don't see why not
L151[17:37:27]
<AR2000>
Just try
L152[17:38:27]
<AR2000>
just a warning : github cache the raw file (used by oppm) for 5
minutes. So you have to wait between each test
L153[17:41:24]
<Luihum>
also does anyone have a Lua minifier that works with OC
EEPROMs
L155[17:41:55]
<Luihum>
Thanks
L156[17:47:08]
<Vaur>
%sip
L157[17:47:08] <MichiBot> You drink a
stirring violet potion (New!). Vaur's hair grows 2 times longer
until someone looks at them.
L158[17:53:04]
<Forecaster> %tonkout
L159[17:53:04] <MichiBot> Sard!
Forecaster! You beat RedstoneParkour's previous record of 11
hours, 30 minutes and 17 seconds (By 1 minute and 8 seconds)! I
hope you're happy!
L160[17:53:05] <MichiBot> Forecaster has
stolen the tonkout! Tonk has been reset! They gained 0.011 tonk
points! plus 0.01 bonus points for consecutive hours! (Reduced to
50% because stealing) Current score: 3.96860405. Position #2 Need
0.0965044 more points to pass Vaur!
L161[17:54:46]
<Vaur>
damn
L162[17:55:05]
<Vaur>
(about time to implement bricks ? wink wink, nudge nudge)
L163[18:09:20]
<Forecaster> %sip
L164[18:09:20] <MichiBot> You drink a
muddy chocolate potion (New!). The bottle turns into an
apple.
L165[18:09:33]
<Forecaster> now I can make apple
pie
L166[18:14:14]
<Vaur>
%sip
L167[18:14:14] <MichiBot> You drink a
thick cyan potion (New!). Vaur feels much better!
L168[18:44:04]
<Luihum> Is
there a better editor than `edit` other than `nano`?
L169[18:44:24]
<Luihum> I
didn't really like nano as it's pretty basic compared to the real
nano
L170[18:53:30]
<AR2000>
disable filsystem bufferring in the mod config and use a editor
like `notepad++` or `vscode`
L171[18:55:26]
<AR2000>
you can find the pc's drive in
`%appdata%/.minecraft/saves/<save-name>/opencomputer/`
L172[18:55:26]
<AR2000>
Each HDD/floppy have a folder (or file for unmanaged ones). The
name is the component's address. Look at the hdd tooltip to find
it
L173[18:56:00]
<Forecaster> This assumed you're not on a
server and using the vanilla launcher
L174[18:56:02]
<AR2000>
You can also do in game `touch /RECOGNISABLE_NAME` to make a file
in the root dir to find it
L175[18:56:33]
<AR2000>
>Forecaster: This assumes you're not on a server and using the
vanilla launcher
L176[18:56:34]
<AR2000> if
you are not using the vanulla laucher you still can locate your
saves, but the path will indeed be different
L177[18:56:54]
<AR2000> It
aslo assume Windows (%appdata%)
L178[18:57:17]
<AR2000> on
linux it `~/.minecraft/saves/<save-name>/opencomputer/`
L179[18:58:51]
<AR2000> If
you are on a srv, you could still use a other editor outside the
game and copy/paste your code (with insert in game to paste) or use
pastebin
L180[19:01:35]
<AR2000> in
oppm there is also `v` (vim inspired)
L181[19:16:19]
<Luihum>
I'm using GDLauncher
L183[20:06:06]
<Luihum>
For now I'm just playing in singleplayer
L185[20:07:36]
<AR2000>
Nice tool
L186[20:08:59]
<Kristopher38> well for what it's worth
it's not written very well, but it works good enough
L188[20:22:25]
<Luihum>
Like for debugging?
L189[20:23:48]
<AR2000>
>Luihum: Like for debugging?
L190[20:23:49]
<AR2000>
exactly
L191[20:23:49]
<AR2000>
I'm trying to make a debugger that will work with vscode. I need a
lib for OC, and a debugger extension for vscode. I have a lot of
work, and OpenOS inner working is not documented at all.
L192[20:24:43]
<AR2000>
Unfortunately most of the native `debug` methods are missing or
incomplete, so it won't be easy
L193[20:24:49]
<Kristopher38> i think your problem, in
the end, isn't going to be blocking the event loop
L194[20:25:25]
<AR2000>
>Kristopher38: i think your problem, in the end, isn't going to
be blocking the event lo…
L195[20:25:26]
<AR2000>
that not hard, just don't sleep. But I'm scared of `Too long
without yielding` if I do so
L196[20:26:23]
<Kristopher38> if you'll pull events
you'll yield anyway
L197[20:27:01]
<AR2000> So
somethings like `event.pull(0,"dummy_event")` would avoid
a crash ?
L198[20:31:41] ⇦
Quits: ben_mkiv
(~ben_mkiv@200116b814107600fe3497fffea975f2.dip.versatel-1u1.de)
(Ping timeout: 189 seconds)
L199[20:32:30]
<Forecaster> Yes
L200[20:35:36]
<AR2000> So
my last big prblm is reading the variables. Thx to _G and _ENV it
should be too difficult. Getting the correct thread to debug will
be a other issue
L201[20:50:06]
<Kristopher38> how will you handle
locals?
L202[21:28:58]
<Forecaster> %sip
L203[21:28:58] <MichiBot> You drink an
invisible coralcreep potion (New!). When Forecaster drinks the last
drop, a bucket of water materializes above their head and dumps its
contents over them. Forecaster avoids the bucket and it's content!
(9 vs DC 8)
L204[21:29:19]
<Forecaster> Phew
L205[21:31:15]
<AR2000>
>Kristopher38: how will you handle locals?
L206[21:31:15]
<AR2000> I
will try. But I read that `debug.getlocal` is incomplete so it
might be difficult. If I can't, I will add methods in the lib to
share variables with the debugger when called.
L207[21:32:09]
<AR2000> If
they are in the _ENV table it won't be too hard
L208[21:35:29]
<AR2000>
For now I'm trying to understand what I can do with `debug` or
can't and what is available in _ENV or inside a function call.
Breaking will come later.
L209[21:35:30]
<AR2000>
I'm reading a lot of OpenOS's source code and lua
documentation
L210[21:38:29]
<AR2000> If
anyone want to help, providing a documentation for `/lib/sh.lua`
would really help me to see if I can get more info about the
"process"
L211[21:38:47]
<AR2000> or
event get a hold of it's handler and pause / resume it
L212[21:41:52]
<Kristopher38> you can basically get some
info about the stack traceback, get local/upvalue names from
functions in the current call stack and that's about it
L213[21:50:24] ⇦
Quits: Vexatos
(~Vexatos@p200300eaef139f27dde18ffe7ec4624c.dip0.t-ipconnect.de)
(Quit: Insert quantum chemistry joke here)
L216[22:08:11]
<AR2000>
That's what I could get
L218[22:10:41]
<Ocawesome101> yeah OC wraps it
L219[22:10:42]
<AR2000>
about `test.lua` :
L220[22:10:43]
<AR2000>
`/dev/socket` is a actual socket to 127.0.0.1:4545 (nc is
open)
L221[22:10:57]
<Ocawesome101> for security reasons -
can't have users breaking out of the sandbox :p
L222[22:13:20]
<AR2000> it
should work normally for some stack levels (like the 2 or 5 in my
dump)
L223[22:14:03]
<AR2000>
exclude stacks level where source == "=machine" or source
== "=[C]" and it would be safe
L224[22:15:29]
<AR2000>
not even sure it would be out of the sandbox tbh
L225[22:16:00] <Amanda> I think it also
was "leaking" save file locations, which made some people
upset.
L226[22:21:37]
<AR2000>
that may have been be true with `debug.getinfo`, but it wouldn't be
with `debug.getlocal`
L227[22:22:12]
<AR2000>
unless locals in =machine may leak info
L228[22:22:33]
<AR2000>
but in that case keep them hidden but still give the locals for
vars inside the sandbox
L229[22:25:30]
<AR2000>
maybe adding a bool in the mod config to enable extended debug
capabilities, false by default.
L230[22:25:30]
<AR2000> It
would let devs enable it to debug there code, while keeping srvs
safe
L231[22:34:50] <Amanda> Forecaster DSP's
latest release included a perfemance improvement with logistics
drones, which made it so that I can actually play at near-full sim
speed on my laptop
L232[22:35:36] <Amanda> it also added
logistics bots, which can move between storage chests and icarus'
inventory
L233[23:02:57] <Amanda> So for those
keeping score, we now have logistics bots, logistics drones, and
logistics vessels. :D
L234[23:34:47]
<AR2000>
DSP ?
L236[23:36:40]
⇨ Joins: lordpipe (~ba7888b72@66.109.211.50)
L237[23:36:43] <Amanda> Dyson Sphere
Program
L238[23:36:56] <Amanda> or Digital Signal
Processing, but I mena the former
L239[23:37:47]
<AR2000>
can't really play it rn. I own it but pref with Proton are really
bad last time I tried
L240[23:40:56] <Amanda> It's not too bad
now with the drone optimisations, I was regularly getting <15fps
and very low simulation speed, so I was playing iwth my steamdeck
for awhile
L241[23:42:21]
<AR2000>
last time I play I had bad perf on a brand new save. So drone opti
won't change a thing