<bslsk05>
github.com: SAMEthing/src/core/src/private/core.c at main · mcroddev/SAMEthing · GitHub
<mcrod`>
the problem is
<mcrod`>
it's not capturing shit in a SAMETHING_TESTING block
[_] has joined #osdev
[itchyjunk] has quit [Read error: Connection reset by peer]
heat_ has joined #osdev
stolen has joined #osdev
Turn_Left has joined #osdev
Left_Turn has quit [Ping timeout: 264 seconds]
Left_Turn has joined #osdev
Turn_Left has quit [Ping timeout: 255 seconds]
<heat_>
nikolar, define "whole message"
<nikolar>
all the bytes that are sent through a single syscall
<heat_>
pipes have no concept of message, just bytes (well, they kinda do, writes under PIPE_BUF are atomic and written at a time)
<heat_>
but yeah if you can read without blocking, poll will tell you it's readable, and same for writing
<heat_>
oh actually there's an extension for pipes that does give it message boundaries, if you pass iirc O_DIRECT
<heat_>
should work on linux and freebsd i think
heat_ is now known as heat
<nikolar>
yeah i've read that
<nikolar>
honestly the PIPE_BUF thing is good enough for me
xenos1984 has quit [Ping timeout: 240 seconds]
xenos1984 has joined #osdev
<Ermine>
zoom crashed when I tried to share screen with pipewire
<zid>
Good news though, 4 hours until honzuki
skipwich_ is now known as skipwich
<mcrod`>
hi
gog has quit [Quit: Konversation terminated!]
xenos1984 has quit [Ping timeout: 258 seconds]
xenos1984 has joined #osdev
gog has joined #osdev
Turn_Left has joined #osdev
stolen has quit [Quit: Connection closed for inactivity]
Left_Turn has quit [Ping timeout: 252 seconds]
wand has quit [Quit: leaving]
sbalmos has joined #osdev
Matt|home has joined #osdev
zid has quit [Read error: Connection reset by peer]
zid has joined #osdev
nyah has quit [Ping timeout: 255 seconds]
nyah has joined #osdev
<netbsduser``>
i am preparing to add clustered page-in to my kernel
<netbsduser``>
i wonder whether most people here endorse complicating the page fault handler itself to also install valid PTEs in the faulting process for the various pages also brought in by the clustered page-in, or whether most people prefer to just do the I/O clustered
goliath has joined #osdev
<heat>
netbsduser``, yeah sure
<heat>
do note that you probably want to avoid it if there's no sequential madvise hint
<heat>
at least if you need to perform readahead
<netbsduser``>
it does strike me as a sensible optimisation
<netbsduser``>
if i'm doing the clustered i/o anyway then i am doing it under the belief that "someone will soon touch these other pages" and that someone is assumed to be the process that faulted on one
<heat>
but you probably shouldn't readahead on page faults
<heat>
and *if* you're doing readahead, you're better off waiting for a page fault and map whatever pages you have cached and faulted in
GeDaMo has quit [Quit: That's it, you people have stood in my way long enough! I'm going to clown college!]
kof123 has quit [Ping timeout: 252 seconds]
<Ermine>
heat: what's the joke behind seh vs /bin/sh -e
<heat>
seh lets you handle exceptions, /bin/sh -e lets you handle exceptions (via trap(1))
Turn_Left has quit [Ping timeout: 240 seconds]
netbsduser`` has quit [Ping timeout: 272 seconds]
Turn_Left has joined #osdev
pretty_dumm_guy has joined #osdev
<heat>
gosh i fucking hate parsing in C
<heat>
strtol is garbage
<heat>
atoi is even worse and strtoi does not exist
<heat>
... i'll just use sscanf
<zid>
how is strtol any more garbage than sscanf?
<mcrod`>
stupid question
<mcrod`>
wtf does the green percentage mean in perf
<mcrod`>
red is obvious
<heat>
zid, you need to do errno = 0
<Ermine>
parsing in C is painful indeed
<Ermine>
Now try parsing wchar_t strings
<heat>
wsprintf!
<Ermine>
wsscanf then
<Ermine>
or something idk
<Ermine>
It would be cool if uefi didn't use wchar stuff
<zid>
microsoft love ucs2
<zid>
and they are wrong
netbsduser`` has joined #osdev
kof123 has joined #osdev
gbowne1 has joined #osdev
gbowne1 has quit [Remote host closed the connection]
gbowne1 has joined #osdev
gbowne1_ has joined #osdev
gbowne1_ has quit [Remote host closed the connection]
gbowne1_ has joined #osdev
gbowne1_ has quit [Read error: Connection reset by peer]
<immibis>
that's actually unicode's fault for once, not microsoft's
<immibis>
unicode was going to be a 2-byte character set
<immibis>
and utf-8 hadn't been invented yet
<immibis>
this is what happens when you follow standards
formerly-twitter is now known as totally-not-mjg
<totally-not-mjg>
openbsd is OPTIMAL
<heat>
linux is KERNAL
<Cindy>
totally-not-mjg: how's secureboot
<totally-not-mjg>
you may be thinking i'm mjg
<totally-not-mjg>
not only that, but the linux one
<heat>
mjg69?
<totally-not-mjg>
you know, when i was young saying 42 was all the rage
<totally-not-mjg>
you would add 42 and it was funny
<totally-not-mjg>
i guess it was preparing the world for genz
<heat>
this motherfucker mcrod is really pushing it
irl25519 has joined #osdev
<totally-not-mjg>
wtf
<totally-not-mjg>
you can't say that and have a freebsd mascott as an avatar
<totally-not-mjg>
fucking permaban
<childlikempress>
permabanned from freebsd. Do not pass go. Go directly to openbsd
<totally-not-mjg>
i would say that but they got flamegraphs
<totally-not-mjg>
for real
<childlikempress>
;o
<totally-not-mjg>
no, really
<heat>
totally-not-mjg, yeah btrace - bug tracer
<heat>
no joke that's what the manpage says, "bug tracer"
<heat>
they're totally not ripping anyone off
<totally-not-mjg>
l to the m to the f to the m to the a to the o LMFAO
<totally-not-mjg>
innit
<mcrod`>
heat
<mcrod`>
that would’ve highlighted me had i not had a tilde
<zid>
immibis: microsoft had every option to just stop adding W version of everything once the world settled on utf-8 20 years ago, and just add utf-8 support to A
<zid>
they just refused
<zid>
and keep baking ucs2 into MORE things
<zid>
that's my problem with it
<zid>
not that they used ucs2 in 1999 before utf-8 was a thing
<immibis>
oh so you prefer every function to randomly take UCS-2 or UTF-8 instead of being consistent in any way
<immibis>
s/UCS-2/UTF-16/
<zid>
That's already how it works
<immibis>
no, it's not how it works
<zid>
W functions take UCS-2, A functions take ascii, except for all the ones where they accept utf-8 too
<immibis>
it doesn't support characters above U+FFFF, such as emojis?
<zid>
The official Unicode standard says that no UTF forms, including UTF-16, can encode the surrogate code points. Since these will never be assigned a character, there should be no reason to encode them. However, Windows allows unpaired surrogates in filenames[19] and other places, which generally means they have to be supported by software in spite of their exclusion from the Unicode standard.
<immibis>
there is a difference between supporting unpaired surrogates, and not supporting surrogates
<zid>
windows uses *not* utf-16, but *does* match what ucs-2 said
<zid>
so it uses ucs-2
<immibis>
so it can't render emojis?
<zid>
even if not technically correct, it's m ore correct than saying utf-16 imo
<zid>
which is also technically incorrect
<immibis>
so it can't render emojis?
<acidx>
the only emojis supported by windows are the ones in cp437 (like the smiley faces and playing card suits)
irl25519 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<immibis>
so it can't render 🤣? Windows users tell me if that looks like a square.
<heat>
LMAO THOSE MICROSHIT WINBLOWS BOZOS DONT SUPPORT EMOJIS 🤣🤣🤣🤣🤣🤣
<totally-not-mjg>
FAK WINDOW
<heat>
but yeah apparetly windows has been utf-16 since 2000
<heat>
before that it was UCS-2
<heat>
UEFI for instance only supports UCS-2
<heat>
also as far as I've heard the windows UTF-8 support is _still_ experimental
<childlikempress>
IF MS WINDOWS🪟AND EMOJ🤣DROWNING💦💦 CATCH ME AT WINDOWS FUNERAL💀🤣🤣🤣
Burgundy has quit [Ping timeout: 240 seconds]
<heat>
Ⓜ️🇸 🪟: i forgor 💀
<childlikempress>
istr midipix claims to provide uniform utf8 support on windows?
xenos1984 has quit [Read error: Connection reset by peer]
<heat>
well but that's midipix not win32
<mcrod`>
hi
<childlikempress>
no
dude12312414 has joined #osdev
<mcrod`>
yes
<mcrod`>
hello
<childlikempress>
hello
<childlikempress>
hell no*
xenos1984 has joined #osdev
<mcrod`>
:(
goliath has quit [Quit: SIGSEGV]
manawyrm has quit [Quit: Read error: 2.99792458 x 10^8 meters/second (Excessive speed of light)]
manawyrm has joined #osdev
dude12312414 has quit [Quit: THE RAM IS TOO DAMN HIGH]
craigo has joined #osdev
Turn_Left has quit [Read error: Connection reset by peer]
<kof123>
>IF MS WINDOWS what is this unicode cobol?
craigo has quit [Remote host closed the connection]
[_] has quit [Ping timeout: 252 seconds]
Matt|home has quit [Quit: Leaving]
[itchyjunk] has joined #osdev
danilogondolfo has quit [Remote host closed the connection]