vdamewood has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Gooberpatrol66 has joined #osdev
SGautam has joined #osdev
<SGautam>
I've been thinking how to implement scroll history in my terminal because right now it just erases the top column in the buffer and scrolls.
<SGautam>
Everything I'm coming up with seems to be extremely inelegant. Right now the term is just a large array of W*H characters that is rendered every frame on the screen.
<ThinkT510>
does the size of the array change when you resize the terminal?
<zid>
SGautam: I know what my first attempt would look like
<SGautam>
ThinkT510: Yes
<zid>
terminal is a buffer that is taller than the screen, bottom-scrolling with \n forces it to scroll. Cursor moves that don't edit the final line just edit the 'history'
<zid>
so things like vim should just draw 'over' itself constantly
<zid>
and scrolling up should still work to see your command line from before you started vim
<zid>
(which seems to be how my terminal emulator actually works)
<SGautam>
Ah, you mean push to history only if a "\n" is found on the last line?
<zid>
scroll the screen only if
<SGautam>
Right now, I've two conditions to increment y, the first is \n ofc, and the second if X overflows.
<SGautam>
Wraparound
<zid>
does a vt actually do that? I wondered what it did yesterday, I *assume* it scrolls
<zid>
The code for this is really simple if you're prepared to memmove everything, but gets kind of grotty if you use a ringbuffer :P
GeDaMo has joined #osdev
<SGautam>
Yeah I think I get it, have an int called "startidx" that is an index in the buffer to start drawing from, rather than scroll, do a startidx += width, and decrement startline if the user wants to scroll up. Finally, if you exceed the buffer, then you do a proper Scroll().
<SGautam>
Ofc, error checking and have something called lastline so that startline doesn't exceed lastline - height.
slidercrank has quit [Ping timeout: 252 seconds]
<moon-child>
who needs scroll history?
<moon-child>
just remember everything 4head
<GeDaMo>
Why bother even having a display in that case? :P
<zid>
you need to see it once
<zid>
so you can commit it to memory
<GeDaMo>
So just one letter then?
<zid>
yea
eroux has quit [Ping timeout: 240 seconds]
eroux has joined #osdev
troseman has quit [Read error: Connection reset by peer]
<moon-child>
moar pixels = more bandwidth
vai has joined #osdev
benlyn has joined #osdev
Left_Turn has joined #osdev
deflated8837 has quit [Read error: Connection reset by peer]
deflated8837 has joined #osdev
vai has quit [Ping timeout: 246 seconds]
SGautam has quit [Quit: Connection closed for inactivity]
nyah has joined #osdev
dennis95 has joined #osdev
gog has joined #osdev
Burgundy has joined #osdev
CaCode has joined #osdev
<gog>
nya
<sham1>
hi
CaCode has quit [Ping timeout: 244 seconds]
<gog>
hi!
<Ermine>
hi gog, may I pet you
<xenos1984>
If you transmit characters from computer to brain, there's better ways to get more bandwidth than a screen. 25*80*60 characters per second is still low compared to such methods: http://xkcd.com/644/
<bslsk05>
xkcd - Surgery
* kazinsal
hugs gog
<sham1>
Vista-ready :P
<xenos1984>
I wonder which *HCI he implements.
<sham1>
Nothing yet, anyway
<sham1>
Still waiting for the software update.
<gog>
Ermine: yes
* gog
hug kazinsal
<kazinsal>
nya~
<gog>
nyaa
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gareppa has joined #osdev
* Ermine
pets gog
* gog
prr
duderonomy has joined #osdev
FreeFull has joined #osdev
janemba has joined #osdev
<sham1>
Diskette!
<zid>
They prefer the term "trans woman disk"
<kazinsal>
disk, mommy edition
<gog>
transfem storage medium
<kazinsal>
formatted storage capacity: 1.44 million "good girl"s
janemba has quit [Ping timeout: 260 seconds]
<gog>
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
<sham1>
1.44 million 9 bytes
<sham1>
Or maybe 10 bytes, depends on if that string is zero-terminated
janemba has joined #osdev
<zid>
You guys get 1.44MiB? I get 360KiB :(
<kazinsal>
all "good girl"s must be delivered in slow, sensual, breathy whispers
<gog>
staaaaaaaaahhp
<gog>
you're making me behave stereotypically
<zid>
isn't that your life goal
<kazinsal>
contemplating turning up the good recording gear
<zid>
lol, just got five 1/100 drops from killing 80 dudes in my game
<gog>
nya
zxrom_ has joined #osdev
zxrom has quit [Ping timeout: 260 seconds]
MiningMarsh has joined #osdev
<kazinsal>
sittin here at 0430 with the whole audio rig up trying to record my best "good girl"
<kazinsal>
damn technology
<gog>
lmfao
<sham1>
A worthy cause
<gog>
i kinda want to play train sim world but i don't wait to wait for nearly 50gb of download
<gog>
maybe i'll download it at work
<kazinsal>
you ever record something and think it's great but after listening to it a few times for editing you go "oh no I should not"
<zid>
imagine editing
<kazinsal>
the editing decision is mainly whether to go full comical or full effort
<bslsk05>
github.com: sophia/loader/main_efi.c at kc-entry-refactor · adachristine/sophia · GitHub
<sham1>
I'm thankful that the research I work with is actually something that is valuable and actually has real-world impact and such, but yeah, perverse incentives ruin research
<zid>
see this is why you should write it in inline assembly
<mjg>
i called it faked because it's 1. probably stupid 2. ... already been done to death over decades by people he coerced
<zid>
so you don't need that cs thunk
<gog>
maybe
zxrom_ has joined #osdev
<mjg>
sham1: i had a friend doing a phd, he shared a funny story
<mjg>
they were told to attend a class about statistics
<mjg>
which ended with a short quiz
<mjg>
lecturer was genuinely surprised they already knew the stuff
<mjg>
:s
<sham1>
Hmm
<mjg>
now, i'm not gonna point fingers, i but i got my share of absolute SHITE phd code
<mjg>
cs phd
zxrom_ is now known as zxrom
<gog>
i'm gonna go get my phd in cs
<sham1>
And hopefully write good code
* mjg
cries for gog
<gog>
i will never write good code
<gog>
clearly
<gog>
you all saw it
<mjg>
it is quite franlkly perplexing how lol misconceptions persist at all levels
<mjg>
of education
<sham1>
I'm not planning to get a PhD. My masters' is already taking its sweet time
<mjg>
:]
<mcrod>
a phd would be cool, wouldn't you want people to refer to you as dr. sham
<mjg>
there is a prestigeous cs course at a certain uni, i knew quite a few people who studied it
<mjg>
it is super common to just "fuck it" and not graduate
<mjg>
at some point people just can't be bothered
<mjg>
i htink the main demotivator is that nobody will read the damn paper anyway
<sham1>
I actually just got my bachelor's degree like a month and a half ago. It's only been like 6-7 years since I started uni. Good times
<gog>
i still don't have my bachelor lol
<mcrod>
i don't have anything
<mjg>
are you trying tho
* mjg
only has a high shcool diploma
<mcrod>
i was a substandard student in high school because i didn't care
<gog>
i might go back, my union will pay me
<mcrod>
so all I have is high school
<mjg>
the furthest i got in college was 4th semester
<gog>
but i need a couple more years paying dues to get a grant
<gog>
and i'm not taking out any more loans
<gog>
but also after a year in the profession my employability is like 100x higher now
<sham1>
Ugh, I've sat around watching people trying to get grants for our project and it seems annoying
<gog>
at some point i might find a job where my low-level coding knowledge is valuable
<jimbzy>
Gonna hire you to help me port sosig to my air fryer, gog.
<mcrod>
gog: i'm beginning to believe that low level coders are basically evaporating, because everything around is web dev garbage
<gog>
so you can air fry some sosiges?
<jimbzy>
:]
<gog>
i think people think low-level coding is harder than web dev
<gog>
and in some respects it's more challenging
<gog>
and requires a different mindset
<sham1>
I'd say that webdev is more difficult, but that's mostly just because of all the BS around it
<gog>
but i find web dev to be harder work in general
<gog>
yes
<jimbzy>
It's all computer Lego.
<gog>
and how everything changes every few yeras
<gog>
a thing you make now is going to be obsolete eventually
<gog>
or the source of an exploit
<gog>
because you can't audit it end to end
<mcrod>
source of an exploit?
<mcrod>
you mean installing any npm package evevr?
<mcrod>
ever*
<sham1>
Gotta make $THING work on $BROWSER that does $FEATURE just a tiny bit wrong or just doesn't implement it even though it should
<gog>
basically yeah
<jimbzy>
import * from *
<mcrod>
I remember my first time using npm
<gog>
hhhhhh
<mcrod>
and installing a very common package
<gog>
god
<sham1>
leftpad?
<mcrod>
"40 vulnerabilities were found"
<gog>
yep
<gog>
i see that message every day
<mcrod>
and no one cares
<sham1>
One annoying part about the node packaging ecosystem is that people insist on updating package dependencies just for the hell of it
<jimbzy>
I'll write my own bugs, thanks.
<gog>
we don't store sensitive data thankfully
<gog>
it's somebody else's problem
<mcrod>
if 20 years ago you saw "vulnerabilites were found" it would be taken quite seriously
<mcrod>
now, no one cares
<mcrod>
there are blog posts telling people not to worry about "vulnerabilities were found"
<gog>
it's because everything in the js ecosystem is brittle as fuck
<gog>
you update that package and it might break something subtly but seriously
<jimbzy>
I can't wrap my mind around web development.
<bslsk05>
www.voitanos.io: Don't be alarmed by vulnerabilities after NPM Install
<mcrod>
take this for example
<mcrod>
"You have a few options, but what I advise my students to do is just ignore these warnings on a new project."
<mcrod>
and thus, idiots are born
<sham1>
TBF, the problem there is that a lot of those vulnerabilities are from transient dependencies. And if they're found in things like tools you just use for building your app, let's say, then eh. At least it's not user-facing
<jimbzy>
Full stack, brah... You don't have to understand it. Just use it.
<sham1>
You'd still want to fix them, but whatever
<gog>
sham1: zalgo
<gog>
i'm the fully-stacked full-stack dev
* gog
flexes
<sham1>
gog: yeah, the guy printed zalgo on peoples' screens
<gog>
brilliant
<sham1>
Was angry for companies using his code without compensation
<mcrod>
i dunno. i just hate computers now.
<gog>
computers suck
<sham1>
An understandable stance in some sense, but my brother in christ, you chose MIT license.
<gog>
but they put a roof over my head and food on my table
<jimbzy>
I hope you have a permit for those guns, gog.
<mcrod>
i like programming
<gog>
:3
<mcrod>
but
<mcrod>
i live on the eastern seaboard of the US, and getting an embedded job was a unicorn
<sham1>
I'm glad to work in what is essentially just an Enterprise Java codebase. None of this BS. The most I have to interact with webdev is some (relatively ancient) jQuery stuff
<mcrod>
and I will hold onto this for dear life for the next few years
<sham1>
I embrace legacy and legacy embraces me back. I don't have to deal with all this webdev bollocks
<gog>
honestly i have respect for people who maintain legacy codebases. you're doing a thing i advocate for: fixing code we already wrote instead of writing it new
slidercrank has joined #osdev
<sham1>
Fixing code and then upgrading it to less ancient stacks
<gog>
(she said, while reimplementing unix poorly)
<mcrod>
there's a reason I boot up my packard bell with windows 98 on it every now and again
<mcrod>
what a terribly inefficient slow piece of shit
<gog>
hot take: windows 98 is good actually
<gog>
jk
<mcrod>
but fuck, it worked. things had to be simple.
<sham1>
I have my little netbook as a hobby computer. Can't even browse the modern web properly because it's so slow and shite. And that's a feature
<mcrod>
people had to make complex things
goliath has joined #osdev
<gog>
and what did faster computers get us, really? cryptocurrency?
<gog>
pfffff
<sham1>
machine learning
<gog>
more "realistic" graphics in vidya?
<gog>
machine scamming
<sham1>
yes
<mcrod>
my kinda first real attempt at a gameboy emulator compiled on windows 98, and worked
<qookie>
bigger factories in factorio running at 60ups
<mcrod>
and i was so damn happy
<gog>
qookie: that is actually good tho
<sham1>
Yeah, factorio is worth it
<gog>
everything else is bollocks tho
<gog>
and it's also a case study for not needing good graphics to have an outrageously addictive game
<gog>
see also dwarf fortress
<gog>
see also rimworld
<mcrod>
i'm serious though, people.
<zid>
That's why we have faster computers
<zid>
dwarf fortress
<gog>
yes
<mcrod>
nothing is a fever dream than making something work on older shit
<gog>
dwarf fortress system requriements: octa-core i7 or better. graphics? who cares
<zid>
no
<zid>
It does not give a flying fuck about cores
<gog>
oh it's single threaded
<zid>
You just need RAW POWER
<gog>
nice
<gog>
xeon it is then
<sham1>
UNICORE POWER
<zid>
my E5-1650 did very well on it
<sham1>
Could also be unicorn power, but unicode works better for this
<gog>
may it rest in peace
<sham1>
unicore*
<zid>
It works, mobo doesn't :(
<zid>
probably just needs new flash though is my guess
<gog>
and the mobo is probably more expensive than a new pc
<gog>
i suppose but then i need to write more boilerplate
<gog>
oook linux just uses 6 long params
<gog>
i guess that's fine
gareppa has joined #osdev
xenos1984 has quit [Ping timeout: 245 seconds]
xenos1984 has joined #osdev
vdamewood has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xenos1984 has quit [Ping timeout: 246 seconds]
ptrc has quit [Remote host closed the connection]
ptrc has joined #osdev
dutch has quit [Quit: WeeChat 4.0.2]
dutch has joined #osdev
xenos1984 has joined #osdev
Arthuria has joined #osdev
<sham1>
gog: protip: typedef void blah_func(/* your six params here */); blah_func *func_ptr;
<sham1>
You don't need the star within the typedef
<gog>
since when
<gog>
oh wait is eee
<gog>
ok
<gog>
ehh
<gog>
that might be a better way to declare them
<gog>
but if i declare it that way do i need to * when i call?
<sham1>
Well you never need to deref a function pointer when you call it
<gog>
ok
<gog>
it's too late now though i have so many places where i declare things of a defined function pointer type without the *
<gog>
because i typedefed with the star
vai has quit [Ping timeout: 260 seconds]
<gog>
¯\_(ツ)_/¯
<gog>
the convention is set
<gog>
there's no going back
<sham1>
Sure
<sham1>
Just for future reference, and for everyone else as well
<gog>
future dereference
* gog
fingerguns and disappears into a puff of bad pun smoke
<sham1>
std::future_ref<Whatever> _M_gog;
<sham1>
Btw, that's a weird naming convention
<gog>
what is?
<mcrod>
hi
<sham1>
_M_this
<sham1>
I mean, I already disagree with this kind of Hungarian notation where a field is notated as being a member of a class
<gog>
yeah that's kinda nonsense
<gog>
because liek it's being declared in the body of a class
<gog>
so it's obviously a class member
<gog>
and if you're worried about name collisions then maybe the symbol's visibility is wrong
<gog>
noooo cppreference is down
<gog>
rip
<kof123>
(*blah_func)(); make the param list implicitly void? i need it to be an arbitrary param list k&r had arbitrary params...i thought c89 and beyond var args needed at least one always before the var args?
<kof123>
this is not to say i know modern stuff, just why such things might be
<Ermine>
() can take any arguments
<kof123>
:/
eddof13 has joined #osdev
<Ermine>
You won't be able to use anything you pass, but compiler won't complain about passing anything
<kof123>
yeah i screwed around with k&r function pointers once ...no complaints no matter how you invoke
<nortti>
kof123: c23 removed the requirement for a parameter before the varargs, and aiui it was because in practice no implementation required that anymore
<kof123>
ah
eddof13 has quit [Ping timeout: 264 seconds]
kpel has joined #osdev
sauce has joined #osdev
<gog>
i really should have committed when this worked :|
<gog>
oh well must forge forward now
<gog>
nvm i did phew
<gog>
ok
<mjg>
> Cardano founder Charles Hoskinson recently engaged in a Twitter debate on programming languages with Tesla CEO Elon Musk and Twitter CEO Jack Dorsey.
<mjg>
i'm pasting this to annoy some people
<Cindy>
lol
<Cindy>
even CEO and founders are dumb enough to engage in the types of debate an average 4channer would
<GeDaMo>
Is a cardano like a warm jumper? :|
<gog>
elon being a self-taught programmer makes me cringe because i also taught myself programming
<gog>
i don't want to be like him in any respect
<gog>
even if it's mere coincidence
<Cindy>
gog: same
<gog>
i did, however, formally study software engineering and do have half a clue so
<GeDaMo>
I think I read somewhere that he wrote some code for one of his early companies; when it was bought the code was dumped because it was so bad
<gog>
yes
<gog>
i think it's just a manifestation of my imposter syndrome
<gog>
because i didn't multiply the number by the size of the type
dennis95 has quit [Quit: Leaving]
<gog>
off by one
<gog>
also
wblue has joined #osdev
benlyn has quit [Remote host closed the connection]
<Ermine>
is it icelandic
<gog>
yews
SGautam has joined #osdev
vdamewood has joined #osdev
vdamewood has quit [Read error: Connection reset by peer]
vdamewood has joined #osdev
slidercrank has joined #osdev
<mcrod>
hi
<Lian>
hi
<gog>
hi
<gog>
mcrod: may i hug you
<mcrod>
yes
* gog
hug mcrod
* Lian
!
gareppa has quit [Quit: WeeChat 3.8]
<gog>
Lian: do you want a hug too
kpel has quit [Quit: Leaving]
<Lian>
sure
<Lian>
:)
<Cindy>
can i have: a hug
GeDaMo has quit [Quit: That's it, you people have stood in my way long enough! I'm going to clown college!]
<sham1>
I have to do a code review to our intern tomorrow
<Lian>
rip
<sham1>
This kind of milestone kind of thing so we can just see the progress
<sham1>
Because intern/trainee
<Lian>
now wheres my hug gog >:(
<mjg>
so it is hugs instead of pets now?
<mjg>
nice change of pace
<Lian>
well they asked :D
merry has joined #osdev
randm has quit [Remote host closed the connection]
randm has joined #osdev
<kof123>
of course it is not a real debate without mark cuban
<Lian>
i want to contact thomas zander and motivate him to continue working on kword >:(
<Lian>
outside of a seance i dont think i can find him tho
qfive has joined #osdev
* gog
hug Lian
* gog
hug Cindy
<Lian>
finally >:D waiting has paid off
<gog>
i was making dinner :P
<Lian>
all good x)
<Lian>
whats for dinner
<gog>
tofu stir fry
<Lian>
delicious!
<gog>
with zuccini, cauliflower, eggplant and mushroom
<Lian>
that sounds like a dream come true
<gog>
and a sriracha soy honey garlic sauce
<gog>
yes it's very tasty
<gog>
i'm especially proud of the sauce. it's simple and easy but it's really really good
<Lian>
im glad its good!
<Lian>
my roommate loves making these things
dutch has quit [Quit: WeeChat 4.0.2]
zxrom_ has joined #osdev
<geist>
oh my seattle is being invaded by taylor swift this weekend
<geist>
the fans are everywhere
<gog>
swifties are dangerous
<gog>
be careful
<Lian>
i think theyre called swiffers
<geist>
yeah i’m hiding here with my back against the wall, ready for an attack
<gog>
if they get too close start playing beyonce really loudly
<gog>
they'll flee
<Lian>
or talk about consent
<gog>
hhhhhhhhh
zxrom has quit [Ping timeout: 250 seconds]
<gog>
i used to work in retail and the PA music was always this mix of adult contemporary and t swift was regular on the rotation
<gog>
i developed a strong distaste for her music
<gog>
the music rotation was generally bad. occasionally you'd get some whitney houston or billy ocean tho
<geist>
they are definitely getting Schwifty
<gog>
heh
<geist>
lots of shiny clothing, probalby intended to blind and confuse us normies
SGautam has quit [Quit: Connection closed for inactivity]
<gog>
yes
<geist>
gosh it was so much easier to get dressed for grunge concerts when i was in high school. just wear your shittiest clothes because it’s probalby going to get ripped up anyway
<gog>
the last concert i was at was uhhh
* gog
draws a blank
<Lian>
my last concert was a punk gig in a club in Düsseldorf, Germany called The Tube
<geist>
i lost a shoe once at a Nirvana concert, due to crowd surfing
<gog>
nice!
<Lian>
it was basically a pub thats long instead of wide, like a tube
<Lian>
very narrow
<gog>
i think the last real concert i've been to was donna the buffalo in syracuse
<geist>
dunno what city it was in though
<geist>
there was some early vids of the beatles playing in germany at what looked a bit like that sort of place
<Lian>
i dont think its that old
<geist>
yah i only really go to small gigs nowadays, like 200 person clubs or so
<Lian>
me too
<geist>
or outdoor festivals
<Lian>
i never really liked clubs or big concerts
dutch has joined #osdev
<Lian>
other than seeing roger waters live
<Lian>
with The Wall
<gog>
no wait! about a week ago i was at a big outdoor party that had a concert
<geist>
last large concer i went to was Foo Fighters in about 2010. bnut it was in really awesome seats as part of some company perk
<gog>
i don't remember the name of the band
<gog>
and about half of their songs were originals in icelanid
<gog>
icelandic
<gog>
also i was pretty faded
<geist>
reminds me, recently discovered Low Roar (due to playing death stranding) great stuff, but the guy died. hate that when youdiscover a band after there’s no more
<geist>
icelandic
<Lian>
im gonna go to a punk & post punk gig at my local favorite blues bar soon
<Lian>
cozy basement kinda deal
<Lian>
run by an old couple
<geist>
yeah that sounds fantastic
<geist>
i should go to one of the seattle jazz clubs more often
<gog>
my friend's band is gonna be playing at a local club next week
<gog>
i should probably go, i promised i would last time but flaked
<geist>
well gotta go represent the fan club
<geist>
do it!
wblue has quit [Quit: wblue]
<geist>
i was in a band once, it was really nice when your friends showed up
<gog>
liam on wtypp just said he's a bsd guy BOOO LIAM
Turn_Left has quit [Read error: Connection reset by peer]
Left_Turn has joined #osdev
<mcrod>
I think I'm going to try and get my dad to use GNOME
<gog>
booo gnome
bleb has quit [Ping timeout: 240 seconds]
<mcrod>
you say boo, I say "with the proper extensions, it's fire"
dude12312414 has joined #osdev
bleb has joined #osdev
qfive has quit [Quit: Konversation terminated!]
slidercrank has quit [Ping timeout: 244 seconds]
<gog>
i say booooooo
wblue has joined #osdev
wblue has quit [Client Quit]
Left_Turn has quit [Read error: Connection reset by peer]
wblue has joined #osdev
wblue has quit [Client Quit]
gog has quit [Quit: byee]
vdamewood has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wblue has joined #osdev
<kof123>
have i taught you ppl nothing? > i want to contact thomas zander and motivate him to continue working on kword >:( (04:50:14 PM) Lian: outside of a seance i dont think i can find him tho
<kof123>
boy that gnome sure is great. too bad kde has nothing to compare